@sveltia/ui 0.15.16 → 0.17.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 +22 -7
- package/package/components/alert/alert.svelte.d.ts +47 -31
- package/package/components/button/button-group.svelte +16 -6
- package/package/components/button/button-group.svelte.d.ts +38 -28
- package/package/components/button/button.svelte +41 -136
- package/package/components/button/button.svelte.d.ts +20 -162
- package/package/components/button/select-button-group.svelte +31 -37
- package/package/components/button/select-button-group.svelte.d.ts +91 -39
- package/package/components/button/select-button.svelte +19 -62
- package/package/components/button/select-button.svelte.d.ts +31 -65
- package/package/components/button/split-button.svelte +37 -47
- package/package/components/button/split-button.svelte.d.ts +54 -60
- package/package/components/calendar/calendar.svelte +80 -55
- package/package/components/calendar/calendar.svelte.d.ts +30 -26
- package/package/components/checkbox/checkbox-group.svelte +23 -20
- package/package/components/checkbox/checkbox-group.svelte.d.ts +64 -32
- package/package/components/checkbox/checkbox.svelte +57 -67
- package/package/components/checkbox/checkbox.svelte.d.ts +81 -53
- package/package/components/dialog/alert-dialog.svelte +9 -36
- package/package/components/dialog/alert-dialog.svelte.d.ts +20 -49
- package/package/components/dialog/confirmation-dialog.svelte +9 -41
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +20 -51
- package/package/components/dialog/dialog.svelte +60 -105
- package/package/components/dialog/dialog.svelte.d.ts +19 -86
- package/package/components/dialog/prompt-dialog.svelte +32 -61
- package/package/components/dialog/prompt-dialog.svelte.d.ts +53 -65
- package/package/components/disclosure/disclosure.svelte +39 -34
- package/package/components/disclosure/disclosure.svelte.d.ts +88 -57
- package/package/components/divider/divider.svelte +18 -14
- package/package/components/divider/divider.svelte.d.ts +48 -26
- package/package/components/divider/spacer.svelte +13 -8
- package/package/components/divider/spacer.svelte.d.ts +37 -25
- package/package/components/drawer/drawer.svelte +63 -76
- package/package/components/drawer/drawer.svelte.d.ts +116 -70
- package/package/components/grid/grid-body.svelte +15 -10
- package/package/components/grid/grid-body.svelte.d.ts +45 -29
- package/package/components/grid/grid-cell.svelte +16 -6
- package/package/components/grid/grid-cell.svelte.d.ts +38 -28
- package/package/components/grid/grid-col-header.svelte +16 -6
- package/package/components/grid/grid-col-header.svelte.d.ts +38 -28
- package/package/components/grid/grid-foot.svelte +16 -6
- package/package/components/grid/grid-foot.svelte.d.ts +38 -28
- package/package/components/grid/grid-head.svelte +16 -6
- package/package/components/grid/grid-head.svelte.d.ts +38 -28
- package/package/components/grid/grid-row-header.svelte +16 -6
- package/package/components/grid/grid-row-header.svelte.d.ts +38 -28
- package/package/components/grid/grid-row.svelte +19 -23
- package/package/components/grid/grid-row.svelte.d.ts +63 -43
- package/package/components/grid/grid.svelte +26 -25
- package/package/components/grid/grid.svelte.d.ts +71 -37
- package/package/components/icon/icon.svelte +14 -9
- package/package/components/icon/icon.svelte.d.ts +37 -25
- package/package/components/listbox/listbox.svelte +46 -52
- package/package/components/listbox/listbox.svelte.d.ts +117 -45
- package/package/components/listbox/option-group.svelte +23 -19
- package/package/components/listbox/option-group.svelte.d.ts +64 -32
- package/package/components/listbox/option.svelte +44 -57
- package/package/components/listbox/option.svelte.d.ts +68 -74
- package/package/components/menu/menu-button.svelte +42 -63
- package/package/components/menu/menu-button.svelte.d.ts +35 -62
- package/package/components/menu/menu-item-checkbox.svelte +29 -41
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +20 -49
- package/package/components/menu/menu-item-group.svelte +22 -19
- package/package/components/menu/menu-item-group.svelte.d.ts +56 -32
- package/package/components/menu/menu-item-radio.svelte +29 -41
- package/package/components/menu/menu-item-radio.svelte.d.ts +20 -49
- package/package/components/menu/menu-item.svelte +66 -75
- package/package/components/menu/menu-item.svelte.d.ts +19 -68
- package/package/components/menu/menu.svelte +25 -22
- package/package/components/menu/menu.svelte.d.ts +65 -35
- package/package/components/radio/radio-group.svelte +36 -42
- package/package/components/radio/radio-group.svelte.d.ts +100 -40
- package/package/components/radio/radio.svelte +45 -48
- package/package/components/radio/radio.svelte.d.ts +111 -47
- package/package/components/select/combobox.svelte +76 -101
- package/package/components/select/combobox.svelte.d.ts +19 -54
- package/package/components/select/select-tags.svelte +48 -59
- package/package/components/select/select-tags.svelte.d.ts +127 -45
- package/package/components/select/select.svelte +18 -37
- package/package/components/select/select.svelte.d.ts +20 -45
- package/package/components/slider/slider.svelte +71 -68
- package/package/components/slider/slider.svelte.d.ts +159 -47
- package/package/components/switch/switch.svelte +36 -46
- package/package/components/switch/switch.svelte.d.ts +98 -42
- package/package/components/table/table-body.svelte +15 -11
- package/package/components/table/table-body.svelte.d.ts +45 -29
- package/package/components/table/table-cell.svelte +16 -6
- package/package/components/table/table-cell.svelte.d.ts +38 -28
- package/package/components/table/table-col-header.svelte +16 -6
- package/package/components/table/table-col-header.svelte.d.ts +38 -28
- package/package/components/table/table-foot.svelte +16 -6
- package/package/components/table/table-foot.svelte.d.ts +38 -28
- package/package/components/table/table-head.svelte +16 -6
- package/package/components/table/table-head.svelte.d.ts +38 -28
- package/package/components/table/table-row-header.svelte +16 -6
- package/package/components/table/table-row-header.svelte.d.ts +38 -28
- package/package/components/table/table-row.svelte +16 -6
- package/package/components/table/table-row.svelte.d.ts +38 -28
- package/package/components/table/table.svelte +16 -6
- package/package/components/table/table.svelte.d.ts +38 -28
- package/package/components/tabs/tab-box.svelte +16 -9
- package/package/components/tabs/tab-box.svelte.d.ts +47 -27
- package/package/components/tabs/tab-list.svelte +36 -35
- package/package/components/tabs/tab-list.svelte.d.ts +80 -38
- package/package/components/tabs/tab-panel.svelte +16 -6
- package/package/components/tabs/tab-panel.svelte.d.ts +38 -28
- package/package/components/tabs/tab-panels.svelte +16 -6
- package/package/components/tabs/tab-panels.svelte.d.ts +38 -26
- package/package/components/tabs/tab.svelte +28 -25
- package/package/components/tabs/tab.svelte.d.ts +31 -55
- package/package/components/text-editor/lexical-root.svelte +38 -32
- package/package/components/text-editor/lexical-root.svelte.d.ts +91 -29
- package/package/components/text-editor/text-editor.svelte +63 -79
- package/package/components/text-editor/text-editor.svelte.d.ts +114 -36
- package/package/components/text-editor/toolbar/editor-toolbar.svelte +41 -24
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +49 -23
- package/package/components/text-editor/toolbar/format-text-button.svelte +15 -5
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +30 -22
- package/package/components/text-editor/toolbar/insert-link-button.svelte +18 -16
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +20 -23
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte +19 -7
- package/package/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +30 -22
- package/package/components/text-field/number-input.svelte +63 -81
- package/package/components/text-field/number-input.svelte.d.ts +62 -68
- package/package/components/text-field/password-input.svelte +38 -57
- package/package/components/text-field/password-input.svelte.d.ts +30 -58
- package/package/components/text-field/search-bar.svelte +45 -62
- package/package/components/text-field/search-bar.svelte.d.ts +42 -87
- package/package/components/text-field/text-area.svelte +38 -54
- package/package/components/text-field/text-area.svelte.d.ts +116 -50
- package/package/components/text-field/text-input.svelte +30 -86
- package/package/components/text-field/text-input.svelte.d.ts +20 -105
- package/package/components/toast/toast.svelte +36 -30
- package/package/components/toast/toast.svelte.d.ts +65 -33
- package/package/components/toolbar/toolbar.svelte +25 -25
- package/package/components/toolbar/toolbar.svelte.d.ts +72 -34
- package/package/components/util/app-shell.svelte +22 -10
- package/package/components/util/app-shell.svelte.d.ts +40 -34
- package/package/components/util/group.svelte +20 -15
- package/package/components/util/group.svelte.d.ts +55 -31
- package/package/components/util/modal.svelte +89 -105
- package/package/components/util/modal.svelte.d.ts +24 -82
- package/package/components/util/placeholder.svelte +21 -0
- package/package/components/util/placeholder.svelte.d.ts +34 -0
- package/package/components/util/popup.svelte +65 -62
- package/package/components/util/popup.svelte.d.ts +104 -82
- package/package/services/{group.js → group.svelte.js} +11 -12
- package/package/services/{popup.js → popup.svelte.js} +6 -5
- package/package/typedefs.d.ts +545 -0
- package/package/typedefs.js +202 -0
- package/package.json +16 -23
- package/package/components/util/portal.svelte +0 -36
- package/package/components/util/portal.svelte.d.ts +0 -32
- /package/package/services/{events.d.ts → events.svelte.d.ts} +0 -0
- /package/package/services/{events.js → events.svelte.js} +0 -0
- /package/package/services/{group.d.ts → group.svelte.d.ts} +0 -0
- /package/package/services/{popup.d.ts → popup.svelte.d.ts} +0 -0
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default Table;
|
|
2
|
+
type Table = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
+
[evt: string]: CustomEvent<any>;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* The equivalent of the HTML `<table>` element.
|
|
6
9
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table
|
|
7
10
|
* @see https://w3c.github.io/aria/#table
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
declare const Table: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
11
16
|
class?: string | undefined;
|
|
12
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Primary slot content.
|
|
19
|
+
*/
|
|
20
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
+
} & Record<string, any>, {
|
|
13
22
|
[evt: string]: CustomEvent<any>;
|
|
14
|
-
}, {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[x: string]: any;
|
|
25
|
-
class?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
events: {
|
|
28
|
-
[evt: string]: CustomEvent<any>;
|
|
29
|
-
};
|
|
30
|
-
slots: {
|
|
31
|
-
default: {};
|
|
32
|
-
};
|
|
33
|
-
exports?: undefined;
|
|
34
|
-
bindings?: undefined;
|
|
23
|
+
}, {}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* - The `class` attribute on the wrapper element.
|
|
27
|
+
*/
|
|
28
|
+
class?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* - Primary slot content.
|
|
31
|
+
*/
|
|
32
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
35
33
|
};
|
|
36
|
-
|
|
34
|
+
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> {
|
|
35
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
36
|
+
$$bindings?: Bindings;
|
|
37
|
+
} & Exports;
|
|
38
|
+
(internal: unknown, props: Props & {
|
|
39
|
+
$$events?: Events;
|
|
40
|
+
$$slots?: Slots;
|
|
41
|
+
}): Exports & {
|
|
42
|
+
$set?: any;
|
|
43
|
+
$on?: any;
|
|
44
|
+
};
|
|
45
|
+
z_$$bindings?: Bindings;
|
|
46
|
+
}
|
|
@@ -5,21 +5,28 @@
|
|
|
5
5
|
-->
|
|
6
6
|
<script>
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
8
|
+
* @typedef {object} Props
|
|
9
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
10
|
+
* @property {'horizontal' | 'vertical'} [orientation] - Orientation of the widget. This is
|
|
11
|
+
* typically contrary to `<TabList>`’s `orientation`.
|
|
12
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
10
13
|
*/
|
|
11
|
-
let className = '';
|
|
12
|
-
export { className as class };
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
|
-
*
|
|
16
|
-
* @type {'horizontal' | 'vertical'}
|
|
16
|
+
* @type {Props & Record<string, any>}
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
let {
|
|
19
|
+
/* eslint-disable prefer-const */
|
|
20
|
+
class: className,
|
|
21
|
+
orientation = 'vertical',
|
|
22
|
+
children,
|
|
23
|
+
...restProps
|
|
24
|
+
/* eslint-enable prefer-const */
|
|
25
|
+
} = $props();
|
|
19
26
|
</script>
|
|
20
27
|
|
|
21
|
-
<div role="none" class="sui tab-box {orientation} {className}">
|
|
22
|
-
|
|
28
|
+
<div {...restProps} role="none" class="sui tab-box {orientation} {className}">
|
|
29
|
+
{@render children?.()}
|
|
23
30
|
</div>
|
|
24
31
|
|
|
25
32
|
<style>.tab-box {
|
|
@@ -1,35 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default TabBox;
|
|
2
|
+
type TabBox = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
+
[evt: string]: CustomEvent<any>;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* The container of `<TabList>` and `<TabPanels>`. The component name derives from XUL. This can be
|
|
6
9
|
* omitted if not using vertical tabs.
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
declare const TabBox: $$__sveltets_2_IsomorphicComponent<{
|
|
12
|
+
/**
|
|
13
|
+
* - The `class` attribute on the wrapper element.
|
|
14
|
+
*/
|
|
9
15
|
class?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* - Orientation of the widget. This is
|
|
18
|
+
* typically contrary to `<TabList>`’s `orientation`.
|
|
19
|
+
*/
|
|
10
20
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
11
|
-
|
|
21
|
+
/**
|
|
22
|
+
* - Primary slot content.
|
|
23
|
+
*/
|
|
24
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
25
|
+
} & Record<string, any>, {
|
|
12
26
|
[evt: string]: CustomEvent<any>;
|
|
13
|
-
}, {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
};
|
|
29
|
-
slots: {
|
|
30
|
-
default: {};
|
|
31
|
-
};
|
|
32
|
-
exports?: undefined;
|
|
33
|
-
bindings?: undefined;
|
|
27
|
+
}, {}, {}, "">;
|
|
28
|
+
type Props = {
|
|
29
|
+
/**
|
|
30
|
+
* - The `class` attribute on the wrapper element.
|
|
31
|
+
*/
|
|
32
|
+
class?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* - Orientation of the widget. This is
|
|
35
|
+
* typically contrary to `<TabList>`’s `orientation`.
|
|
36
|
+
*/
|
|
37
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
38
|
+
/**
|
|
39
|
+
* - Primary slot content.
|
|
40
|
+
*/
|
|
41
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
34
42
|
};
|
|
35
|
-
|
|
43
|
+
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> {
|
|
44
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
45
|
+
$$bindings?: Bindings;
|
|
46
|
+
} & Exports;
|
|
47
|
+
(internal: unknown, props: Props & {
|
|
48
|
+
$$events?: Events;
|
|
49
|
+
$$slots?: Slots;
|
|
50
|
+
}): Exports & {
|
|
51
|
+
$set?: any;
|
|
52
|
+
$on?: any;
|
|
53
|
+
};
|
|
54
|
+
z_$$bindings?: Bindings;
|
|
55
|
+
}
|
|
@@ -5,47 +5,48 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
-
import {
|
|
9
|
-
import { activateGroup } from '../../services/group';
|
|
8
|
+
import { onMount } from 'svelte';
|
|
9
|
+
import { activateGroup } from '../../services/group.svelte';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @
|
|
12
|
+
* @typedef {object} Props
|
|
13
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
14
|
+
* @property {boolean} [hidden] - Whether to hide the widget.
|
|
15
|
+
* @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
|
|
16
|
+
* attribute.
|
|
17
|
+
* @property {'horizontal' | 'vertical'} [orientation] - Orientation of the widget. An alias of
|
|
18
|
+
* the `aria-orientation` attribute.
|
|
19
|
+
* @property {string | undefined} [name] - The `data-name` attribute on the wrapper element.
|
|
20
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
21
|
+
* @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
|
|
14
22
|
*/
|
|
15
|
-
|
|
16
|
-
export { className as class };
|
|
17
|
-
/**
|
|
18
|
-
* Whether to hide the widget. An alias of the `aria-hidden` attribute.
|
|
19
|
-
* @type {boolean | undefined}
|
|
20
|
-
*/
|
|
21
|
-
export let hidden = undefined;
|
|
22
|
-
/**
|
|
23
|
-
* Whether to disable the widget. An alias of the `aria-disabled` attribute.
|
|
24
|
-
* @type {boolean}
|
|
25
|
-
*/
|
|
26
|
-
export let disabled = false;
|
|
27
|
-
/**
|
|
28
|
-
* Orientation of the widget. An alias of the `aria-orientation` attribute.
|
|
29
|
-
* @type {'horizontal' | 'vertical'}
|
|
30
|
-
*/
|
|
31
|
-
export let orientation = 'horizontal';
|
|
23
|
+
|
|
32
24
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {string | undefined}
|
|
25
|
+
* @type {Props & Record<string, any>}
|
|
35
26
|
*/
|
|
36
|
-
|
|
27
|
+
let {
|
|
28
|
+
/* eslint-disable prefer-const */
|
|
29
|
+
class: className,
|
|
30
|
+
hidden = false,
|
|
31
|
+
disabled = false,
|
|
32
|
+
orientation = 'horizontal',
|
|
33
|
+
name = undefined,
|
|
34
|
+
children,
|
|
35
|
+
onChange,
|
|
36
|
+
...restProps
|
|
37
|
+
/* eslint-enable prefer-const */
|
|
38
|
+
} = $props();
|
|
37
39
|
|
|
38
|
-
const dispatch = createEventDispatcher();
|
|
39
40
|
/**
|
|
40
41
|
* A reference to the wrapper element.
|
|
41
42
|
* @type {HTMLElement | undefined}
|
|
42
43
|
*/
|
|
43
|
-
let wrapper =
|
|
44
|
+
let wrapper = $state();
|
|
44
45
|
/**
|
|
45
46
|
* The indicator’s CSS style.
|
|
46
47
|
* @type {string | undefined}
|
|
47
48
|
*/
|
|
48
|
-
let indicatorStyle =
|
|
49
|
+
let indicatorStyle = $state();
|
|
49
50
|
|
|
50
51
|
/**
|
|
51
52
|
* Update the indicator position.
|
|
@@ -87,26 +88,26 @@
|
|
|
87
88
|
</script>
|
|
88
89
|
|
|
89
90
|
<div
|
|
91
|
+
bind:this={wrapper}
|
|
92
|
+
{...restProps}
|
|
90
93
|
role="tablist"
|
|
91
94
|
class="sui tab-list {className}"
|
|
92
|
-
|
|
95
|
+
{hidden}
|
|
93
96
|
aria-hidden={hidden}
|
|
94
97
|
aria-disabled={disabled}
|
|
95
98
|
aria-orientation={orientation}
|
|
96
99
|
data-name={name || undefined}
|
|
97
|
-
{
|
|
98
|
-
bind:this={wrapper}
|
|
99
|
-
use:activateGroup
|
|
100
|
-
on:initialized={() => {
|
|
100
|
+
onInitialized={() => {
|
|
101
101
|
updateIndicator();
|
|
102
102
|
}}
|
|
103
|
-
|
|
104
|
-
dispatch('change', event.detail);
|
|
103
|
+
onChange={(/** @type {CustomEvent} */ event) => {
|
|
105
104
|
updateIndicator();
|
|
105
|
+
onChange?.(event);
|
|
106
106
|
}}
|
|
107
|
+
use:activateGroup
|
|
107
108
|
>
|
|
108
109
|
<div role="none" class="inner" inert={disabled}>
|
|
109
|
-
|
|
110
|
+
{@render children?.()}
|
|
110
111
|
</div>
|
|
111
112
|
<div role="none" class="indicator" style={indicatorStyle}></div>
|
|
112
113
|
</div>
|
|
@@ -1,48 +1,90 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default TabList;
|
|
2
|
+
type TabList = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
+
[evt: string]: CustomEvent<any>;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* A tab list widget.
|
|
6
9
|
* @see https://w3c.github.io/aria/#tablist
|
|
7
10
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
declare const TabList: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
11
16
|
class?: string | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Whether to hide the widget.
|
|
19
|
+
*/
|
|
14
20
|
hidden?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
23
|
+
* attribute.
|
|
24
|
+
*/
|
|
25
|
+
disabled?: boolean | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* - Orientation of the widget. An alias of
|
|
28
|
+
* the `aria-orientation` attribute.
|
|
29
|
+
*/
|
|
15
30
|
orientation?: "vertical" | "horizontal" | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
31
|
+
/**
|
|
32
|
+
* - The `data-name` attribute on the wrapper element.
|
|
33
|
+
*/
|
|
34
|
+
name?: string | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* - Primary slot content.
|
|
37
|
+
*/
|
|
38
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* - Custom `Change` event handler.
|
|
41
|
+
*/
|
|
42
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
43
|
+
} & Record<string, any>, {
|
|
19
44
|
[evt: string]: CustomEvent<any>;
|
|
20
|
-
}, {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
}, {}, {}, "">;
|
|
46
|
+
type Props = {
|
|
47
|
+
/**
|
|
48
|
+
* - The `class` attribute on the wrapper element.
|
|
49
|
+
*/
|
|
50
|
+
class?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* - Whether to hide the widget.
|
|
53
|
+
*/
|
|
54
|
+
hidden?: boolean | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
57
|
+
* attribute.
|
|
58
|
+
*/
|
|
59
|
+
disabled?: boolean | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* - Orientation of the widget. An alias of
|
|
62
|
+
* the `aria-orientation` attribute.
|
|
63
|
+
*/
|
|
64
|
+
orientation?: "vertical" | "horizontal" | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* - The `data-name` attribute on the wrapper element.
|
|
67
|
+
*/
|
|
68
|
+
name?: string | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* - Primary slot content.
|
|
71
|
+
*/
|
|
72
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* - Custom `Change` event handler.
|
|
75
|
+
*/
|
|
76
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
47
77
|
};
|
|
48
|
-
|
|
78
|
+
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> {
|
|
79
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
80
|
+
$$bindings?: Bindings;
|
|
81
|
+
} & Exports;
|
|
82
|
+
(internal: unknown, props: Props & {
|
|
83
|
+
$$events?: Events;
|
|
84
|
+
$$slots?: Slots;
|
|
85
|
+
}): Exports & {
|
|
86
|
+
$set?: any;
|
|
87
|
+
$on?: any;
|
|
88
|
+
};
|
|
89
|
+
z_$$bindings?: Bindings;
|
|
90
|
+
}
|
|
@@ -6,15 +6,25 @@
|
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @
|
|
9
|
+
* @typedef {object} Props
|
|
10
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
11
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
11
12
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @type {Props & Record<string, any>}
|
|
16
|
+
*/
|
|
17
|
+
let {
|
|
18
|
+
/* eslint-disable prefer-const */
|
|
19
|
+
class: className,
|
|
20
|
+
children,
|
|
21
|
+
...restProps
|
|
22
|
+
/* eslint-enable prefer-const */
|
|
23
|
+
} = $props();
|
|
14
24
|
</script>
|
|
15
25
|
|
|
16
|
-
<div role="tabpanel" class="sui tab-panel {className}"
|
|
17
|
-
|
|
26
|
+
<div {...restProps} role="tabpanel" class="sui tab-panel {className}">
|
|
27
|
+
{@render children?.()}
|
|
18
28
|
</div>
|
|
19
29
|
|
|
20
30
|
<style>.tab-panel {
|
|
@@ -1,36 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default TabPanel;
|
|
2
|
+
type TabPanel = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
+
[evt: string]: CustomEvent<any>;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* A tab content panel.
|
|
6
9
|
* @see https://w3c.github.io/aria/#tabpanel
|
|
7
10
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/tabs/
|
|
8
11
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
12
|
+
declare const TabPanel: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
11
16
|
class?: string | undefined;
|
|
12
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Primary slot content.
|
|
19
|
+
*/
|
|
20
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
+
} & Record<string, any>, {
|
|
13
22
|
[evt: string]: CustomEvent<any>;
|
|
14
|
-
}, {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[x: string]: any;
|
|
25
|
-
class?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
events: {
|
|
28
|
-
[evt: string]: CustomEvent<any>;
|
|
29
|
-
};
|
|
30
|
-
slots: {
|
|
31
|
-
default: {};
|
|
32
|
-
};
|
|
33
|
-
exports?: undefined;
|
|
34
|
-
bindings?: undefined;
|
|
23
|
+
}, {}, {}, "">;
|
|
24
|
+
type Props = {
|
|
25
|
+
/**
|
|
26
|
+
* - The `class` attribute on the wrapper element.
|
|
27
|
+
*/
|
|
28
|
+
class?: string | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* - Primary slot content.
|
|
31
|
+
*/
|
|
32
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
35
33
|
};
|
|
36
|
-
|
|
34
|
+
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> {
|
|
35
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
36
|
+
$$bindings?: Bindings;
|
|
37
|
+
} & Exports;
|
|
38
|
+
(internal: unknown, props: Props & {
|
|
39
|
+
$$events?: Events;
|
|
40
|
+
$$slots?: Slots;
|
|
41
|
+
}): Exports & {
|
|
42
|
+
$set?: any;
|
|
43
|
+
$on?: any;
|
|
44
|
+
};
|
|
45
|
+
z_$$bindings?: Bindings;
|
|
46
|
+
}
|
|
@@ -5,15 +5,25 @@
|
|
|
5
5
|
-->
|
|
6
6
|
<script>
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @
|
|
8
|
+
* @typedef {object} Props
|
|
9
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
10
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
10
11
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @type {Props & Record<string, any>}
|
|
15
|
+
*/
|
|
16
|
+
let {
|
|
17
|
+
/* eslint-disable prefer-const */
|
|
18
|
+
class: className,
|
|
19
|
+
children,
|
|
20
|
+
...restProps
|
|
21
|
+
/* eslint-enable prefer-const */
|
|
22
|
+
} = $props();
|
|
13
23
|
</script>
|
|
14
24
|
|
|
15
|
-
<div role="none" class="sui tab-panels {className}">
|
|
16
|
-
|
|
25
|
+
<div {...restProps} role="none" class="sui tab-panels {className}">
|
|
26
|
+
{@render children?.()}
|
|
17
27
|
</div>
|
|
18
28
|
|
|
19
29
|
<style>.tab-panels {
|
|
@@ -1,33 +1,45 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export default TabPanels;
|
|
2
|
+
type TabPanels = SvelteComponent<Props & Record<string, any>, {
|
|
3
|
+
[evt: string]: CustomEvent<any>;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* The container of `<TabPanel>`s. The component name derives from XUL. This can be omitted if the
|
|
6
9
|
* child tab panels don’t need a sliding animation.
|
|
7
10
|
*/
|
|
8
|
-
|
|
11
|
+
declare const TabPanels: $$__sveltets_2_IsomorphicComponent<{
|
|
12
|
+
/**
|
|
13
|
+
* - The `class` attribute on the wrapper element.
|
|
14
|
+
*/
|
|
9
15
|
class?: string | undefined;
|
|
10
|
-
|
|
16
|
+
/**
|
|
17
|
+
* - Primary slot content.
|
|
18
|
+
*/
|
|
19
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
20
|
+
} & Record<string, any>, {
|
|
11
21
|
[evt: string]: CustomEvent<any>;
|
|
12
|
-
}, {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
class?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
events: {
|
|
25
|
-
[evt: string]: CustomEvent<any>;
|
|
26
|
-
};
|
|
27
|
-
slots: {
|
|
28
|
-
default: {};
|
|
29
|
-
};
|
|
30
|
-
exports?: undefined;
|
|
31
|
-
bindings?: undefined;
|
|
22
|
+
}, {}, {}, "">;
|
|
23
|
+
type Props = {
|
|
24
|
+
/**
|
|
25
|
+
* - The `class` attribute on the wrapper element.
|
|
26
|
+
*/
|
|
27
|
+
class?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* - Primary slot content.
|
|
30
|
+
*/
|
|
31
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
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> {
|
|
34
|
+
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
35
|
+
$$bindings?: Bindings;
|
|
36
|
+
} & Exports;
|
|
37
|
+
(internal: unknown, props: Props & {
|
|
38
|
+
$$events?: Events;
|
|
39
|
+
$$slots?: Slots;
|
|
40
|
+
}): Exports & {
|
|
41
|
+
$set?: any;
|
|
42
|
+
$on?: any;
|
|
43
|
+
};
|
|
44
|
+
z_$$bindings?: Bindings;
|
|
45
|
+
}
|