m3-svelte 5.12.2 → 5.12.3

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.
@@ -11,7 +11,7 @@
11
11
  } = $props();
12
12
  </script>
13
13
 
14
- <svg width={size} height={size} class:container class:center>
14
+ <svg width={size} height={size} viewBox="0 0 48 48" class:container class:center>
15
15
  <path fill="currentColor">
16
16
  <animate
17
17
  attributeName="d"
@@ -43,8 +43,8 @@
43
43
  const newValue = Number(e.currentTarget.value);
44
44
  e.preventDefault();
45
45
  value = newValue;
46
- valueDisplayed.target = newValue;
47
46
  };
47
+ $effect(() => (valueDisplayed.target = value));
48
48
 
49
49
  const range = $derived(max - min);
50
50
  const handle = $derived((valueDisplayed.current - min) / range);
@@ -23,6 +23,9 @@
23
23
  </svg>
24
24
 
25
25
  <style>
26
+ svg {
27
+ flex-shrink: 0;
28
+ }
26
29
  /* deprecated: eventually want to just do this for all icons */
27
30
  svg[data-badge] {
28
31
  overflow: visible;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m3-svelte",
3
- "version": "5.12.2",
3
+ "version": "5.12.3",
4
4
  "license": "Apache-2.0 OR GPL-3.0-only",
5
5
  "repository": "KTibow/m3-svelte",
6
6
  "author": {