m3-svelte 4.6.4 → 4.6.7

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.
@@ -54,7 +54,9 @@
54
54
  {disabled}
55
55
  {required}
56
56
  {...extra}
57
+ defaultValue={extra.defaultValue}
57
58
  />
59
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
58
60
  <label class="m3-font-body-large" for={id}>{label}</label>
59
61
  <div class="layer"></div>
60
62
  {#if leadingIcon}
@@ -108,8 +110,8 @@
108
110
  &:is(input:focus ~ label, input:not(:placeholder-shown) ~ label) {
109
111
  top: 0.5rem;
110
112
  font-size: var(--m3-font-body-small-size, 0.75rem);
111
- line-height: var(--m3-font-body-small-height, 1);
112
- letter-spacing: var(--m3-font-body-small-tracking, 0.4);
113
+ line-height: var(--m3-font-body-small-height, 1.333);
114
+ letter-spacing: var(--m3-font-body-small-tracking, 0.025rem);
113
115
  }
114
116
  pointer-events: none;
115
117
  transition:
@@ -47,7 +47,9 @@
47
47
  {disabled}
48
48
  {required}
49
49
  {...extra}
50
+ defaultValue={extra.defaultValue}
50
51
  ></textarea>
52
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
51
53
  <label class="m3-font-body-large" for={id}>{label}</label>
52
54
  <div class="layer"></div>
53
55
  {#if leadingIcon}
@@ -96,8 +98,8 @@
96
98
  &:is(textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label) {
97
99
  top: 0.5rem;
98
100
  font-size: var(--m3-font-body-small-size, 0.75rem);
99
- line-height: var(--m3-font-body-small-height, 1);
100
- letter-spacing: var(--m3-font-body-small-tracking, 0.4);
101
+ line-height: var(--m3-font-body-small-height, 1.333);
102
+ letter-spacing: var(--m3-font-body-small-tracking, 0.025rem);
101
103
  }
102
104
  pointer-events: none;
103
105
  transition:
@@ -54,7 +54,9 @@
54
54
  {disabled}
55
55
  {required}
56
56
  {...extra}
57
+ defaultValue={extra.defaultValue}
57
58
  />
59
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
58
60
  <div class="layer"></div>
59
61
  <label class="m3-font-body-large" for={id}>{label}</label>
60
62
  {#if leadingIcon}
@@ -115,8 +117,8 @@
115
117
  &:is(input:focus ~ label, input:not(:placeholder-shown) ~ label) {
116
118
  top: calc(var(--m3-font-body-small-height, 1rem) * -0.5);
117
119
  font-size: var(--m3-font-body-small-size, 0.75rem);
118
- line-height: var(--m3-font-body-small-height, 1);
119
- letter-spacing: var(--m3-font-body-small-tracking, 0.4);
120
+ line-height: var(--m3-font-body-small-height, 1.333);
121
+ letter-spacing: var(--m3-font-body-small-tracking, 0.025rem);
120
122
  }
121
123
  pointer-events: none;
122
124
  transition:
@@ -47,7 +47,9 @@
47
47
  {disabled}
48
48
  {required}
49
49
  {...extra}
50
+ defaultValue={extra.defaultValue}
50
51
  ></textarea>
52
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
51
53
  <div class="layer"></div>
52
54
  <label class="m3-font-body-large" for={id}>{label}</label>
53
55
  {#if leadingIcon}
@@ -104,8 +106,8 @@
104
106
  &:is(textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label) {
105
107
  top: calc(var(--m3-font-body-small-height, 1rem) * -0.5);
106
108
  font-size: var(--m3-font-body-small-size, 0.75rem);
107
- line-height: var(--m3-font-body-small-height, 1);
108
- letter-spacing: var(--m3-font-body-small-tracking, 0.4);
109
+ line-height: var(--m3-font-body-small-height, 1.333);
110
+ letter-spacing: var(--m3-font-body-small-tracking, 0.025rem);
109
111
  }
110
112
  pointer-events: none;
111
113
  transition:
@@ -67,7 +67,9 @@ opacity: ${Math.min(t * 3, 1)};`,
67
67
  {id}
68
68
  bind:value={date}
69
69
  {...extra}
70
+ defaultValue={extra.defaultValue}
70
71
  />
72
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
71
73
  <label class="m3-font-body-small" for={id}>{label}</label>
72
74
  <button type="button" {disabled} onclick={() => (picker = !picker)}>
73
75
  <Layer />
@@ -67,7 +67,9 @@ opacity: ${Math.min(t * 3, 1)};`,
67
67
  {id}
68
68
  bind:value={date}
69
69
  {...extra}
70
+ defaultValue={extra.defaultValue}
70
71
  />
72
+ <!-- TODO: once https://github.com/sveltejs/svelte/pull/16481 is finished, remove the defaultvalue thing -->
71
73
  <div class="layer"></div>
72
74
  <label class="m3-font-body-small" for={id}>{label}</label>
73
75
  <button type="button" {disabled} onclick={() => (picker = !picker)}>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "m3-svelte",
3
- "version": "4.6.4",
3
+ "version": "4.6.7",
4
4
  "license": "Apache-2.0 OR GPL-3.0-only",
5
5
  "repository": "KTibow/m3-svelte",
6
6
  "author": {