tcce-design-system-test 0.3.12 → 0.3.14

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.
@@ -9367,7 +9367,7 @@ const Ws = T.div`
9367
9367
  outline-color: var(--color-main-blue-primary);
9368
9368
  outline-offset: -2px;
9369
9369
  }
9370
- `, ty = T.a`
9370
+ `, ty = T.button`
9371
9371
  ${gc}
9372
9372
 
9373
9373
  // Level-based padding
@@ -9490,7 +9490,6 @@ const Ws = T.div`
9490
9490
  e.href && !e.path && !l ? /* @__PURE__ */ p(
9491
9491
  ty,
9492
9492
  {
9493
- href: e.href,
9494
9493
  onClick: y,
9495
9494
  $level: n,
9496
9495
  $collapsed: a,
@@ -1091,7 +1091,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const yr={80:E`
1091
1091
  outline-color: var(--color-main-blue-primary);
1092
1092
  outline-offset: -2px;
1093
1093
  }
1094
- `,J0=T.a`
1094
+ `,J0=T.button`
1095
1095
  ${gc}
1096
1096
 
1097
1097
  // Level-based padding
@@ -1160,7 +1160,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const yr={80:E`
1160
1160
  transform: rotate(${({$open:e})=>e?"90deg":"0deg"});
1161
1161
  pointer-events: none;
1162
1162
  transition: transform 0.3s ease-out;
1163
- `,yc=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:c}=qo(),d=f.useMemo(()=>(e.children||[]).filter(x=>Zo(t,x.permissions)),[e.children,t]);if(!f.useMemo(()=>Zo(t,e.permissions),[t,e.permissions]))return null;const l=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(x=>!x)},v=()=>{e.href&&o?.(e.href),c?.(!1)},b=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),c&&c(!1)}catch(x){console.error("Error al navegar a microservicio:",x)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(ey,{children:[n>0&&!a&&p.jsx(oy,{}),e.icon&&p.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(ty,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&l&&p.jsx(iy,{$disabled:a,$open:s,children:p.jsx(Y,{component:Yg,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(ry,{$level:n,children:[e.href&&!e.path&&!l?p.jsx(J0,{href:e.href,onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Q0,{onClick:l?g:e.path?b:v,$level:n,$collapsed:a,$active:m,$expanded:s&&l,title:a?e.label:"",children:y()}),p.jsx(qt,{initial:!1,children:!a&&s&&l&&p.jsx(ny,{$level:n+1,...dc,children:d.map(x=>p.jsx(yc,{item:x,userRoles:t,level:n+1,onNavigate:o,activePath:r},x.id))})})]})},vc=T(ze.div)`
1163
+ `,yc=({item:e,userRoles:t,level:n=0,activePath:r,onNavigate:o})=>{const[s,i]=f.useState(!1),{isCollapsed:a,setIsMobileOpen:c}=qo(),d=f.useMemo(()=>(e.children||[]).filter(x=>Zo(t,x.permissions)),[e.children,t]);if(!f.useMemo(()=>Zo(t,e.permissions),[t,e.permissions]))return null;const l=d.length>0,h=e.href||e.path||"",m=!!(h&&r&&r.startsWith(h)),g=()=>{i(x=>!x)},v=()=>{e.href&&o?.(e.href),c?.(!1)},b=async()=>{if(e.path)try{typeof window<"u"&&window.open(e.path,"_blank","noopener,noreferrer"),c&&c(!1)}catch(x){console.error("Error al navegar a microservicio:",x)}},y=()=>p.jsxs(p.Fragment,{children:[p.jsxs(ey,{children:[n>0&&!a&&p.jsx(oy,{}),e.icon&&p.jsx(Y,{component:e.icon,size:n===0?"md":"sm",color:"var(--color-main-blue-primary)"}),!a&&p.jsx(ty,{$level:n,size:n===0?16:n===1?14:12,color:"var(--color-dark-700, #374151)",children:e.label})]}),!a&&l&&p.jsx(iy,{$disabled:a,$open:s,children:p.jsx(Y,{component:Yg,size:"sm",color:"var(--color-main-blue-primary)"})})]});return p.jsxs(ry,{$level:n,children:[e.href&&!e.path&&!l?p.jsx(J0,{onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Q0,{onClick:l?g:e.path?b:v,$level:n,$collapsed:a,$active:m,$expanded:s&&l,title:a?e.label:"",children:y()}),p.jsx(qt,{initial:!1,children:!a&&s&&l&&p.jsx(ny,{$level:n+1,...dc,children:d.map(x=>p.jsx(yc,{item:x,userRoles:t,level:n+1,onNavigate:o,activePath:r},x.id))})})]})},vc=T(ze.div)`
1164
1164
  position: fixed;
1165
1165
  inset: 0;
1166
1166
  background: rgba(0, 0, 0, 0.5);
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.12",
6
+ "version": "0.3.14",
7
7
  "description": "This package provides reusable UI components to ensure consistency across all CRM frontend applications",
8
8
  "author": "BizAppsTotal <bizapps@tcce.biz>",
9
9
  "type": "module",