@sveltia/ui 0.17.0 → 0.17.1
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/package/components/grid/grid.svelte +3 -1
- package/package/components/menu/menu.svelte +3 -1
- package/package/components/radio/radio-group.svelte +3 -1
- package/package/components/text-field/text-input.svelte +0 -2
- package/package/typedefs.d.ts +4 -4
- package/package/typedefs.js +1 -1
- package/package.json +4 -4
|
@@ -56,7 +56,9 @@
|
|
|
56
56
|
aria-required={required}
|
|
57
57
|
aria-invalid={invalid}
|
|
58
58
|
aria-orientation={orientation}
|
|
59
|
-
{
|
|
59
|
+
onChange={(/** @type {CustomEvent} */ event) => {
|
|
60
|
+
onChange?.(event);
|
|
61
|
+
}}
|
|
60
62
|
use:activateGroup
|
|
61
63
|
>
|
|
62
64
|
<div role="none" class="inner" inert={disabled}>
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
invalid = false,
|
|
31
31
|
'aria-label': ariaLabel,
|
|
32
32
|
children,
|
|
33
|
-
onChange,
|
|
34
33
|
...restProps
|
|
35
34
|
/* eslint-enable prefer-const */
|
|
36
35
|
} = $props();
|
|
@@ -62,7 +61,6 @@
|
|
|
62
61
|
aria-readonly={readonly}
|
|
63
62
|
aria-required={required}
|
|
64
63
|
aria-invalid={invalid}
|
|
65
|
-
{onChange}
|
|
66
64
|
use:activateKeyShortcuts={keyShortcuts}
|
|
67
65
|
/>
|
|
68
66
|
{#if ariaLabel && showInlineLabel}
|
package/package/typedefs.d.ts
CHANGED
|
@@ -455,10 +455,6 @@ export type TextInputProps = {
|
|
|
455
455
|
* - Primary slot content.
|
|
456
456
|
*/
|
|
457
457
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
458
|
-
/**
|
|
459
|
-
* - Custom `Change` event handler.
|
|
460
|
-
*/
|
|
461
|
-
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
462
458
|
};
|
|
463
459
|
export type KeyboardEventHandlers = {
|
|
464
460
|
/**
|
|
@@ -542,6 +538,10 @@ export type InputEventHandlers = {
|
|
|
542
538
|
* - `beforeinput` event handler.
|
|
543
539
|
*/
|
|
544
540
|
onbeforeinput?: ((event: Event) => void) | undefined;
|
|
541
|
+
/**
|
|
542
|
+
* - `change` event handler.
|
|
543
|
+
*/
|
|
544
|
+
onchange?: ((event: Event) => void) | undefined;
|
|
545
545
|
};
|
|
546
546
|
export type PopupPosition = ("top-left" | "top-right" | "right-top" | "right-bottom" | "bottom-left" | "bottom-right" | "left-top" | "left-bottom");
|
|
547
547
|
export type ToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right";
|
package/package/typedefs.js
CHANGED
|
@@ -154,7 +154,6 @@
|
|
|
154
154
|
* `aria-invalid` attribute.
|
|
155
155
|
* @property {string} [aria-label] - `aria-label` attribute.
|
|
156
156
|
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
157
|
-
* @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
|
|
158
157
|
*/
|
|
159
158
|
|
|
160
159
|
/**
|
|
@@ -198,6 +197,7 @@
|
|
|
198
197
|
* @typedef {object} InputEventHandlers
|
|
199
198
|
* @property {(event: Event) => void} [oninput] - `input` event handler.
|
|
200
199
|
* @property {(event: Event) => void} [onbeforeinput] - `beforeinput` event handler.
|
|
200
|
+
* @property {(event: Event) => void} [onchange] - `change` event handler.
|
|
201
201
|
*/
|
|
202
202
|
|
|
203
203
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"@sveltejs/package": "^2.3.5",
|
|
52
52
|
"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
|
|
53
53
|
"cspell": "^8.14.2",
|
|
54
|
-
"eslint": "^8.57.
|
|
54
|
+
"eslint": "^8.57.1",
|
|
55
55
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
56
56
|
"eslint-config-prettier": "^9.1.0",
|
|
57
57
|
"eslint-plugin-import": "^2.30.0",
|
|
@@ -65,12 +65,12 @@
|
|
|
65
65
|
"stylelint": "^16.9.0",
|
|
66
66
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
67
67
|
"stylelint-scss": "^6.6.0",
|
|
68
|
-
"svelte": "5.0.0-next.
|
|
68
|
+
"svelte": "5.0.0-next.247",
|
|
69
69
|
"svelte-check": "^4.0.2",
|
|
70
70
|
"svelte-i18n": "^4.0.0",
|
|
71
71
|
"svelte-preprocess": "^6.0.2",
|
|
72
72
|
"tslib": "^2.7.0",
|
|
73
|
-
"vite": "^5.4.
|
|
73
|
+
"vite": "^5.4.6",
|
|
74
74
|
"vitest": "^2.1.1"
|
|
75
75
|
},
|
|
76
76
|
"exports": {
|