@grasco/profile-picture 0.1.2 → 0.1.4
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/README.md +4 -0
- package/dist/angular.cjs +1 -370
- package/dist/angular.cjs.map +1 -1
- package/dist/angular.d.cts +188 -2
- package/dist/angular.d.ts +188 -2
- package/dist/angular.js +1 -370
- package/dist/angular.js.map +1 -1
- package/dist/index.cjs +246 -110
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +130 -43
- package/dist/index.d.ts +130 -43
- package/dist/index.js +246 -110
- package/dist/index.js.map +1 -1
- package/dist/standalone.d.ts +9 -2
- package/dist/standalone.standalone.js +280 -144
- package/dist/standalone.standalone.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/svelte.cjs +1 -370
- package/dist/svelte.cjs.map +1 -1
- package/dist/svelte.d.cts +188 -2
- package/dist/svelte.d.ts +188 -2
- package/dist/svelte.js +1 -370
- package/dist/svelte.js.map +1 -1
- package/dist/vue.cjs +1 -370
- package/dist/vue.cjs.map +1 -1
- package/dist/vue.d.cts +188 -2
- package/dist/vue.d.ts +188 -2
- package/dist/vue.js +1 -370
- package/dist/vue.js.map +1 -1
- package/package.json +9 -2
package/dist/standalone.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LitElement } from 'lit';
|
|
|
7
7
|
*/
|
|
8
8
|
type Size = "2xs" | "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl";
|
|
9
9
|
type Variant = "circle" | "rounded" | "squircle" | "square";
|
|
10
|
-
type Position = "top-left" | "top-right" | "bottom-left" | "bottom-right";
|
|
10
|
+
type Position = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
|
11
11
|
type LoadingStrategy = "lazy" | "eager";
|
|
12
12
|
type PlaceholderType = "shimmer" | "pulse" | "blur" | "skeleton" | "none";
|
|
13
13
|
type PresenceStatus = "online" | "away" | "busy" | "offline" | "dnd";
|
|
@@ -40,6 +40,8 @@ interface BadgeConfig {
|
|
|
40
40
|
color?: string;
|
|
41
41
|
/** Background color */
|
|
42
42
|
bgColor?: string;
|
|
43
|
+
/** Border radius (CSS value, e.g., "8px", "50%", "9999px") */
|
|
44
|
+
borderRadius?: string;
|
|
43
45
|
/** Enable pulse animation */
|
|
44
46
|
pulse?: boolean;
|
|
45
47
|
/** Enable glow effect */
|
|
@@ -254,6 +256,8 @@ declare class ProfilePictureGroup extends LitElement {
|
|
|
254
256
|
private tooltipData;
|
|
255
257
|
private tooltipTimeout;
|
|
256
258
|
private slotObserver;
|
|
259
|
+
private portalContainer;
|
|
260
|
+
private counterRef;
|
|
257
261
|
private get pixelSize();
|
|
258
262
|
private get tooltipEnabled();
|
|
259
263
|
private get tooltipPosition();
|
|
@@ -265,6 +269,9 @@ declare class ProfilePictureGroup extends LitElement {
|
|
|
265
269
|
disconnectedCallback(): void;
|
|
266
270
|
private setupSlotObserver;
|
|
267
271
|
private updateUsers;
|
|
272
|
+
private createPortal;
|
|
273
|
+
private destroyPortal;
|
|
274
|
+
private updatePortalContent;
|
|
268
275
|
private handleAvatarClick;
|
|
269
276
|
private handleAvatarHover;
|
|
270
277
|
private handleAvatarLeave;
|
|
@@ -279,9 +286,9 @@ declare class ProfilePictureGroup extends LitElement {
|
|
|
279
286
|
private renderCounter;
|
|
280
287
|
private renderAddButton;
|
|
281
288
|
private renderTooltip;
|
|
282
|
-
private renderDropdown;
|
|
283
289
|
private renderDropdownItem;
|
|
284
290
|
private formatStatus;
|
|
291
|
+
protected updated(changedProperties: Map<PropertyKey, unknown>): void;
|
|
285
292
|
render(): lit_html.TemplateResult<1>;
|
|
286
293
|
}
|
|
287
294
|
|