@skeletonlabs/skeleton 2.5.1-dev.d9e107cc → 2.6.0-dev.8e61daab

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,5 +1,6 @@
1
1
  <script>export let initials = "AB";
2
2
  export let fill = "fill-token";
3
+ export let fontSize = 150;
3
4
  export let src = "";
4
5
  export let fallback = "";
5
6
  export let action = () => {
@@ -36,7 +37,15 @@ function prunedRestProps() {
36
37
  />
37
38
  {:else}
38
39
  <svg class="avatar-initials w-full h-full" viewBox="0 0 512 512">
39
- <text x="50%" y="50%" dominant-baseline="central" text-anchor="middle" font-weight="bold" font-size={150} class="avatar-text {fill}">
40
+ <text
41
+ x="50%"
42
+ y="50%"
43
+ dominant-baseline="central"
44
+ text-anchor="middle"
45
+ font-weight="bold"
46
+ font-size={fontSize}
47
+ class="avatar-text {fill}"
48
+ >
40
49
  {String(initials).substring(0, 2).toUpperCase()}
41
50
  </text>
42
51
  </svg>
@@ -7,6 +7,8 @@ declare const __propDef: {
7
7
  initials?: string | undefined;
8
8
  /** Initials only - Provide classes to set the SVG text fill color.*/
9
9
  fill?: string | undefined;
10
+ /** Initials only - Set the base font size for the scalable SVG text.*/
11
+ fontSize?: number | undefined;
10
12
  /** Provide the avatar image element source.*/
11
13
  src?: string | undefined;
12
14
  /** Provide the fallback image element source.*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.5.1-dev.d9e107cc",
3
+ "version": "2.6.0-dev.8e61daab",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {