sate-lib 1.9.0 → 1.11.0
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAGvC,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAkBjD;AAED,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAC1D,KAAK,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,KAAK,CAAC;AAEhD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,cAAc,CAAC;IACjE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,WAAW,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,IAAe,EACf,KAAgB,EAChB,MAAc,EACd,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,2CAgCb"}
|
|
@@ -1 +1,2 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import{jsx as e}from"react/jsx-runtime";import r from"./avatar.styles.module.js";function a(e){if(!e)return"";let r=e.trim().replace(/\s+/g," "),a=r.includes(" ")?r.split(" "):r.split(/(?=[A-Z])/);return 0===(a=a.filter(Boolean)).length?"":1===a.length?a[0].substring(0,2).toUpperCase():(a[0][0]+a[a.length-1][0]).toUpperCase()}function t({src:t,alt:l,name:s,size:i="medium",shape:o="circle",border:n=!1,className:d,...c}){return e("div",{className:[r.root,r[i],r[o],n&&r.border,d].filter(Boolean).join(" "),"aria-label":l||s,role:"img",...c,children:s?e("span",{className:r.text,children:a(s)}):e("img",{src:t,alt:l,className:`${r.img}`,draggable:!1,loading:"lazy",decoding:"async",onLoad:e=>e.currentTarget.classList.add(r.loaded),onError:e=>e.currentTarget.classList.add(r.loaded),ref:e=>{e&&e.complete&&e.classList.add(r.loaded)}})})}export{t as Avatar,a as getInitials};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.root-z1zGW9{display:inline-flex;position:relative;overflow:hidden}.circle-_D9Cad{border-radius:50%}.rounded-A84AyB{border-radius:.25rem}.xlarge-H_7tVO{width:4rem;height:4rem}.large-fhVn0F{width:2.5rem;height:2.5rem}.medium-uo9z2T{width:2.3rem;height:2.3rem}.small-UDXZu6{width:2rem;height:2rem}.border-bUYfnV{border-style:solid;border-color:var(--color-background-screen,#fdfdf9)}.xLarge-Dyb1PW.border-bUYfnV{border-width:4.8px}.large-fhVn0F.border-bUYfnV{border-width:3px}.medium-uo9z2T.border-bUYfnV{border-width:2.4px}.small-UDXZu6.border-bUYfnV{border-width:2px}.img-u6Ny24{object-fit:cover;z-index:1;opacity:0;width:100%;height:100%;transition:opacity .2s;position:relative}.loaded-oROsLo{opacity:1}.map-gwcJ1m:before{content:"";z-index:0;background:currentColor;position:absolute;inset:0;mask:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 34 42%27><path d=%27M32 16.5c0 13.5-15 24-15 24S2 30 2 16.5a15 15 0 0 1 30 0Z%27 fill=%27%23fff%27/></svg>") 50%/contain no-repeat}.map-gwcJ1m .img-u6Ny24{border-radius:50%;width:60%;height:60%;position:absolute;top:4px;left:50%;transform:translate(-50%)}.text-sZ9yIf{width:100%;height:100%;padding:var(--spacing-size-4,.25rem);color:#fff;background:var(--color-background-neutral,#ccc);font-family:var(--typescale-display-font-secondary,"Golos UI");font-size:var(--typescale-body-default-emphasis-font-size,.875rem);font-weight:500;line-height:var(--typescale-body-default-emphasis-line-height,1.25rem);letter-spacing:var(--typescale-body-default-emphasis-letter-spacing,0);justify-content:center;align-items:center;display:flex}
|
|
1
|
+
.root-z1zGW9{box-sizing:content-box;display:inline-flex;position:relative;overflow:hidden}.circle-_D9Cad{border-radius:50%}.rounded-A84AyB{border-radius:.25rem}.xlarge-H_7tVO{width:4rem;height:4rem}.large-fhVn0F{width:2.5rem;height:2.5rem}.medium-uo9z2T{width:2.3rem;height:2.3rem}.small-UDXZu6{width:2rem;height:2rem}.border-bUYfnV{border-style:solid;border-color:var(--color-background-screen,#fdfdf9)}.xLarge-Dyb1PW.border-bUYfnV{border-width:4.8px}.large-fhVn0F.border-bUYfnV{border-width:3px}.medium-uo9z2T.border-bUYfnV{border-width:2.4px}.small-UDXZu6.border-bUYfnV{border-width:2px}.img-u6Ny24{object-fit:cover;z-index:1;opacity:0;width:100%;height:100%;transition:opacity .2s;position:relative}.loaded-oROsLo{opacity:1}.map-gwcJ1m:before{content:"";z-index:0;background:currentColor;position:absolute;inset:0;mask:url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 34 42%27><path d=%27M32 16.5c0 13.5-15 24-15 24S2 30 2 16.5a15 15 0 0 1 30 0Z%27 fill=%27%23fff%27/></svg>") 50%/contain no-repeat}.map-gwcJ1m .img-u6Ny24{border-radius:50%;width:60%;height:60%;position:absolute;top:4px;left:50%;transform:translate(-50%)}.text-sZ9yIf{width:100%;height:100%;padding:var(--spacing-size-4,.25rem);color:#fff;background:var(--color-background-neutral,#ccc);font-family:var(--typescale-display-font-secondary,"Golos UI");font-size:var(--typescale-body-default-emphasis-font-size,.875rem);font-weight:500;line-height:var(--typescale-body-default-emphasis-line-height,1.25rem);letter-spacing:var(--typescale-body-default-emphasis-letter-spacing,0);justify-content:center;align-items:center;display:flex}
|