sate-lib 1.86.0 → 1.87.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.
- package/lib/components/avatar/avatar.d.ts +4 -1
- package/lib/components/avatar/avatar.d.ts.map +1 -1
- package/lib/components/avatar/avatar.js +1 -1
- package/lib/components/map-marker/map-marker.d.ts +3 -1
- package/lib/components/map-marker/map-marker.d.ts.map +1 -1
- package/lib/components/map-marker/map-marker.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
1
2
|
export declare function getInitials(name?: string): string;
|
|
2
3
|
type AvatarSize = "small" | "medium" | "large";
|
|
3
4
|
type AvatarShape = "circle" | "rounded";
|
|
4
5
|
export interface AvatarProps {
|
|
6
|
+
as?: ElementType;
|
|
5
7
|
src?: string;
|
|
6
8
|
alt?: string;
|
|
7
9
|
name?: string;
|
|
@@ -9,7 +11,8 @@ export interface AvatarProps {
|
|
|
9
11
|
shape?: AvatarShape;
|
|
10
12
|
border?: boolean;
|
|
11
13
|
className?: string;
|
|
14
|
+
testId?: string;
|
|
12
15
|
}
|
|
13
|
-
export declare function Avatar({ src, alt, name, size, shape, border, className, ...rest }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function Avatar({ as: Tag, src, alt, name, size, shape, border, className, testId, ...rest }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
17
|
export {};
|
|
15
18
|
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -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":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,wBAAgB,WAAW,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAkBjD;AAED,KAAK,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAC/C,KAAK,WAAW,GAAG,QAAQ,GAAG,SAAS,CAAC;AAExC,MAAM,WAAW,WAAW;IAC3B,EAAE,CAAC,EAAE,WAAW,CAAC;IACjB,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;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,MAAM,CAAC,EACtB,EAAE,EAAE,GAAW,EACf,GAAG,EACH,GAAG,EACH,IAAI,EACJ,IAAe,EACf,KAAgB,EAChB,MAAc,EACd,SAAS,EACT,MAAiB,EACjB,GAAG,IAAI,EACP,EAAE,WAAW,2CA4Bb"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e}from"react/jsx-runtime";import
|
|
1
|
+
import{jsx as e}from"react/jsx-runtime";import t from"./avatar.styles.module.js";function r(e){if(!e)return"";let t=e.trim().replace(/\s+/g," "),r=t.includes(" ")?t.split(" "):t.split(/(?=[A-Z])/);return 0===(r=r.filter(Boolean)).length?"":1===r.length?r[0].substring(0,2).toUpperCase():(r[0][0]+r[r.length-1][0]).toUpperCase()}function a({as:a="img",src:i,alt:s,name:l,size:n="medium",shape:o="circle",border:m=!1,className:c,testId:p="avatar",...d}){return e("div",{className:[t.root,t[n],t[o],m&&t.border,c].filter(Boolean).join(" "),"data-testid":p,children:l?e("span",{className:`bodyDefaultEmphasis ${t.text}`,children:r(l)}):e(a,{alt:s,className:t.img,draggable:!1,src:i,...d})})}export{a as Avatar,r as getInitials};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
1
2
|
export interface MapMarkerProps {
|
|
3
|
+
as?: "img" | ElementType;
|
|
2
4
|
src?: string;
|
|
3
5
|
alt?: string;
|
|
4
6
|
className?: string;
|
|
5
7
|
}
|
|
6
|
-
export declare function MapMarker({ src, alt, className }: MapMarkerProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export declare function MapMarker({ as: Tag, src, alt, className, ...rest }: MapMarkerProps): import("react/jsx-runtime").JSX.Element;
|
|
7
9
|
//# sourceMappingURL=map-marker.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map-marker.d.ts","sourceRoot":"","sources":["../../../src/components/map-marker/map-marker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"map-marker.d.ts","sourceRoot":"","sources":["../../../src/components/map-marker/map-marker.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,WAAW,cAAc;IAC9B,EAAE,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC;IACzB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,SAAS,CAAC,EACzB,EAAE,EAAE,GAAW,EACf,GAAG,EACH,GAAG,EACH,SAAS,EACT,GAAG,IAAI,EACP,EAAE,cAAc,2CAkBhB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as r,jsxs as e}from"react/jsx-runtime";import o from"./map-marker.styles.module.js";function t({
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import o from"./map-marker.styles.module.js";function t({as:t="img",src:i,alt:n,className:a,...l}){return e("div",{className:[o.root,a].filter(Boolean).join(" "),role:"img",children:[r(t,{alt:n,draggable:!1,src:i,...l}),r("svg",{fill:"none",viewBox:"0 0 36 46",xmlns:"http://www.w3.org/2000/svg",children:r("path",{d:"M34 18c0 14.4-16 25.6-16 25.6S2 32.4 2 18a16 16 0 1 1 32 0Z",fill:"#202020",stroke:"#202020",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3.2"})})]})}export{t as MapMarker};
|