@sveltia/ui 0.19.2 → 0.20.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 +18 -0
- package/package/components/button/button-group.svelte.d.ts +14 -0
- package/package/components/button/button.svelte.d.ts +4 -0
- package/package/components/button/select-button-group.svelte.d.ts +42 -0
- package/package/components/button/select-button.svelte.d.ts +11 -0
- package/package/components/button/split-button.svelte.d.ts +23 -0
- package/package/components/calendar/calendar.svelte.d.ts +10 -0
- package/package/components/checkbox/checkbox-group.svelte.d.ts +28 -0
- package/package/components/checkbox/checkbox.svelte +1 -0
- package/package/components/checkbox/checkbox.svelte.d.ts +37 -0
- package/package/components/dialog/alert-dialog.svelte.d.ts +4 -0
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +4 -0
- package/package/components/dialog/dialog.svelte +8 -1
- package/package/components/dialog/dialog.svelte.d.ts +4 -0
- package/package/components/dialog/prompt-dialog.svelte.d.ts +22 -0
- package/package/components/disclosure/disclosure.svelte.d.ts +41 -0
- package/package/components/divider/divider.svelte.d.ts +20 -0
- package/package/components/divider/spacer.svelte.d.ts +14 -0
- package/package/components/drawer/drawer.svelte.d.ts +55 -0
- package/package/components/grid/grid-body.svelte.d.ts +18 -0
- package/package/components/grid/grid-cell.svelte.d.ts +14 -0
- package/package/components/grid/grid-col-header.svelte.d.ts +14 -0
- package/package/components/grid/grid-foot.svelte.d.ts +14 -0
- package/package/components/grid/grid-head.svelte.d.ts +14 -0
- package/package/components/grid/grid-row-header.svelte.d.ts +14 -0
- package/package/components/grid/grid-row.svelte.d.ts +27 -0
- package/package/components/grid/grid.svelte.d.ts +31 -0
- package/package/components/icon/icon.svelte.d.ts +14 -0
- package/package/components/listbox/listbox.svelte.d.ts +56 -0
- package/package/components/listbox/option-group.svelte.d.ts +28 -0
- package/package/components/listbox/option.svelte.d.ts +31 -0
- package/package/components/menu/menu-button.svelte.d.ts +13 -0
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +4 -0
- package/package/components/menu/menu-item-group.svelte.d.ts +24 -0
- package/package/components/menu/menu-item-radio.svelte.d.ts +4 -0
- package/package/components/menu/menu-item.svelte.d.ts +4 -0
- package/package/components/menu/menu.svelte.d.ts +28 -0
- package/package/components/progressbar/progressbar.svelte +54 -0
- package/package/components/progressbar/progressbar.svelte.d.ts +53 -0
- package/package/components/radio/radio-group.svelte.d.ts +47 -0
- package/package/components/radio/radio.svelte +1 -0
- package/package/components/radio/radio.svelte.d.ts +52 -0
- package/package/components/select/combobox.svelte.d.ts +4 -0
- package/package/components/select/select-tags.svelte.d.ts +63 -0
- package/package/components/select/select.svelte.d.ts +4 -0
- package/package/components/slider/slider.svelte.d.ts +77 -0
- package/package/components/switch/switch.svelte.d.ts +46 -0
- package/package/components/table/table-body.svelte.d.ts +18 -0
- package/package/components/table/table-cell.svelte.d.ts +14 -0
- package/package/components/table/table-col-header.svelte.d.ts +14 -0
- package/package/components/table/table-foot.svelte.d.ts +14 -0
- package/package/components/table/table-head.svelte.d.ts +14 -0
- package/package/components/table/table-row-header.svelte.d.ts +14 -0
- package/package/components/table/table-row.svelte.d.ts +14 -0
- package/package/components/table/table.svelte.d.ts +14 -0
- package/package/components/tabs/tab-box.svelte.d.ts +19 -0
- package/package/components/tabs/tab-list.svelte.d.ts +36 -0
- package/package/components/tabs/tab-panel.svelte.d.ts +14 -0
- package/package/components/tabs/tab-panels.svelte.d.ts +14 -0
- package/package/components/tabs/tab.svelte.d.ts +11 -0
- package/package/components/text-editor/core.js +4 -1
- package/package/components/text-editor/lexical-root.svelte.d.ts +42 -0
- package/package/components/text-editor/text-editor.svelte.d.ts +54 -0
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +20 -0
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +10 -0
- package/package/components/text-editor/toolbar/insert-link-button.svelte +43 -33
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +4 -0
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +10 -0
- package/package/components/text-field/number-input.svelte.d.ts +27 -0
- package/package/components/text-field/password-input.svelte.d.ts +10 -0
- package/package/components/text-field/search-bar.svelte.d.ts +16 -0
- package/package/components/text-field/text-area.svelte.d.ts +55 -0
- package/package/components/text-field/text-input.svelte.d.ts +4 -0
- package/package/components/toast/toast.svelte.d.ts +28 -0
- package/package/components/toolbar/toolbar.svelte.d.ts +32 -0
- package/package/components/util/app-shell.svelte.d.ts +15 -0
- package/package/components/util/group.svelte.d.ts +23 -0
- package/package/components/util/modal.svelte.d.ts +6 -0
- package/package/components/util/placeholder.svelte.d.ts +10 -0
- package/package/components/util/popup.svelte.d.ts +49 -0
- package/package/index.d.ts +1 -0
- package/package/index.js +1 -0
- package/package.json +25 -25
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Alert;
|
|
2
|
+
type Alert = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* Inline alert message.
|
|
4
8
|
* @see https://w3c.github.io/aria/#alert
|
|
@@ -18,3 +22,17 @@ declare const Alert: import("svelte").Component<{
|
|
|
18
22
|
*/
|
|
19
23
|
icon?: import("svelte").Snippet<[]> | undefined;
|
|
20
24
|
} & Record<string, any>, {}, "">;
|
|
25
|
+
type Props = {
|
|
26
|
+
/**
|
|
27
|
+
* - Alert status.
|
|
28
|
+
*/
|
|
29
|
+
status: "error" | "warning" | "info" | "success";
|
|
30
|
+
/**
|
|
31
|
+
* - Primary slot content.
|
|
32
|
+
*/
|
|
33
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* - Icon slot content.
|
|
36
|
+
*/
|
|
37
|
+
icon?: import("svelte").Snippet<[]> | undefined;
|
|
38
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default ButtonGroup;
|
|
2
|
+
type ButtonGroup = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
declare const ButtonGroup: import("svelte").Component<{
|
|
3
7
|
/**
|
|
4
8
|
* - The `class` attribute on the wrapper element.
|
|
@@ -9,3 +13,13 @@ declare const ButtonGroup: import("svelte").Component<{
|
|
|
9
13
|
*/
|
|
10
14
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
11
15
|
} & Record<string, any>, {}, "">;
|
|
16
|
+
type Props = {
|
|
17
|
+
/**
|
|
18
|
+
* - The `class` attribute on the wrapper element.
|
|
19
|
+
*/
|
|
20
|
+
class?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* - Primary slot content.
|
|
23
|
+
*/
|
|
24
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
25
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Button;
|
|
2
|
+
type Button = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ButtonProps & KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A generic button widget based on the HTML `<button>` element.
|
|
4
8
|
* @see https://w3c.github.io/aria/#button
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default SelectButtonGroup;
|
|
2
|
+
type SelectButtonGroup = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A variant of `<RadioGroup>`, looking like normal buttons.
|
|
4
8
|
* @see https://w3c.github.io/aria/#radiogroup
|
|
@@ -42,3 +46,41 @@ declare const SelectButtonGroup: import("svelte").Component<{
|
|
|
42
46
|
*/
|
|
43
47
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
44
48
|
} & Record<string, any>, {}, "">;
|
|
49
|
+
type Props = {
|
|
50
|
+
/**
|
|
51
|
+
* - The `class` attribute on the wrapper element.
|
|
52
|
+
*/
|
|
53
|
+
class?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* - Whether to hide the widget.
|
|
56
|
+
*/
|
|
57
|
+
hidden?: boolean | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
60
|
+
* attribute.
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* - Whether to make the widget read-only. An alias of the
|
|
65
|
+
* `aria-readonly` attribute.
|
|
66
|
+
*/
|
|
67
|
+
readonly?: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* - Whether to mark the widget required. An alias of the
|
|
70
|
+
* `aria-required` attribute.
|
|
71
|
+
*/
|
|
72
|
+
required?: boolean | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
75
|
+
* `aria-invalid` attribute.
|
|
76
|
+
*/
|
|
77
|
+
invalid?: boolean | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* - Primary slot content.
|
|
80
|
+
*/
|
|
81
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* - Custom `Change` event handler.
|
|
84
|
+
*/
|
|
85
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
86
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default SelectButton;
|
|
2
|
+
type SelectButton = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ButtonProps & KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers & Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A variant of `<Radio>`, looking like a normal button.
|
|
4
8
|
* @see https://w3c.github.io/aria/#radio
|
|
@@ -11,3 +15,10 @@ declare const SelectButton: import("svelte").Component<import("../../typedefs").
|
|
|
11
15
|
*/
|
|
12
16
|
selected?: boolean | undefined;
|
|
13
17
|
} & Record<string, any>, {}, "selected">;
|
|
18
|
+
type Props = {
|
|
19
|
+
/**
|
|
20
|
+
* - Whether to select the widget. An alias of the `aria-checked`
|
|
21
|
+
* attribute. Because the UI is a button, we expose `selected` instead of `checked`.
|
|
22
|
+
*/
|
|
23
|
+
selected?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default SplitButton;
|
|
2
|
+
type SplitButton = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ButtonProps & KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers & Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A combination of a normal `<Button>` (default action) and an arrow-only `<MenuButton>` (different
|
|
4
8
|
* actions). For example, Microsoft Word has the Paste button along with the Keep Source Formatting,
|
|
@@ -24,3 +28,22 @@ declare const SplitButton: import("svelte").Component<import("../../typedefs").B
|
|
|
24
28
|
*/
|
|
25
29
|
popup?: import("svelte").Snippet<[]> | undefined;
|
|
26
30
|
} & Record<string, any>, {}, "">;
|
|
31
|
+
type Props = {
|
|
32
|
+
/**
|
|
33
|
+
* - Where to show the dropdown
|
|
34
|
+
* menu.
|
|
35
|
+
*/
|
|
36
|
+
popupPosition?: import("../../typedefs").PopupPosition | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* - Whether to show the backdrop for the popup.
|
|
39
|
+
*/
|
|
40
|
+
showPopupBackdrop?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* - Chevron slot content.
|
|
43
|
+
*/
|
|
44
|
+
chevronIcon?: import("svelte").Snippet<[]> | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* - Popup slot content.
|
|
47
|
+
*/
|
|
48
|
+
popup?: import("svelte").Snippet<[]> | undefined;
|
|
49
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Calendar;
|
|
2
|
+
type Calendar = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/** A calendar (date picker) widget. */
|
|
3
7
|
declare const Calendar: import("svelte").Component<{
|
|
4
8
|
/**
|
|
@@ -6,3 +10,9 @@ declare const Calendar: import("svelte").Component<{
|
|
|
6
10
|
*/
|
|
7
11
|
value?: string | undefined;
|
|
8
12
|
} & Record<string, any>, {}, "value">;
|
|
13
|
+
type Props = {
|
|
14
|
+
/**
|
|
15
|
+
* - Date.
|
|
16
|
+
*/
|
|
17
|
+
value?: string | undefined;
|
|
18
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default CheckboxGroup;
|
|
2
|
+
type CheckboxGroup = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/** The layout container of `<Checkbox>`es. */
|
|
3
7
|
declare const CheckboxGroup: import("svelte").Component<{
|
|
4
8
|
/**
|
|
@@ -24,3 +28,27 @@ declare const CheckboxGroup: import("svelte").Component<{
|
|
|
24
28
|
*/
|
|
25
29
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
26
30
|
} & Record<string, any>, {}, "">;
|
|
31
|
+
type Props = {
|
|
32
|
+
/**
|
|
33
|
+
* - The `class` attribute on the wrapper element.
|
|
34
|
+
*/
|
|
35
|
+
class?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* - Whether to hide the widget. An alias of the `aria-hidden`
|
|
38
|
+
* attribute.
|
|
39
|
+
*/
|
|
40
|
+
hidden?: boolean | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
43
|
+
* attribute.
|
|
44
|
+
*/
|
|
45
|
+
disabled?: boolean | undefined;
|
|
46
|
+
/**
|
|
47
|
+
* - Orientation of the widget.
|
|
48
|
+
*/
|
|
49
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* - Primary slot content.
|
|
52
|
+
*/
|
|
53
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
54
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Checkbox;
|
|
2
|
+
type Checkbox = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ButtonProps & KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers & Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<input type="checkbox">` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox
|
|
@@ -38,3 +42,36 @@ declare const Checkbox: import("svelte").Component<import("../../typedefs").Butt
|
|
|
38
42
|
*/
|
|
39
43
|
checkIcon?: import("svelte").Snippet<[]> | undefined;
|
|
40
44
|
} & Record<string, any>, {}, "checked">;
|
|
45
|
+
type Props = {
|
|
46
|
+
/**
|
|
47
|
+
* - The `class` attribute on the wrapper element.
|
|
48
|
+
*/
|
|
49
|
+
class?: string | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* - Whether to mark the widget required. An alias of the
|
|
52
|
+
* `aria-required` attribute.
|
|
53
|
+
*/
|
|
54
|
+
required?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
57
|
+
* `aria-invalid` attribute.
|
|
58
|
+
*/
|
|
59
|
+
invalid?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* - Whether to check the widget. An alias of the
|
|
62
|
+
* `aria-checked` attribute.
|
|
63
|
+
*/
|
|
64
|
+
checked?: boolean | "mixed" | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* - Text label displayed next to the checkbox.
|
|
67
|
+
*/
|
|
68
|
+
label?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* - `aria-label` attribute.
|
|
71
|
+
*/
|
|
72
|
+
"aria-label"?: string | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* - Check icon slot content.
|
|
75
|
+
*/
|
|
76
|
+
checkIcon?: import("svelte").Snippet<[]> | undefined;
|
|
77
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default AlertDialog;
|
|
2
|
+
type AlertDialog = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ModalProps & DialogProps & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A modal alert dialog. It only shows the OK button, just like `window.alert()`.
|
|
4
8
|
* @see https://w3c.github.io/aria/#alertdialog
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default ConfirmationDialog;
|
|
2
|
+
type ConfirmationDialog = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ModalProps & DialogProps & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A modal confirmation dialog. It shows the OK and Cancel buttons, just like `window.confirm()`.
|
|
4
8
|
* @see https://w3c.github.io/aria/#alertdialog
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
8
|
import { generateElementId } from '@sveltia/utils/element';
|
|
9
|
+
import { sleep } from '@sveltia/utils/misc';
|
|
9
10
|
import { _ } from 'svelte-i18n';
|
|
10
11
|
import Button from '../button/button.svelte';
|
|
11
12
|
import Spacer from '../divider/spacer.svelte';
|
|
@@ -59,7 +60,13 @@
|
|
|
59
60
|
|
|
60
61
|
$effect(() => {
|
|
61
62
|
if (open && content) {
|
|
62
|
-
|
|
63
|
+
(async () => {
|
|
64
|
+
await sleep(50);
|
|
65
|
+
/** @type {HTMLInputElement | HTMLButtonElement} */ (
|
|
66
|
+
content.querySelector('input, button.primary')
|
|
67
|
+
)?.focus();
|
|
68
|
+
/** @type {HTMLInputElement} */ (content.querySelector('input'))?.select();
|
|
69
|
+
})();
|
|
63
70
|
}
|
|
64
71
|
});
|
|
65
72
|
</script>
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Dialog;
|
|
2
|
+
type Dialog = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ModalProps & DialogProps & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A feedback dialog widget based on the HTML `<dialog>` element.
|
|
4
8
|
* @see https://w3c.github.io/aria/#dialog
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default PromptDialog;
|
|
2
|
+
type PromptDialog = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ModalProps & DialogProps & KeyboardEventHandlers & MouseEventHandlers & FocusEventHandlers & DragEventHandlers & InputEventHandlers & Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A modal prompt dialog. It shows the OK and Cancel buttons as well as a textbox, just like
|
|
4
8
|
* `window.prompt()`.
|
|
@@ -24,3 +28,21 @@ declare const PromptDialog: import("svelte").Component<import("../../typedefs").
|
|
|
24
28
|
*/
|
|
25
29
|
input?: import("svelte").Snippet<[]> | undefined;
|
|
26
30
|
} & Record<string, any>, {}, "value" | "open">;
|
|
31
|
+
type Props = {
|
|
32
|
+
/**
|
|
33
|
+
* - Value entered on the textbox.
|
|
34
|
+
*/
|
|
35
|
+
value?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* - Extra attributes for the `<TextInput>`.
|
|
38
|
+
*/
|
|
39
|
+
textboxAttrs?: object | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* - Primary slot content.
|
|
42
|
+
*/
|
|
43
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* - Input slot content.
|
|
46
|
+
*/
|
|
47
|
+
input?: import("svelte").Snippet<[]> | undefined;
|
|
48
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Disclosure;
|
|
2
|
+
type Disclosure = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A disclosure (expander) widget. The equivalent of the HTML `<details>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
|
|
@@ -41,3 +45,40 @@ declare const Disclosure: import("svelte").Component<{
|
|
|
41
45
|
*/
|
|
42
46
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
43
47
|
} & Record<string, any>, {}, "expanded">;
|
|
48
|
+
type Props = {
|
|
49
|
+
/**
|
|
50
|
+
* - The `class` attribute on the wrapper element.
|
|
51
|
+
*/
|
|
52
|
+
class?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* - Whether to hide the widget. An alias of the `aria-hidden`
|
|
55
|
+
* attribute.
|
|
56
|
+
*/
|
|
57
|
+
hidden?: boolean | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
60
|
+
* attribute.
|
|
61
|
+
*/
|
|
62
|
+
disabled?: boolean | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* - Whether to show the content. An alias of the `aria-expanded`
|
|
65
|
+
* attribute.
|
|
66
|
+
*/
|
|
67
|
+
expanded?: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* - Text label displayed next to the expander.
|
|
70
|
+
*/
|
|
71
|
+
label?: string | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* - Primary slot content.
|
|
74
|
+
*/
|
|
75
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* - Chevron slot content.
|
|
78
|
+
*/
|
|
79
|
+
chevronIcon?: import("svelte").Snippet<[]> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* - Custom `Change` event handler.
|
|
82
|
+
*/
|
|
83
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
84
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Divider;
|
|
2
|
+
type Divider = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A content divider with a visible vertical/horizontal line.
|
|
4
8
|
* @see https://w3c.github.io/aria/#separator
|
|
@@ -19,3 +23,19 @@ declare const Divider: import("svelte").Component<{
|
|
|
19
23
|
*/
|
|
20
24
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
21
25
|
} & Record<string, any>, {}, "">;
|
|
26
|
+
type Props = {
|
|
27
|
+
/**
|
|
28
|
+
* - The `class` attribute on the wrapper element.
|
|
29
|
+
*/
|
|
30
|
+
class?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* - Whether to hide the widget. An alias of the `aria-hidden`
|
|
33
|
+
* attribute.
|
|
34
|
+
*/
|
|
35
|
+
hidden?: boolean | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* - Orientation of the widget. An alias of the
|
|
38
|
+
* `aria-orientation` attribute.
|
|
39
|
+
*/
|
|
40
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
41
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Spacer;
|
|
2
|
+
type Spacer = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/** A content divider with no line. It can be flexible. */
|
|
3
7
|
declare const Spacer: import("svelte").Component<{
|
|
4
8
|
/**
|
|
@@ -10,3 +14,13 @@ declare const Spacer: import("svelte").Component<{
|
|
|
10
14
|
*/
|
|
11
15
|
flex?: boolean | undefined;
|
|
12
16
|
} & Record<string, any>, {}, "">;
|
|
17
|
+
type Props = {
|
|
18
|
+
/**
|
|
19
|
+
* - The `class` attribute on the wrapper element.
|
|
20
|
+
*/
|
|
21
|
+
class?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* - Whether to make the spacer flexible.
|
|
24
|
+
*/
|
|
25
|
+
flex?: boolean | undefined;
|
|
26
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Drawer;
|
|
2
|
+
type Drawer = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ModalProps & Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A generic drawer widget based on the HTML `<dialog>` element.
|
|
4
8
|
* @see https://w3c.github.io/aria/#dialog
|
|
@@ -55,3 +59,54 @@ declare const Drawer: import("svelte").Component<import("../../typedefs").ModalP
|
|
|
55
59
|
*/
|
|
56
60
|
extraContent?: import("svelte").Snippet<[]> | undefined;
|
|
57
61
|
} & Record<string, any>, {}, "open">;
|
|
62
|
+
type Props = {
|
|
63
|
+
/**
|
|
64
|
+
* - The `class` attribute on the content element.
|
|
65
|
+
*/
|
|
66
|
+
class?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* - Whether to open the drawer.
|
|
69
|
+
*/
|
|
70
|
+
open?: boolean | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* - Title text displayed on the header.
|
|
73
|
+
*/
|
|
74
|
+
title?: string | undefined;
|
|
75
|
+
/**
|
|
76
|
+
* - Position of the drawer.
|
|
77
|
+
*/
|
|
78
|
+
position?: "top" | "left" | "right" | "bottom" | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* - Width or height of the
|
|
81
|
+
* drawer.
|
|
82
|
+
*/
|
|
83
|
+
size?: "small" | "medium" | "large" | "x-large" | "full" | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* - Whether to show the Close button.
|
|
86
|
+
*/
|
|
87
|
+
showClose?: false | "inside" | "outside" | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* - Primary slot content.
|
|
90
|
+
*/
|
|
91
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* - Header slot content.
|
|
94
|
+
*/
|
|
95
|
+
header?: import("svelte").Snippet<[]> | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* - Header extra slot content.
|
|
98
|
+
*/
|
|
99
|
+
headerExtra?: import("svelte").Snippet<[]> | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* - Footer slot content.
|
|
102
|
+
*/
|
|
103
|
+
footer?: import("svelte").Snippet<[]> | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* - Close icon slot content.
|
|
106
|
+
*/
|
|
107
|
+
closeIcon?: import("svelte").Snippet<[]> | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* - Extra content slot content.
|
|
110
|
+
*/
|
|
111
|
+
extraContent?: import("svelte").Snippet<[]> | undefined;
|
|
112
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridBody;
|
|
2
|
+
type GridBody = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableBody>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody
|
|
@@ -18,3 +22,17 @@ declare const GridBody: import("svelte").Component<{
|
|
|
18
22
|
*/
|
|
19
23
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
20
24
|
} & Record<string, any>, {}, "">;
|
|
25
|
+
type Props = {
|
|
26
|
+
/**
|
|
27
|
+
* - The `class` attribute on the wrapper element.
|
|
28
|
+
*/
|
|
29
|
+
class?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* - Display label for the row group.
|
|
32
|
+
*/
|
|
33
|
+
label?: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* - Primary slot content.
|
|
36
|
+
*/
|
|
37
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
38
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridCell;
|
|
2
|
+
type GridCell = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableCell>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td
|
|
@@ -14,3 +18,13 @@ declare const GridCell: import("svelte").Component<{
|
|
|
14
18
|
*/
|
|
15
19
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
16
20
|
} & Record<string, any>, {}, "">;
|
|
21
|
+
type Props = {
|
|
22
|
+
/**
|
|
23
|
+
* - The `class` attribute on the wrapper element.
|
|
24
|
+
*/
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Primary slot content.
|
|
28
|
+
*/
|
|
29
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
30
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridColHeader;
|
|
2
|
+
type GridColHeader = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableColHeader>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
@@ -14,3 +18,13 @@ declare const GridColHeader: import("svelte").Component<{
|
|
|
14
18
|
*/
|
|
15
19
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
16
20
|
} & Record<string, any>, {}, "">;
|
|
21
|
+
type Props = {
|
|
22
|
+
/**
|
|
23
|
+
* - The `class` attribute on the wrapper element.
|
|
24
|
+
*/
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Primary slot content.
|
|
28
|
+
*/
|
|
29
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
30
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridFoot;
|
|
2
|
+
type GridFoot = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableFoot>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot
|
|
@@ -14,3 +18,13 @@ declare const GridFoot: import("svelte").Component<{
|
|
|
14
18
|
*/
|
|
15
19
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
16
20
|
} & Record<string, any>, {}, "">;
|
|
21
|
+
type Props = {
|
|
22
|
+
/**
|
|
23
|
+
* - The `class` attribute on the wrapper element.
|
|
24
|
+
*/
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Primary slot content.
|
|
28
|
+
*/
|
|
29
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
30
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridHead;
|
|
2
|
+
type GridHead = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableThead>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead
|
|
@@ -14,3 +18,13 @@ declare const GridHead: import("svelte").Component<{
|
|
|
14
18
|
*/
|
|
15
19
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
16
20
|
} & Record<string, any>, {}, "">;
|
|
21
|
+
type Props = {
|
|
22
|
+
/**
|
|
23
|
+
* - The `class` attribute on the wrapper element.
|
|
24
|
+
*/
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Primary slot content.
|
|
28
|
+
*/
|
|
29
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
30
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default GridRowHeader;
|
|
2
|
+
type GridRowHeader = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The interactive version of `<TableRowHeader>`.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
@@ -14,3 +18,13 @@ declare const GridRowHeader: import("svelte").Component<{
|
|
|
14
18
|
*/
|
|
15
19
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
16
20
|
} & Record<string, any>, {}, "">;
|
|
21
|
+
type Props = {
|
|
22
|
+
/**
|
|
23
|
+
* - The `class` attribute on the wrapper element.
|
|
24
|
+
*/
|
|
25
|
+
class?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Primary slot content.
|
|
28
|
+
*/
|
|
29
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
30
|
+
};
|