tcce-design-system 0.1.19 → 0.1.20
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.
|
@@ -10722,7 +10722,7 @@ function jv(e) {
|
|
|
10722
10722
|
const rn = {
|
|
10723
10723
|
sm: {
|
|
10724
10724
|
circle: "2rem",
|
|
10725
|
-
fontSize: N[
|
|
10725
|
+
fontSize: N[14],
|
|
10726
10726
|
line: "2px"
|
|
10727
10727
|
},
|
|
10728
10728
|
md: {
|
|
@@ -10732,7 +10732,7 @@ const rn = {
|
|
|
10732
10732
|
},
|
|
10733
10733
|
lg: {
|
|
10734
10734
|
circle: "3.25rem",
|
|
10735
|
-
fontSize: N[
|
|
10735
|
+
fontSize: N[20],
|
|
10736
10736
|
line: "3px"
|
|
10737
10737
|
}
|
|
10738
10738
|
}, sv = T.div`
|
|
@@ -10810,7 +10810,8 @@ const rn = {
|
|
|
10810
10810
|
position: absolute;
|
|
10811
10811
|
${N[14]}
|
|
10812
10812
|
font-weight: 500;
|
|
10813
|
-
color: var(--color-main-
|
|
10813
|
+
color: var(--color-main-white);
|
|
10814
|
+
background-color: var(--color-main-blue-primary);
|
|
10814
10815
|
padding: 0.5rem 0.75rem;
|
|
10815
10816
|
border-radius: 0.375rem;
|
|
10816
10817
|
white-space: nowrap;
|
|
@@ -10818,11 +10819,23 @@ const rn = {
|
|
|
10818
10819
|
pointer-events: none;
|
|
10819
10820
|
transition: opacity 0.2s ease;
|
|
10820
10821
|
z-index: 10;
|
|
10822
|
+
box-shadow: var(--shadow-black-button);
|
|
10821
10823
|
|
|
10822
|
-
right: calc(100%);
|
|
10824
|
+
right: calc(100% + 0.75rem);
|
|
10823
10825
|
top: 50%;
|
|
10824
10826
|
transform: translateY(-50%);
|
|
10825
10827
|
|
|
10828
|
+
/* Arrow pointing to the circle */
|
|
10829
|
+
&::after {
|
|
10830
|
+
content: '';
|
|
10831
|
+
position: absolute;
|
|
10832
|
+
left: 100%;
|
|
10833
|
+
top: 50%;
|
|
10834
|
+
transform: translateY(-50%);
|
|
10835
|
+
border: 6px solid transparent;
|
|
10836
|
+
border-left-color: var(--color-main-blue-primary);
|
|
10837
|
+
}
|
|
10838
|
+
|
|
10826
10839
|
${Pc}:hover & {
|
|
10827
10840
|
opacity: 1;
|
|
10828
10841
|
}
|
|
@@ -10856,7 +10869,7 @@ const rn = {
|
|
|
10856
10869
|
l && (h.key === "Enter" || h.key === " ") && (h.preventDefault(), i(c));
|
|
10857
10870
|
},
|
|
10858
10871
|
children: [
|
|
10859
|
-
c + 1,
|
|
10872
|
+
a.content ?? c + 1,
|
|
10860
10873
|
a.label && n === "vertical" && /* @__PURE__ */ m(uv, { children: a.label })
|
|
10861
10874
|
]
|
|
10862
10875
|
}
|
|
@@ -1790,7 +1790,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
|
|
|
1790
1790
|
@media (min-width: 1200px) {
|
|
1791
1791
|
margin-left: 5rem;
|
|
1792
1792
|
}
|
|
1793
|
-
`,Uy=({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(_y,{children:[p.jsx(Qo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(oi,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:u,userMenuItems:l}),p.jsx(Hy,{className:h,children:e})]}),Wy=e=>p.jsx(gc,{children:p.jsx(Uy,{...e})});function Ky(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 Yy(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Gy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:I[
|
|
1793
|
+
`,Uy=({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(_y,{children:[p.jsx(Qo,{navigationConfig:t,userRoles:n,activePath:r,logoImgCollapsed:m,logoImgExpanded:g,onNavigate:d}),p.jsx(oi,{user:o,hasNotifications:s,notificationCount:i,onNotificationClick:a,onUserProfileClick:c,onLogout:u,userMenuItems:l}),p.jsx(Hy,{className:h,children:e})]}),Wy=e=>p.jsx(gc,{children:p.jsx(Uy,{...e})});function Ky(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 Yy(e){return document.cookie.split("; ").reduce((t,n)=>{const r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function Gy(e){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}const an={sm:{circle:"2rem",fontSize:I[14],line:"2px"},md:{circle:"2.5rem",fontSize:I[18],line:"2px"},lg:{circle:"3.25rem",fontSize:I[20],line:"3px"}},Xy=C.div`
|
|
1794
1794
|
display: flex;
|
|
1795
1795
|
width: 100%;
|
|
1796
1796
|
`,qy=C.div`
|
|
@@ -1865,7 +1865,8 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
|
|
|
1865
1865
|
position: absolute;
|
|
1866
1866
|
${I[14]}
|
|
1867
1867
|
font-weight: 500;
|
|
1868
|
-
color: var(--color-main-
|
|
1868
|
+
color: var(--color-main-white);
|
|
1869
|
+
background-color: var(--color-main-blue-primary);
|
|
1869
1870
|
padding: 0.5rem 0.75rem;
|
|
1870
1871
|
border-radius: 0.375rem;
|
|
1871
1872
|
white-space: nowrap;
|
|
@@ -1873,12 +1874,24 @@ See https://s-c.sh/2BAXzed for more info.`),window[Pn]+=1);const vr={80:x`
|
|
|
1873
1874
|
pointer-events: none;
|
|
1874
1875
|
transition: opacity 0.2s ease;
|
|
1875
1876
|
z-index: 10;
|
|
1877
|
+
box-shadow: var(--shadow-black-button);
|
|
1876
1878
|
|
|
1877
|
-
right: calc(100%);
|
|
1879
|
+
right: calc(100% + 0.75rem);
|
|
1878
1880
|
top: 50%;
|
|
1879
1881
|
transform: translateY(-50%);
|
|
1880
1882
|
|
|
1883
|
+
/* Arrow pointing to the circle */
|
|
1884
|
+
&::after {
|
|
1885
|
+
content: '';
|
|
1886
|
+
position: absolute;
|
|
1887
|
+
left: 100%;
|
|
1888
|
+
top: 50%;
|
|
1889
|
+
transform: translateY(-50%);
|
|
1890
|
+
border: 6px solid transparent;
|
|
1891
|
+
border-left-color: var(--color-main-blue-primary);
|
|
1892
|
+
}
|
|
1893
|
+
|
|
1881
1894
|
${Fc}:hover & {
|
|
1882
1895
|
opacity: 1;
|
|
1883
1896
|
}
|
|
1884
|
-
`,ev=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(Xy,{$orientation:n,className:s,children:p.jsx(qy,{$orientation:n,children:e.map((a,c)=>{const d=c===t,u=c<t,l=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(Zy,{$orientation:n,children:p.jsxs(Fc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:l,onClick:()=>l&&i(c),role:l?"button":void 0,tabIndex:l?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{l&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(c))},children:[c+1,a.label&&n==="vertical"&&p.jsx(Qy,{children:a.label})]})}),c<e.length-1&&p.jsx(Jy,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=ql,T.Aside=wc,T.Badge=Qm,T.BaseInput=zo,T.BrandLogo=Sc,T.Button=Oo,T.ButtonSpinner=Yl,T.Card=Fg,T.CardBody=_g,T.CardFooter=Ug,T.CardHeader=zg,T.Checkbox=Zn,T.CheckboxInput=Ho,T.CheckboxLabel=oc,T.CloseOpenButton=Tc,T.Dialog=hc,T.DialogBody=pc,T.DialogFooter=mc,T.DialogHeader=fc,T.Divider=tg,T.ErrorMessage=jo,T.FormField=J0,T.FullScreenSpinner=Hm,T.Header=oi,T.HeadingBold=An,T.HeadingRegular=nu,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=rg,T.Label=Gn,T.Layout=Wy,T.Link=Dc,T.LinkDisabledStyles=Pc,T.LinkSizeStyles=Ac,T.LinkVariantStyles=Ec,T.MobileOpenBtn=kc,T.Nav=Cc,T.Overlay=bc,T.PasswordInput=tc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=rc,T.SectionSpinner=Wm,T.SelectInput=Ro,T.Sidebar=Qo,T.SidebarContext=qo,T.SidebarHeader=xc,T.SidebarProvider=gc,T.Spinner=Kn,T.Stepper=ev,T.Table=Bc,T.TableCell=ri,T.TableHeaderCell=ni,T.TermsAndConditions=sy,T.Text=We,T.TextAreaInput=_o,T.ToastProvider=Vg,T.baseContentTableStyles=ei,T.baseFieldStyles=ut,T.baseInputStyles=Xn,T.baseTableCellsSizes=ft,T.bodyTextStyles=I,T.createFieldConfig=Zg,T.createInputRefs=lc,T.deleteCookie=Gy,T.disabledStyles=Ze,T.errorStyles=ht,T.flushedStyles=Jl,T.getCookie=Yy,T.getPropsForInputType=Jg,T.handleDigitChange=ic,T.handleKeyDown=sc,T.handlePaste=ac,T.hasPermission=Jo,T.headingBoldStyles=vr,T.headingRegularStyles=Zi,T.isAllowedInputType=Zl,T.normalizeFieldTypes=qe,T.normalizeSelectOptions=qg,T.overlayAnimation=Xo,T.setCookie=Ky,T.sizeStyles=sn,T.slideAnimation=Q0,T.smartAnimation=dc,T.submenuAnimationTopDown=uc,T.tableHoverMixin=Mc,T.tableIconContainerStyles=ti,T.tableResponsiveMixin=Vc,T.tableVariants=$c,T.toast=wg,T.useSidebar=Zo,T.validateCode=H0,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
|
1897
|
+
`,ev=({steps:e,currentStep:t,orientation:n="horizontal",size:r="md",onStepClick:o,className:s})=>{const i=a=>{o?.(a)};return p.jsx(Xy,{$orientation:n,className:s,children:p.jsx(qy,{$orientation:n,children:e.map((a,c)=>{const d=c===t,u=c<t,l=o!=null;return p.jsxs(f.Fragment,{children:[p.jsx(Zy,{$orientation:n,children:p.jsxs(Fc,{$isActive:d,$isCompleted:u,$size:r,$isClickable:l,onClick:()=>l&&i(c),role:l?"button":void 0,tabIndex:l?0:void 0,"aria-current":d?"step":void 0,"aria-label":a.label,onKeyDown:h=>{l&&(h.key==="Enter"||h.key===" ")&&(h.preventDefault(),i(c))},children:[a.content??c+1,a.label&&n==="vertical"&&p.jsx(Qy,{children:a.label})]})}),c<e.length-1&&p.jsx(Jy,{$isCompleted:u,$orientation:n,$size:r})]},a.id)})})})};T.ALLOWED_INPUT_TYPES=ql,T.Aside=wc,T.Badge=Qm,T.BaseInput=zo,T.BrandLogo=Sc,T.Button=Oo,T.ButtonSpinner=Yl,T.Card=Fg,T.CardBody=_g,T.CardFooter=Ug,T.CardHeader=zg,T.Checkbox=Zn,T.CheckboxInput=Ho,T.CheckboxLabel=oc,T.CloseOpenButton=Tc,T.Dialog=hc,T.DialogBody=pc,T.DialogFooter=mc,T.DialogHeader=fc,T.Divider=tg,T.ErrorMessage=jo,T.FormField=J0,T.FullScreenSpinner=Hm,T.Header=oi,T.HeadingBold=An,T.HeadingRegular=nu,T.Icon=W,T.IconWrapperStyles=qn,T.InfoLabel=rg,T.Label=Gn,T.Layout=Wy,T.Link=Dc,T.LinkDisabledStyles=Pc,T.LinkSizeStyles=Ac,T.LinkVariantStyles=Ec,T.MobileOpenBtn=kc,T.Nav=Cc,T.Overlay=bc,T.PasswordInput=tc,T.PinInput=Uo,T.PinInputGroup=Wo,T.RadioInput=Go,T.RadioInputDot=Ko,T.RadioInputLabel=Yo,T.SearchInput=rc,T.SectionSpinner=Wm,T.SelectInput=Ro,T.Sidebar=Qo,T.SidebarContext=qo,T.SidebarHeader=xc,T.SidebarProvider=gc,T.Spinner=Kn,T.Stepper=ev,T.Table=Bc,T.TableCell=ri,T.TableHeaderCell=ni,T.TermsAndConditions=sy,T.Text=We,T.TextAreaInput=_o,T.ToastProvider=Vg,T.baseContentTableStyles=ei,T.baseFieldStyles=ut,T.baseInputStyles=Xn,T.baseTableCellsSizes=ft,T.bodyTextStyles=I,T.createFieldConfig=Zg,T.createInputRefs=lc,T.deleteCookie=Gy,T.disabledStyles=Ze,T.errorStyles=ht,T.flushedStyles=Jl,T.getCookie=Yy,T.getPropsForInputType=Jg,T.handleDigitChange=ic,T.handleKeyDown=sc,T.handlePaste=ac,T.hasPermission=Jo,T.headingBoldStyles=vr,T.headingRegularStyles=Zi,T.isAllowedInputType=Zl,T.normalizeFieldTypes=qe,T.normalizeSelectOptions=qg,T.overlayAnimation=Xo,T.setCookie=Ky,T.sizeStyles=sn,T.slideAnimation=Q0,T.smartAnimation=dc,T.submenuAnimationTopDown=uc,T.tableHoverMixin=Mc,T.tableIconContainerStyles=ti,T.tableResponsiveMixin=Vc,T.tableVariants=$c,T.toast=wg,T.useSidebar=Zo,T.validateCode=H0,Object.defineProperty(T,Symbol.toStringTag,{value:"Module"})}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.20",
|
|
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",
|