profinansy-ui-lib 4.1.79 → 4.1.80

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.
@@ -34,6 +34,8 @@ export interface IButton {
34
34
  onClick?: (e: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
35
35
  /** Класс для кнопки */
36
36
  className?: string;
37
+ /** HTML id корневого элемента кнопки */
38
+ id?: string;
37
39
  /** Закрашивать ли иконку */
38
40
  isFill?: boolean;
39
41
  }
@@ -1641,7 +1641,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
1641
1641
  &:after {
1642
1642
  left: 3.5em;
1643
1643
  }
1644
- `,V_=({color:e="#FFFFFF",size:t="L"})=>a.jsx(H_,{className:"loader",$color:e,$size:t}),pt=m.forwardRef(({text:e,textCustom:t,type:n="button",mode:r="primary",disabled:o=!1,iconLeft:i,iconRight:s,size:l="L",loading:c=!1,form:p="square",width:f,style:h,onClick:g,className:x,tabIndex:v,isFill:b=!0},C)=>{const y=_=>{g&&!c&&!o&&g(_)},k=()=>l==="L"?"header6-SemiBold":l==="S"?"description-Medium":"text-Medium",{mode:$}=$e();return a.jsx(u.ThemeProvider,{theme:ge[$],children:a.jsxs(F_,{$form:p,ref:C,type:n,style:h,className:gt(x,"button"),disabled:o||c,onClick:y,$size:l,$mode:r,$width:f,$isFill:b,tabIndex:v,$isText:!!e||!!t,$iconLeft:!!i,$iconRight:!!s,children:[c&&a.jsx(B_,{$mode:r,children:a.jsx(V_,{color:Bn(ge[$])[r].default.color,size:l})}),i?a.jsx(Q7,{$isText:!!e,$size:l,children:i}):null,e?a.jsx(X,{tag:"span",variant:k(),children:e}):null,!e&&t?t:null,s?a.jsx(J7,{$isText:!!e,$size:l,children:s}):null]})})}),O2=u.styled.span`
1644
+ `,V_=({color:e="#FFFFFF",size:t="L"})=>a.jsx(H_,{className:"loader",$color:e,$size:t}),pt=m.forwardRef(({text:e,textCustom:t,type:n="button",mode:r="primary",disabled:o=!1,iconLeft:i,iconRight:s,size:l="L",loading:c=!1,form:p="square",width:f,style:h,onClick:g,className:x,id:v,tabIndex:b,isFill:C=!0},y)=>{const k=w=>{g&&!c&&!o&&g(w)},$=()=>l==="L"?"header6-SemiBold":l==="S"?"description-Medium":"text-Medium",{mode:_}=$e();return a.jsx(u.ThemeProvider,{theme:ge[_],children:a.jsxs(F_,{$form:p,ref:y,type:n,style:h,className:gt(x,"button"),id:v,disabled:o||c,onClick:k,$size:l,$mode:r,$width:f,$isFill:C,tabIndex:b,$isText:!!e||!!t,$iconLeft:!!i,$iconRight:!!s,children:[c&&a.jsx(B_,{$mode:r,children:a.jsx(V_,{color:Bn(ge[_])[r].default.color,size:l})}),i?a.jsx(Q7,{$isText:!!e,$size:l,children:i}):null,e?a.jsx(X,{tag:"span",variant:$(),children:e}):null,!e&&t?t:null,s?a.jsx(J7,{$isText:!!e,$size:l,children:s}):null]})})}),O2=u.styled.span`
1645
1645
  position: relative;
1646
1646
  top: 0;
1647
1647
  left: 0;