tcce-design-system-test 0.3.16 → 0.3.18

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.
@@ -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)},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,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Q0,{type:"button",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)},b=async()=>{if(e.path)try{e.href&&o?.(e.href),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,{type:"button",onClick:v,$level:n,$collapsed:a,$active:m,title:a?e.label:"",children:y()}):p.jsx(Q0,{type:"button",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);
@@ -1731,4 +1731,4 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const yr={80:E`
1731
1731
  @media (min-width: 1200px) {
1732
1732
  margin-left: 5rem;
1733
1733
  }
1734
- `,Ly=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:d,userMenuItems:u=[],contentClassName:l,logoImgCollapsed:h,logoImgExpanded:m})=>p.jsxs(Vy,{children:[p.jsx(Jo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:h,logoImgExpanded:m}),p.jsx(ri,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:d,userMenuItems:u}),p.jsx(Iy,{className:l,children:e})]}),Ny=e=>p.jsx(mc,{children:p.jsx(Ly,{...e})});function By(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function Oy(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Fy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}C.ALLOWED_INPUT_TYPES=Xl,C.Aside=bc,C.BaseInput=jo,C.BrandLogo=xc,C.Button=Bo,C.ButtonSpinner=Kl,C.Card=Ag,C.CardBody=Vg,C.CardFooter=Lg,C.CardHeader=Mg,C.Checkbox=qn,C.CheckboxInput=_o,C.CheckboxLabel=rc,C.CloseOpenButton=Cc,C.Dialog=uc,C.DialogBody=fc,C.DialogFooter=pc,C.DialogHeader=hc,C.ErrorMessage=Fo,C.FormField=_0,C.FullScreenSpinner=zm,C.Header=ri,C.HeadingBold=En,C.HeadingRegular=eu,C.Icon=Y,C.IconWrapperStyles=Xn,C.Label=Yn,C.Layout=Ny,C.Link=Ac,C.LinkDisabledStyles=Pc,C.LinkSizeStyles=Ec,C.LinkVariantStyles=kc,C.MobileOpenBtn=Tc,C.Nav=Sc,C.Overlay=vc,C.PasswordInput=ec,C.PinInput=Ho,C.PinInputGroup=Uo,C.RadioInput=Yo,C.RadioInputDot=Wo,C.RadioInputLabel=Ko,C.SearchInput=nc,C.SectionSpinner=Hm,C.SelectInput=Ro,C.Sidebar=Jo,C.SidebarContext=Xo,C.SidebarHeader=wc,C.SidebarProvider=mc,C.Spinner=Wn,C.Table=Nc,C.TableCell=ni,C.TableHeaderCell=ti,C.TermsAndConditions=q0,C.Text=We,C.TextAreaInput=zo,C.ToastProvider=Sg,C.baseContentTableStyles=Qo,C.baseFieldStyles=ut,C.baseInputStyles=Gn,C.baseTableCellsSizes=ft,C.bodyTextStyles=z,C.createFieldConfig=zg,C.createInputRefs=ac,C.deleteCookie=Fy,C.disabledStyles=Ze,C.errorStyles=ht,C.flushedStyles=Zl,C.getCookie=Oy,C.getPropsForInputType=_g,C.handleDigitChange=oc,C.handleKeyDown=ic,C.handlePaste=sc,C.hasPermission=Zo,C.headingBoldStyles=yr,C.headingRegularStyles=qi,C.isAllowedInputType=ql,C.normalizeFieldTypes=qe,C.normalizeSelectOptions=Rg,C.overlayAnimation=Go,C.setCookie=By,C.sizeStyles=sn,C.slideAnimation=H0,C.smartAnimation=cc,C.submenuAnimationTopDown=dc,C.tableHoverMixin=Mc,C.tableIconContainerStyles=ei,C.tableResponsiveMixin=$c,C.tableVariants=Dc,C.toast=dg,C.useSidebar=qo,C.validateCode=I0,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
1734
+ `,Ly=({children:e,navigationConfig:t,userRoles:n=[],activePath:r,user:o,hasNotifications:s=!1,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onNavigate:d,onLogout:u,userMenuItems:l=[],contentClassName:h,logoImgCollapsed:m,logoImgExpanded:g})=>p.jsxs(Vy,{children:[p.jsx(Jo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(ri,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:u,userMenuItems:l}),p.jsx(Iy,{className:h,children:e})]}),Ny=e=>p.jsx(mc,{children:p.jsx(Ly,{...e})});function By(e,t,n){let r=`${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;if(n){const o=new Date(Date.now()+n*864e5).toUTCString();r+=`; expires=${o}`}document.cookie=r}function Oy(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Fy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}C.ALLOWED_INPUT_TYPES=Xl,C.Aside=bc,C.BaseInput=jo,C.BrandLogo=xc,C.Button=Bo,C.ButtonSpinner=Kl,C.Card=Ag,C.CardBody=Vg,C.CardFooter=Lg,C.CardHeader=Mg,C.Checkbox=qn,C.CheckboxInput=_o,C.CheckboxLabel=rc,C.CloseOpenButton=Cc,C.Dialog=uc,C.DialogBody=fc,C.DialogFooter=pc,C.DialogHeader=hc,C.ErrorMessage=Fo,C.FormField=_0,C.FullScreenSpinner=zm,C.Header=ri,C.HeadingBold=En,C.HeadingRegular=eu,C.Icon=Y,C.IconWrapperStyles=Xn,C.Label=Yn,C.Layout=Ny,C.Link=Ac,C.LinkDisabledStyles=Pc,C.LinkSizeStyles=Ec,C.LinkVariantStyles=kc,C.MobileOpenBtn=Tc,C.Nav=Sc,C.Overlay=vc,C.PasswordInput=ec,C.PinInput=Ho,C.PinInputGroup=Uo,C.RadioInput=Yo,C.RadioInputDot=Wo,C.RadioInputLabel=Ko,C.SearchInput=nc,C.SectionSpinner=Hm,C.SelectInput=Ro,C.Sidebar=Jo,C.SidebarContext=Xo,C.SidebarHeader=wc,C.SidebarProvider=mc,C.Spinner=Wn,C.Table=Nc,C.TableCell=ni,C.TableHeaderCell=ti,C.TermsAndConditions=q0,C.Text=We,C.TextAreaInput=zo,C.ToastProvider=Sg,C.baseContentTableStyles=Qo,C.baseFieldStyles=ut,C.baseInputStyles=Gn,C.baseTableCellsSizes=ft,C.bodyTextStyles=z,C.createFieldConfig=zg,C.createInputRefs=ac,C.deleteCookie=Fy,C.disabledStyles=Ze,C.errorStyles=ht,C.flushedStyles=Zl,C.getCookie=Oy,C.getPropsForInputType=_g,C.handleDigitChange=oc,C.handleKeyDown=ic,C.handlePaste=sc,C.hasPermission=Zo,C.headingBoldStyles=yr,C.headingRegularStyles=qi,C.isAllowedInputType=ql,C.normalizeFieldTypes=qe,C.normalizeSelectOptions=Rg,C.overlayAnimation=Go,C.setCookie=By,C.sizeStyles=sn,C.slideAnimation=H0,C.smartAnimation=cc,C.submenuAnimationTopDown=dc,C.tableHoverMixin=Mc,C.tableIconContainerStyles=ei,C.tableResponsiveMixin=$c,C.tableVariants=Dc,C.toast=dg,C.useSidebar=qo,C.validateCode=I0,Object.defineProperty(C,Symbol.toStringTag,{value:"Module"})}));
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.3.16",
6
+ "version": "0.3.18",
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",