@spaethtech/svelte-ui 0.18.1-dev.90.ca4ea8f → 0.18.1-dev.91.ef0fb72

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.
@@ -42,6 +42,7 @@
42
42
  bind:touched
43
43
  bind:element
44
44
  type={showPassword ? "text" : "password"}
45
+ autocomplete="new-password"
45
46
  iconClickable={true}
46
47
  onIconClick={toggleVisibility}
47
48
  {...restProps}
@@ -295,6 +295,9 @@ Thin wrappers over `Input`, each preconfigured with an MDI icon (rendered into I
295
295
 
296
296
  - **Location**: `src/lib/components/PasswordInput.svelte`
297
297
  - **Features**: built-in visibility toggle (eye / eye-off MDI icons)
298
+ - **`autocomplete`**: defaults to `"new-password"` (clears Chrome's "should have autocomplete"
299
+ advisory and stops unrelated saved-credential autofill). Overridable per usage — a login field
300
+ passes `autocomplete="current-password"` and it wins (spread after the default).
298
301
 
299
302
  ### EmailInput
300
303
 
package/docs/usage.md CHANGED
@@ -1038,7 +1038,9 @@ A likeness with a fallback chain (image → initials → icon → glyph). `Avata
1038
1038
  let quantity = $state(1);
1039
1039
  </script>
1040
1040
 
1041
+ <!-- autocomplete defaults to "new-password"; override for a login field: -->
1041
1042
  <PasswordInput bind:value={password} placeholder="Enter password" />
1043
+ <PasswordInput bind:value={password} autocomplete="current-password" placeholder="Password" />
1042
1044
  <EmailInput bind:value={email} required placeholder="user@example.com" />
1043
1045
  <SearchInput bind:value={search} placeholder="Search..." />
1044
1046
  <NumberInput bind:value={quantity} min={1} max={100} />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spaethtech/svelte-ui",
3
- "version": "0.18.1-dev.90.ca4ea8f",
3
+ "version": "0.18.1-dev.91.ef0fb72",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/spaethtech/svelte-ui.git"