m3-svelte 4.6.5 → 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.
@@ -88,7 +88,7 @@
88
88
  height: 100%;
89
89
  border: none;
90
90
  outline: none;
91
- padding: 1.375rem 1rem 0.625rem 1rem;
91
+ padding: 1.5rem 1rem 0.5rem 1rem;
92
92
  border-radius: var(--m3-textfield-filled-shape) var(--m3-textfield-filled-shape) 0 0;
93
93
  background-color: rgb(var(--m3-scheme-surface-container-highest));
94
94
  color: rgb(var(--m3-scheme-on-surface));
@@ -108,10 +108,10 @@
108
108
  color: rgb(var(--m3-scheme-on-surface) / 0.38);
109
109
  }
110
110
  &:is(input:focus ~ label, input:not(:placeholder-shown) ~ label) {
111
- top: 0.625rem;
111
+ top: 0.5rem;
112
112
  font-size: var(--m3-font-body-small-size, 0.75rem);
113
- line-height: var(--m3-font-body-small-height, 1);
114
- 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);
115
115
  }
116
116
  pointer-events: none;
117
117
  transition:
@@ -75,7 +75,7 @@
75
75
  height: 100%;
76
76
  border: none;
77
77
  outline: none;
78
- padding: 1.375rem 1rem 0.625rem 1rem;
78
+ padding: 1.5rem 1rem 0.5rem 1rem;
79
79
  border-radius: var(--m3-textfield-filled-shape) var(--m3-textfield-filled-shape) 0 0;
80
80
  background-color: rgb(var(--m3-scheme-surface-container-highest));
81
81
  color: rgb(var(--m3-scheme-on-surface));
@@ -98,8 +98,8 @@
98
98
  &:is(textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label) {
99
99
  top: 0.5rem;
100
100
  font-size: var(--m3-font-body-small-size, 0.75rem);
101
- line-height: var(--m3-font-body-small-height, 1);
102
- 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);
103
103
  }
104
104
  pointer-events: none;
105
105
  transition:
@@ -117,8 +117,8 @@
117
117
  &:is(input:focus ~ label, input:not(:placeholder-shown) ~ label) {
118
118
  top: calc(var(--m3-font-body-small-height, 1rem) * -0.5);
119
119
  font-size: var(--m3-font-body-small-size, 0.75rem);
120
- line-height: var(--m3-font-body-small-height, 1);
121
- 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);
122
122
  }
123
123
  pointer-events: none;
124
124
  transition:
@@ -106,8 +106,8 @@
106
106
  &:is(textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label) {
107
107
  top: calc(var(--m3-font-body-small-height, 1rem) * -0.5);
108
108
  font-size: var(--m3-font-body-small-size, 0.75rem);
109
- line-height: var(--m3-font-body-small-height, 1);
110
- 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);
111
111
  }
112
112
  pointer-events: none;
113
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.5",
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": {