@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 Select;
|
|
2
|
+
type Select = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<ComboboxProps & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A select-only variant of `<Combobox>`. The equivalent of the HTML `<select>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Slider;
|
|
2
|
+
type Slider = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<input type="range">` element, but it comes with the multi-thumb
|
|
4
8
|
* support.
|
|
@@ -80,3 +84,76 @@ declare const Slider: import("svelte").Component<{
|
|
|
80
84
|
value?: number;
|
|
81
85
|
}) => void) | undefined;
|
|
82
86
|
} & Record<string, any>, {}, "value">;
|
|
87
|
+
type Props = {
|
|
88
|
+
/**
|
|
89
|
+
* - Current value.
|
|
90
|
+
*/
|
|
91
|
+
value?: number | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* - Minimum allowed value. An alias of the `aria-valuemin` attribute.
|
|
94
|
+
*/
|
|
95
|
+
min?: number | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* - Maximum allowed value. An alias of the `aria-valuemax` attribute.
|
|
98
|
+
*/
|
|
99
|
+
max?: number | undefined;
|
|
100
|
+
/**
|
|
101
|
+
* - `aria-label` on the slider.
|
|
102
|
+
*/
|
|
103
|
+
sliderLabel?: string | undefined;
|
|
104
|
+
/**
|
|
105
|
+
* - Value list for a multi-thumb slider.
|
|
106
|
+
*/
|
|
107
|
+
values?: [number, number] | undefined;
|
|
108
|
+
/**
|
|
109
|
+
* - `aria-label` on a multi-thumb slider.
|
|
110
|
+
*/
|
|
111
|
+
sliderLabels?: [string, string] | undefined;
|
|
112
|
+
/**
|
|
113
|
+
* - Step option like `<input type="range">`.
|
|
114
|
+
*/
|
|
115
|
+
step?: number | undefined;
|
|
116
|
+
/**
|
|
117
|
+
* - Visible labels on the slider.
|
|
118
|
+
*/
|
|
119
|
+
optionLabels?: string[] | number[] | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* - Make the text input container flexible.
|
|
122
|
+
*/
|
|
123
|
+
flex?: boolean | undefined;
|
|
124
|
+
/**
|
|
125
|
+
* - The `class` attribute on the wrapper element.
|
|
126
|
+
*/
|
|
127
|
+
class?: string | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* - Whether to hide the widget.
|
|
130
|
+
*/
|
|
131
|
+
hidden?: boolean | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
134
|
+
* attribute.
|
|
135
|
+
*/
|
|
136
|
+
disabled?: boolean | undefined;
|
|
137
|
+
/**
|
|
138
|
+
* - Whether to make the widget read-only. An alias of the
|
|
139
|
+
* `aria-readonly` attribute.
|
|
140
|
+
*/
|
|
141
|
+
readonly?: boolean | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
144
|
+
* `aria-invalid` attribute.
|
|
145
|
+
*/
|
|
146
|
+
invalid?: boolean | undefined;
|
|
147
|
+
/**
|
|
148
|
+
* - Primary slot content.
|
|
149
|
+
*/
|
|
150
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* - `change` event
|
|
153
|
+
* handler.
|
|
154
|
+
*/
|
|
155
|
+
onChange?: ((detail: {
|
|
156
|
+
values?: number[];
|
|
157
|
+
value?: number;
|
|
158
|
+
}) => void) | undefined;
|
|
159
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Switch;
|
|
2
|
+
type Switch = {
|
|
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 `<Checkbox>`, looking like a switch that can be often seen on mobile apps.
|
|
4
8
|
* @see https://w3c.github.io/aria/#switch
|
|
@@ -46,3 +50,45 @@ declare const Switch: import("svelte").Component<{
|
|
|
46
50
|
*/
|
|
47
51
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
48
52
|
} & Record<string, any>, {}, "checked">;
|
|
53
|
+
type Props = {
|
|
54
|
+
/**
|
|
55
|
+
* - Text label displayed next to the switch.
|
|
56
|
+
*/
|
|
57
|
+
label?: string | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* - The `class` attribute on the wrapper element.
|
|
60
|
+
*/
|
|
61
|
+
class?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - Whether to hide the widget.
|
|
64
|
+
*/
|
|
65
|
+
hidden?: boolean | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
68
|
+
* attribute.
|
|
69
|
+
*/
|
|
70
|
+
disabled?: boolean | undefined;
|
|
71
|
+
/**
|
|
72
|
+
* - Whether to make the widget read-only. An alias of the
|
|
73
|
+
* `aria-readonly` attribute.
|
|
74
|
+
*/
|
|
75
|
+
readonly?: boolean | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* - Whether to mark the widget required. An alias of the
|
|
78
|
+
* `aria-required` attribute.
|
|
79
|
+
*/
|
|
80
|
+
required?: boolean | undefined;
|
|
81
|
+
/**
|
|
82
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
83
|
+
* `aria-invalid` attribute.
|
|
84
|
+
*/
|
|
85
|
+
invalid?: boolean | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* - Primary slot content.
|
|
88
|
+
*/
|
|
89
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* - Custom `Change` event handler.
|
|
92
|
+
*/
|
|
93
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
94
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default TableBody;
|
|
2
|
+
type TableBody = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<tbody>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody
|
|
@@ -18,3 +22,17 @@ declare const TableBody: 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 TableCell;
|
|
2
|
+
type TableCell = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<td>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td
|
|
@@ -14,3 +18,13 @@ declare const TableCell: 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 TableColHeader;
|
|
2
|
+
type TableColHeader = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<th scope="col">` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
@@ -14,3 +18,13 @@ declare const TableColHeader: 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 TableFoot;
|
|
2
|
+
type TableFoot = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<tfoot>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot
|
|
@@ -14,3 +18,13 @@ declare const TableFoot: 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 TableHead;
|
|
2
|
+
type TableHead = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<thead>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead
|
|
@@ -14,3 +18,13 @@ declare const TableHead: 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 TableRowHeader;
|
|
2
|
+
type TableRowHeader = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<th scope="row">` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
@@ -14,3 +18,13 @@ declare const TableRowHeader: 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 TableRow;
|
|
2
|
+
type TableRow = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<tr>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr
|
|
@@ -14,3 +18,13 @@ declare const TableRow: 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 Table;
|
|
2
|
+
type Table = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The equivalent of the HTML `<table>` element.
|
|
4
8
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
|
|
@@ -14,3 +18,13 @@ declare const Table: 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 TabBox;
|
|
2
|
+
type TabBox = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The container of `<TabList>` and `<TabPanels>`. The component name derives from XUL. This can be
|
|
4
8
|
* omitted if not using vertical tabs.
|
|
@@ -18,3 +22,18 @@ declare const TabBox: 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
|
+
* - Orientation of the widget. This is
|
|
32
|
+
* typically contrary to `<TabList>`’s `orientation`.
|
|
33
|
+
*/
|
|
34
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* - Primary slot content.
|
|
37
|
+
*/
|
|
38
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
39
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default TabList;
|
|
2
|
+
type TabList = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A tab list widget.
|
|
4
8
|
* @see https://w3c.github.io/aria/#tablist
|
|
@@ -36,3 +40,35 @@ declare const TabList: import("svelte").Component<{
|
|
|
36
40
|
*/
|
|
37
41
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
38
42
|
} & Record<string, any>, {}, "">;
|
|
43
|
+
type Props = {
|
|
44
|
+
/**
|
|
45
|
+
* - The `class` attribute on the wrapper element.
|
|
46
|
+
*/
|
|
47
|
+
class?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* - Whether to hide the widget.
|
|
50
|
+
*/
|
|
51
|
+
hidden?: boolean | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
54
|
+
* attribute.
|
|
55
|
+
*/
|
|
56
|
+
disabled?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* - Orientation of the widget. An alias of
|
|
59
|
+
* the `aria-orientation` attribute.
|
|
60
|
+
*/
|
|
61
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - The `data-name` attribute on the wrapper element.
|
|
64
|
+
*/
|
|
65
|
+
name?: string | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* - Primary slot content.
|
|
68
|
+
*/
|
|
69
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* - Custom `Change` event handler.
|
|
72
|
+
*/
|
|
73
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
74
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default TabPanel;
|
|
2
|
+
type TabPanel = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* A tab content panel.
|
|
4
8
|
* @see https://w3c.github.io/aria/#tabpanel
|
|
@@ -14,3 +18,13 @@ declare const TabPanel: 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 TabPanels;
|
|
2
|
+
type TabPanels = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/**
|
|
3
7
|
* The container of `<TabPanel>`s. The component name derives from XUL. This can be omitted if the
|
|
4
8
|
* child tab panels don’t need a sliding animation.
|
|
@@ -13,3 +17,13 @@ declare const TabPanels: import("svelte").Component<{
|
|
|
13
17
|
*/
|
|
14
18
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
15
19
|
} & Record<string, any>, {}, "">;
|
|
20
|
+
type Props = {
|
|
21
|
+
/**
|
|
22
|
+
* - The `class` attribute on the wrapper element.
|
|
23
|
+
*/
|
|
24
|
+
class?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* - Primary slot content.
|
|
27
|
+
*/
|
|
28
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
29
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default Tab;
|
|
2
|
+
type Tab = {
|
|
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 tab widget.
|
|
4
8
|
* @see https://w3c.github.io/aria/#tab
|
|
@@ -11,3 +15,10 @@ declare const Tab: import("svelte").Component<import("../../typedefs").ButtonPro
|
|
|
11
15
|
*/
|
|
12
16
|
selected?: boolean | undefined;
|
|
13
17
|
} & Record<string, any>, {}, "">;
|
|
18
|
+
type Props = {
|
|
19
|
+
/**
|
|
20
|
+
* - Whether to select the widget. An alias of the `aria-selected`
|
|
21
|
+
* attribute.
|
|
22
|
+
*/
|
|
23
|
+
selected?: boolean | undefined;
|
|
24
|
+
};
|
|
@@ -138,7 +138,10 @@ const onEditorUpdate = (editor) => {
|
|
|
138
138
|
editor.getRootElement()?.dispatchEvent(
|
|
139
139
|
new CustomEvent('Update', {
|
|
140
140
|
detail: {
|
|
141
|
-
value: convertToMarkdownString(
|
|
141
|
+
value: convertToMarkdownString(
|
|
142
|
+
// Use underscores for italic text in Markdown instead of asterisks
|
|
143
|
+
TRANSFORMERS.filter((/** @type {any} */ { tag }) => tag !== '*'),
|
|
144
|
+
),
|
|
142
145
|
selectionBlockType,
|
|
143
146
|
selectionInlineTypes,
|
|
144
147
|
},
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default LexicalRoot;
|
|
2
|
+
type LexicalRoot = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
declare const LexicalRoot: import("svelte").Component<{
|
|
3
7
|
/**
|
|
4
8
|
* - Input value.
|
|
@@ -37,3 +41,41 @@ declare const LexicalRoot: import("svelte").Component<{
|
|
|
37
41
|
*/
|
|
38
42
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
39
43
|
} & Record<string, any>, {}, "value">;
|
|
44
|
+
type Props = {
|
|
45
|
+
/**
|
|
46
|
+
* - Input value.
|
|
47
|
+
*/
|
|
48
|
+
value?: string | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* - The `class` attribute on the wrapper element.
|
|
51
|
+
*/
|
|
52
|
+
class?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* - Whether to hide the widget.
|
|
55
|
+
*/
|
|
56
|
+
hidden?: boolean | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
59
|
+
* attribute.
|
|
60
|
+
*/
|
|
61
|
+
disabled?: boolean | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - Whether to make the widget read-only. An alias of the
|
|
64
|
+
* `aria-readonly` attribute.
|
|
65
|
+
*/
|
|
66
|
+
readonly?: boolean | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* - Whether to mark the widget required. An alias of the
|
|
69
|
+
* `aria-required` attribute.
|
|
70
|
+
*/
|
|
71
|
+
required?: boolean | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
74
|
+
* `aria-invalid` attribute.
|
|
75
|
+
*/
|
|
76
|
+
invalid?: boolean | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* - Primary slot content.
|
|
79
|
+
*/
|
|
80
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
81
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default TextEditor;
|
|
2
|
+
type TextEditor = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
/** A rich text editor based on Lexical. */
|
|
3
7
|
declare const TextEditor: import("svelte").Component<{
|
|
4
8
|
/**
|
|
@@ -50,3 +54,53 @@ declare const TextEditor: import("svelte").Component<{
|
|
|
50
54
|
*/
|
|
51
55
|
children?: import("svelte").Snippet<[]> | undefined;
|
|
52
56
|
} & Record<string, any>, {}, "value">;
|
|
57
|
+
type Props = {
|
|
58
|
+
/**
|
|
59
|
+
* - Input value.
|
|
60
|
+
*/
|
|
61
|
+
value?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* - Make the text input container flexible.
|
|
64
|
+
*/
|
|
65
|
+
flex?: boolean | undefined;
|
|
66
|
+
/**
|
|
67
|
+
* - Enabled modes.
|
|
68
|
+
*/
|
|
69
|
+
modes?: import("../../typedefs").TextEditorMode[] | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* - Enabled buttons.
|
|
72
|
+
*/
|
|
73
|
+
buttons?: (import("../../typedefs").TextEditorBlockType | import("../../typedefs").TextEditorInlineType)[] | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* - The `class` attribute on the wrapper element.
|
|
76
|
+
*/
|
|
77
|
+
class?: string | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* - Whether to hide the widget.
|
|
80
|
+
*/
|
|
81
|
+
hidden?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
84
|
+
* attribute.
|
|
85
|
+
*/
|
|
86
|
+
disabled?: boolean | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* - Whether to make the widget read-only. An alias of the
|
|
89
|
+
* `aria-readonly` attribute.
|
|
90
|
+
*/
|
|
91
|
+
readonly?: boolean | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* - Whether to mark the widget required. An alias of the
|
|
94
|
+
* `aria-required` attribute.
|
|
95
|
+
*/
|
|
96
|
+
required?: boolean | undefined;
|
|
97
|
+
/**
|
|
98
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
99
|
+
* `aria-invalid` attribute.
|
|
100
|
+
*/
|
|
101
|
+
invalid?: boolean | undefined;
|
|
102
|
+
/**
|
|
103
|
+
* - Primary slot content.
|
|
104
|
+
*/
|
|
105
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
106
|
+
};
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export default EditorToolbar;
|
|
2
|
+
type EditorToolbar = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
declare const EditorToolbar: import("svelte").Component<{
|
|
3
7
|
/**
|
|
4
8
|
* - Whether to hide the widget.
|
|
@@ -15,3 +19,19 @@ declare const EditorToolbar: import("svelte").Component<{
|
|
|
15
19
|
*/
|
|
16
20
|
readonly?: boolean | undefined;
|
|
17
21
|
} & Record<string, any>, {}, "">;
|
|
22
|
+
type Props = {
|
|
23
|
+
/**
|
|
24
|
+
* - Whether to hide the widget.
|
|
25
|
+
*/
|
|
26
|
+
hidden?: boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
29
|
+
* attribute.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* - Whether to make the widget read-only. An alias of the
|
|
34
|
+
* `aria-readonly` attribute.
|
|
35
|
+
*/
|
|
36
|
+
readonly?: boolean | undefined;
|
|
37
|
+
};
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
export default FormatTextButton;
|
|
2
|
+
type FormatTextButton = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props & Record<string, any>>): void;
|
|
5
|
+
};
|
|
2
6
|
declare const FormatTextButton: import("svelte").Component<{
|
|
3
7
|
/**
|
|
4
8
|
* - Button type.
|
|
5
9
|
*/
|
|
6
10
|
type: import("../../../typedefs").TextEditorFormatType;
|
|
7
11
|
} & Record<string, any>, {}, "">;
|
|
12
|
+
type Props = {
|
|
13
|
+
/**
|
|
14
|
+
* - Button type.
|
|
15
|
+
*/
|
|
16
|
+
type: import("../../../typedefs").TextEditorFormatType;
|
|
17
|
+
};
|