noph-ui 0.6.11 → 0.6.13

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.
@@ -59,9 +59,7 @@
59
59
  })
60
60
  </script>
61
61
 
62
- <!-- svelte-ignore a11y_click_events_have_key_events -->
63
- <!-- svelte-ignore a11y_no_static_element_interactions -->
64
- <span
62
+ <label
65
63
  style={(variant === 'outlined'
66
64
  ? '--top-space:1rem;--bottom-space:1rem;--floating-label-top:-0.5rem;--floating-label-left:-2.25rem;--_focus-outline-width:3px;'
67
65
  : !label?.length
@@ -69,12 +67,6 @@
69
67
  : '') + style}
70
68
  class="text-field"
71
69
  bind:this={element}
72
- onclick={() => {
73
- if (attributes.disabled) {
74
- return
75
- }
76
- textElement?.focus()
77
- }}
78
70
  >
79
71
  <div
80
72
  class="field"
@@ -171,7 +163,7 @@
171
163
  </div>
172
164
  {/if}
173
165
  </div>
174
- </span>
166
+ </label>
175
167
 
176
168
  <style>
177
169
  .active-indicator {
@@ -213,7 +205,10 @@
213
205
  opacity: 0.38;
214
206
  }
215
207
  .background {
216
- background: var(--np-text-field-background-color, var(--np-color-surface-container-highest));
208
+ background: var(
209
+ --np-text-field-filled-background-color,
210
+ var(--np-color-surface-container-highest)
211
+ );
217
212
  }
218
213
  .disabled .background {
219
214
  background: var(--np-color-on-surface);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "noph-ui",
3
- "version": "0.6.11",
3
+ "version": "0.6.13",
4
4
  "license": "MIT",
5
5
  "homepage": "https://noph.dev",
6
6
  "repository": {