@iroco/ui 1.1.8 → 1.2.0
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/dist/Alert.svelte
CHANGED
|
@@ -3,17 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
interface Props {
|
|
5
5
|
type?: 'success' | 'danger' | 'flash';
|
|
6
|
+
showClose?: boolean;
|
|
6
7
|
callback?: (e: Event) => void;
|
|
7
8
|
children?: import('svelte').Snippet;
|
|
8
9
|
}
|
|
9
10
|
|
|
10
|
-
let { type = 'success', callback, children }: Props = $props();
|
|
11
|
+
let { type = 'success', showClose = true, callback, children }: Props = $props();
|
|
11
12
|
</script>
|
|
12
13
|
|
|
13
14
|
<div class={`alert alert--${type}`}>
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
15
|
+
{#if showClose}
|
|
16
|
+
<button onclick={callback} class="alert__close">
|
|
17
|
+
<IconClose width="2em" height="2em" />
|
|
18
|
+
</button>
|
|
19
|
+
{/if}
|
|
17
20
|
{@render children?.()}
|
|
18
21
|
</div>
|
|
19
22
|
|
package/dist/Alert.svelte.d.ts
CHANGED
package/dist/RadioButton.svelte
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
3
3
|
|
|
4
4
|
interface Props extends HTMLInputAttributes {
|
|
5
|
-
value?: string | null;
|
|
6
|
-
group?: string | null;
|
|
5
|
+
value?: string | number | null;
|
|
6
|
+
group?: string | number | null;
|
|
7
7
|
name?: string | null;
|
|
8
8
|
checked?: boolean;
|
|
9
9
|
children?: import('svelte').Snippet;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { HTMLInputAttributes } from 'svelte/elements';
|
|
2
2
|
interface Props extends HTMLInputAttributes {
|
|
3
|
-
value?: string | null;
|
|
4
|
-
group?: string | null;
|
|
3
|
+
value?: string | number | null;
|
|
4
|
+
group?: string | number | null;
|
|
5
5
|
name?: string | null;
|
|
6
6
|
checked?: boolean;
|
|
7
7
|
children?: import('svelte').Snippet;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iroco/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Iroco design system based on Svelte",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"svelte-check": "^4.1.3",
|
|
59
59
|
"tslib": "^2.8.1",
|
|
60
60
|
"typescript": "^5.7.3",
|
|
61
|
-
"vite": "^6.
|
|
62
|
-
"vitest": "^3.
|
|
61
|
+
"vite": "^6.3.4",
|
|
62
|
+
"vitest": "^3.1.3"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
65
|
"svelte": "5.x"
|