sate-lib 1.18.0 → 1.20.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 +3 -3
- package/lib/components/avatar/avatar.d.ts.map +1 -1
- package/lib/components/avatar/avatar.js +1 -2
- package/lib/components/avatar/avatar.styles.module.js +1 -1
- package/lib/components/avatar/avatar.styles_module.css +1 -1
- package/lib/components/map-marker/map-marker.d.ts +7 -0
- package/lib/components/map-marker/map-marker.d.ts.map +1 -0
- package/lib/components/map-marker/map-marker.js +1 -0
- package/lib/components/map-marker/map-marker.styles.module.js +1 -0
- package/lib/components/map-marker/map-marker.styles_module.css +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +5 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
1
|
export declare function getInitials(name?: string): string;
|
|
3
2
|
type AvatarSize = "small" | "medium" | "large";
|
|
4
|
-
type AvatarShape = "circle" | "rounded"
|
|
5
|
-
export interface AvatarProps
|
|
3
|
+
type AvatarShape = "circle" | "rounded";
|
|
4
|
+
export interface AvatarProps {
|
|
6
5
|
src?: string;
|
|
7
6
|
alt?: string;
|
|
8
7
|
name?: string;
|
|
9
8
|
size?: AvatarSize;
|
|
10
9
|
shape?: AvatarShape;
|
|
11
10
|
border?: boolean;
|
|
11
|
+
className?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare function Avatar({ src, alt, name, size, shape, border, className, ...rest }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAEA,
|
|
1
|
+
{"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/avatar/avatar.tsx"],"names":[],"mappings":"AAEA,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;IAC1B,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;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,GAAG,EACH,GAAG,EACH,IAAI,EACJ,IAAe,EACf,KAAgB,EAChB,MAAc,EACd,SAAS,EACT,GAAG,IAAI,EACR,EAAE,WAAW,2CAoBb"}
|
|
@@ -1,2 +1 @@
|
|
|
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
|
+
import{jsx as e}from"react/jsx-runtime";import r from"./avatar.styles.module.js";function t(e){if(!e)return"";let r=e.trim().replace(/\s+/g," "),t=r.includes(" ")?r.split(" "):r.split(/(?=[A-Z])/);return 0===(t=t.filter(Boolean)).length?"":1===t.length?t[0].substring(0,2).toUpperCase():(t[0][0]+t[t.length-1][0]).toUpperCase()}function l({src:l,alt:a,name:i,size:s="medium",shape:n="circle",border:o=!1,className:m,...c}){return e("div",{className:[r.root,r[s],r[n],o&&r.border,m].filter(Boolean).join(" "),"aria-label":a||i,role:"img",...c,children:i?e("span",{className:r.text,children:t(i)}):e("img",{src:l,alt:a,className:r.img,draggable:!1})})}export{l as Avatar,t as getInitials};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./avatar.styles_module.css";let e={root:"root-z1zGW9",circle:"circle-_D9Cad",rounded:"rounded-A84AyB",large:"large-fhVn0F",medium:"medium-uo9z2T",small:"small-UDXZu6",border:"border-bUYfnV",img:"img-u6Ny24",
|
|
1
|
+
import"./avatar.styles_module.css";let e={root:"root-z1zGW9",circle:"circle-_D9Cad",rounded:"rounded-A84AyB",large:"large-fhVn0F",medium:"medium-uo9z2T",small:"small-UDXZu6",border:"border-bUYfnV",img:"img-u6Ny24",text:"text-sZ9yIf"};export{e as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.root-z1zGW9{box-sizing:content-box;display:inline-flex;position:relative;overflow:hidden}.circle-_D9Cad{border-radius:50%}.rounded-A84AyB{border-radius:.25rem}.large-fhVn0F{width:4rem;height:4rem}.medium-uo9z2T{width:2.5rem;height:2.5rem}.small-UDXZu6{width:2rem;height:2rem}.border-bUYfnV{border-style:solid;border-color:var(--color-background-screen,#fdfdf9)}.large-fhVn0F.border-bUYfnV{border-width:4px}.medium-uo9z2T.border-bUYfnV{border-width:2.5px}.small-UDXZu6.border-bUYfnV{border-width:2px}.img-u6Ny24{object-fit:cover;z-index:1;
|
|
1
|
+
.root-z1zGW9{box-sizing:content-box;display:inline-flex;position:relative;overflow:hidden}.circle-_D9Cad{border-radius:50%}.rounded-A84AyB{border-radius:.25rem}.large-fhVn0F{width:4rem;height:4rem}.medium-uo9z2T{width:2.5rem;height:2.5rem}.small-UDXZu6{width:2rem;height:2rem}.border-bUYfnV{border-style:solid;border-color:var(--color-background-screen,#fdfdf9)}.large-fhVn0F.border-bUYfnV{border-width:4px}.medium-uo9z2T.border-bUYfnV{border-width:2.5px}.small-UDXZu6.border-bUYfnV{border-width:2px}.img-u6Ny24{object-fit:cover;z-index:1;width:100%;height:100%;position:relative}.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}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-marker.d.ts","sourceRoot":"","sources":["../../../src/components/map-marker/map-marker.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,SAAS,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,cAAc,2CAkBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{jsx as r,jsxs as e}from"react/jsx-runtime";import o from"./map-marker.styles.module.js";function t({src:t,alt:i,className:n}){return e("div",{className:[o.root,n].filter(Boolean).join(" "),role:"img",children:[r("img",{src:t,alt:i,draggable:!1}),r("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 36 46",children:r("path",{fill:"#202020",stroke:"#202020",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3.2",d:"M34 18c0 14.4-16 25.6-16 25.6S2 32.4 2 18a16 16 0 1 1 32 0Z"})})]})}export{t as MapMarker};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import"./map-marker.styles_module.css";let e={root:"root-YrkE4j"};export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.root-YrkE4j{position:relative}.root-YrkE4j img{border-radius:50%;width:2rem;height:2rem;position:absolute;top:.5px;left:50%;transform:translate(-50%)scale(.8)}.root-YrkE4j svg{width:2rem;height:2.6rem}
|
package/lib/index.d.ts
CHANGED
|
@@ -11,4 +11,5 @@ export { MenuItem } from "./components/menu-item/menu-item";
|
|
|
11
11
|
export { Avatar } from "./components/avatar/avatar";
|
|
12
12
|
export { SearchInput } from "./components/search-input/search-input";
|
|
13
13
|
export { Logo } from "./components/logo/logo";
|
|
14
|
+
export { MapMarker } from "./components/map-marker/map-marker";
|
|
14
15
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EACL,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kDAAkD,CAAC;AACpF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Button as o}from"./components/button/button.js";import{Badge as t}from"./components/badge/badge.js";import{Typography as
|
|
1
|
+
import{Button as o}from"./components/button/button.js";import{Badge as t}from"./components/badge/badge.js";import{Typography as r}from"./components/typography/typography.js";import{Icon as n}from"./components/icon/icon.js";import{TabsContent as m,TabsList as e,TabsRoot as p,TabsTrigger as s}from"./components/tabs/tabs.js";import{SegmentedControl as i}from"./components/segmented-control/segmented-control.js";import{ProgressIndicator as a}from"./components/progress-indicator/progress-indicator.js";import{FilterChipGroup as c}from"./components/filter-chip/filter-chip.js";import{Notification as f}from"./components/notification/notification.js";import{MenuItem as g}from"./components/menu-item/menu-item.js";import{Avatar as j}from"./components/avatar/avatar.js";import{SearchInput as b}from"./components/search-input/search-input.js";import{Logo as u}from"./components/logo/logo.js";import{MapMarker as d}from"./components/map-marker/map-marker.js";export{j as Avatar,t as Badge,o as Button,c as FilterChipGroup,n as Icon,u as Logo,d as MapMarker,g as MenuItem,f as Notification,a as ProgressIndicator,b as SearchInput,i as SegmentedControl,m as TabsContent,e as TabsList,p as TabsRoot,s as TabsTrigger,r as Typography};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sate-lib",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -59,6 +59,10 @@
|
|
|
59
59
|
"import": "./lib/components/logo/logo.js",
|
|
60
60
|
"types": "./lib/components/logo/logo.d.ts"
|
|
61
61
|
},
|
|
62
|
+
"./map-marker": {
|
|
63
|
+
"import": "./lib/components/map-marker/map-marker.js",
|
|
64
|
+
"types": "./lib/components/map-marker/map-marker.d.ts"
|
|
65
|
+
},
|
|
62
66
|
"./tokens.css": "./lib/assets/styles/tokens.css",
|
|
63
67
|
"./reset.css": "./lib/assets/styles/reset.css",
|
|
64
68
|
"./fonts.css": "./lib/assets/styles/fonts.css",
|