@kws3/ui 4.3.3 → 4.3.5

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,3 +1,9 @@
1
+ ## 4.3.5
2
+ - Fix Radio component value type
3
+
4
+ ## 4.3.4
5
+ - Make granular types of form maker generic
6
+
1
7
  ## 4.3.3
2
8
  - More granular types for form maker
3
9
 
@@ -2,7 +2,7 @@
2
2
  @component
3
3
 
4
4
 
5
- @param {object} [value=null] - Value of radio button, Default: `null`
5
+ @param {any} [value=null] - Value of radio button, Default: `null`
6
6
  @param {string} [style=""] - Inline CSS for the Radio button, Default: `""`
7
7
  @param {string} [label_style=""] - Inline CSS for Radio label, Default: `""`
8
8
  @param {SizeOptions} [size=] - Size of the Radio Button, Default: ``
@@ -46,6 +46,7 @@ See: https://svelte.dev/docs#bind_group, Default: `null`
46
46
  */
47
47
  /**
48
48
  * Value of radio button
49
+ * @type {any}
49
50
  */
50
51
  export let value = null,
51
52
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kws3/ui",
3
- "version": "4.3.3",
3
+ "version": "4.3.5",
4
4
  "description": "UI components for use with Svelte v3 applications.",
5
5
  "main": "index.js",
6
6
  "svelte": "index.js",
@@ -39,5 +39,5 @@
39
39
  "devDependencies": {
40
40
  "typescript": "^5.2.2"
41
41
  },
42
- "gitHead": "c243fb9e0463b160c24f39ad4a2a1bf9cf48a4ce"
42
+ "gitHead": "ad72273ec9e8d597a106b53c345e9499b4a9f2d1"
43
43
  }
package/types/index.d.ts CHANGED
@@ -133,13 +133,13 @@ export type ButtonTracker = {
133
133
 
134
134
  export type FormMakerValidators = { [key: string]: Function | Function[] };
135
135
 
136
- export type FormMakerReturnFormData = import("svelte/store").Writable<T>;
136
+ export type FormMakerReturnFormData<T> = import("svelte/store").Writable<T>;
137
137
 
138
- export type FormMakerReturnErrors = import("svelte/store").Readable<{
138
+ export type FormMakerReturnErrors<T> = import("svelte/store").Readable<{
139
139
  [K in keyof T]: string;
140
140
  }>;
141
141
 
142
- export type FormMakerReturnTouched = import("svelte/store").Readable<{
142
+ export type FormMakerReturnTouched<T> = import("svelte/store").Readable<{
143
143
  [K in keyof T]: boolean;
144
144
  }>;
145
145
 
@@ -155,9 +155,9 @@ export type FormMakerConfig<T = Record<string, any>> = {
155
155
  };
156
156
 
157
157
  export type FormMakerReturn<T> = {
158
- formData: FormMakerReturnFormData;
159
- errors: FormMakerReturnErrors;
160
- touched: FormMakerReturnTouched;
158
+ formData: FormMakerReturnFormData<T>;
159
+ errors: FormMakerReturnErrors<T>;
160
+ touched: FormMakerReturnTouched<T>;
161
161
  isValid: FormMakerReturnIsValid;
162
162
  isTouched: FormMakerReturnIsTouched;
163
163
  tracker: FormMakerReturnTracker;