@utilitywarehouse/hearth-react 0.24.7 → 0.24.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/chunk-3FVXPWOT.js +2 -0
- package/dist/chunk-3FVXPWOT.js.map +1 -0
- package/dist/{chunk-5RKXT7C7.js → chunk-6PP5XB56.js} +2 -2
- package/dist/{chunk-YELELW46.js → chunk-7HUJMNQ7.js} +2 -2
- package/dist/{chunk-WNJPRTTD.cjs → chunk-GJKKZENW.cjs} +2 -2
- package/dist/chunk-GJKKZENW.cjs.map +1 -0
- package/dist/chunk-GNS34UOB.cjs +2 -0
- package/dist/chunk-GNS34UOB.cjs.map +1 -0
- package/dist/{chunk-EMSE7SXP.js → chunk-I4U2WQWM.js} +2 -2
- package/dist/{chunk-UIRC2BXB.cjs → chunk-KUOOI3LW.cjs} +2 -2
- package/dist/{chunk-UIRC2BXB.cjs.map → chunk-KUOOI3LW.cjs.map} +1 -1
- package/dist/{chunk-FDKVJZ4L.js → chunk-MTZAO3QT.js} +2 -2
- package/dist/chunk-MTZAO3QT.js.map +1 -0
- package/dist/chunk-MUVMQMM4.js +2 -0
- package/dist/chunk-MUVMQMM4.js.map +1 -0
- package/dist/{chunk-EVRLAXIA.cjs → chunk-NIXPLCMH.cjs} +2 -2
- package/dist/{chunk-EVRLAXIA.cjs.map → chunk-NIXPLCMH.cjs.map} +1 -1
- package/dist/chunk-NUGQLWLQ.cjs +2 -0
- package/dist/chunk-NUGQLWLQ.cjs.map +1 -0
- package/dist/{chunk-B2NGDRHY.cjs → chunk-XPSM6UZT.cjs} +2 -2
- package/dist/{chunk-B2NGDRHY.cjs.map → chunk-XPSM6UZT.cjs.map} +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.cjs +1 -1
- package/dist/components/CurrencyInput/CurrencyInput.js +1 -1
- package/dist/components/PasswordInput/PasswordInput.cjs +1 -1
- package/dist/components/PasswordInput/PasswordInput.js +1 -1
- package/dist/components/SearchInput/SearchInput.cjs +1 -1
- package/dist/components/SearchInput/SearchInput.js +1 -1
- package/dist/components/TextArea/TextArea.cjs +1 -1
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.d.cts +18 -1
- package/dist/components/TextArea/TextArea.d.ts +18 -1
- package/dist/components/TextArea/TextArea.js +1 -1
- package/dist/components/TextArea/TextArea.props.d.cts +20 -5
- package/dist/components/TextArea/TextArea.props.d.ts +20 -5
- package/dist/components/TextInput/TextInput.cjs +1 -1
- package/dist/components/TextInput/TextInput.js +1 -1
- package/dist/components/VerificationInput/VerificationInput.cjs +1 -1
- package/dist/components/VerificationInput/VerificationInput.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/styles.css +1 -1
- package/dist/chunk-66HOS3IW.js +0 -2
- package/dist/chunk-66HOS3IW.js.map +0 -1
- package/dist/chunk-AGW5MDBJ.cjs +0 -2
- package/dist/chunk-AGW5MDBJ.cjs.map +0 -1
- package/dist/chunk-FDKVJZ4L.js.map +0 -1
- package/dist/chunk-P5U3V3RN.js +0 -2
- package/dist/chunk-P5U3V3RN.js.map +0 -1
- package/dist/chunk-VTSB2PZN.cjs +0 -2
- package/dist/chunk-VTSB2PZN.cjs.map +0 -1
- package/dist/chunk-WNJPRTTD.cjs.map +0 -1
- /package/dist/{chunk-5RKXT7C7.js.map → chunk-6PP5XB56.js.map} +0 -0
- /package/dist/{chunk-YELELW46.js.map → chunk-7HUJMNQ7.js.map} +0 -0
- /package/dist/{chunk-EMSE7SXP.js.map → chunk-I4U2WQWM.js.map} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as I}from"./chunk-52GAUAZQ.js";import{a as v}from"./chunk-FZVOPBRY.js";import{a as c}from"./chunk-W6VYE222.js";import{a as b}from"./chunk-L4OZ3M5X.js";import{a as P}from"./chunk-DVGYWBKQ.js";import{a as u}from"./chunk-TONM4LZL.js";import{a as p}from"./chunk-MSHCGZ4G.js";import{b as f}from"./chunk-TXDSZ3MR.js";import{unstable_OneTimePasswordField as d}from"radix-ui";import{jsx as a,jsxs as C}from"react/jsx-runtime";var T="VerificationInput",E=f(T),R=y=>{let{className:O,disabled:r,readOnly:n,label:F,labelVariant:N,helperText:o,validationText:s,validationStatus:i,required:x,id:V,"aria-describedby":h,ref:w,...S}=u(y,c),{id:D,labelId:l,helperTextId:m,validationTextId:t}=b({providedId:V,prefix:"verification-input"}),e=!n&&!r,_={id:D,labelId:l,helperTextId:m,validationTextId:t,label:F,labelVariant:N,helperText:o,validationText:e?s:void 0,validationStatus:e?i:void 0,required:x},g=P(h,o?m:void 0,e&&s!==void 0?t:void 0);return a(v,{"data-disabled":r?"":void 0,..._,children:C(d.Root,{className:p(E,O),disabled:r,readOnly:n,"aria-labelledby":l,"aria-describedby":g,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?t:void 0,"data-validation-status":e?i:void 0,...S,children:[Array.from({length:6}).map((H,A)=>a(d.Input,{asChild:!0,children:a(I,{})},A)),a(d.HiddenInput,{ref:w})]})})};R.displayName=T;export{R as a};
|
|
2
|
+
//# sourceMappingURL=chunk-3FVXPWOT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/VerificationInput/VerificationInput.tsx"],"sourcesContent":["'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const VerificationInput = (props: VerificationInputProps) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ref,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField data-disabled={disabled ? '' : undefined} {...formFieldProps}>\n <OneTimePasswordFieldPrimitive.Root\n className={cn(componentClassName, className)}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n};\n\nVerificationInput.displayName = COMPONENT_NAME;\n"],"mappings":"gUAEA,OAAS,iCAAiCA,MAAqC,WA6DzE,OAaM,OAAAC,EAbN,QAAAC,MAAA,oBAlDN,IAAMC,EAAiB,oBACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAqBC,GAAkC,CAClE,GAAM,CACJ,UAAAC,EACA,SAAA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efix","VerificationInput","props","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","ref","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","OneTimePasswordFieldPrimitive","cn","_","i","InputBase"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as E}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as E}from"./chunk-MTZAO3QT.js";import{a as x}from"./chunk-A32FGQD6.js";import{a as T}from"./chunk-BCK2XQ4L.js";import{a as R}from"./chunk-MSHCGZ4G.js";import{b as v}from"./chunk-TXDSZ3MR.js";import*as r from"react";import{jsx as p}from"react/jsx-runtime";var P="CurrencyInput",z=v(P),O=({className:D,disabled:M,value:f,onChange:g,placeholder:N="0.00",disableGroupSeparators:d,ref:V,...b})=>{let[w,S]=r.useState(""),B=r.useRef(null),o=r.useRef(null),t=V||B,h=f!==void 0,C=h?String(f??""):w,i=e=>{if(!e)return"";let c=e.split("."),n=c[0]||"";d||(n=n.replace(/\B(?=(\d{3})+(?!\d))/g,","));let s=c[1];return s!==void 0?n+"."+s:n},H=e=>{let c=e.target.value,n=e.target.selectionStart||0,s=i(C),y=c.replace(/[^\d.]/g,""),u=y.split("."),I=u.length>2?u[0]+"."+u.slice(1).join(""):y,m=I.split("."),a=m[1]!==void 0?m[0]+"."+m[1].substring(0,2):I;if(d)o.current=null;else{let l=i(a),L=(s.slice(0,Math.min(n,s.length)).match(/,/g)||[]).length,j=(l.slice(0,Math.min(n,l.length)).match(/,/g)||[]).length-L;o.current=n+j}if(h||S(a),g&&t&&typeof t=="object"&&t.current){let l={...e,target:{...e.target,value:a},currentTarget:{...e.currentTarget,value:a}};g(l)}};return r.useEffect(()=>{t&&typeof t=="object"&&t.current&&o.current!==null&&(t.current.setSelectionRange(o.current,o.current),o.current=null)}),p(E,{ref:t,className:R(z,D),type:"text",inputMode:"decimal",disabled:M,value:i(C),onChange:H,placeholder:N,...b,children:p(T,{placement:"prefix",children:p(x,{size:"3xl",children:"\xA3"})})})};O.displayName=P;export{O as a};
|
|
2
|
+
//# sourceMappingURL=chunk-6PP5XB56.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-MTZAO3QT.js";import{a as d}from"./chunk-BCK2XQ4L.js";import{a as f}from"./chunk-X3VYVZNB.js";import{a as m}from"./chunk-L4OZ3M5X.js";import{a as p}from"./chunk-MSHCGZ4G.js";import{b as u}from"./chunk-TXDSZ3MR.js";import i from"react";import{EyeOffSmallIcon as T,EyeSmallIcon as g}from"@utilitywarehouse/hearth-react-icons";import{Fragment as O,jsx as o,jsxs as R}from"react/jsx-runtime";var b="PasswordInput",x=u(b),N=({className:y,disabled:l,id:I,ref:w,...E})=>{let v=i.useRef(null),e=w||v,[s,S]=i.useState(!1),[n,a]=i.useState(!1),M=i.useCallback(()=>{let t=!s,r=!n;S(t),a(r)},[s,n]);i.useEffect(()=>{let t=null;e&&typeof e=="object"&&e.current&&(t=e.current);let r=()=>{t?.type&&(t.type="password")};return t&&t.form!==null&&t.form.addEventListener("submit",r),()=>{t?.form&&t.form.removeEventListener("submit",r)}},[e]);let P=`Your password is ${s?"shown":"hidden"}!`;i.useEffect(()=>{setTimeout(()=>{a(!1)},1500)},[n]);let{id:h}=m({providedId:I,prefix:"password-input"});return R(O,{children:[o(c,{ref:e,className:p(x,y),type:s?"text":"password",disabled:l,id:h,...E,children:o(d,{placement:"suffix",children:o(f,{type:"button",label:"toggle password visibility",onClick:M,disabled:l,"aria-pressed":s,children:s?o(g,{}):o(T,{})})})}),o("div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:n?P:""})]})};N.displayName=b;export{N as a};
|
|
2
|
+
//# sourceMappingURL=chunk-7HUJMNQ7.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWHBTF5Fcjs = require('./chunk-KWHBTF5F.cjs');var _chunkWY3I6O7Dcjs = require('./chunk-WY3I6O7D.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkDSW76HKTcjs = require('./chunk-DSW76HKT.cjs');var _chunkCMZ47UG6cjs = require('./chunk-CMZ47UG6.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var v="TextInput",E=_chunk7LZI6HLWcjs.b.call(void 0, v),M= exports.a =y=>{let{className:P,validationStatus:i,validationText:r,label:N,labelVariant:F,helperText:t,children:O,id:g,disabled:e,readOnly:n,hideLabel:B,required:o,placeholder:C,"aria-describedby":D,...V}=_chunkCMZ47UG6cjs.a.call(void 0, y,_chunkRDNRX35Pcjs.a),{id:l,labelId:s,helperTextId:p,validationTextId:d}=_chunkITZEACMWcjs.a.call(void 0, {providedId:g,prefix:"text-input"}),a=!n&&!e,q={id:l,labelId:s,helperTextId:p,validationTextId:d,label:N,labelVariant:F,helperText:t,validationText:a?r:void 0,validationStatus:a?i:void 0,hideLabel:B,required:o},w=_chunkDSW76HKTcjs.a.call(void 0, D,t?p:void 0,a&&r!==void 0?d:void 0);return _jsxruntime.jsx.call(void 0, _chunkWY3I6O7Dcjs.a,{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWHBTF5Fcjs = require('./chunk-KWHBTF5F.cjs');var _chunkWY3I6O7Dcjs = require('./chunk-WY3I6O7D.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkDSW76HKTcjs = require('./chunk-DSW76HKT.cjs');var _chunkCMZ47UG6cjs = require('./chunk-CMZ47UG6.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var v="TextInput",E=_chunk7LZI6HLWcjs.b.call(void 0, v),M= exports.a =y=>{let{className:P,validationStatus:i,validationText:r,label:N,labelVariant:F,helperText:t,children:O,id:g,disabled:e,readOnly:n,hideLabel:B,required:o,placeholder:C,"aria-describedby":D,...V}=_chunkCMZ47UG6cjs.a.call(void 0, y,_chunkRDNRX35Pcjs.a),{id:l,labelId:s,helperTextId:p,validationTextId:d}=_chunkITZEACMWcjs.a.call(void 0, {providedId:g,prefix:"text-input"}),a=!n&&!e,q={id:l,labelId:s,helperTextId:p,validationTextId:d,label:N,labelVariant:F,helperText:t,validationText:a?r:void 0,validationStatus:a?i:void 0,hideLabel:B,required:o},w=_chunkDSW76HKTcjs.a.call(void 0, D,t?p:void 0,a&&r!==void 0?d:void 0);return _jsxruntime.jsx.call(void 0, _chunkWY3I6O7Dcjs.a,{"data-disabled":e?"":void 0,...q,children:_jsxruntime.jsx.call(void 0, _chunkKWHBTF5Fcjs.a,{className:_chunkGVVJQBRKcjs.a.call(void 0, E,P),spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:C,"aria-labelledby":s,"aria-describedby":w,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?d:void 0,...V,children:O})})};M.displayName=v;exports.a = M;
|
|
2
|
+
//# sourceMappingURL=chunk-GJKKZENW.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GJKKZENW.cjs","../src/components/TextInput/TextInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TextInput","props","className","validationStatus","validationText","label","labelVariant","helperText","children","providedId","disabled","readOnly","hideLabel","required","placeholder","ariaDescribedby","textInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","jsx","FormField","InputBase","cn"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CC+DjU,IAnDAA,CAAAA,CAAiB,WAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAaC,CAAAA,EAA0B,CAClD,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,kBAAA,CAAoBC,CAAAA,CACpB,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAahB,CAAOiB,mBAAc,CAAA,CAEhC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,iCAAAA,CACtD,UAAA,CAAAd,CAAAA,CACA,MAAA,CAAQ,YACV,CAAC,CAAA,CAEKe,CAAAA,CAAyB,CAACb,CAAAA,EAAY,CAACD,CAAAA,CAEvCe,CAAAA,CAAiB,CACrB,EAAA,CAAAN,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,KAAA,CAAAjB,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAgBiB,CAAAA,CAAiBpB,CAAAA,CAAiB,KAAA,CAAA,CAClD,gBAAA,CAAkBoB,CAAAA,CAAiBrB,CAAAA,CAAmB,KAAA,CAAA,CACtD,SAAA,CAAAS,CAAAA,CACA,QAAA,CAAAC,CACF,CAAA,CAEMa,CAAAA,CAAuBC,iCAAAA,CAC3BZ,CACER,CAAAA,CAAac,CAAAA,CAAe,KAAA,CAAA,CAC9BG,CAAAA,EAAkBpB,CAAAA,GAAmB,KAAA,CAAA,CAAYkB,CAAAA,CAAmB,KAAA,CACtE,CAAA,CAEA,OACEM,6BAAAA,mBAACC,CAAA,CAAU,eAAA,CAAenB,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAAY,GAAGe,CAAAA,CACvD,QAAA,CAAAG,6BAAAA,mBAACE,CAAA,CACC,SAAA,CAAWC,iCAAAA,CAAGjC,CAAoBI,CAAS,CAAA,CAC3C,UAAA,CAAW,OAAA,CACX,EAAA,CAAIiB,CAAAA,CACJ,QAAA,CAAUN,CAAAA,CACV,QAAA,CAAUH,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,WAAA,CAAcD,CAAAA,CAAyB,KAAA,CAAA,CAAdI,CAAAA,CACzB,iBAAA,CAAiBM,CAAAA,CACjB,kBAAA,CAAkBM,CAAAA,CAClB,cAAA,CAAcvB,CAAAA,GAAqB,SAAA,CAAY,CAAA,CAAA,CAAO,KAAA,CAAA,CACtD,mBAAA,CAAmBA,CAAAA,GAAqB,SAAA,CAAYmB,CAAAA,CAAmB,KAAA,CAAA,CACtE,GAAGN,CAAAA,CAEH,QAAA,CAAAR,CAAAA,CACH,CAAA,CACF,CAEJ,CAAA,CAEAR,CAAAA,CAAU,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GJKKZENW.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { TextInputProps } from './TextInput.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { cn } from '../../helpers/cn';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { FormField } from '../FormField/FormField';\n\nconst COMPONENT_NAME = 'TextInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextInput = (props: TextInputProps) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n children,\n id: providedId,\n disabled,\n readOnly,\n hideLabel,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n ...textInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'text-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n hideLabel,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField data-disabled={disabled ? '' : undefined} {...formFieldProps}>\n <InputBase\n className={cn(componentClassName, className)}\n spellCheck=\"false\"\n id={id}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n {...textInputProps}\n >\n {children}\n </InputBase>\n </FormField>\n );\n};\n\nTextInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWY3I6O7Dcjs = require('./chunk-WY3I6O7D.cjs');var _chunk473MYGXAcjs = require('./chunk-473MYGXA.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkDSW76HKTcjs = require('./chunk-DSW76HKT.cjs');var _chunkCMZ47UG6cjs = require('./chunk-CMZ47UG6.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _jsxruntime = require('react/jsx-runtime');var y="TextArea",z=_chunk7LZI6HLWcjs.b.call(void 0, y),E= exports.a =P=>{let{className:g,validationStatus:e,validationText:t,label:A,labelVariant:N,helperText:o,id:I,disabled:a,readOnly:n,required:s,placeholder:F,"aria-describedby":w,resize:H,rows:O=3,minHeight:B,maxHeight:C,...D}=_chunkCMZ47UG6cjs.a.call(void 0, P,_chunkRDNRX35Pcjs.a),{id:l,labelId:m,helperTextId:p,validationTextId:i}=_chunkITZEACMWcjs.a.call(void 0, {providedId:I,prefix:"textarea"}),r=!n&&!a,V={id:l,labelId:m,helperTextId:p,validationTextId:i,label:A,labelVariant:N,helperText:o,validationText:r?t:void 0,validationStatus:r?e:void 0,required:s},q=_chunkDSW76HKTcjs.a.call(void 0, w,o?p:void 0,r&&t!==void 0?i:void 0);return _jsxruntime.jsx.call(void 0, _chunkWY3I6O7Dcjs.a,{"data-validation-status":e||void 0,"data-disabled":a?"":void 0,...V,children:_jsxruntime.jsx.call(void 0, _chunk473MYGXAcjs.a,{asChild:!0,className:_chunkGVVJQBRKcjs.a.call(void 0, z,g),minHeight:B,maxHeight:C,children:_jsxruntime.jsx.call(void 0, "textarea",{id:l,rows:O,required:s,disabled:a,readOnly:n,placeholder:a?void 0:F,"aria-labelledby":m,"aria-describedby":q,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?i:void 0,"data-resize":H,...D})})})};E.displayName=y;exports.a = E;
|
|
2
|
+
//# sourceMappingURL=chunk-GNS34UOB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-GNS34UOB.cjs","../src/components/TextArea/TextArea.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","TextArea","props","className","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","readOnly","required","placeholder","ariaDescribedby","resize","rows","minHeight","maxHeight","textAreaProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","jsx","FormField","Box","cn"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,+CC0E/T,IA9DFA,CAAAA,CAAiB,UAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAYC,CAAAA,EAAyB,CAChD,GAAM,CACJ,SAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,kBAAA,CAAoBC,CAAAA,CACpB,MAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CAAO,CAAA,CACP,SAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,GAAGC,CACL,CAAA,CAAIC,iCAAAA,CAAalB,CAAOmB,mBAAc,CAAA,CAEhC,CAAE,EAAA,CAAAC,CAAAA,CAAI,OAAA,CAAAC,CAAAA,CAAS,YAAA,CAAAC,CAAAA,CAAc,gBAAA,CAAAC,CAAiB,CAAA,CAAIC,iCAAAA,CACtD,UA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iBAAA,CAAiBU,CAAAA,CACjB,kBAAA,CAAkBM,CAAAA,CAClB,cAAA,CAAczB,CAAAA,GAAqB,SAAA,CAAY,CAAA,CAAA,CAAO,KAAA,CAAA,CACtD,mBAAA,CAAmBA,CAAAA,GAAqB,SAAA,CAAYqB,CAAAA,CAAmB,KAAA,CAAA,CACvE,aAAA,CAAaV,CAAAA,CACZ,GAAGI,CAAAA,CACN,CAAA,CACF,CAAA,CACF,CAEJ,CAAA,CAEAlB,CAAAA,CAAS,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-GNS34UOB.cjs","sourcesContent":[null,"'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { useIds } from '../../hooks/use-ids';\nimport type { TextAreaProps } from './TextArea.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormField } from '../FormField/FormField';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'TextArea';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n readOnly,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n resize,\n rows = 3,\n minHeight,\n maxHeight,\n ...textAreaProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'textarea',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n data-validation-status={validationStatus ? validationStatus : undefined}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <Box\n asChild\n className={cn(componentClassName, className)}\n minHeight={minHeight}\n maxHeight={maxHeight}\n >\n <textarea\n id={id}\n rows={rows}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-resize={resize}\n {...textAreaProps}\n />\n </Box>\n </FormField>\n );\n};\n\nTextArea.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as m}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as m}from"./chunk-MTZAO3QT.js";import{a as n}from"./chunk-BCK2XQ4L.js";import{a as s}from"./chunk-X3VYVZNB.js";import{a as i}from"./chunk-PGLECFTA.js";import{a}from"./chunk-L4OZ3M5X.js";import{a as l}from"./chunk-MSHCGZ4G.js";import{b as u}from"./chunk-TXDSZ3MR.js";import{CloseSmallIcon as E,SearchMediumIcon as C}from"@utilitywarehouse/hearth-react-icons";import*as o from"react";import{jsx as t,jsxs as H}from"react/jsx-runtime";var f="SearchInput",P=u(f),B=({className:I,disabled:c,value:r,onClear:p,loading:d,hideLabel:h=!0,helperText:S,id:y,ref:x,...b})=>{let R=o.useRef(null),e=x||R,M=o.useCallback(T=>{typeof p!="function"||T.button!==0||(p(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,p]),{id:N}=a({providedId:y,prefix:"search-input"});return H(m,{ref:e,className:l(P,I),type:"search",enterKeyHint:"search",disabled:c,hideLabel:h,helperText:S,value:r,id:N,...b,children:[t(n,{placement:"prefix",children:t(C,{})}),d?t(n,{placement:"suffix",children:t(i,{size:"xs",color:"primary"})}):null,r!==void 0&&String(r).length>0?t(n,{placement:"suffix",children:t(s,{type:"button",label:"clear search",onClick:M,disabled:c,children:t(E,{})})}):null]})};B.displayName=f;export{B as a};
|
|
2
|
+
//# sourceMappingURL=chunk-I4U2WQWM.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkGJKKZENWcjs = require('./chunk-GJKKZENW.cjs');var _chunkR2ERPRDBcjs = require('./chunk-R2ERPRDB.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _react = require('react'); var r = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var P="CurrencyInput",z=_chunk7LZI6HLWcjs.b.call(void 0, P),O= exports.a =({className:D,disabled:M,value:f,onChange:g,placeholder:N="0.00",disableGroupSeparators:d,ref:V,...b})=>{let[w,S]=r.useState(""),B=r.useRef(null),o=r.useRef(null),t=V||B,h=f!==void 0,C=h?String(_nullishCoalesce(f, () => (""))):w,i=e=>{if(!e)return"";let c=e.split("."),n=c[0]||"";d||(n=n.replace(/\B(?=(\d{3})+(?!\d))/g,","));let s=c[1];return s!==void 0?n+"."+s:n},H=e=>{let c=e.target.value,n=e.target.selectionStart||0,s=i(C),y=c.replace(/[^\d.]/g,""),u=y.split("."),I=u.length>2?u[0]+"."+u.slice(1).join(""):y,m=I.split("."),a=m[1]!==void 0?m[0]+"."+m[1].substring(0,2):I;if(d)o.current=null;else{let l=i(a),L=(s.slice(0,Math.min(n,s.length)).match(/,/g)||[]).length,j=(l.slice(0,Math.min(n,l.length)).match(/,/g)||[]).length-L;o.current=n+j}if(h||S(a),g&&t&&typeof t=="object"&&t.current){let l={...e,target:{...e.target,value:a},currentTarget:{...e.currentTarget,value:a}};g(l)}};return r.useEffect(()=>{t&&typeof t=="object"&&t.current&&o.current!==null&&(t.current.setSelectionRange(o.current,o.current),o.current=null)}),_jsxruntime.jsx.call(void 0, _chunkGJKKZENWcjs.a,{ref:t,className:_chunkGVVJQBRKcjs.a.call(void 0, z,D),type:"text",inputMode:"decimal",disabled:M,value:i(C),onChange:H,placeholder:N,...b,children:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _chunkR2ERPRDBcjs.a,{size:"3xl",children:"\xA3"})})})};O.displayName=P;exports.a = O;
|
|
2
|
+
//# sourceMappingURL=chunk-KUOOI3LW.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-KUOOI3LW.cjs","../src/components/CurrencyInput/CurrencyInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","CurrencyInput","className","disabled","controlledValue","onChange","placeholder","disableGroupSeparators","forwardedRef","props","internalValue","setInternalValue","localRef","cursorPositionRef","inputRef","isControlled","numericValue","formatValue","value","parts","integerPart","decimalPart","handleChange","input","cursorPosition","previousDisplayValue","cleaned","sanitized","finalParts","limitedValue","newDisplayValue","oldCommasBeforeCursor","commaDiff","syntheticEvent","jsx","TextInput","cn","InputSlot","DetailText"],"mappings":"AAAA,ufAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,uECErL,+CAmIf,IA1HFA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAgB,CAAC,CAC5B,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAOC,CAAAA,CACP,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,MAAA,CACd,sBAAA,CAAAC,CAAAA,CACA,GAAA,CAAKC,CAAAA,CACL,GAAGC,CACL,CAAA,CAAA,EAA0B,CAExB,GAAM,CAACC,CAAAA,CAAeC,CAAgB,CAAA,CAAU,CAAA,CAAA,QAAA,CAAiB,EAAE,CAAA,CAC7DC,CAAAA,CAAiB,CAAA,CAAA,MAAA,CAAyB,IAAI,CAAA,CAC9CC,CAAAA,CAA0B,CAAA,CAAA,MAAA,CAAsB,IAAI,CAAA,CAGpDC,CAAAA,CAAWN,CAAAA,EAAgBI,CAAAA,CAE3BG,CAAAA,CAAeX,CAAAA,GAAoB,KAAA,CAAA,CACnCY,CAAAA,CAAeD,CAAAA,CAAe,MAAA,kBAAOX,CAAAA,SAAmB,IAAE,CAAA,CAAIM,CAAAA,CAG9DO,CAAAA,CAAeC,CAAAA,EAA0B,CAC7C,EAAA,CAAI,CAACA,CAAAA,CAAO,MAAO,EAAA,CAEnB,IAAMC,CAAAA,CAAQD,CAAAA,CAAM,KAAA,CAAM,GAAG,CAAA,CACzBE,CAAAA,CAAcD,CAAAA,CAAM,CAAC,CAAA,EAAK,EAAA,CAEzBZ,CAAAA,EAAAA,CACHa,CAAAA,CAAcA,CAAAA,CAAY,OAAA,CAAQ,uBAAA,CAAyB,GAAG,CAAA,CAAA,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AAU,SAAA,CACV,QAAA,CAAUC,CAAAA,CACV,KAAA,CAAOc,CAAAA,CAAYD,CAAY,CAAA,CAC/B,QAAA,CAAUM,CAAAA,CACV,WAAA,CAAahB,CAAAA,CACZ,GAAGG,CAAAA,CAEJ,QAAA,CAAAyB,6BAAAA,mBAACG,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAH,6BAAAA,mBAACI,CAAA,CAAW,IAAA,CAAK,KAAA,CAAM,QAAA,CAAA,MAAA,CAAC,CAAA,CAC1B,CAAA,CACF,CAEJ,CAAA,CAEArC,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-KUOOI3LW.cjs","sourcesContent":[null,"'use client';\n\nimport * as React from 'react';\nimport { cn } from '../../helpers/cn';\nimport type { ChangeEvent } from 'react';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport type { CurrencyInputProps } from './CurrencyInput.props';\nimport { DetailText } from '../DetailText/DetailText';\n\nconst COMPONENT_NAME = 'CurrencyInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const CurrencyInput = ({\n className,\n disabled,\n value: controlledValue,\n onChange,\n placeholder = '0.00',\n disableGroupSeparators,\n ref: forwardedRef,\n ...props\n}: CurrencyInputProps) => {\n const maxDecimals = 2;\n const [internalValue, setInternalValue] = React.useState<string>('');\n const localRef = React.useRef<HTMLInputElement>(null);\n const cursorPositionRef = React.useRef<number | null>(null);\n\n // Use forwarded ref if provided, otherwise use internal ref\n const inputRef = forwardedRef || localRef;\n\n const isControlled = controlledValue !== undefined;\n const numericValue = isControlled ? String(controlledValue ?? '') : internalValue;\n\n // Format value for display\n const formatValue = (value: string): string => {\n if (!value) return '';\n\n const parts = value.split('.');\n let integerPart = parts[0] || '';\n\n if (!disableGroupSeparators) {\n integerPart = integerPart.replace(/\\B(?=(\\d{3})+(?!\\d))/g, ',');\n }\n\n const decimalPart = parts[1];\n return decimalPart !== undefined ? integerPart + '.' + decimalPart : integerPart;\n };\n\n const handleChange = (e: ChangeEvent<HTMLInputElement>): void => {\n const input = e.target.value;\n const cursorPosition = e.target.selectionStart || 0;\n const previousDisplayValue = formatValue(numericValue);\n\n // Remove all non-digits except decimal\n const cleaned = input.replace(/[^\\d.]/g, '');\n\n // Ensure only one decimal point\n const parts = cleaned.split('.');\n const sanitized = parts.length > 2 ? parts[0] + '.' + parts.slice(1).join('') : cleaned;\n\n // Limit decimal places\n const finalParts = sanitized.split('.');\n const limitedValue =\n finalParts[1] !== undefined\n ? finalParts[0] + '.' + finalParts[1].substring(0, maxDecimals)\n : sanitized;\n\n // Calculate new cursor position\n if (!disableGroupSeparators) {\n const newDisplayValue = formatValue(limitedValue);\n const oldCommasBeforeCursor = (\n previousDisplayValue\n .slice(0, Math.min(cursorPosition, previousDisplayValue.length))\n .match(/,/g) || []\n ).length;\n const newCommasBeforeCursor = (\n newDisplayValue.slice(0, Math.min(cursorPosition, newDisplayValue.length)).match(/,/g) || []\n ).length;\n const commaDiff = newCommasBeforeCursor - oldCommasBeforeCursor;\n cursorPositionRef.current = cursorPosition + commaDiff;\n } else {\n cursorPositionRef.current = null;\n }\n if (!isControlled) {\n setInternalValue(limitedValue);\n }\n\n // Return numeric value WITHOUT commas\n if (onChange && inputRef && typeof inputRef === 'object' && inputRef.current) {\n const syntheticEvent = {\n ...e,\n target: {\n ...e.target,\n value: limitedValue, // Raw numeric value without commas\n },\n currentTarget: {\n ...e.currentTarget,\n value: limitedValue,\n },\n } as ChangeEvent<HTMLInputElement>;\n\n onChange(syntheticEvent);\n }\n };\n\n // Restore cursor position after render\n React.useEffect(() => {\n if (\n inputRef &&\n typeof inputRef === 'object' &&\n inputRef.current &&\n cursorPositionRef.current !== null\n ) {\n inputRef.current.setSelectionRange(cursorPositionRef.current, cursorPositionRef.current);\n cursorPositionRef.current = null;\n }\n });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"text\"\n inputMode=\"decimal\"\n disabled={disabled}\n value={formatValue(numericValue)} // Display with commas\n onChange={handleChange}\n placeholder={placeholder}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <DetailText size=\"3xl\">£</DetailText>\n </InputSlot>\n </TextInput>\n );\n};\n\nCurrencyInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as I}from"./chunk-52GAUAZQ.js";import{a as T}from"./chunk-FZVOPBRY.js";import{a as c}from"./chunk-W6VYE222.js";import{a as b}from"./chunk-L4OZ3M5X.js";import{a as x}from"./chunk-DVGYWBKQ.js";import{a as f}from"./chunk-TONM4LZL.js";import{a as m}from"./chunk-MSHCGZ4G.js";import{b as u}from"./chunk-TXDSZ3MR.js";import{jsx as h}from"react/jsx-runtime";var v="TextInput",E=u(v),M=y=>{let{className:P,validationStatus:i,validationText:r,label:N,labelVariant:F,helperText:t,children:O,id:g,disabled:e,readOnly:n,hideLabel:B,required:o,placeholder:C,"aria-describedby":D,...V}=f(y,c),{id:l,labelId:s,helperTextId:p,validationTextId:d}=b({providedId:g,prefix:"text-input"}),a=!n&&!e,q={id:l,labelId:s,helperTextId:p,validationTextId:d,label:N,labelVariant:F,helperText:t,validationText:a?r:void 0,validationStatus:a?i:void 0,hideLabel:B,required:o},w=x(D,t?p:void 0,a&&r!==void 0?d:void 0);return h(T,{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as I}from"./chunk-52GAUAZQ.js";import{a as T}from"./chunk-FZVOPBRY.js";import{a as c}from"./chunk-W6VYE222.js";import{a as b}from"./chunk-L4OZ3M5X.js";import{a as x}from"./chunk-DVGYWBKQ.js";import{a as f}from"./chunk-TONM4LZL.js";import{a as m}from"./chunk-MSHCGZ4G.js";import{b as u}from"./chunk-TXDSZ3MR.js";import{jsx as h}from"react/jsx-runtime";var v="TextInput",E=u(v),M=y=>{let{className:P,validationStatus:i,validationText:r,label:N,labelVariant:F,helperText:t,children:O,id:g,disabled:e,readOnly:n,hideLabel:B,required:o,placeholder:C,"aria-describedby":D,...V}=f(y,c),{id:l,labelId:s,helperTextId:p,validationTextId:d}=b({providedId:g,prefix:"text-input"}),a=!n&&!e,q={id:l,labelId:s,helperTextId:p,validationTextId:d,label:N,labelVariant:F,helperText:t,validationText:a?r:void 0,validationStatus:a?i:void 0,hideLabel:B,required:o},w=x(D,t?p:void 0,a&&r!==void 0?d:void 0);return h(T,{"data-disabled":e?"":void 0,...q,children:h(I,{className:m(E,P),spellCheck:"false",id:l,required:o,disabled:e,readOnly:n,placeholder:e?void 0:C,"aria-labelledby":s,"aria-describedby":w,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?d:void 0,...V,children:O})})};M.displayName=v;export{M as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MTZAO3QT.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TextInput/TextInput.tsx"],"sourcesContent":["'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { TextInputProps } from './TextInput.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { cn } from '../../helpers/cn';\nimport { useIds } from '../../hooks/use-ids';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { FormField } from '../FormField/FormField';\n\nconst COMPONENT_NAME = 'TextInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextInput = (props: TextInputProps) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n children,\n id: providedId,\n disabled,\n readOnly,\n hideLabel,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n ...textInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'text-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n hideLabel,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField data-disabled={disabled ? '' : undefined} {...formFieldProps}>\n <InputBase\n className={cn(componentClassName, className)}\n spellCheck=\"false\"\n id={id}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n {...textInputProps}\n >\n {children}\n </InputBase>\n </FormField>\n );\n};\n\nTextInput.displayName = COMPONENT_NAME;\n"],"mappings":"gUA+DM,cAAAA,MAAA,oBAnDN,IAAMC,EAAiB,YACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAaC,GAA0B,CAClD,GAAM,CACJ,UAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,SAAAC,EACA,GAAIC,EACJ,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,YAAAC,EACA,mBAAoBC,EACpB,GAAGC,CACL,EAAIC,EAAahB,EAAOiB,CAAc,EAEhC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAiB,EAAIC,EAAO,CAC7D,WAAAd,EACA,OAAQ,YACV,CAAC,EAEKe,EAAyB,CAACb,GAAY,CAACD,EAEvCe,EAAiB,CACrB,GAAAN,EACA,QAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,MAAAjB,EACA,aAAAC,EACA,WAAAC,EACA,eAAgBiB,EAAiBpB,EAAiB,OAClD,iBAAkBoB,EAAiBrB,EAAmB,OACtD,UAAAS,EACA,SAAAC,CACF,EAEMa,EAAuBC,EAC3BZ,EACER,EAAac,EAAe,OAC9BG,GAAkBpB,IAAmB,OAAYkB,EAAmB,MACtE,EAEA,OACE1B,EAACgC,EAAA,CAAU,gBAAelB,EAAW,GAAK,OAAY,GAAGe,EACvD,SAAA7B,EAACiC,EAAA,CACC,UAAWC,EAAGhC,EAAoBI,CAAS,EAC3C,WAAW,QACX,GAAIiB,EACJ,SAAUN,EACV,SAAUH,EACV,SAAUC,EACV,YAAcD,EAAyB,OAAdI,EACzB,kBAAiBM,EACjB,mBAAkBM,EAClB,eAAcvB,IAAqB,UAAY,GAAO,OACtD,oBAAmBA,IAAqB,UAAYmB,EAAmB,OACtE,GAAGN,EAEH,SAAAR,EACH,EACF,CAEJ,EAEAR,EAAU,YAAcH","names":["jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","TextInput","props","className","validationStatus","validationText","label","labelVariant","helperText","children","providedId","disabled","readOnly","hideLabel","required","placeholder","ariaDescribedby","textInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","InputBase","cn"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as v}from"./chunk-FZVOPBRY.js";import{a as b}from"./chunk-ITEAKOJO.js";import{a as u}from"./chunk-W6VYE222.js";import{a as h}from"./chunk-L4OZ3M5X.js";import{a as T}from"./chunk-DVGYWBKQ.js";import{a as c}from"./chunk-TONM4LZL.js";import{a as f}from"./chunk-MSHCGZ4G.js";import{b as x}from"./chunk-TXDSZ3MR.js";import{jsx as d}from"react/jsx-runtime";var y="TextArea",z=x(y),E=P=>{let{className:g,validationStatus:e,validationText:t,label:A,labelVariant:N,helperText:o,id:I,disabled:a,readOnly:n,required:s,placeholder:F,"aria-describedby":w,resize:H,rows:O=3,minHeight:B,maxHeight:C,...D}=c(P,u),{id:l,labelId:m,helperTextId:p,validationTextId:i}=h({providedId:I,prefix:"textarea"}),r=!n&&!a,V={id:l,labelId:m,helperTextId:p,validationTextId:i,label:A,labelVariant:N,helperText:o,validationText:r?t:void 0,validationStatus:r?e:void 0,required:s},q=T(w,o?p:void 0,r&&t!==void 0?i:void 0);return d(v,{"data-validation-status":e||void 0,"data-disabled":a?"":void 0,...V,children:d(b,{asChild:!0,className:f(z,g),minHeight:B,maxHeight:C,children:d("textarea",{id:l,rows:O,required:s,disabled:a,readOnly:n,placeholder:a?void 0:F,"aria-labelledby":m,"aria-describedby":q,"aria-invalid":e==="invalid"?!0:void 0,"aria-errormessage":e==="invalid"?i:void 0,"data-resize":H,...D})})})};E.displayName=y;export{E as a};
|
|
2
|
+
//# sourceMappingURL=chunk-MUVMQMM4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/components/TextArea/TextArea.tsx"],"sourcesContent":["'use client';\n\nimport { cn } from '../../helpers/cn';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { mergeIds } from '../../helpers/merge-ids';\nimport { useIds } from '../../hooks/use-ids';\nimport type { TextAreaProps } from './TextArea.props';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { FormField } from '../FormField/FormField';\nimport { Box } from '../Box/Box';\n\nconst COMPONENT_NAME = 'TextArea';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const TextArea = (props: TextAreaProps) => {\n const {\n className,\n validationStatus,\n validationText,\n label,\n labelVariant,\n helperText,\n id: providedId,\n disabled,\n readOnly,\n required,\n placeholder,\n 'aria-describedby': ariaDescribedby,\n resize,\n rows = 3,\n minHeight,\n maxHeight,\n ...textAreaProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'textarea',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n return (\n <FormField\n data-validation-status={validationStatus ? validationStatus : undefined}\n data-disabled={disabled ? '' : undefined}\n {...formFieldProps}\n >\n <Box\n asChild\n className={cn(componentClassName, className)}\n minHeight={minHeight}\n maxHeight={maxHeight}\n >\n <textarea\n id={id}\n rows={rows}\n required={required}\n disabled={disabled}\n readOnly={readOnly}\n placeholder={!disabled ? placeholder : undefined}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-resize={resize}\n {...textAreaProps}\n />\n </Box>\n </FormField>\n );\n};\n\nTextArea.displayName = COMPONENT_NAME;\n"],"mappings":"gUA0EQ,cAAAA,MAAA,oBA9DR,IAAMC,EAAiB,WACjBC,EAAqBC,EAAiBF,CAAc,EAE7CG,EAAYC,GAAyB,CAChD,GAAM,CACJ,UAAAC,EACA,iBAAAC,EACA,eAAAC,EACA,MAAAC,EACA,aAAAC,EACA,WAAAC,EACA,GAAIC,EACJ,SAAAC,EACA,SAAAC,EACA,SAAAC,EACA,YAAAC,EACA,mBAAoBC,EACpB,OAAAC,EACA,KAAAC,EAAO,EACP,UAAAC,EACA,UAAAC,EACA,GAAGC,CACL,EAAIC,EAAalB,EAAOmB,CAAc,EAEhC,CAAE,GAAAC,EAAI,QAAAC,EAAS,aAAAC,EAAc,iBAAAC,CAAiB,EAAIC,EAAO,CAC7D,WAAAjB,EACA,OAAQ,UACV,CAAC,EAEKkB,EAAyB,CAAChB,GAAY,CAACD,EAEvCkB,EAAiB,CACrB,GAAAN,EACA,QAAAC,EACA,aAAAC,EACA,iBAAAC,EACA,MAAAnB,EACA,aAAAC,EACA,WAAAC,EACA,eAAgBmB,EAAiBtB,EAAiB,OAClD,iBAAkBsB,EAAiBvB,EAAmB,OACtD,SAAAQ,CACF,EAEMiB,EAAuBC,EAC3BhB,EACEN,EAAagB,EAAe,OAC9BG,GAAkBtB,IAAmB,OAAYoB,EAAmB,MACtE,EAEA,OACE5B,EAACkC,EAAA,CACC,yBAAwB3B,GAAsC,OAC9D,gBAAeM,EAAW,GAAK,OAC9B,GAAGkB,EAEJ,SAAA/B,EAACmC,EAAA,CACC,QAAO,GACP,UAAWC,EAAGlC,EAAoBI,CAAS,EAC3C,UAAWc,EACX,UAAWC,EAEX,SAAArB,EAAC,YACC,GAAIyB,EACJ,KAAMN,EACN,SAAUJ,EACV,SAAUF,EACV,SAAUC,EACV,YAAcD,EAAyB,OAAdG,EACzB,kBAAiBU,EACjB,mBAAkBM,EAClB,eAAczB,IAAqB,UAAY,GAAO,OACtD,oBAAmBA,IAAqB,UAAYqB,EAAmB,OACvE,cAAaV,EACZ,GAAGI,EACN,EACF,EACF,CAEJ,EAEAlB,EAAS,YAAcH","names":["jsx","COMPONENT_NAME","componentClassName","withGlobalPrefix","TextArea","props","className","validationStatus","validationText","label","labelVariant","helperText","providedId","disabled","readOnly","required","placeholder","ariaDescribedby","resize","rows","minHeight","maxHeight","textAreaProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","FormField","Box","cn"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkGJKKZENWcjs = require('./chunk-GJKKZENW.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkNRC6OE6Bcjs = require('./chunk-NRC6OE6B.cjs');var _chunkC7P2OYHRcjs = require('./chunk-C7P2OYHR.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _react = require('react'); var o = _interopRequireWildcard(_react);var _jsxruntime = require('react/jsx-runtime');var f="SearchInput",P=_chunk7LZI6HLWcjs.b.call(void 0, f),B= exports.a =({className:I,disabled:c,value:r,onClear:p,loading:d,hideLabel:h=!0,helperText:S,id:y,ref:x,...b})=>{let R=o.useRef(null),e=x||R,M=o.useCallback(T=>{typeof p!="function"||T.button!==0||(p(),e&&typeof e=="object"&&e.current&&e.current.focus())},[e,p]),{id:N}=_chunkITZEACMWcjs.a.call(void 0, {providedId:y,prefix:"search-input"});return _jsxruntime.jsxs.call(void 0, _chunkGJKKZENWcjs.a,{ref:e,className:_chunkGVVJQBRKcjs.a.call(void 0, P,I),type:"search",enterKeyHint:"search",disabled:c,hideLabel:h,helperText:S,value:r,id:N,...b,children:[_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"prefix",children:_jsxruntime.jsx.call(void 0, _hearthreacticons.SearchMediumIcon,{})}),d?_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkC7P2OYHRcjs.a,{size:"xs",color:"primary"})}):null,r!==void 0&&String(r).length>0?_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkNRC6OE6Bcjs.a,{type:"button",label:"clear search",onClick:M,disabled:c,children:_jsxruntime.jsx.call(void 0, _hearthreacticons.CloseSmallIcon,{})})}):null]})};B.displayName=f;exports.a = B;
|
|
2
|
+
//# sourceMappingURL=chunk-NIXPLCMH.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-NIXPLCMH.cjs","../src/components/SearchInput/SearchInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","SearchInput","className","disabled","value","onClear","loading","hideLabel","helperText","providedId","forwardedRef","props","defaultRef","inputRef","handleClear","event","id","useIds","jsxs","TextInput","cn","jsx","InputSlot","SearchMediumIcon","Spinner","UnstyledIconButton","CloseSmallIcon"],"mappings":"AAAA,mZAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAoC,wDAAyC,wDAAyC,wECSxO,uEAE1B,+CAqCnB,IAnCEA,CAAAA,CAAiB,aAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAc,CAAC,CAC1B,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,KAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CAAY,CAAA,CAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAGC,CACL,CAAA,CAAA,EAAwB,CACtB,IAAMC,CAAAA,CAAmB,CAAA,CAAA,MAAA,CAAgC,IAAI,CAAA,CACvDC,CAAAA,CAAWH,CAAAA,EAAgBE,CAAAA,CAE3B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U,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAD,6BAAAA,mBAACI,CAAA,CACC,IAAA,CAAK,QAAA,CACL,KAAA,CAAM,cAAA,CACN,OAAA,CAASX,CAAAA,CACT,QAAA,CAAUX,CAAAA,CAEV,QAAA,CAAAkB,6BAAAA,gCAACK,CAAA,CAAA,CAAe,CAAA,CAClB,CAAA,CACF,CAAA,CACE,IAAA,CAAA,CACN,CAEJ,CAAA,CAEAzB,CAAAA,CAAY,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-NIXPLCMH.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport type { SearchInputProps } from './SearchInput.props';\nimport { Spinner } from '../Spinner/Spinner';\nimport { CloseSmallIcon, SearchMediumIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\nimport * as React from 'react';\n\nconst COMPONENT_NAME = 'SearchInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const SearchInput = ({\n className,\n disabled,\n value,\n onClear,\n loading,\n hideLabel = true,\n helperText,\n id: providedId,\n ref: forwardedRef,\n ...props\n}: SearchInputProps) => {\n const defaultRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = forwardedRef || defaultRef;\n\n const handleClear = React.useCallback(\n (event: React.MouseEvent<HTMLButtonElement>) => {\n if (typeof onClear !== 'function' || event.button !== 0) {\n return;\n }\n onClear();\n\n if (inputRef && typeof inputRef === 'object' && inputRef.current) {\n inputRef.current.focus();\n }\n },\n [inputRef, onClear]\n );\n\n const { id } = useIds({ providedId, prefix: 'search-input' });\n\n return (\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type=\"search\"\n enterKeyHint=\"search\"\n disabled={disabled}\n hideLabel={hideLabel}\n helperText={helperText}\n value={value}\n id={id}\n {...props}\n >\n <InputSlot placement=\"prefix\">\n <SearchMediumIcon />\n </InputSlot>\n {loading ? (\n <InputSlot placement=\"suffix\">\n <Spinner size=\"xs\" color=\"primary\" />\n </InputSlot>\n ) : null}\n {value !== undefined && String(value).length > 0 ? (\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"clear search\"\n onClick={handleClear}\n disabled={disabled}\n >\n <CloseSmallIcon />\n </UnstyledIconButton>\n </InputSlot>\n ) : null}\n </TextInput>\n );\n};\n\nSearchInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkKWHBTF5Fcjs = require('./chunk-KWHBTF5F.cjs');var _chunkWY3I6O7Dcjs = require('./chunk-WY3I6O7D.cjs');var _chunkRDNRX35Pcjs = require('./chunk-RDNRX35P.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkDSW76HKTcjs = require('./chunk-DSW76HKT.cjs');var _chunkCMZ47UG6cjs = require('./chunk-CMZ47UG6.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _radixui = require('radix-ui');var _jsxruntime = require('react/jsx-runtime');var T="VerificationInput",E=_chunk7LZI6HLWcjs.b.call(void 0, T),R= exports.a =y=>{let{className:O,disabled:r,readOnly:n,label:F,labelVariant:N,helperText:o,validationText:s,validationStatus:i,required:x,id:V,"aria-describedby":h,ref:w,...S}=_chunkCMZ47UG6cjs.a.call(void 0, y,_chunkRDNRX35Pcjs.a),{id:D,labelId:l,helperTextId:m,validationTextId:t}=_chunkITZEACMWcjs.a.call(void 0, {providedId:V,prefix:"verification-input"}),e=!n&&!r,_={id:D,labelId:l,helperTextId:m,validationTextId:t,label:F,labelVariant:N,helperText:o,validationText:e?s:void 0,validationStatus:e?i:void 0,required:x},g=_chunkDSW76HKTcjs.a.call(void 0, h,o?m:void 0,e&&s!==void 0?t:void 0);return _jsxruntime.jsx.call(void 0, _chunkWY3I6O7Dcjs.a,{"data-disabled":r?"":void 0,..._,children:_jsxruntime.jsxs.call(void 0, _radixui.unstable_OneTimePasswordField.Root,{className:_chunkGVVJQBRKcjs.a.call(void 0, E,O),disabled:r,readOnly:n,"aria-labelledby":l,"aria-describedby":g,"aria-invalid":i==="invalid"?!0:void 0,"aria-errormessage":i==="invalid"?t:void 0,"data-validation-status":e?i:void 0,...S,children:[Array.from({length:6}).map((H,A)=>_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.Input,{asChild:!0,children:_jsxruntime.jsx.call(void 0, _chunkKWHBTF5Fcjs.a,{})},A)),_jsxruntime.jsx.call(void 0, _radixui.unstable_OneTimePasswordField.HiddenInput,{ref:w})]})})};R.displayName=T;exports.a = R;
|
|
2
|
+
//# sourceMappingURL=chunk-NUGQLWLQ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-NUGQLWLQ.cjs","../src/components/VerificationInput/VerificationInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","VerificationInput","props","className","disabled","readOnly","label","labelVariant","helperText","validationText","validationStatus","required","providedId","ariaDescribedby","ref","verificationInputProps","extractProps","marginPropDefs","id","labelId","helperTextId","validationTextId","useIds","showValidation","formFieldProps","ariaDescribedbyValue","mergeIds","jsx","FormField","jsxs","OneTimePasswordFieldPrimitive","cn","_","i","InputBase"],"mappings":"AAAA,iIAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,mCCExP,+CA6DzE,IAlDAA,CAAAA,CAAiB,mBAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA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A,CAAU,eAAA,CAAexB,CAAAA,CAAW,EAAA,CAAK,KAAA,CAAA,CAAY,GAAGoB,CAAAA,CACvD,QAAA,CAAAK,8BAAAA,sCAACC,CAA8B,IAAA,CAA9B,CACC,SAAA,CAAWC,iCAAAA,CAAGhC,CAAoBI,CAAS,CAAA,CAC3C,QAAA,CAAUC,CAAAA,CACV,QAAA,CAAUC,CAAAA,CACV,iBAAA,CAAiBc,CAAAA,CACjB,kBAAA,CAAkBM,CAAAA,CAClB,cAAA,CAAcf,CAAAA,GAAqB,SAAA,CAAY,CAAA,CAAA,CAAO,KAAA,CAAA,CACtD,mBAAA,CAAmBA,CAAAA,GAAqB,SAAA,CAAYW,CAAAA,CAAmB,KAAA,CAAA,CACvE,wBAAA,CAAwBE,CAAAA,CAAiBb,CAAAA,CAAmB,KAAA,CAAA,CAC3D,GAAGK,CAAAA,CAEH,QAAA,CAAA,CAAA,KAAA,CAAM,IAAA,CAAK,CAAE,MAAA,CAfI,CAeoB,CAAC,CAAA,CAAE,GAAA,CAAI,CAACiB,CAAAA,CAAGC,CAAAA,CAAAA,EAC/CN,6BAAAA,sCAACG,CAA8B,KAAA,CAA9B,CAA4C,OAAA,CAAO,CAAA,CAAA,CAClD,QAAA,CAAAH,6BAAAA,mBAACO,CAAA,CAAA,CAAU,CAAA,CAAA,CAD6BD,CAE1C,CACD,CAAA,CAEDN,6BAAAA,sCAACG,CAA8B,WAAA,CAA9B,CAA0C,GAAA,CAAKhB,CAAAA,CAAK,CAAA,CAAA,CACvD,CAAA,CACF,CAEJ,CAAA,CAEAb,CAAAA,CAAkB,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-NUGQLWLQ.cjs","sourcesContent":[null,"'use client';\n\nimport { unstable_OneTimePasswordField as OneTimePasswordFieldPrimitive } from 'radix-ui';\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport type { VerificationInputProps } from './VerificationInput.props';\nimport { FormField } from '../FormField/FormField';\nimport { useIds } from '../../hooks/use-ids';\nimport { extractProps } from '../../helpers/extract-props';\nimport { marginPropDefs } from '../../props/margin.props';\nimport { InputBase } from '../InputBase/InputBase';\nimport { cn } from '../../helpers/cn';\nimport { mergeIds } from '../../helpers/merge-ids';\n\nconst COMPONENT_NAME = 'VerificationInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const VerificationInput = (props: VerificationInputProps) => {\n const {\n className,\n disabled,\n readOnly,\n label,\n labelVariant,\n helperText,\n validationText,\n validationStatus,\n required,\n id: providedId,\n 'aria-describedby': ariaDescribedby,\n ref,\n ...verificationInputProps\n } = extractProps(props, marginPropDefs);\n\n const { id, labelId, helperTextId, validationTextId } = useIds({\n providedId,\n prefix: 'verification-input',\n });\n\n const showValidation = Boolean(!readOnly && !disabled);\n\n const formFieldProps = {\n id,\n labelId,\n helperTextId,\n validationTextId,\n label,\n labelVariant,\n helperText,\n validationText: showValidation ? validationText : undefined,\n validationStatus: showValidation ? validationStatus : undefined,\n required,\n };\n\n const ariaDescribedbyValue = mergeIds(\n ariaDescribedby,\n !!helperText ? helperTextId : undefined,\n showValidation && validationText !== undefined ? validationTextId : undefined\n );\n\n const PASSWORD_LENGTH = 6;\n\n return (\n <FormField data-disabled={disabled ? '' : undefined} {...formFieldProps}>\n <OneTimePasswordFieldPrimitive.Root\n className={cn(componentClassName, className)}\n disabled={disabled}\n readOnly={readOnly}\n aria-labelledby={labelId}\n aria-describedby={ariaDescribedbyValue}\n aria-invalid={validationStatus === 'invalid' ? true : undefined}\n aria-errormessage={validationStatus === 'invalid' ? validationTextId : undefined}\n data-validation-status={showValidation ? validationStatus : undefined}\n {...verificationInputProps}\n >\n {Array.from({ length: PASSWORD_LENGTH }).map((_, i) => (\n <OneTimePasswordFieldPrimitive.Input key={i} asChild>\n <InputBase />\n </OneTimePasswordFieldPrimitive.Input>\n ))}\n\n <OneTimePasswordFieldPrimitive.HiddenInput ref={ref} />\n </OneTimePasswordFieldPrimitive.Root>\n </FormField>\n );\n};\n\nVerificationInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkGJKKZENWcjs = require('./chunk-GJKKZENW.cjs');var _chunkRH3MHHIScjs = require('./chunk-RH3MHHIS.cjs');var _chunkNRC6OE6Bcjs = require('./chunk-NRC6OE6B.cjs');var _chunkITZEACMWcjs = require('./chunk-ITZEACMW.cjs');var _chunkGVVJQBRKcjs = require('./chunk-GVVJQBRK.cjs');var _chunk7LZI6HLWcjs = require('./chunk-7LZI6HLW.cjs');var _react = require('react'); var _react2 = _interopRequireDefault(_react);var _hearthreacticons = require('@utilitywarehouse/hearth-react-icons');var _jsxruntime = require('react/jsx-runtime');var b="PasswordInput",x=_chunk7LZI6HLWcjs.b.call(void 0, b),N= exports.a =({className:y,disabled:l,id:I,ref:w,...E})=>{let v=_react2.default.useRef(null),e=w||v,[s,S]=_react2.default.useState(!1),[n,a]=_react2.default.useState(!1),M=_react2.default.useCallback(()=>{let t=!s,r=!n;S(t),a(r)},[s,n]);_react2.default.useEffect(()=>{let t=null;e&&typeof e=="object"&&e.current&&(t=e.current);let r=()=>{_optionalChain([t, 'optionalAccess', _ => _.type])&&(t.type="password")};return t&&t.form!==null&&t.form.addEventListener("submit",r),()=>{_optionalChain([t, 'optionalAccess', _2 => _2.form])&&t.form.removeEventListener("submit",r)}},[e]);let P=`Your password is ${s?"shown":"hidden"}!`;_react2.default.useEffect(()=>{setTimeout(()=>{a(!1)},1500)},[n]);let{id:h}=_chunkITZEACMWcjs.a.call(void 0, {providedId:I,prefix:"password-input"});return _jsxruntime.jsxs.call(void 0, _jsxruntime.Fragment,{children:[_jsxruntime.jsx.call(void 0, _chunkGJKKZENWcjs.a,{ref:e,className:_chunkGVVJQBRKcjs.a.call(void 0, x,y),type:s?"text":"password",disabled:l,id:h,...E,children:_jsxruntime.jsx.call(void 0, _chunkRH3MHHIScjs.a,{placement:"suffix",children:_jsxruntime.jsx.call(void 0, _chunkNRC6OE6Bcjs.a,{type:"button",label:"toggle password visibility",onClick:M,disabled:l,"aria-pressed":s,children:s?_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeSmallIcon,{}):_jsxruntime.jsx.call(void 0, _hearthreacticons.EyeOffSmallIcon,{})})})}),_jsxruntime.jsx.call(void 0, "div",{"data-visually-hidden":!0,"aria-live":"assertive",role:"status",children:n?P:""})]})};N.displayName=b;exports.a = N;
|
|
2
|
+
//# sourceMappingURL=chunk-XPSM6UZT.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/chunk-XPSM6UZT.cjs","../src/components/PasswordInput/PasswordInput.tsx"],"names":["COMPONENT_NAME","componentClassName","withGlobalPrefix","PasswordInput","className","disabled","providedId","forwardedRef","props","defaultRef","React","inputRef","visible","setVisible","showVisibilityMessage","setShowVisibilityMessage","handleVisibility","newVisibilityState","newVisibilityMessageState","currentElement","handleSubmit","visibilityMessage","id","useIds","jsxs","Fragment","jsx","TextInput","cn","InputSlot","UnstyledIconButton","EyeSmallIcon","EyeOffSmallIcon"],"mappings":"AAAA,quBAAwC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,wDAAyC,4ECInO,wEAK4B,+CA+D1C,IA5DEA,CAAAA,CAAiB,eAAA,CACjBC,CAAAA,CAAqBC,iCAAAA,CAA+B,CAAA,CAE7CC,CAAAA,aAAgB,CAAC,CAC5B,SAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,EAAA,CAAIC,CAAAA,CACJ,GAAA,CAAKC,CAAAA,CACL,GAAGC,CACL,CAAA,CAAA,EAA0B,CACxB,IAAMC,CAAAA,CAAaC,eAAAA,CAAM,MAAA,CAAgC,IAAI,CAAA,CACvDC,CAAAA,CAAWJ,CAAAA,EAAgBE,CAAAA,CAC3B,CAACG,CAAAA,CAASC,CAAU,CAAA,CAAIH,eAAAA,CAAM,QAAA,CAAS,CAAA,CAAK,CAAA,CAC5C,CAACI,CAAAA,CAAuBC,CAAwB,CAAA,CAAIL,eAAAA,CAAM,QAAA,CAAS,CAAA,CAAK,CAAA,CAExEM,CAAAA,CAAmBN,eAAAA,CAAM,WAAA,CAAY,CAAA,CAAA,EAAM,CAC/C,IAAMO,CAAAA,CAAqB,CAACL,CAAAA,CACtBM,CAAAA,CAA4B,CAACJ,CAAAA,CACnCD,CAAAA,CAAWI,CAAkB,CAAA,CAC7BF,CAAAA,CAAyBG,CAAyB,CACpD,CAAA,CAAG,CAACN,CAAAA,CAASE,CAAqB,CAAC,CAAA,CAInCJ,eAAAA,CAAM,SAAA,CAAU,CAAA,CAAA,EAAM,CAEpB,I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AAA,CAAUP,CAAAA,CACV,EAAA,CAAIiB,CAAAA,CACH,GAAGd,CAAAA,CAEJ,QAAA,CAAAkB,6BAAAA,mBAACG,CAAA,CAAU,SAAA,CAAU,QAAA,CACnB,QAAA,CAAAH,6BAAAA,mBAACI,CAAA,CACC,IAAA,CAAK,QAAA,CACL,KAAA,CAAM,4BAAA,CACN,OAAA,CAASd,CAAAA,CACT,QAAA,CAAUX,CAAAA,CACV,cAAA,CAAcO,CAAAA,CAEb,QAAA,CAAAA,CAAAA,CAAUc,6BAAAA,8BAACK,CAAA,CAAA,CAAa,CAAA,CAAKL,6BAAAA,iCAACM,CAAA,CAAA,CAAgB,CAAA,CACjD,CAAA,CACF,CAAA,CACF,CAAA,CACAN,6BAAAA,KAAC,CAAA,CAAI,sBAAA,CAAoB,CAAA,CAAA,CAAC,WAAA,CAAU,WAAA,CAAY,IAAA,CAAK,QAAA,CAClD,QAAA,CAAAZ,CAAAA,CAAwBO,CAAAA,CAAoB,EAAA,CAC/C,CAAA,CAAA,CACF,CAEJ,CAAA,CAEAlB,CAAAA,CAAc,WAAA,CAAcH,CAAAA,CAAAA,cAAAA","file":"/home/runner/work/hearth/hearth/packages/react/dist/chunk-XPSM6UZT.cjs","sourcesContent":[null,"'use client';\n\nimport { withGlobalPrefix } from '../../helpers/with-global-prefix';\nimport { cn } from '../../helpers/cn';\nimport React from 'react';\nimport type { PasswordInputProps } from './PasswordInput.props';\nimport { TextInput } from '../TextInput/TextInput';\nimport { InputSlot } from '../InputSlot/InputSlot';\nimport { UnstyledIconButton } from '../UnstyledIconButton/UnstyledIconButton';\nimport { EyeOffSmallIcon, EyeSmallIcon } from '@utilitywarehouse/hearth-react-icons';\nimport { useIds } from '../../hooks/use-ids';\n\nconst COMPONENT_NAME = 'PasswordInput';\nconst componentClassName = withGlobalPrefix(COMPONENT_NAME);\n\nexport const PasswordInput = ({\n className,\n disabled,\n id: providedId,\n ref: forwardedRef,\n ...props\n}: PasswordInputProps) => {\n const defaultRef = React.useRef<HTMLInputElement | null>(null);\n const inputRef = forwardedRef || defaultRef;\n const [visible, setVisible] = React.useState(false);\n const [showVisibilityMessage, setShowVisibilityMessage] = React.useState(false);\n\n const handleVisibility = React.useCallback(() => {\n const newVisibilityState = !visible;\n const newVisibilityMessageState = !showVisibilityMessage;\n setVisible(newVisibilityState);\n setShowVisibilityMessage(newVisibilityMessageState);\n }, [visible, showVisibilityMessage]);\n\n // If the PasswordInput is inside a form we should switch the input type\n // back to password when its parent form is submitted\n React.useEffect(() => {\n // Get the ref value and ensure proper typing\n let currentElement: HTMLInputElement | null = null;\n if (inputRef && typeof inputRef === 'object' && inputRef.current) {\n // Type assertion to ensure TypeScript understands this is a valid ref object\n const refObject = inputRef as React.RefObject<HTMLInputElement>;\n currentElement = refObject.current;\n }\n\n const handleSubmit = () => {\n if (currentElement?.type) {\n currentElement.type = 'password';\n }\n };\n\n if (currentElement && currentElement.form !== null) {\n currentElement.form.addEventListener('submit', handleSubmit);\n }\n return () => {\n if (currentElement?.form) {\n currentElement.form.removeEventListener('submit', handleSubmit);\n }\n };\n }, [inputRef]);\n\n const visibilityMessage = `Your password is ${visible ? 'shown' : 'hidden'}!`;\n\n React.useEffect(() => {\n setTimeout(() => {\n setShowVisibilityMessage(false);\n }, 1500);\n }, [showVisibilityMessage]);\n\n const { id } = useIds({ providedId, prefix: 'password-input' });\n\n return (\n <>\n <TextInput\n ref={inputRef}\n className={cn(componentClassName, className)}\n type={visible ? 'text' : 'password'}\n disabled={disabled}\n id={id}\n {...props}\n >\n <InputSlot placement=\"suffix\">\n <UnstyledIconButton\n type=\"button\"\n label=\"toggle password visibility\"\n onClick={handleVisibility}\n disabled={disabled}\n aria-pressed={visible}\n >\n {visible ? <EyeSmallIcon /> : <EyeOffSmallIcon />}\n </UnstyledIconButton>\n </InputSlot>\n </TextInput>\n <div data-visually-hidden aria-live=\"assertive\" role=\"status\">\n {showVisibilityMessage ? visibilityMessage : ''}\n </div>\n </>\n );\n};\n\nPasswordInput.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkKUOOI3LWcjs = require('../../chunk-KUOOI3LW.cjs');require('../../chunk-GJKKZENW.cjs');require('../../chunk-R2ERPRDB.cjs');require('../../chunk-3IB7IIPB.cjs');require('../../chunk-RH3MHHIS.cjs');require('../../chunk-KWHBTF5F.cjs');require('../../chunk-WY3I6O7D.cjs');require('../../chunk-I5S2R6VG.cjs');require('../../chunk-UDOZB5CW.cjs');require('../../chunk-Y47Y2LSY.cjs');require('../../chunk-OZTS5DZS.cjs');require('../../chunk-XAXJGYIO.cjs');require('../../chunk-LHWTDM44.cjs');require('../../chunk-OFJZI7N7.cjs');require('../../chunk-R7DFRCL2.cjs');require('../../chunk-Q2IHR4F5.cjs');require('../../chunk-RDNRX35P.cjs');require('../../chunk-SYIQVRDT.cjs');require('../../chunk-YJZUEXUT.cjs');require('../../chunk-76HQAMKU.cjs');require('../../chunk-ITZEACMW.cjs');require('../../chunk-DSW76HKT.cjs');require('../../chunk-AUHGQDOL.cjs');require('../../chunk-CMZ47UG6.cjs');require('../../chunk-JHPCQWHT.cjs');require('../../chunk-GVVJQBRK.cjs');require('../../chunk-TRLAHLGN.cjs');require('../../chunk-7LZI6HLW.cjs');require('../../chunk-A4KDLDVY.cjs');require('../../chunk-6MWZLLVG.cjs');require('../../chunk-AURLQ3VG.cjs');exports.CurrencyInput = _chunkKUOOI3LWcjs.a;
|
|
2
2
|
//# sourceMappingURL=CurrencyInput.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-6PP5XB56.js";import"../../chunk-MTZAO3QT.js";import"../../chunk-A32FGQD6.js";import"../../chunk-VJY43XLT.js";import"../../chunk-BCK2XQ4L.js";import"../../chunk-52GAUAZQ.js";import"../../chunk-FZVOPBRY.js";import"../../chunk-GPJMFFSG.js";import"../../chunk-TDN7ZB6V.js";import"../../chunk-PMBMCMN7.js";import"../../chunk-RFIEFQGZ.js";import"../../chunk-BJXCXST6.js";import"../../chunk-RU2TPAS3.js";import"../../chunk-RLSKQUZD.js";import"../../chunk-WP323DDO.js";import"../../chunk-WRZZBLWS.js";import"../../chunk-W6VYE222.js";import"../../chunk-VG3SD2O6.js";import"../../chunk-J7BEXO6J.js";import"../../chunk-NMHPABLW.js";import"../../chunk-L4OZ3M5X.js";import"../../chunk-DVGYWBKQ.js";import"../../chunk-WGHIES7I.js";import"../../chunk-TONM4LZL.js";import"../../chunk-4IJEOHER.js";import"../../chunk-MSHCGZ4G.js";import"../../chunk-FM66BWLB.js";import"../../chunk-TXDSZ3MR.js";import"../../chunk-TLHGRJDQ.js";import"../../chunk-JKIDUQDG.js";import"../../chunk-AJUKXCDS.js";export{a as CurrencyInput};
|
|
2
2
|
//# sourceMappingURL=CurrencyInput.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkXPSM6UZTcjs = require('../../chunk-XPSM6UZT.cjs');require('../../chunk-GJKKZENW.cjs');require('../../chunk-RH3MHHIS.cjs');require('../../chunk-KWHBTF5F.cjs');require('../../chunk-WY3I6O7D.cjs');require('../../chunk-I5S2R6VG.cjs');require('../../chunk-NRC6OE6B.cjs');require('../../chunk-RDAZT6SJ.cjs');require('../../chunk-C7P2OYHR.cjs');require('../../chunk-TY2GG3T2.cjs');require('../../chunk-UDOZB5CW.cjs');require('../../chunk-Y47Y2LSY.cjs');require('../../chunk-OZTS5DZS.cjs');require('../../chunk-XAXJGYIO.cjs');require('../../chunk-LHWTDM44.cjs');require('../../chunk-OFJZI7N7.cjs');require('../../chunk-R7DFRCL2.cjs');require('../../chunk-Q2IHR4F5.cjs');require('../../chunk-RDNRX35P.cjs');require('../../chunk-SYIQVRDT.cjs');require('../../chunk-YJZUEXUT.cjs');require('../../chunk-76HQAMKU.cjs');require('../../chunk-ITZEACMW.cjs');require('../../chunk-DSW76HKT.cjs');require('../../chunk-AUHGQDOL.cjs');require('../../chunk-CMZ47UG6.cjs');require('../../chunk-JHPCQWHT.cjs');require('../../chunk-GVVJQBRK.cjs');require('../../chunk-TRLAHLGN.cjs');require('../../chunk-7LZI6HLW.cjs');require('../../chunk-A4KDLDVY.cjs');require('../../chunk-TZUHNZFD.cjs');require('../../chunk-6MWZLLVG.cjs');require('../../chunk-AURLQ3VG.cjs');require('../../chunk-MBS63LK7.cjs');exports.PasswordInput = _chunkXPSM6UZTcjs.a;
|
|
2
2
|
//# sourceMappingURL=PasswordInput.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-7HUJMNQ7.js";import"../../chunk-MTZAO3QT.js";import"../../chunk-BCK2XQ4L.js";import"../../chunk-52GAUAZQ.js";import"../../chunk-FZVOPBRY.js";import"../../chunk-GPJMFFSG.js";import"../../chunk-X3VYVZNB.js";import"../../chunk-WJIOGQY3.js";import"../../chunk-PGLECFTA.js";import"../../chunk-ISB6MPIQ.js";import"../../chunk-TDN7ZB6V.js";import"../../chunk-PMBMCMN7.js";import"../../chunk-RFIEFQGZ.js";import"../../chunk-BJXCXST6.js";import"../../chunk-RU2TPAS3.js";import"../../chunk-RLSKQUZD.js";import"../../chunk-WP323DDO.js";import"../../chunk-WRZZBLWS.js";import"../../chunk-W6VYE222.js";import"../../chunk-VG3SD2O6.js";import"../../chunk-J7BEXO6J.js";import"../../chunk-NMHPABLW.js";import"../../chunk-L4OZ3M5X.js";import"../../chunk-DVGYWBKQ.js";import"../../chunk-WGHIES7I.js";import"../../chunk-TONM4LZL.js";import"../../chunk-4IJEOHER.js";import"../../chunk-MSHCGZ4G.js";import"../../chunk-FM66BWLB.js";import"../../chunk-TXDSZ3MR.js";import"../../chunk-TLHGRJDQ.js";import"../../chunk-JBNKX7O7.js";import"../../chunk-JKIDUQDG.js";import"../../chunk-AJUKXCDS.js";import"../../chunk-AHTIZRCQ.js";export{a as PasswordInput};
|
|
2
2
|
//# sourceMappingURL=PasswordInput.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkNIXPLCMHcjs = require('../../chunk-NIXPLCMH.cjs');require('../../chunk-GJKKZENW.cjs');require('../../chunk-RH3MHHIS.cjs');require('../../chunk-KWHBTF5F.cjs');require('../../chunk-WY3I6O7D.cjs');require('../../chunk-I5S2R6VG.cjs');require('../../chunk-NRC6OE6B.cjs');require('../../chunk-RDAZT6SJ.cjs');require('../../chunk-C7P2OYHR.cjs');require('../../chunk-TY2GG3T2.cjs');require('../../chunk-UDOZB5CW.cjs');require('../../chunk-Y47Y2LSY.cjs');require('../../chunk-OZTS5DZS.cjs');require('../../chunk-XAXJGYIO.cjs');require('../../chunk-LHWTDM44.cjs');require('../../chunk-OFJZI7N7.cjs');require('../../chunk-R7DFRCL2.cjs');require('../../chunk-Q2IHR4F5.cjs');require('../../chunk-RDNRX35P.cjs');require('../../chunk-SYIQVRDT.cjs');require('../../chunk-YJZUEXUT.cjs');require('../../chunk-76HQAMKU.cjs');require('../../chunk-ITZEACMW.cjs');require('../../chunk-DSW76HKT.cjs');require('../../chunk-AUHGQDOL.cjs');require('../../chunk-CMZ47UG6.cjs');require('../../chunk-JHPCQWHT.cjs');require('../../chunk-GVVJQBRK.cjs');require('../../chunk-TRLAHLGN.cjs');require('../../chunk-7LZI6HLW.cjs');require('../../chunk-A4KDLDVY.cjs');require('../../chunk-TZUHNZFD.cjs');require('../../chunk-6MWZLLVG.cjs');require('../../chunk-AURLQ3VG.cjs');require('../../chunk-MBS63LK7.cjs');exports.SearchInput = _chunkNIXPLCMHcjs.a;
|
|
2
2
|
//# sourceMappingURL=SearchInput.cjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-I4U2WQWM.js";import"../../chunk-MTZAO3QT.js";import"../../chunk-BCK2XQ4L.js";import"../../chunk-52GAUAZQ.js";import"../../chunk-FZVOPBRY.js";import"../../chunk-GPJMFFSG.js";import"../../chunk-X3VYVZNB.js";import"../../chunk-WJIOGQY3.js";import"../../chunk-PGLECFTA.js";import"../../chunk-ISB6MPIQ.js";import"../../chunk-TDN7ZB6V.js";import"../../chunk-PMBMCMN7.js";import"../../chunk-RFIEFQGZ.js";import"../../chunk-BJXCXST6.js";import"../../chunk-RU2TPAS3.js";import"../../chunk-RLSKQUZD.js";import"../../chunk-WP323DDO.js";import"../../chunk-WRZZBLWS.js";import"../../chunk-W6VYE222.js";import"../../chunk-VG3SD2O6.js";import"../../chunk-J7BEXO6J.js";import"../../chunk-NMHPABLW.js";import"../../chunk-L4OZ3M5X.js";import"../../chunk-DVGYWBKQ.js";import"../../chunk-WGHIES7I.js";import"../../chunk-TONM4LZL.js";import"../../chunk-4IJEOHER.js";import"../../chunk-MSHCGZ4G.js";import"../../chunk-FM66BWLB.js";import"../../chunk-TXDSZ3MR.js";import"../../chunk-TLHGRJDQ.js";import"../../chunk-JBNKX7O7.js";import"../../chunk-JKIDUQDG.js";import"../../chunk-AJUKXCDS.js";import"../../chunk-AHTIZRCQ.js";export{a as SearchInput};
|
|
2
2
|
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});"use client";var _chunkGNS34UOBcjs = require('../../chunk-GNS34UOB.cjs');require('../../chunk-WY3I6O7D.cjs');require('../../chunk-I5S2R6VG.cjs');require('../../chunk-473MYGXA.cjs');require('../../chunk-6VQPQBVQ.cjs');require('../../chunk-UDOZB5CW.cjs');require('../../chunk-Y47Y2LSY.cjs');require('../../chunk-OZTS5DZS.cjs');require('../../chunk-XAXJGYIO.cjs');require('../../chunk-LHWTDM44.cjs');require('../../chunk-OFJZI7N7.cjs');require('../../chunk-R7DFRCL2.cjs');require('../../chunk-Q2IHR4F5.cjs');require('../../chunk-KRKVIREP.cjs');require('../../chunk-RDNRX35P.cjs');require('../../chunk-CBLJ7ID7.cjs');require('../../chunk-P6YDEBTE.cjs');require('../../chunk-FGO7V5QU.cjs');require('../../chunk-FHPC6D24.cjs');require('../../chunk-SYIQVRDT.cjs');require('../../chunk-7FRNNBW5.cjs');require('../../chunk-U4EC7LSA.cjs');require('../../chunk-ILJNV67L.cjs');require('../../chunk-YJZUEXUT.cjs');require('../../chunk-DEP54IIZ.cjs');require('../../chunk-76HQAMKU.cjs');require('../../chunk-2WL4HPAP.cjs');require('../../chunk-ITZEACMW.cjs');require('../../chunk-266HWDC4.cjs');require('../../chunk-3GAO253L.cjs');require('../../chunk-DSW76HKT.cjs');require('../../chunk-CMZ47UG6.cjs');require('../../chunk-JHPCQWHT.cjs');require('../../chunk-GVVJQBRK.cjs');require('../../chunk-TRLAHLGN.cjs');require('../../chunk-7LZI6HLW.cjs');require('../../chunk-A4KDLDVY.cjs');require('../../chunk-6MWZLLVG.cjs');require('../../chunk-AURLQ3VG.cjs');exports.TextArea = _chunkGNS34UOBcjs.a;
|
|
2
2
|
//# sourceMappingURL=TextArea.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/TextArea/TextArea.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/hearth/hearth/packages/react/dist/components/TextArea/TextArea.cjs"],"names":[],"mappings":"AAAA,qFAAY,CAAC,4DAAuC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,oCAAiC,uCAAsB","file":"/home/runner/work/hearth/hearth/packages/react/dist/components/TextArea/TextArea.cjs"}
|
|
@@ -3,11 +3,28 @@ import { TextAreaProps } from './TextArea.props.cjs';
|
|
|
3
3
|
import '../../props/margin.props.cjs';
|
|
4
4
|
import '../../types/css-token-variable.cjs';
|
|
5
5
|
import '../../types/responsive.cjs';
|
|
6
|
+
import '../Box/Box.props.cjs';
|
|
7
|
+
import '../../props/background-color.props.cjs';
|
|
8
|
+
import '../../props/border-color.props.cjs';
|
|
9
|
+
import '../../props/border-radius.props.cjs';
|
|
10
|
+
import '../../props/border-style.props.cjs';
|
|
11
|
+
import '../../props/border-width.props.cjs';
|
|
12
|
+
import '../../props/color.props.cjs';
|
|
13
|
+
import '../../props/flex-item.props.cjs';
|
|
14
|
+
import '../../props/grid-item.props.cjs';
|
|
15
|
+
import '../../props/overflow.props.cjs';
|
|
16
|
+
import '../../props/padding.props.cjs';
|
|
17
|
+
import '../../tokens/space.cjs';
|
|
18
|
+
import '../../props/position.props.cjs';
|
|
19
|
+
import '../../types/union.cjs';
|
|
20
|
+
import '../../props/size.props.cjs';
|
|
21
|
+
import '../../props/text-align.props.cjs';
|
|
22
|
+
import '../../props/text-transform.props.cjs';
|
|
23
|
+
import '../../props/z-index.props.cjs';
|
|
6
24
|
import '../FormField/FormField.props.cjs';
|
|
7
25
|
import '../InputBase/InputBase.props.cjs';
|
|
8
26
|
import '../../helpers/input-attributes.cjs';
|
|
9
27
|
import '../Label/Label.props.cjs';
|
|
10
|
-
import '../../props/text-transform.props.cjs';
|
|
11
28
|
|
|
12
29
|
declare const TextArea: {
|
|
13
30
|
(props: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
@@ -3,11 +3,28 @@ import { TextAreaProps } from './TextArea.props.js';
|
|
|
3
3
|
import '../../props/margin.props.js';
|
|
4
4
|
import '../../types/css-token-variable.js';
|
|
5
5
|
import '../../types/responsive.js';
|
|
6
|
+
import '../Box/Box.props.js';
|
|
7
|
+
import '../../props/background-color.props.js';
|
|
8
|
+
import '../../props/border-color.props.js';
|
|
9
|
+
import '../../props/border-radius.props.js';
|
|
10
|
+
import '../../props/border-style.props.js';
|
|
11
|
+
import '../../props/border-width.props.js';
|
|
12
|
+
import '../../props/color.props.js';
|
|
13
|
+
import '../../props/flex-item.props.js';
|
|
14
|
+
import '../../props/grid-item.props.js';
|
|
15
|
+
import '../../props/overflow.props.js';
|
|
16
|
+
import '../../props/padding.props.js';
|
|
17
|
+
import '../../tokens/space.js';
|
|
18
|
+
import '../../props/position.props.js';
|
|
19
|
+
import '../../types/union.js';
|
|
20
|
+
import '../../props/size.props.js';
|
|
21
|
+
import '../../props/text-align.props.js';
|
|
22
|
+
import '../../props/text-transform.props.js';
|
|
23
|
+
import '../../props/z-index.props.js';
|
|
6
24
|
import '../FormField/FormField.props.js';
|
|
7
25
|
import '../InputBase/InputBase.props.js';
|
|
8
26
|
import '../../helpers/input-attributes.js';
|
|
9
27
|
import '../Label/Label.props.js';
|
|
10
|
-
import '../../props/text-transform.props.js';
|
|
11
28
|
|
|
12
29
|
declare const TextArea: {
|
|
13
30
|
(props: TextAreaProps): react_jsx_runtime.JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";import{a}from"../../chunk-
|
|
1
|
+
"use client";import{a}from"../../chunk-MUVMQMM4.js";import"../../chunk-FZVOPBRY.js";import"../../chunk-GPJMFFSG.js";import"../../chunk-ITEAKOJO.js";import"../../chunk-IER6CJJX.js";import"../../chunk-TDN7ZB6V.js";import"../../chunk-PMBMCMN7.js";import"../../chunk-RFIEFQGZ.js";import"../../chunk-BJXCXST6.js";import"../../chunk-RU2TPAS3.js";import"../../chunk-RLSKQUZD.js";import"../../chunk-WP323DDO.js";import"../../chunk-WRZZBLWS.js";import"../../chunk-FRRPRW67.js";import"../../chunk-W6VYE222.js";import"../../chunk-COZ4PWO4.js";import"../../chunk-KGPZIPOA.js";import"../../chunk-4KZL64RS.js";import"../../chunk-G4IYVCCQ.js";import"../../chunk-VG3SD2O6.js";import"../../chunk-MNEDCJTO.js";import"../../chunk-T3QNJYVM.js";import"../../chunk-R44IQFM7.js";import"../../chunk-J7BEXO6J.js";import"../../chunk-IWAYZXLO.js";import"../../chunk-NMHPABLW.js";import"../../chunk-4QNUU62Q.js";import"../../chunk-L4OZ3M5X.js";import"../../chunk-PQBMMI4K.js";import"../../chunk-YXPCI7XL.js";import"../../chunk-DVGYWBKQ.js";import"../../chunk-TONM4LZL.js";import"../../chunk-4IJEOHER.js";import"../../chunk-MSHCGZ4G.js";import"../../chunk-FM66BWLB.js";import"../../chunk-TXDSZ3MR.js";import"../../chunk-TLHGRJDQ.js";import"../../chunk-JKIDUQDG.js";import"../../chunk-AJUKXCDS.js";export{a as TextArea};
|
|
2
2
|
//# sourceMappingURL=TextArea.js.map
|