sbwb-ds 1.4.5 → 1.4.6

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/sbwb-ds.js CHANGED
@@ -3392,7 +3392,7 @@ const doe = ({
3392
3392
  const S = w.current, M = b.current;
3393
3393
  if (S && M) {
3394
3394
  const L = M.scrollWidth > S.clientWidth;
3395
- console.log("text.scrollWidth", M.scrollWidth), console.log("button.clientWidth", S.clientWidth), m(L);
3395
+ m(L);
3396
3396
  }
3397
3397
  };
3398
3398
  return x(), window.addEventListener("resize", x), () => {
@@ -795,7 +795,7 @@ ${({isSelected:e})=>{if(e)return N.css`
795
795
  text-overflow: ellipsis;
796
796
  white-space: nowrap;
797
797
  `};
798
- `,rn=({name:e,type:t="button",variant:r="primary",width:n="auto",size:a="Large",disabled:i=!1,iconName:o,iconPosition:l="left",isLoading:s=!1,onClick:c,custom:u,tooltipProps:d,truncateText:f=!0,iconProps:h,...p})=>{const v=Je[`ProgressActivity${a==="Small"?"Ant":"Sm"}`],[C,m]=W.useState(!1),w=W.useRef(null),S=W.useRef(null);return W.useEffect(()=>{const b=()=>{const x=w.current,_=S.current;if(x&&_){const L=_.scrollWidth>x.clientWidth;console.log("text.scrollWidth",_.scrollWidth),console.log("button.clientWidth",x.clientWidth),m(L)}};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[e]),B(t1,{isActive:C,label:e,...d,children:we(Dz,{type:t,width:n,size:a,disabled:i,variant:r,isLoading:s,onClick:c,style:u,id:`button-component-${e}`,...p,ref:w,children:[s&&B(v,{"data-testid":"icon-loading"}),!s&&h&&l==="left"&&B(_r,{...h}),B(Hz,{ref:S,children:!s&&e}),!s&&h&&l==="right"&&B(_r,{...h})]})})},Tz=N.div`
798
+ `,rn=({name:e,type:t="button",variant:r="primary",width:n="auto",size:a="Large",disabled:i=!1,iconName:o,iconPosition:l="left",isLoading:s=!1,onClick:c,custom:u,tooltipProps:d,truncateText:f=!0,iconProps:h,...p})=>{const v=Je[`ProgressActivity${a==="Small"?"Ant":"Sm"}`],[C,m]=W.useState(!1),w=W.useRef(null),S=W.useRef(null);return W.useEffect(()=>{const b=()=>{const x=w.current,_=S.current;if(x&&_){const L=_.scrollWidth>x.clientWidth;m(L)}};return b(),window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}},[e]),B(t1,{isActive:C,label:e,...d,children:we(Dz,{type:t,width:n,size:a,disabled:i,variant:r,isLoading:s,onClick:c,style:u,id:`button-component-${e}`,...p,ref:w,children:[s&&B(v,{"data-testid":"icon-loading"}),!s&&h&&l==="left"&&B(_r,{...h}),B(Hz,{ref:S,children:!s&&e}),!s&&h&&l==="right"&&B(_r,{...h})]})})},Tz=N.div`
799
799
  ${ut}
800
800
  display: flex;
801
801
  flex-direction: row;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sbwb-ds",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "type": "module",
5
5
  "description": "Sistema de design para padronização dos processos visuais do portal SUBWEB",
6
6
  "main": "dist/sbwb-ds.js",
@@ -49,8 +49,6 @@ const Button = ({
49
49
  const text = textRef.current;
50
50
  if (button && text) {
51
51
  const isOverflowing = text.scrollWidth > button.clientWidth;
52
- console.log('text.scrollWidth', text.scrollWidth);
53
- console.log('button.clientWidth', button.clientWidth);
54
52
  setShowTooltip(isOverflowing);
55
53
  }
56
54
  };