sbwb-ds 3.8.1 → 3.8.2
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
|
@@ -5908,6 +5908,10 @@ const Fle = j.div`
|
|
|
5908
5908
|
margin-left: 5px;
|
|
5909
5909
|
`;
|
|
5910
5910
|
}}
|
|
5911
|
+
|
|
5912
|
+
&::-ms-reveal {
|
|
5913
|
+
display: none;
|
|
5914
|
+
}
|
|
5911
5915
|
`, Yle = j.button`
|
|
5912
5916
|
${X}
|
|
5913
5917
|
cursor: pointer;
|
|
@@ -27337,7 +27341,7 @@ const H_ = j.aside`
|
|
|
27337
27341
|
resizeButtonProps: p
|
|
27338
27342
|
}) => {
|
|
27339
27343
|
const { linkActive: g, setLinkActive: C } = _ge(r);
|
|
27340
|
-
return
|
|
27344
|
+
return s ? /* @__PURE__ */ Me(
|
|
27341
27345
|
H_,
|
|
27342
27346
|
{
|
|
27343
27347
|
id: e,
|
package/dist/sbwb-ds.umd.cjs
CHANGED
|
@@ -1300,6 +1300,10 @@ See https://s-c.sh/2BAXzed for more info.`),window["__styled-components-init__"]
|
|
|
1300
1300
|
background-color: transparent;
|
|
1301
1301
|
margin-left: 5px;
|
|
1302
1302
|
`}}
|
|
1303
|
+
|
|
1304
|
+
&::-ms-reveal {
|
|
1305
|
+
display: none;
|
|
1306
|
+
}
|
|
1303
1307
|
`,wU=j.button`
|
|
1304
1308
|
${X}
|
|
1305
1309
|
cursor: pointer;
|
|
@@ -4961,7 +4965,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4961
4965
|
fill: ${y.colors.feedbackColors.colorFeedbackInfo};
|
|
4962
4966
|
}
|
|
4963
4967
|
}
|
|
4964
|
-
`,s2e=e=>{const[t,r]=J.useState(e);return J.useEffect(()=>{r(e)},[e]),{linkActive:t,setLinkActive:r,handleLink:()=>{r(e)}}},c2e=({id:e,links:t,selectedLink:r=0,image:n,imgAlt:a,collapsed:i=!1,LinkComponent:o,onClose:l,empty:s=!1,closeBtn:c=!1,customStyles:u,children:d,badgeProps:f,hasResize:h,resizeButtonProps:p})=>{const{linkActive:g,setLinkActive:C}=s2e(r);return
|
|
4968
|
+
`,s2e=e=>{const[t,r]=J.useState(e);return J.useEffect(()=>{r(e)},[e]),{linkActive:t,setLinkActive:r,handleLink:()=>{r(e)}}},c2e=({id:e,links:t,selectedLink:r=0,image:n,imgAlt:a,collapsed:i=!1,LinkComponent:o,onClose:l,empty:s=!1,closeBtn:c=!1,customStyles:u,children:d,badgeProps:f,hasResize:h,resizeButtonProps:p})=>{const{linkActive:g,setLinkActive:C}=s2e(r);return s?Ee(Ek,{id:e,collapsed:i,"data-testid":"sidebar",style:u,children:[c&&P(_k,{children:P(y1,{cursorPointer:!0,iconName:"CloseAnt",color:"#4E5666",onClick:l})}),d]}):Ee(Ek,{id:e,collapsed:i,"data-testid":"sidebar",children:[c&&P(_k,{children:P(y1,{cursorPointer:!0,iconName:"CloseAnt",color:"#4E5666",onClick:l})}),n&&P(a2e,{collapsed:i,"data-testid":"sidebar-logo",children:P(i2e,{src:n,alt:a})}),P(o2e,{children:t==null?void 0:t.map((m,w)=>{const S=it[`${m.icon}Md`],b=it.FiberManualRecordFill1Ant;return Ee(jt,{children:[P(l2e,{active:w===g,onClick:()=>C(w),"data-testid":`sidebar-item-${w}`,collapsed:i,children:Ee(o,{to:m.href,children:[m.icon&&P(S,{active:w===g?"true":"false"}),!i&&m.label&&P("p",{children:m.label}),P("span",{children:m.indicator&&P(b,{"data-testid":`sidebar-indicator-${w}`})}),P(Q6,{...f})]})},w),P("div",{style:{height:"12px"}})]})})}),P("div",{style:{flex:1}}),h&&P(Fn,{...p})]})},u2e=j.div`
|
|
4965
4969
|
${X}
|
|
4966
4970
|
display: flex;
|
|
4967
4971
|
height: 100%;
|
package/package.json
CHANGED
|
@@ -57,8 +57,6 @@ const ListBox = ({
|
|
|
57
57
|
setMinTitleWidth(updatedWidths); // Atualiza o estado com os novos valores
|
|
58
58
|
}, [itens]); // Reexecuta o efeito quando 'itens' mudar
|
|
59
59
|
|
|
60
|
-
console.log(minTitleWidth);
|
|
61
|
-
|
|
62
60
|
return (
|
|
63
61
|
<C.Container height={height} width={width}>
|
|
64
62
|
{itens.map((item, indexOfItem) => (
|