tcce-design-system-test 0.3.17 → 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.
|
@@ -612,6 +612,7 @@ export declare interface LayoutProps extends SidebarProps {
|
|
|
612
612
|
notificationCount?: number;
|
|
613
613
|
onNotificationClick?: () => void;
|
|
614
614
|
onUserProfileClick?: () => void;
|
|
615
|
+
onNavigate?: (href: string) => void;
|
|
615
616
|
onLogout?: () => void;
|
|
616
617
|
userMenuItems?: UserMenuItem[];
|
|
617
618
|
contentClassName?: string;
|
|
@@ -10562,11 +10562,12 @@ const Zy = T.div`
|
|
|
10562
10562
|
notificationCount: o,
|
|
10563
10563
|
onNotificationClick: a,
|
|
10564
10564
|
onUserProfileClick: c,
|
|
10565
|
-
|
|
10566
|
-
|
|
10567
|
-
|
|
10568
|
-
|
|
10569
|
-
|
|
10565
|
+
onNavigate: u,
|
|
10566
|
+
onLogout: d,
|
|
10567
|
+
userMenuItems: l = [],
|
|
10568
|
+
contentClassName: h,
|
|
10569
|
+
logoImgCollapsed: f,
|
|
10570
|
+
logoImgExpanded: m
|
|
10570
10571
|
}) => /* @__PURE__ */ M(Zy, { children: [
|
|
10571
10572
|
/* @__PURE__ */ p(
|
|
10572
10573
|
vc,
|
|
@@ -10574,8 +10575,9 @@ const Zy = T.div`
|
|
|
10574
10575
|
navigationConfig: t,
|
|
10575
10576
|
userRoles: n,
|
|
10576
10577
|
activePath: r,
|
|
10577
|
-
logoImgCollapsed:
|
|
10578
|
-
logoImgExpanded:
|
|
10578
|
+
logoImgCollapsed: f,
|
|
10579
|
+
logoImgExpanded: m,
|
|
10580
|
+
onNavigate: u
|
|
10579
10581
|
}
|
|
10580
10582
|
),
|
|
10581
10583
|
/* @__PURE__ */ p(
|
|
@@ -10586,11 +10588,11 @@ const Zy = T.div`
|
|
|
10586
10588
|
notificationCount: o,
|
|
10587
10589
|
onNotificationClick: a,
|
|
10588
10590
|
onUserProfileClick: c,
|
|
10589
|
-
onLogout:
|
|
10590
|
-
userMenuItems:
|
|
10591
|
+
onLogout: d,
|
|
10592
|
+
userMenuItems: l
|
|
10591
10593
|
}
|
|
10592
10594
|
),
|
|
10593
|
-
/* @__PURE__ */ p(qy, { className:
|
|
10595
|
+
/* @__PURE__ */ p(qy, { className: h, children: e })
|
|
10594
10596
|
] }), w1 = (e) => /* @__PURE__ */ p(Q0, { children: /* @__PURE__ */ p(Jy, { ...e }) });
|
|
10595
10597
|
function S1(e, t, n) {
|
|
10596
10598
|
let r = `${e}=${encodeURIComponent(t)}; path=/; SameSite=Strict; Secure`;
|
|
@@ -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,
|
|
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.
|
|
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",
|