@sveltia/ui 0.17.0 → 0.17.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.
- package/package/components/alert/alert.svelte.d.ts +2 -36
- package/package/components/button/button-group.svelte.d.ts +2 -32
- package/package/components/button/button.svelte.d.ts +1 -21
- package/package/components/button/select-button-group.svelte.d.ts +2 -60
- package/package/components/button/select-button.svelte.d.ts +2 -29
- package/package/components/button/split-button.svelte.d.ts +2 -41
- package/package/components/calendar/calendar.svelte.d.ts +2 -28
- package/package/components/checkbox/checkbox-group.svelte.d.ts +2 -46
- package/package/components/checkbox/checkbox.svelte.d.ts +2 -55
- package/package/components/dialog/alert-dialog.svelte.d.ts +1 -21
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +1 -21
- package/package/components/dialog/dialog.svelte +1 -1
- package/package/components/dialog/dialog.svelte.d.ts +1 -21
- package/package/components/dialog/prompt-dialog.svelte.d.ts +2 -40
- package/package/components/disclosure/disclosure.svelte.d.ts +2 -59
- package/package/components/divider/divider.svelte.d.ts +2 -38
- package/package/components/divider/spacer.svelte.d.ts +2 -32
- package/package/components/drawer/drawer.svelte +1 -1
- package/package/components/drawer/drawer.svelte.d.ts +2 -73
- package/package/components/grid/grid-body.svelte.d.ts +2 -36
- package/package/components/grid/grid-cell.svelte.d.ts +2 -32
- package/package/components/grid/grid-col-header.svelte.d.ts +2 -32
- package/package/components/grid/grid-foot.svelte.d.ts +2 -32
- package/package/components/grid/grid-head.svelte.d.ts +2 -32
- package/package/components/grid/grid-row-header.svelte.d.ts +2 -32
- package/package/components/grid/grid-row.svelte.d.ts +2 -45
- package/package/components/grid/grid.svelte +3 -1
- package/package/components/grid/grid.svelte.d.ts +2 -49
- package/package/components/icon/icon.svelte.d.ts +2 -32
- package/package/components/listbox/listbox.svelte.d.ts +2 -74
- package/package/components/listbox/option-group.svelte.d.ts +2 -46
- package/package/components/listbox/option.svelte.d.ts +2 -49
- package/package/components/menu/menu-button.svelte.d.ts +1 -30
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +1 -21
- package/package/components/menu/menu-item-group.svelte.d.ts +2 -42
- package/package/components/menu/menu-item-radio.svelte.d.ts +1 -21
- package/package/components/menu/menu-item.svelte.d.ts +1 -21
- package/package/components/menu/menu.svelte +3 -1
- package/package/components/menu/menu.svelte.d.ts +2 -46
- package/package/components/radio/radio-group.svelte +3 -1
- package/package/components/radio/radio-group.svelte.d.ts +2 -65
- package/package/components/radio/radio.svelte.d.ts +2 -70
- package/package/components/select/combobox.svelte.d.ts +1 -21
- package/package/components/select/select-tags.svelte.d.ts +2 -81
- package/package/components/select/select.svelte.d.ts +1 -21
- package/package/components/slider/slider.svelte.d.ts +2 -95
- package/package/components/switch/switch.svelte.d.ts +2 -64
- package/package/components/table/table-body.svelte.d.ts +2 -36
- package/package/components/table/table-cell.svelte.d.ts +2 -32
- package/package/components/table/table-col-header.svelte.d.ts +2 -32
- package/package/components/table/table-foot.svelte.d.ts +2 -32
- package/package/components/table/table-head.svelte.d.ts +2 -32
- package/package/components/table/table-row-header.svelte.d.ts +2 -32
- package/package/components/table/table-row.svelte.d.ts +2 -32
- package/package/components/table/table.svelte.d.ts +2 -32
- package/package/components/tabs/tab-box.svelte.d.ts +2 -37
- package/package/components/tabs/tab-list.svelte.d.ts +2 -54
- package/package/components/tabs/tab-panel.svelte.d.ts +2 -32
- package/package/components/tabs/tab-panels.svelte.d.ts +2 -32
- package/package/components/tabs/tab.svelte.d.ts +2 -29
- package/package/components/text-editor/lexical-root.svelte.d.ts +2 -60
- package/package/components/text-editor/text-editor.svelte.d.ts +2 -72
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +2 -38
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +2 -28
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +1 -21
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +2 -28
- package/package/components/text-field/number-input.svelte.d.ts +2 -45
- package/package/components/text-field/password-input.svelte.d.ts +2 -28
- package/package/components/text-field/search-bar.svelte.d.ts +1 -33
- package/package/components/text-field/text-area.svelte.d.ts +2 -73
- package/package/components/text-field/text-input.svelte +0 -2
- package/package/components/text-field/text-input.svelte.d.ts +1 -21
- package/package/components/toast/toast.svelte.d.ts +2 -46
- package/package/components/toolbar/toolbar.svelte.d.ts +2 -50
- package/package/components/util/app-shell.svelte.d.ts +2 -33
- package/package/components/util/group.svelte.d.ts +2 -41
- package/package/components/util/modal.svelte.d.ts +1 -23
- package/package/components/util/placeholder.svelte.d.ts +2 -28
- package/package/components/util/popup.svelte +1 -1
- package/package/components/util/popup.svelte.d.ts +3 -68
- package/package/typedefs.d.ts +4 -4
- package/package/typedefs.js +1 -1
- package/package.json +26 -26
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
export default Modal;
|
|
2
|
-
type Modal = SvelteComponent<ModalProps & Record<string, any>, {
|
|
3
|
-
[evt: string]: CustomEvent<any>;
|
|
4
|
-
}, {}> & {
|
|
5
|
-
$$bindings?: "dialog" | "open" | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
close: (returnValue: string) => void;
|
|
8
|
-
};
|
|
9
2
|
/** A generic modal top-layer helper based on the HTML `<dialog>` element. */
|
|
10
|
-
declare const Modal:
|
|
11
|
-
[evt: string]: CustomEvent<any>;
|
|
12
|
-
}, {}, {
|
|
3
|
+
declare const Modal: import("svelte").Component<import("../../typedefs").ModalProps & Record<string, any>, {
|
|
13
4
|
close: (returnValue: string) => void;
|
|
14
5
|
}, "dialog" | "open">;
|
|
15
|
-
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> {
|
|
16
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
17
|
-
$$bindings?: Bindings;
|
|
18
|
-
} & Exports;
|
|
19
|
-
(internal: unknown, props: Props & {
|
|
20
|
-
$$events?: Events;
|
|
21
|
-
$$slots?: Slots;
|
|
22
|
-
}): Exports & {
|
|
23
|
-
$set?: any;
|
|
24
|
-
$on?: any;
|
|
25
|
-
};
|
|
26
|
-
z_$$bindings?: Bindings;
|
|
27
|
-
}
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
export default Placeholder;
|
|
2
|
-
type Placeholder = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
-
[evt: string]: CustomEvent<any>;
|
|
4
|
-
}, {}> & {
|
|
5
|
-
$$bindings?: "" | undefined;
|
|
6
|
-
};
|
|
7
2
|
/** @see https://github.com/sveltejs/svelte/issues/3088 */
|
|
8
|
-
declare const Placeholder:
|
|
3
|
+
declare const Placeholder: import("svelte").Component<{
|
|
9
4
|
/**
|
|
10
5
|
* - Primary slot content.
|
|
11
6
|
*/
|
|
12
7
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
13
|
-
} & Record<string, any>, {
|
|
14
|
-
[evt: string]: CustomEvent<any>;
|
|
15
|
-
}, {}, {}, "">;
|
|
16
|
-
type Props = {
|
|
17
|
-
/**
|
|
18
|
-
* - Primary slot content.
|
|
19
|
-
*/
|
|
20
|
-
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
-
};
|
|
22
|
-
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> {
|
|
23
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
24
|
-
$$bindings?: Bindings;
|
|
25
|
-
} & Exports;
|
|
26
|
-
(internal: unknown, props: Props & {
|
|
27
|
-
$$events?: Events;
|
|
28
|
-
$$slots?: Slots;
|
|
29
|
-
}): Exports & {
|
|
30
|
-
$set?: any;
|
|
31
|
-
$on?: any;
|
|
32
|
-
};
|
|
33
|
-
z_$$bindings?: Bindings;
|
|
34
|
-
}
|
|
8
|
+
} & Record<string, any>, {}, "">;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @typedef {object} Props
|
|
14
14
|
* @property {string} [class] - The `class` attribute on the content element.
|
|
15
15
|
* @property {boolean} [open] - Whether to open the popup.
|
|
16
|
-
* @property {HTMLElement} anchor - A reference to the anchor element that opens the popup.
|
|
16
|
+
* @property {HTMLElement} [anchor] - A reference to the anchor element that opens the popup.
|
|
17
17
|
* Typically a `<button>`.
|
|
18
18
|
* @property {HTMLElement | undefined} [content] - A reference to the content element.
|
|
19
19
|
* @property {import('../../typedefs').PopupPosition} [position] - Where to show the popup.
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
export default Popup;
|
|
2
|
-
type Popup = SvelteComponent<ModalProps & Props & Record<string, any>, {
|
|
3
|
-
[evt: string]: CustomEvent<any>;
|
|
4
|
-
}, {}> & {
|
|
5
|
-
$$bindings?: "open" | "content" | undefined;
|
|
6
|
-
};
|
|
7
2
|
/** Generic popup helper. */
|
|
8
|
-
declare const Popup:
|
|
3
|
+
declare const Popup: import("svelte").Component<import("../../typedefs").ModalProps & {
|
|
9
4
|
/**
|
|
10
5
|
* - The `class` attribute on the content element.
|
|
11
6
|
*/
|
|
@@ -18,7 +13,7 @@ declare const Popup: $$__sveltets_2_IsomorphicComponent<import("../../typedefs")
|
|
|
18
13
|
* - A reference to the anchor element that opens the popup.
|
|
19
14
|
* Typically a `<button>`.
|
|
20
15
|
*/
|
|
21
|
-
anchor
|
|
16
|
+
anchor?: HTMLElement | undefined;
|
|
22
17
|
/**
|
|
23
18
|
* - A reference to the content element.
|
|
24
19
|
*/
|
|
@@ -49,64 +44,4 @@ declare const Popup: $$__sveltets_2_IsomorphicComponent<import("../../typedefs")
|
|
|
49
44
|
* - Custom `Open` event handler.
|
|
50
45
|
*/
|
|
51
46
|
onOpen?: ((event: CustomEvent) => void) | undefined;
|
|
52
|
-
} & Record<string, any>, {
|
|
53
|
-
[evt: string]: CustomEvent<any>;
|
|
54
|
-
}, {}, {}, "open" | "content">;
|
|
55
|
-
type Props = {
|
|
56
|
-
/**
|
|
57
|
-
* - The `class` attribute on the content element.
|
|
58
|
-
*/
|
|
59
|
-
class?: string | undefined;
|
|
60
|
-
/**
|
|
61
|
-
* - Whether to open the popup.
|
|
62
|
-
*/
|
|
63
|
-
open?: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* - A reference to the anchor element that opens the popup.
|
|
66
|
-
* Typically a `<button>`.
|
|
67
|
-
*/
|
|
68
|
-
anchor: HTMLElement;
|
|
69
|
-
/**
|
|
70
|
-
* - A reference to the content element.
|
|
71
|
-
*/
|
|
72
|
-
content?: HTMLElement | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* - Where to show the popup.
|
|
75
|
-
*/
|
|
76
|
-
position?: import("../../typedefs").PopupPosition | undefined;
|
|
77
|
-
/**
|
|
78
|
-
* - The base element of
|
|
79
|
-
* {@link position}. If omitted, this will be {@link anchor}.
|
|
80
|
-
*/
|
|
81
|
-
positionBaseElement?: HTMLElement | undefined;
|
|
82
|
-
/**
|
|
83
|
-
* - Whether to show the popup at the center of the screen on
|
|
84
|
-
* mobile/tablet and ignore the defined dropdown `position`.
|
|
85
|
-
*/
|
|
86
|
-
touchOptimized?: boolean | undefined;
|
|
87
|
-
/**
|
|
88
|
-
* - Primary slot content.
|
|
89
|
-
*/
|
|
90
|
-
children?: import("svelte").Snippet<[]> | undefined;
|
|
91
|
-
/**
|
|
92
|
-
* - Extra slot content.
|
|
93
|
-
*/
|
|
94
|
-
extraContent?: import("svelte").Snippet<[]> | undefined;
|
|
95
|
-
/**
|
|
96
|
-
* - Custom `Open` event handler.
|
|
97
|
-
*/
|
|
98
|
-
onOpen?: ((event: CustomEvent) => void) | undefined;
|
|
99
|
-
};
|
|
100
|
-
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> {
|
|
101
|
-
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
102
|
-
$$bindings?: Bindings;
|
|
103
|
-
} & Exports;
|
|
104
|
-
(internal: unknown, props: Props & {
|
|
105
|
-
$$events?: Events;
|
|
106
|
-
$$slots?: Slots;
|
|
107
|
-
}): Exports & {
|
|
108
|
-
$set?: any;
|
|
109
|
-
$on?: any;
|
|
110
|
-
};
|
|
111
|
-
z_$$bindings?: Bindings;
|
|
112
|
-
}
|
|
47
|
+
} & Record<string, any>, {}, "open" | "content">;
|
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.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -28,49 +28,49 @@
|
|
|
28
28
|
"test:unit": "vitest"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@lexical/code": "^0.
|
|
32
|
-
"@lexical/dragon": "^0.
|
|
33
|
-
"@lexical/history": "^0.
|
|
34
|
-
"@lexical/link": "^0.
|
|
35
|
-
"@lexical/list": "^0.
|
|
36
|
-
"@lexical/markdown": "^0.
|
|
37
|
-
"@lexical/rich-text": "^0.
|
|
38
|
-
"@lexical/selection": "^0.
|
|
39
|
-
"@lexical/table": "^0.
|
|
40
|
-
"@lexical/utils": "^0.
|
|
31
|
+
"@lexical/code": "^0.18.0",
|
|
32
|
+
"@lexical/dragon": "^0.18.0",
|
|
33
|
+
"@lexical/history": "^0.18.0",
|
|
34
|
+
"@lexical/link": "^0.18.0",
|
|
35
|
+
"@lexical/list": "^0.18.0",
|
|
36
|
+
"@lexical/markdown": "^0.18.0",
|
|
37
|
+
"@lexical/rich-text": "^0.18.0",
|
|
38
|
+
"@lexical/selection": "^0.18.0",
|
|
39
|
+
"@lexical/table": "^0.18.0",
|
|
40
|
+
"@lexical/utils": "^0.18.0",
|
|
41
41
|
"@sveltia/utils": "^0.5.0",
|
|
42
|
-
"lexical": "^0.
|
|
42
|
+
"lexical": "^0.18.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"svelte": "^5.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@playwright/test": "^1.47.
|
|
49
|
-
"@sveltejs/adapter-auto": "^3.2.
|
|
50
|
-
"@sveltejs/kit": "^2.
|
|
48
|
+
"@playwright/test": "^1.47.2",
|
|
49
|
+
"@sveltejs/adapter-auto": "^3.2.5",
|
|
50
|
+
"@sveltejs/kit": "^2.6.1",
|
|
51
51
|
"@sveltejs/package": "^2.3.5",
|
|
52
52
|
"@sveltejs/vite-plugin-svelte": "4.0.0-next.7",
|
|
53
|
-
"cspell": "^8.14.
|
|
54
|
-
"eslint": "^8.57.
|
|
53
|
+
"cspell": "^8.14.4",
|
|
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",
|
|
58
|
-
"eslint-plugin-jsdoc": "^50.
|
|
59
|
-
"eslint-plugin-svelte": "^2.44.
|
|
58
|
+
"eslint-plugin-jsdoc": "^50.3.0",
|
|
59
|
+
"eslint-plugin-svelte": "^2.44.1",
|
|
60
60
|
"postcss": "^8.4.47",
|
|
61
61
|
"postcss-html": "^1.7.0",
|
|
62
62
|
"prettier": "^3.3.3",
|
|
63
|
-
"prettier-plugin-svelte": "^3.2.
|
|
64
|
-
"sass": "^1.
|
|
63
|
+
"prettier-plugin-svelte": "^3.2.7",
|
|
64
|
+
"sass": "^1.79.4",
|
|
65
65
|
"stylelint": "^16.9.0",
|
|
66
66
|
"stylelint-config-recommended-scss": "^14.1.0",
|
|
67
|
-
"stylelint-scss": "^6.
|
|
68
|
-
"svelte": "5.0.0-next.
|
|
69
|
-
"svelte-check": "^4.0.
|
|
67
|
+
"stylelint-scss": "^6.7.0",
|
|
68
|
+
"svelte": "5.0.0-next.260",
|
|
69
|
+
"svelte-check": "^4.0.4",
|
|
70
70
|
"svelte-i18n": "^4.0.0",
|
|
71
|
-
"svelte-preprocess": "^6.0.
|
|
71
|
+
"svelte-preprocess": "^6.0.3",
|
|
72
72
|
"tslib": "^2.7.0",
|
|
73
|
-
"vite": "^5.4.
|
|
73
|
+
"vite": "^5.4.8",
|
|
74
74
|
"vitest": "^2.1.1"
|
|
75
75
|
},
|
|
76
76
|
"exports": {
|