@equisoft/design-elements-react 10.1.4-snapshot.20260504223806 → 10.1.4-snapshot.20260508155720

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.
Files changed (2) hide show
  1. package/dist/bundle.js +1 -1
  2. package/package.json +1 -1
package/dist/bundle.js CHANGED
@@ -319,7 +319,7 @@
319
319
  border-radius: 50%;
320
320
  object-fit: cover;
321
321
  ${Xn}
322
- `,eo=({bgColor:r,className:n,iconName:o,imgSrc:a,username:i,size:l="xsmall"})=>{const{t:s}=j("avatar"),{isMobile:c}=_(),d=(0,t.useMemo)(()=>void 0===i?"":function(e){const t=e.normalize("NFD").replace(/[^a-zA-Z\s]/g,"");if(0===t.length)return"";const r=t.split(/\s/);return 1===r.length&&t.length>0?t.substring(0,2).toUpperCase():r[0].charAt(0).toUpperCase()+r[r.length-1].charAt(0).toUpperCase()}(i),[i]),u=(0,t.useMemo)(()=>s("ariaLabel",{username:i}),[i,s]),p=d.length<=2&&d.length>0;return a?(0,e.jsx)(Jn,{src:a,alt:u,className:n,size:l,isMobile:c}):(0,e.jsx)(Zn,{role:"img","aria-label":u,className:n,bgColor:r,size:l,isMobile:c,children:o?(0,e.jsx)(dn,{name:o}):(0,e.jsx)("span",{"data-testid":"avatar-initials",children:p?d:(0,e.jsx)(dn,{name:"user",size:c?"24":"16"})})})};eo.displayName="Avatar";const to=p("Badge",["root"]),ro=a().span`
322
+ `,eo=({bgColor:r,className:n,iconName:o,imgSrc:a,username:i,size:l="xsmall"})=>{const{t:s}=j("avatar"),{isMobile:c}=_(),d=(0,t.useMemo)(()=>void 0===i?"":function(e){const t=e.normalize("NFD").replace(/[^a-zA-Z0-9\s]/g,"");if(0===t.length)return"";const r=t.split(/\s/);return 1===r.length&&t.length>0?t.substring(0,2).toUpperCase():r[0].charAt(0).toUpperCase()+r[r.length-1].charAt(0).toUpperCase()}(i),[i]),u=(0,t.useMemo)(()=>s("ariaLabel",{username:i}),[i,s]),p=d.length<=2&&d.length>0;return a?(0,e.jsx)(Jn,{src:a,alt:u,className:n,size:l,isMobile:c}):(0,e.jsx)(Zn,{role:"img","aria-label":u,className:n,bgColor:r,size:l,isMobile:c,children:o?(0,e.jsx)(dn,{name:o}):(0,e.jsx)("span",{"data-testid":"avatar-initials",children:p?d:(0,e.jsx)(dn,{name:"user",size:c?"24":"16"})})})};eo.displayName="Avatar";const to=p("Badge",["root"]),ro=a().span`
323
323
  display: inline-flex;
324
324
  flex-shrink: 0;
325
325
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equisoft/design-elements-react",
3
- "version": "10.1.4-snapshot.20260504223806",
3
+ "version": "10.1.4-snapshot.20260508155720",
4
4
  "description": "React implementation of the Equisoft design system.",
5
5
  "license": "UNLICENSED",
6
6
  "main": "dist/bundle.js",