@sveltia/ui 0.15.16 → 0.16.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/package/components/alert/alert.svelte.d.ts +37 -25
- package/package/components/button/button-group.svelte.d.ts +34 -24
- package/package/components/button/button.svelte.d.ts +118 -119
- package/package/components/button/select-button-group.svelte.d.ts +41 -31
- package/package/components/button/select-button.svelte.d.ts +65 -43
- package/package/components/button/split-button.svelte.d.ts +42 -41
- package/package/components/calendar/calendar.svelte.d.ts +24 -23
- package/package/components/checkbox/checkbox-group.svelte.d.ts +37 -27
- package/package/components/checkbox/checkbox.svelte.d.ts +54 -38
- package/package/components/dialog/alert-dialog.svelte.d.ts +44 -34
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +45 -35
- package/package/components/dialog/dialog.svelte.d.ts +83 -53
- package/package/components/dialog/prompt-dialog.svelte.d.ts +55 -43
- package/package/components/disclosure/disclosure.svelte.d.ts +61 -48
- package/package/components/divider/divider.svelte.d.ts +25 -24
- package/package/components/divider/spacer.svelte.d.ts +24 -23
- package/package/components/drawer/drawer.svelte.d.ts +75 -47
- package/package/components/grid/grid-body.svelte.d.ts +35 -25
- package/package/components/grid/grid-cell.svelte.d.ts +34 -24
- package/package/components/grid/grid-col-header.svelte.d.ts +34 -24
- package/package/components/grid/grid-foot.svelte.d.ts +34 -24
- package/package/components/grid/grid-head.svelte.d.ts +34 -24
- package/package/components/grid/grid-row-header.svelte.d.ts +34 -24
- package/package/components/grid/grid-row.svelte.d.ts +42 -32
- package/package/components/grid/grid.svelte.d.ts +39 -29
- package/package/components/icon/icon.svelte.d.ts +24 -23
- package/package/components/listbox/listbox.svelte.d.ts +45 -35
- package/package/components/listbox/option-group.svelte.d.ts +37 -27
- package/package/components/listbox/option.svelte.d.ts +73 -49
- package/package/components/menu/menu-button.svelte.d.ts +69 -42
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +44 -34
- package/package/components/menu/menu-item-group.svelte.d.ts +37 -27
- package/package/components/menu/menu-item-radio.svelte.d.ts +44 -34
- package/package/components/menu/menu-item.svelte.d.ts +70 -44
- package/package/components/menu/menu.svelte.d.ts +38 -28
- package/package/components/radio/radio-group.svelte.d.ts +42 -32
- package/package/components/radio/radio.svelte.d.ts +45 -35
- package/package/components/select/combobox.svelte.d.ts +53 -37
- package/package/components/select/select-tags.svelte.d.ts +38 -37
- package/package/components/select/select.svelte +1 -1
- package/package/components/select/select.svelte.d.ts +43 -33
- package/package/components/slider/slider.svelte.d.ts +37 -36
- package/package/components/switch/switch.svelte.d.ts +43 -33
- package/package/components/table/table-body.svelte.d.ts +35 -25
- package/package/components/table/table-cell.svelte.d.ts +34 -24
- package/package/components/table/table-col-header.svelte.d.ts +34 -24
- package/package/components/table/table-foot.svelte.d.ts +34 -24
- package/package/components/table/table-head.svelte.d.ts +34 -24
- package/package/components/table/table-row-header.svelte.d.ts +34 -24
- package/package/components/table/table-row.svelte.d.ts +34 -24
- package/package/components/table/table.svelte.d.ts +34 -24
- package/package/components/tabs/tab-box.svelte.d.ts +34 -24
- package/package/components/tabs/tab-list.svelte.d.ts +40 -30
- package/package/components/tabs/tab-panel.svelte.d.ts +34 -24
- package/package/components/tabs/tab-panels.svelte.d.ts +33 -23
- package/package/components/tabs/tab.svelte.d.ts +60 -38
- package/package/components/text-editor/lexical-root.svelte.d.ts +27 -26
- package/package/components/text-editor/text-editor.svelte.d.ts +31 -30
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +23 -22
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +22 -21
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +22 -21
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +22 -21
- package/package/components/text-field/number-input.svelte.d.ts +46 -45
- package/package/components/text-field/password-input.svelte.d.ts +40 -39
- package/package/components/text-field/search-bar.svelte.d.ts +62 -66
- package/package/components/text-field/text-area.svelte.d.ts +38 -37
- package/package/components/text-field/text-input.svelte +1 -1
- package/package/components/text-field/text-input.svelte.d.ts +73 -84
- package/package/components/toast/toast.svelte.d.ts +37 -27
- package/package/components/toolbar/toolbar.svelte.d.ts +38 -28
- package/package/components/util/app-shell.svelte.d.ts +37 -27
- package/package/components/util/group.svelte.d.ts +36 -26
- package/package/components/util/modal.svelte.d.ts +70 -63
- package/package/components/util/popup.svelte.d.ts +75 -65
- package/package/components/util/portal.svelte.d.ts +34 -24
- package/package.json +11 -11
|
@@ -1,12 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Toolbar;
|
|
2
|
+
type Toolbar = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
hidden?: boolean | undefined;
|
|
7
|
+
variant?: "primary" | "secondary" | undefined;
|
|
8
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
default: {};
|
|
11
|
+
}>, {
|
|
12
|
+
[evt: string]: CustomEvent<any>;
|
|
13
|
+
}, {
|
|
14
|
+
default: {};
|
|
15
|
+
}> & {
|
|
16
|
+
$$bindings?: string | undefined;
|
|
17
|
+
};
|
|
4
18
|
/**
|
|
5
19
|
* A toolbar layout that can contain `<Button>`, `<Select>` and other widgets.
|
|
6
20
|
* @see https://w3c.github.io/aria/#toolbar
|
|
7
21
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/toolbar/
|
|
8
22
|
*/
|
|
9
|
-
|
|
23
|
+
declare const Toolbar: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
10
24
|
[x: string]: any;
|
|
11
25
|
class?: string | undefined;
|
|
12
26
|
disabled?: boolean | undefined;
|
|
@@ -14,31 +28,27 @@ export default class Toolbar extends SvelteComponent<{
|
|
|
14
28
|
variant?: "primary" | "secondary" | undefined;
|
|
15
29
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
16
30
|
}, {
|
|
31
|
+
default: {};
|
|
32
|
+
}>, {
|
|
17
33
|
[evt: string]: CustomEvent<any>;
|
|
18
34
|
}, {
|
|
19
35
|
default: {};
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
}, {}, string>;
|
|
37
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
38
|
+
default: any;
|
|
39
|
+
} ? Props extends Record<string, never> ? any : {
|
|
40
|
+
children?: any;
|
|
41
|
+
} : {});
|
|
42
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
43
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
44
|
+
$$bindings?: Bindings;
|
|
45
|
+
} & Exports;
|
|
46
|
+
(internal: unknown, props: Props & {
|
|
47
|
+
$$events?: Events;
|
|
48
|
+
$$slots?: Slots;
|
|
49
|
+
}): Exports & {
|
|
50
|
+
$set?: any;
|
|
51
|
+
$on?: any;
|
|
34
52
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
};
|
|
38
|
-
slots: {
|
|
39
|
-
default: {};
|
|
40
|
-
};
|
|
41
|
-
exports?: undefined;
|
|
42
|
-
bindings?: undefined;
|
|
43
|
-
};
|
|
44
|
-
export {};
|
|
53
|
+
z_$$bindings?: Bindings;
|
|
54
|
+
}
|
|
@@ -1,42 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default AppShell;
|
|
2
|
+
type AppShell = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
default: {};
|
|
7
|
+
}>, {
|
|
8
|
+
dragover: DragEvent;
|
|
9
|
+
drop: DragEvent;
|
|
10
|
+
} & {
|
|
11
|
+
[evt: string]: CustomEvent<any>;
|
|
12
|
+
}, {
|
|
13
|
+
default: {};
|
|
14
|
+
}> & {
|
|
15
|
+
$$bindings?: string | undefined;
|
|
16
|
+
};
|
|
4
17
|
/**
|
|
5
18
|
* Provide an application’s shell that makes the web app more like a native app. It also handles the
|
|
6
19
|
* dark/light mode switching. This component has to be placed directly under `<body>` (or
|
|
7
20
|
* `<div style="display:contents">` in a SvelteKit app).
|
|
8
21
|
*/
|
|
9
|
-
|
|
22
|
+
declare const AppShell: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
10
23
|
[x: string]: any;
|
|
11
24
|
orientation?: "horizontal" | "vertical" | undefined;
|
|
12
25
|
}, {
|
|
26
|
+
default: {};
|
|
27
|
+
}>, {
|
|
13
28
|
dragover: DragEvent;
|
|
14
29
|
drop: DragEvent;
|
|
15
30
|
} & {
|
|
16
31
|
[evt: string]: CustomEvent<any>;
|
|
17
32
|
}, {
|
|
18
33
|
default: {};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
34
|
+
}, {}, string>;
|
|
35
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
36
|
+
default: any;
|
|
37
|
+
} ? Props extends Record<string, never> ? any : {
|
|
38
|
+
children?: any;
|
|
39
|
+
} : {});
|
|
40
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
41
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
42
|
+
$$bindings?: Bindings;
|
|
43
|
+
} & Exports;
|
|
44
|
+
(internal: unknown, props: Props & {
|
|
45
|
+
$$events?: Events;
|
|
46
|
+
$$slots?: Slots;
|
|
47
|
+
}): Exports & {
|
|
48
|
+
$set?: any;
|
|
49
|
+
$on?: any;
|
|
29
50
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
drop: DragEvent;
|
|
33
|
-
} & {
|
|
34
|
-
[evt: string]: CustomEvent<any>;
|
|
35
|
-
};
|
|
36
|
-
slots: {
|
|
37
|
-
default: {};
|
|
38
|
-
};
|
|
39
|
-
exports?: undefined;
|
|
40
|
-
bindings?: undefined;
|
|
41
|
-
};
|
|
42
|
-
export {};
|
|
51
|
+
z_$$bindings?: Bindings;
|
|
52
|
+
}
|
|
@@ -1,39 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Group;
|
|
2
|
+
type Group = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
disabled?: boolean | undefined;
|
|
6
|
+
hidden?: boolean | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
default: {};
|
|
9
|
+
}>, {
|
|
10
|
+
[evt: string]: CustomEvent<any>;
|
|
11
|
+
}, {
|
|
12
|
+
default: {};
|
|
13
|
+
}> & {
|
|
14
|
+
$$bindings?: string | undefined;
|
|
15
|
+
};
|
|
4
16
|
/**
|
|
5
17
|
* A generic group layout.
|
|
6
18
|
* @see https://w3c.github.io/aria/#group
|
|
7
19
|
*/
|
|
8
|
-
|
|
20
|
+
declare const Group: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
9
21
|
[x: string]: any;
|
|
10
22
|
class?: string | undefined;
|
|
11
23
|
disabled?: boolean | undefined;
|
|
12
24
|
hidden?: boolean | undefined;
|
|
13
25
|
}, {
|
|
26
|
+
default: {};
|
|
27
|
+
}>, {
|
|
14
28
|
[evt: string]: CustomEvent<any>;
|
|
15
29
|
}, {
|
|
16
30
|
default: {};
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
31
|
+
}, {}, string>;
|
|
32
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
33
|
+
default: any;
|
|
34
|
+
} ? Props extends Record<string, never> ? any : {
|
|
35
|
+
children?: any;
|
|
36
|
+
} : {});
|
|
37
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
38
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
39
|
+
$$bindings?: Bindings;
|
|
40
|
+
} & Exports;
|
|
41
|
+
(internal: unknown, props: Props & {
|
|
42
|
+
$$events?: Events;
|
|
43
|
+
$$slots?: Slots;
|
|
44
|
+
}): Exports & {
|
|
45
|
+
$set?: any;
|
|
46
|
+
$on?: any;
|
|
29
47
|
};
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
};
|
|
33
|
-
slots: {
|
|
34
|
-
default: {};
|
|
35
|
-
};
|
|
36
|
-
exports?: undefined;
|
|
37
|
-
bindings?: undefined;
|
|
38
|
-
};
|
|
39
|
-
export {};
|
|
48
|
+
z_$$bindings?: Bindings;
|
|
49
|
+
}
|
|
@@ -1,8 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Modal;
|
|
2
|
+
type Modal = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
close?: ((returnValue: string) => void) | undefined;
|
|
6
|
+
dialog?: HTMLDialogElement | undefined;
|
|
7
|
+
role?: "dialog" | "none" | "alertdialog" | undefined;
|
|
8
|
+
open?: boolean | undefined;
|
|
9
|
+
showBackdrop?: boolean | undefined;
|
|
10
|
+
lightDismiss?: boolean | undefined;
|
|
11
|
+
escapeDismiss?: boolean | undefined;
|
|
12
|
+
keepContent?: boolean | undefined;
|
|
13
|
+
}, {
|
|
14
|
+
'extra-content': {};
|
|
15
|
+
default: {};
|
|
16
|
+
}>, {
|
|
17
|
+
opening: CustomEvent<any>;
|
|
18
|
+
open: CustomEvent<any>;
|
|
19
|
+
closing: CustomEvent<any>;
|
|
20
|
+
close: CustomEvent<any>;
|
|
21
|
+
} & {
|
|
22
|
+
[evt: string]: CustomEvent<any>;
|
|
23
|
+
}, {
|
|
24
|
+
'extra-content': {};
|
|
25
|
+
default: {};
|
|
26
|
+
}> & {
|
|
27
|
+
$$bindings?: string | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
class: string;
|
|
30
|
+
role: "dialog" | "none" | "alertdialog";
|
|
31
|
+
open: boolean;
|
|
32
|
+
showBackdrop: boolean;
|
|
33
|
+
lightDismiss: boolean;
|
|
34
|
+
escapeDismiss: boolean;
|
|
35
|
+
keepContent: boolean;
|
|
36
|
+
dialog: HTMLDialogElement | undefined;
|
|
37
|
+
close: (returnValue: string) => void;
|
|
38
|
+
};
|
|
4
39
|
/** A generic modal top-layer helper based on the HTML `<dialog>` element. */
|
|
5
|
-
|
|
40
|
+
declare const Modal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
6
41
|
[x: string]: any;
|
|
7
42
|
class?: string | undefined;
|
|
8
43
|
close?: ((returnValue: string) => void) | undefined;
|
|
@@ -14,6 +49,9 @@ export default class Modal extends SvelteComponent<{
|
|
|
14
49
|
escapeDismiss?: boolean | undefined;
|
|
15
50
|
keepContent?: boolean | undefined;
|
|
16
51
|
}, {
|
|
52
|
+
'extra-content': {};
|
|
53
|
+
default: {};
|
|
54
|
+
}>, {
|
|
17
55
|
opening: CustomEvent<any>;
|
|
18
56
|
open: CustomEvent<any>;
|
|
19
57
|
closing: CustomEvent<any>;
|
|
@@ -23,63 +61,32 @@ export default class Modal extends SvelteComponent<{
|
|
|
23
61
|
}, {
|
|
24
62
|
'extra-content': {};
|
|
25
63
|
default: {};
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
export type ModalProps = typeof __propDef.props;
|
|
54
|
-
export type ModalEvents = typeof __propDef.events;
|
|
55
|
-
export type ModalSlots = typeof __propDef.slots;
|
|
56
|
-
import { SvelteComponent } from "svelte";
|
|
57
|
-
declare const __propDef: {
|
|
58
|
-
props: {
|
|
59
|
-
[x: string]: any;
|
|
60
|
-
class?: string | undefined;
|
|
61
|
-
close?: ((returnValue: string) => void) | undefined;
|
|
62
|
-
dialog?: HTMLDialogElement | undefined;
|
|
63
|
-
role?: "dialog" | "none" | "alertdialog" | undefined;
|
|
64
|
-
open?: boolean | undefined;
|
|
65
|
-
showBackdrop?: boolean | undefined;
|
|
66
|
-
lightDismiss?: boolean | undefined;
|
|
67
|
-
escapeDismiss?: boolean | undefined;
|
|
68
|
-
keepContent?: boolean | undefined;
|
|
69
|
-
};
|
|
70
|
-
events: {
|
|
71
|
-
opening: CustomEvent<any>;
|
|
72
|
-
open: CustomEvent<any>;
|
|
73
|
-
closing: CustomEvent<any>;
|
|
74
|
-
close: CustomEvent<any>;
|
|
75
|
-
} & {
|
|
76
|
-
[evt: string]: CustomEvent<any>;
|
|
77
|
-
};
|
|
78
|
-
slots: {
|
|
79
|
-
'extra-content': {};
|
|
80
|
-
default: {};
|
|
64
|
+
}, {
|
|
65
|
+
class: string;
|
|
66
|
+
role: "dialog" | "none" | "alertdialog";
|
|
67
|
+
open: boolean;
|
|
68
|
+
showBackdrop: boolean;
|
|
69
|
+
lightDismiss: boolean;
|
|
70
|
+
escapeDismiss: boolean;
|
|
71
|
+
keepContent: boolean;
|
|
72
|
+
dialog: HTMLDialogElement | undefined;
|
|
73
|
+
close: (returnValue: string) => void;
|
|
74
|
+
}, string>;
|
|
75
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
76
|
+
default: any;
|
|
77
|
+
} ? Props extends Record<string, never> ? any : {
|
|
78
|
+
children?: any;
|
|
79
|
+
} : {});
|
|
80
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
81
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
82
|
+
$$bindings?: Bindings;
|
|
83
|
+
} & Exports;
|
|
84
|
+
(internal: unknown, props: Props & {
|
|
85
|
+
$$events?: Events;
|
|
86
|
+
$$slots?: Slots;
|
|
87
|
+
}): Exports & {
|
|
88
|
+
$set?: any;
|
|
89
|
+
$on?: any;
|
|
81
90
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
export {};
|
|
91
|
+
z_$$bindings?: Bindings;
|
|
92
|
+
}
|
|
@@ -1,8 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Popup;
|
|
2
|
+
type Popup = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
anchor: HTMLElement | undefined;
|
|
5
|
+
class?: string | undefined;
|
|
6
|
+
position?: PopupPosition | undefined;
|
|
7
|
+
open?: Writable<boolean> | undefined;
|
|
8
|
+
showBackdrop?: boolean | undefined;
|
|
9
|
+
content?: HTMLElement | undefined;
|
|
10
|
+
positionBaseElement?: HTMLElement | undefined;
|
|
11
|
+
touchOptimized?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
'extra-content': {
|
|
14
|
+
slot: string;
|
|
15
|
+
};
|
|
16
|
+
default: {};
|
|
17
|
+
}>, {
|
|
18
|
+
opening: CustomEvent<any>;
|
|
19
|
+
open: CustomEvent<any>;
|
|
20
|
+
ok: CustomEvent<any>;
|
|
21
|
+
cancel: CustomEvent<any>;
|
|
22
|
+
closing: CustomEvent<any>;
|
|
23
|
+
close: CustomEvent<any>;
|
|
24
|
+
} & {
|
|
25
|
+
[evt: string]: CustomEvent<any>;
|
|
26
|
+
}, {
|
|
27
|
+
'extra-content': {
|
|
28
|
+
slot: string;
|
|
29
|
+
};
|
|
30
|
+
default: {};
|
|
31
|
+
}> & {
|
|
32
|
+
$$bindings?: string | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
class: string;
|
|
35
|
+
open: Writable<boolean>;
|
|
36
|
+
showBackdrop: boolean;
|
|
37
|
+
anchor: HTMLElement | undefined;
|
|
38
|
+
content: HTMLElement | undefined;
|
|
39
|
+
position: PopupPosition;
|
|
40
|
+
positionBaseElement: HTMLElement | undefined;
|
|
41
|
+
touchOptimized: boolean;
|
|
42
|
+
};
|
|
4
43
|
/** Generic popup helper. */
|
|
5
|
-
|
|
44
|
+
declare const Popup: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
6
45
|
[x: string]: any;
|
|
7
46
|
anchor: HTMLElement | undefined;
|
|
8
47
|
class?: string | undefined;
|
|
@@ -13,6 +52,11 @@ export default class Popup extends SvelteComponent<{
|
|
|
13
52
|
positionBaseElement?: HTMLElement | undefined;
|
|
14
53
|
touchOptimized?: boolean | undefined;
|
|
15
54
|
}, {
|
|
55
|
+
'extra-content': {
|
|
56
|
+
slot: string;
|
|
57
|
+
};
|
|
58
|
+
default: {};
|
|
59
|
+
}>, {
|
|
16
60
|
opening: CustomEvent<any>;
|
|
17
61
|
open: CustomEvent<any>;
|
|
18
62
|
ok: CustomEvent<any>;
|
|
@@ -26,65 +70,31 @@ export default class Popup extends SvelteComponent<{
|
|
|
26
70
|
slot: string;
|
|
27
71
|
};
|
|
28
72
|
default: {};
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
export type PopupProps = typeof __propDef.props;
|
|
56
|
-
export type PopupEvents = typeof __propDef.events;
|
|
57
|
-
export type PopupSlots = typeof __propDef.slots;
|
|
58
|
-
import { SvelteComponent } from "svelte";
|
|
59
|
-
declare const __propDef: {
|
|
60
|
-
props: {
|
|
61
|
-
[x: string]: any;
|
|
62
|
-
anchor: HTMLElement | undefined;
|
|
63
|
-
class?: string | undefined;
|
|
64
|
-
position?: import("../../typedefs").PopupPosition | undefined;
|
|
65
|
-
open?: import("svelte/store").Writable<boolean> | undefined;
|
|
66
|
-
showBackdrop?: boolean | undefined;
|
|
67
|
-
content?: HTMLElement | undefined;
|
|
68
|
-
positionBaseElement?: HTMLElement | undefined;
|
|
69
|
-
touchOptimized?: boolean | undefined;
|
|
70
|
-
};
|
|
71
|
-
events: {
|
|
72
|
-
opening: CustomEvent<any>;
|
|
73
|
-
open: CustomEvent<any>;
|
|
74
|
-
ok: CustomEvent<any>;
|
|
75
|
-
cancel: CustomEvent<any>;
|
|
76
|
-
closing: CustomEvent<any>;
|
|
77
|
-
close: CustomEvent<any>;
|
|
78
|
-
} & {
|
|
79
|
-
[evt: string]: CustomEvent<any>;
|
|
80
|
-
};
|
|
81
|
-
slots: {
|
|
82
|
-
'extra-content': {
|
|
83
|
-
slot: string;
|
|
84
|
-
};
|
|
85
|
-
default: {};
|
|
73
|
+
}, {
|
|
74
|
+
class: string;
|
|
75
|
+
open: import("svelte/store").Writable<boolean>;
|
|
76
|
+
showBackdrop: boolean;
|
|
77
|
+
anchor: HTMLElement | undefined;
|
|
78
|
+
content: HTMLElement | undefined;
|
|
79
|
+
position: import("../../typedefs").PopupPosition;
|
|
80
|
+
positionBaseElement: HTMLElement | undefined;
|
|
81
|
+
touchOptimized: boolean;
|
|
82
|
+
}, string>;
|
|
83
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
84
|
+
default: any;
|
|
85
|
+
} ? Props extends Record<string, never> ? any : {
|
|
86
|
+
children?: any;
|
|
87
|
+
} : {});
|
|
88
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
89
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
90
|
+
$$bindings?: Bindings;
|
|
91
|
+
} & Exports;
|
|
92
|
+
(internal: unknown, props: Props & {
|
|
93
|
+
$$events?: Events;
|
|
94
|
+
$$slots?: Slots;
|
|
95
|
+
}): Exports & {
|
|
96
|
+
$set?: any;
|
|
97
|
+
$on?: any;
|
|
86
98
|
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
};
|
|
90
|
-
export {};
|
|
99
|
+
z_$$bindings?: Bindings;
|
|
100
|
+
}
|
|
@@ -1,32 +1,42 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Portal;
|
|
2
|
+
type Portal = SvelteComponent<$$__sveltets_2_PropsWithChildren<{
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
class?: string | undefined;
|
|
5
|
+
}, {
|
|
6
|
+
default: {};
|
|
7
|
+
}>, {
|
|
8
|
+
[evt: string]: CustomEvent<any>;
|
|
9
|
+
}, {
|
|
10
|
+
default: {};
|
|
11
|
+
}> & {
|
|
12
|
+
$$bindings?: string | undefined;
|
|
13
|
+
};
|
|
4
14
|
/** @see https://github.com/sveltejs/svelte/issues/3088 */
|
|
5
|
-
|
|
15
|
+
declare const Portal: $$__sveltets_2_IsomorphicComponent<$$__sveltets_2_PropsWithChildren<{
|
|
6
16
|
[x: string]: any;
|
|
7
17
|
class?: string | undefined;
|
|
8
18
|
}, {
|
|
19
|
+
default: {};
|
|
20
|
+
}>, {
|
|
9
21
|
[evt: string]: CustomEvent<any>;
|
|
10
22
|
}, {
|
|
11
23
|
default: {};
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
}, {}, string>;
|
|
25
|
+
type $$__sveltets_2_PropsWithChildren<Props, Slots> = Props & (Slots extends {
|
|
26
|
+
default: any;
|
|
27
|
+
} ? Props extends Record<string, never> ? any : {
|
|
28
|
+
children?: any;
|
|
29
|
+
} : {});
|
|
30
|
+
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
31
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
32
|
+
$$bindings?: Bindings;
|
|
33
|
+
} & Exports;
|
|
34
|
+
(internal: unknown, props: Props & {
|
|
35
|
+
$$events?: Events;
|
|
36
|
+
$$slots?: Slots;
|
|
37
|
+
}): Exports & {
|
|
38
|
+
$set?: any;
|
|
39
|
+
$on?: any;
|
|
25
40
|
};
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
exports?: undefined;
|
|
30
|
-
bindings?: undefined;
|
|
31
|
-
};
|
|
32
|
-
export {};
|
|
41
|
+
z_$$bindings?: Bindings;
|
|
42
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -42,35 +42,35 @@
|
|
|
42
42
|
"lexical": "^0.17.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"svelte": "^
|
|
45
|
+
"svelte": "^5.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@playwright/test": "^1.
|
|
48
|
+
"@playwright/test": "^1.47.0",
|
|
49
49
|
"@sveltejs/adapter-auto": "^3.2.4",
|
|
50
|
-
"@sveltejs/kit": "^2.5.
|
|
50
|
+
"@sveltejs/kit": "^2.5.26",
|
|
51
51
|
"@sveltejs/package": "^2.3.4",
|
|
52
|
-
"@sveltejs/vite-plugin-svelte": "
|
|
52
|
+
"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
|
|
53
53
|
"cspell": "^8.14.2",
|
|
54
54
|
"eslint": "^8.57.0",
|
|
55
55
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
56
56
|
"eslint-config-prettier": "^9.1.0",
|
|
57
|
-
"eslint-plugin-import": "^2.
|
|
57
|
+
"eslint-plugin-import": "^2.30.0",
|
|
58
58
|
"eslint-plugin-jsdoc": "^50.2.2",
|
|
59
59
|
"eslint-plugin-svelte": "^2.43.0",
|
|
60
|
-
"postcss": "^8.4.
|
|
60
|
+
"postcss": "^8.4.45",
|
|
61
61
|
"postcss-html": "^1.7.0",
|
|
62
62
|
"prettier": "^3.3.3",
|
|
63
63
|
"prettier-plugin-svelte": "^3.2.6",
|
|
64
|
-
"sass": "^1.
|
|
64
|
+
"sass": "^1.78.0",
|
|
65
65
|
"stylelint": "^16.9.0",
|
|
66
66
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
67
67
|
"stylelint-scss": "^6.5.1",
|
|
68
|
-
"svelte": "
|
|
69
|
-
"svelte-check": "^4.0.
|
|
68
|
+
"svelte": "5.0.0-next.245",
|
|
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.3",
|
|
74
74
|
"vitest": "^2.0.5"
|
|
75
75
|
},
|
|
76
76
|
"exports": {
|