profinansy-ui-lib 3.8.34 → 3.8.36

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,6 @@ 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
+ onKeyDown?: (evt: React.KeyboardEvent<HTMLTextAreaElement>) => void;
13
14
  className?: string;
14
15
  }
@@ -4968,9 +4968,9 @@ Check the top-level render call using <`+q+">.")}return G}}function J2(M,G){{if(
4968
4968
  }
4969
4969
  `,JI=h.styled(XI)`
4970
4970
  & path {
4971
- fill: ${e=>e.theme.text.tertiary};
4971
+ fill: ${e=>e.theme.text.secondary};
4972
4972
  }
4973
- `,QI=({amount:e,isViewed:t})=>{const{mode:n}=ne();return s.jsx(h.ThemeProvider,{theme:J[n],children:s.jsxs(UI,{className:t&&"views_active",children:[s.jsx(JI,{}),s.jsx(O,{variant:"description-Medium",tag:"span",colorName:"tertiary",children:e||0})]})})},KI=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M7.08366 15.8333H6.66699C3.33366 15.8333 1.66699 15 1.66699 10.8333V6.66663C1.66699 3.33329 3.33366 1.66663 6.66699 1.66663H13.3337C16.667 1.66663 18.3337 3.33329 18.3337 6.66663V10.8333C18.3337 14.1666 16.667 15.8333 13.3337 15.8333H12.917C12.6587 15.8333 12.4087 15.9583 12.2503 16.1666L11.0003 17.8333C10.4503 18.5666 9.55033 18.5666 9.00033 17.8333L7.75033 16.1666C7.61699 15.9833 7.30866 15.8333 7.08366 15.8333Z",stroke:"#AAAABA",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.83301 6.66663H14.1663",stroke:"#AAAABA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.83301 10.8334H10.833",stroke:"#AAAABA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qI=h.styled.button`
4973
+ `,QI=({amount:e,isViewed:t})=>{const{mode:n}=ne();return s.jsx(h.ThemeProvider,{theme:J[n],children:s.jsxs(UI,{className:t&&"views_active",children:[s.jsx(JI,{}),s.jsx(O,{variant:"description-Medium",tag:"span",colorName:"secondary",children:e||0})]})})},KI=e=>d.createElement("svg",{width:20,height:20,viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},d.createElement("path",{d:"M7.08366 15.8333H6.66699C3.33366 15.8333 1.66699 15 1.66699 10.8333V6.66663C1.66699 3.33329 3.33366 1.66663 6.66699 1.66663H13.3337C16.667 1.66663 18.3337 3.33329 18.3337 6.66663V10.8333C18.3337 14.1666 16.667 15.8333 13.3337 15.8333H12.917C12.6587 15.8333 12.4087 15.9583 12.2503 16.1666L11.0003 17.8333C10.4503 18.5666 9.55033 18.5666 9.00033 17.8333L7.75033 16.1666C7.61699 15.9833 7.30866 15.8333 7.08366 15.8333Z",stroke:"#AAAABA",strokeWidth:1.5,strokeMiterlimit:10,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.83301 6.66663H14.1663",stroke:"#AAAABA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"}),d.createElement("path",{d:"M5.83301 10.8334H10.833",stroke:"#AAAABA",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),qI=h.styled.button`
4974
4974
  position: relative;
4975
4975
  display: flex;
4976
4976
  align-items: center;
@@ -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,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`
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,onKeyDown:f,className:p},C)=>{const[g,v]=m.useState("");m.useEffect(()=>{v(o||"")},[o]);const b=E=>{v(E.target.value),u(E.target.value,E)},{mode:x}=ne(),y=r-g.length;return s.jsx(h.ThemeProvider,{theme:J[x],children:s.jsxs(V$,{className:Be("textarea-container",p),children:[s.jsxs(O$,{children:[s.jsx(Z$,{ref:C,autoFocus:c,disabled:i,maxLength:r,value:g,name:t,placeholder:e||"",onChange:b,onKeyDown:f,$height:a,$resize:l,$error:!!n}),r&&s.jsx(N$,{$isFew:y<=30,children:y})]}),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;