@sveltia/ui 0.67.1 → 0.67.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.
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
* @property {'off' | 'polite' | 'assertive'} [ariaLive] ARIA live region politeness.
|
|
16
16
|
* @property {Snippet} [children] Primary slot content.
|
|
17
17
|
* @property {Snippet} [icon] Icon slot content.
|
|
18
|
+
* @property {() => void} [onDismiss] Callback invoked when the close button is clicked.
|
|
18
19
|
*/
|
|
19
20
|
|
|
20
21
|
/** @type {Props} */
|
|
@@ -26,6 +27,7 @@
|
|
|
26
27
|
ariaLive = 'polite',
|
|
27
28
|
children = undefined,
|
|
28
29
|
icon = undefined,
|
|
30
|
+
onDismiss,
|
|
29
31
|
/* eslint-enable prefer-const */
|
|
30
32
|
} = $props();
|
|
31
33
|
</script>
|
|
@@ -49,6 +51,7 @@
|
|
|
49
51
|
aria-label={_('_sui.dismiss')}
|
|
50
52
|
onclick={() => {
|
|
51
53
|
show = false;
|
|
54
|
+
onDismiss?.();
|
|
52
55
|
}}
|
|
53
56
|
>
|
|
54
57
|
<Icon name="close" />
|
|
@@ -28,6 +28,10 @@ declare const Infobar: import("svelte").Component<{
|
|
|
28
28
|
* Icon slot content.
|
|
29
29
|
*/
|
|
30
30
|
icon?: Snippet<[]> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Callback invoked when the close button is clicked.
|
|
33
|
+
*/
|
|
34
|
+
onDismiss?: (() => void) | undefined;
|
|
31
35
|
}, {}, "show">;
|
|
32
36
|
type Props = {
|
|
33
37
|
/**
|
|
@@ -54,5 +58,9 @@ type Props = {
|
|
|
54
58
|
* Icon slot content.
|
|
55
59
|
*/
|
|
56
60
|
icon?: Snippet<[]> | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Callback invoked when the close button is clicked.
|
|
63
|
+
*/
|
|
64
|
+
onDismiss?: (() => void) | undefined;
|
|
57
65
|
};
|
|
58
66
|
import type { Snippet } from 'svelte';
|
|
@@ -7,7 +7,7 @@ export const SHIKI_VERSION: "4.4.3";
|
|
|
7
7
|
/**
|
|
8
8
|
* Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
|
|
9
9
|
*/
|
|
10
|
-
export const UI_VERSION: "0.67.
|
|
10
|
+
export const UI_VERSION: "0.67.2";
|
|
11
11
|
/**
|
|
12
12
|
* Available syntax highlighting languages, sorted by display name.
|
|
13
13
|
* @type {{ id: string, name: string, aliases?: string[] }[]}
|
|
@@ -10,7 +10,7 @@ export const SHIKI_VERSION = "4.4.3";
|
|
|
10
10
|
/**
|
|
11
11
|
* Version of this package, used to resolve the prebuilt Shiki engine chunk from a CDN.
|
|
12
12
|
*/
|
|
13
|
-
export const UI_VERSION = "0.67.
|
|
13
|
+
export const UI_VERSION = "0.67.2";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Available syntax highlighting languages, sorted by display name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.67.
|
|
3
|
+
"version": "0.67.2",
|
|
4
4
|
"description": "A collection of Svelte components and utilities for building user interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -73,16 +73,16 @@
|
|
|
73
73
|
"prettier": "^3.9.6",
|
|
74
74
|
"prettier-plugin-svelte": "^4.1.1",
|
|
75
75
|
"rolldown": "^1.2.5",
|
|
76
|
-
"sass": "^1.103.
|
|
76
|
+
"sass": "^1.103.1",
|
|
77
77
|
"shiki": "^4.4.3",
|
|
78
78
|
"stylelint": "^17.14.1",
|
|
79
79
|
"stylelint-config-recommended-scss": "^17.0.1",
|
|
80
80
|
"stylelint-scss": "^7.2.0",
|
|
81
|
-
"svelte": "^5.56.
|
|
81
|
+
"svelte": "^5.56.10",
|
|
82
82
|
"svelte-check": "^4.7.6",
|
|
83
83
|
"svelte-preprocess": "^6.0.5",
|
|
84
84
|
"tslib": "^2.8.1",
|
|
85
|
-
"vite": "^8.2.
|
|
85
|
+
"vite": "^8.2.2",
|
|
86
86
|
"vitest": "^4.1.11"
|
|
87
87
|
},
|
|
88
88
|
"peerDependencies": {
|