@kws3/ui 2.1.1 → 2.1.2

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.
package/CHANGELOG.mdx CHANGED
@@ -1,5 +1,9 @@
1
+ # 2.1.2
2
+ - `PasswordInput` - add support for field `name`
3
+ - `PasswordInput` - fix spacing when icons are turned off
4
+
1
5
  # 2.1.1
2
- - Package `text-mask-core` moved to @kws3 namespace and removed from dependencies.
6
+ - Package `text-mask-core` moved to @kws3 namespace.
3
7
 
4
8
  # 2.1.0
5
9
  - Bugfix with Colorpicker component, where colors could not be typed in manually.
@@ -27,6 +27,7 @@ This property can be bound to, to fetch the current value, Default: ``
27
27
  @param {string} [style=""] - Inline CSS for the PasswordInput, Default: `""`
28
28
  @param {boolean} [disabled=false] - Disables the PasswordInput, Default: `false`
29
29
  @param {string} [placeholder=""] - Input placeholder, Default: `""`
30
+ @param {string} [name="password"] - Input HTML name, Default: `"password"`
30
31
  @param {string} [class=""] - CSS classes of the PasswordInput, Default: `""`
31
32
 
32
33
  ### Events
@@ -41,8 +42,12 @@ This property can be bound to, to fetch the current value, Default: ``
41
42
  -->
42
43
 
43
44
  <div class="field is-marginless">
44
- <p class="control has-icons-left has-icons-right is-marginless">
45
+ <p
46
+ class="control is-marginless"
47
+ class:has-icons-left={show_field_icon}
48
+ class:has-icons-right={show_visibility_switch}>
45
49
  <input
50
+ {name}
46
51
  type="password"
47
52
  bind:this={PASSWORD_INPUT}
48
53
  {style}
@@ -198,6 +203,11 @@ This property can be bound to, to fetch the current value, Default: ``
198
203
  * @type {string}
199
204
  */
200
205
  export let placeholder = "";
206
+ /**
207
+ * Input HTML name
208
+ * @type {string}
209
+ */
210
+ export let name = "password";
201
211
 
202
212
  /**
203
213
  * CSS classes of the PasswordInput
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kws3/ui",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "typescript": "^5.0.4"
37
37
  },
38
- "gitHead": "e13405d2772906f133ca6e37f73f6222a636005f"
38
+ "gitHead": "6e176377097da881f3ee68c763f007020b35cb2a"
39
39
  }