profinansy-ui-lib 3.8.33 → 3.8.34

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.
@@ -10,5 +10,5 @@ export interface ITextarea {
10
10
  resize?: 'both' | 'horizontal' | 'vertical' | 'none';
11
11
  maxLength?: number;
12
12
  onChange: (value: string, e: React.ChangeEvent<HTMLTextAreaElement>) => void;
13
- containerClass?: string;
13
+ className?: string;
14
14
  }
@@ -6645,7 +6645,7 @@ Check the top-level render call using <`+q+">.")}return G}}function J2(M,G){{if(
6645
6645
  border-color: ${e=>e.theme.stroke.accent};
6646
6646
  outline: none;
6647
6647
  }
6648
- `,tu=m.forwardRef(({placeholder:e,name:t,error:n,maxLength:r,value:o,disabled:i,height:a=132,resize:l="none",autoFocus:c,onChange:u,containerClass:f},p)=>{const[C,g]=m.useState("");m.useEffect(()=>{g(o||"")},[o]);const v=y=>{g(y.target.value),u(y.target.value,y)},{mode:b}=ne(),x=r-C.length;return s.jsx(h.ThemeProvider,{theme:J[b],children:s.jsxs(V$,{className:Be("textarea-container",f),children:[s.jsxs(O$,{children:[s.jsx(Z$,{ref:p,autoFocus:c,disabled:i,maxLength:r,value:C,name:t,placeholder:e||"",onChange:v,$height:a,$resize:l,$error:!!n}),r&&s.jsx(N$,{$isFew:x<=30,children:x})]}),n&&typeof n!="boolean"?s.jsx(xi,{text:n||""}):null]})})}),W$=45,G$=({defaultHeight:e=W$,maxHeight:t=200,...n})=>{const r=m.useRef(null),[o,i]=m.useState(e);return m.useEffect(()=>{(()=>{if(r.current){const l=r.current.scrollHeight;i(Math.min(l,t))}})()},[n.value,t,o]),s.jsx(tu,{ref:r,height:o,...n})},Y$=({text:e,hint:t})=>s.jsx(s.Fragment,{children:s.jsx(O,{tag:"h1",variant:[{resolution:null,variant:"header2-Bold"},{resolution:ie,variant:"header3-Bold"}],colorName:"primary",children:t?s.jsx(Js,{text:e,hint:t}):e})}),z$=e=>d.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.5402 13.29L11.8802 7.64004C11.7873 7.54631 11.6767 7.47191 11.5548 7.42115C11.4329 7.37038 11.3022 7.34424 11.1702 7.34424C11.0382 7.34424 10.9075 7.37038 10.7856 7.42115C10.6638 7.47191 10.5532 7.54631 10.4602 7.64004C10.274 7.8274 10.1694 8.08085 10.1694 8.34504C10.1694 8.60922 10.274 8.86267 10.4602 9.05004L15.4102 14.05L10.4602 19C10.274 19.1874 10.1694 19.4409 10.1694 19.705C10.1694 19.9692 10.274 20.2227 10.4602 20.41C10.5528 20.5045 10.6633 20.5797 10.7852 20.6312C10.907 20.6827 11.0379 20.7095 11.1702 20.71C11.3025 20.7095 11.4334 20.6827 11.5553 20.6312C11.6772 20.5797 11.7876 20.5045 11.8802 20.41L17.5402 14.76C17.6417 14.6664 17.7227 14.5527 17.7781 14.4262C17.8336 14.2997 17.8622 14.1631 17.8622 14.025C17.8622 13.8869 17.8336 13.7503 17.7781 13.6238C17.7227 13.4973 17.6417 13.3837 17.5402 13.29Z",fill:"#242424"})),X$=h.styled.button`
6648
+ `,tu=m.forwardRef(({placeholder:e,name:t,error:n,maxLength:r,value:o,disabled:i,height:a=132,resize:l="none",autoFocus:c,onChange:u,className:f},p)=>{const[C,g]=m.useState("");m.useEffect(()=>{g(o||"")},[o]);const v=y=>{g(y.target.value),u(y.target.value,y)},{mode:b}=ne(),x=r-C.length;return s.jsx(h.ThemeProvider,{theme:J[b],children:s.jsxs(V$,{className:Be("textarea-container",f),children:[s.jsxs(O$,{children:[s.jsx(Z$,{ref:p,autoFocus:c,disabled:i,maxLength:r,value:C,name:t,placeholder:e||"",onChange:v,$height:a,$resize:l,$error:!!n}),r&&s.jsx(N$,{$isFew:x<=30,children:x})]}),n&&typeof n!="boolean"?s.jsx(xi,{text:n||""}):null]})})}),W$=45,G$=({defaultHeight:e=W$,maxHeight:t=200,...n})=>{const r=m.useRef(null),[o,i]=m.useState(e);return m.useEffect(()=>{(()=>{if(r.current){const l=r.current.scrollHeight;i(Math.min(l,t))}})()},[n.value,t,o]),s.jsx(tu,{ref:r,height:o,...n})},Y$=({text:e,hint:t})=>s.jsx(s.Fragment,{children:s.jsx(O,{tag:"h1",variant:[{resolution:null,variant:"header2-Bold"},{resolution:ie,variant:"header3-Bold"}],colorName:"primary",children:t?s.jsx(Js,{text:e,hint:t}):e})}),z$=e=>d.createElement("svg",{width:28,height:28,viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M17.5402 13.29L11.8802 7.64004C11.7873 7.54631 11.6767 7.47191 11.5548 7.42115C11.4329 7.37038 11.3022 7.34424 11.1702 7.34424C11.0382 7.34424 10.9075 7.37038 10.7856 7.42115C10.6638 7.47191 10.5532 7.54631 10.4602 7.64004C10.274 7.8274 10.1694 8.08085 10.1694 8.34504C10.1694 8.60922 10.274 8.86267 10.4602 9.05004L15.4102 14.05L10.4602 19C10.274 19.1874 10.1694 19.4409 10.1694 19.705C10.1694 19.9692 10.274 20.2227 10.4602 20.41C10.5528 20.5045 10.6633 20.5797 10.7852 20.6312C10.907 20.6827 11.0379 20.7095 11.1702 20.71C11.3025 20.7095 11.4334 20.6827 11.5553 20.6312C11.6772 20.5797 11.7876 20.5045 11.8802 20.41L17.5402 14.76C17.6417 14.6664 17.7227 14.5527 17.7781 14.4262C17.8336 14.2997 17.8622 14.1631 17.8622 14.025C17.8622 13.8869 17.8336 13.7503 17.7781 13.6238C17.7227 13.4973 17.6417 13.3837 17.5402 13.29Z",fill:"#242424"})),X$=h.styled.button`
6649
6649
  border-radius: 10px;
6650
6650
  display: flex;
6651
6651
  justify-content: center;