@sveltia/ui 0.16.0 → 0.17.1
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 +32 -28
- package/package/components/button/button-group.svelte +16 -6
- package/package/components/button/button-group.svelte.d.ts +23 -23
- package/package/components/button/button.svelte +41 -136
- package/package/components/button/button.svelte.d.ts +5 -146
- package/package/components/button/select-button-group.svelte +31 -37
- package/package/components/button/select-button-group.svelte.d.ts +76 -34
- package/package/components/button/select-button.svelte +19 -62
- package/package/components/button/select-button.svelte.d.ts +17 -73
- package/package/components/button/split-button.svelte +37 -47
- package/package/components/button/split-button.svelte.d.ts +40 -47
- package/package/components/calendar/calendar.svelte +80 -55
- package/package/components/calendar/calendar.svelte.d.ts +13 -10
- package/package/components/checkbox/checkbox-group.svelte +23 -20
- package/package/components/checkbox/checkbox-group.svelte.d.ts +49 -27
- package/package/components/checkbox/checkbox.svelte +57 -67
- package/package/components/checkbox/checkbox.svelte.d.ts +67 -55
- package/package/components/dialog/alert-dialog.svelte +9 -36
- package/package/components/dialog/alert-dialog.svelte.d.ts +5 -44
- package/package/components/dialog/confirmation-dialog.svelte +9 -41
- package/package/components/dialog/confirmation-dialog.svelte.d.ts +5 -46
- package/package/components/dialog/dialog.svelte +60 -105
- package/package/components/dialog/dialog.svelte.d.ts +5 -102
- package/package/components/dialog/prompt-dialog.svelte +32 -61
- package/package/components/dialog/prompt-dialog.svelte.d.ts +38 -62
- package/package/components/disclosure/disclosure.svelte +39 -34
- package/package/components/disclosure/disclosure.svelte.d.ts +74 -56
- package/package/components/divider/divider.svelte +18 -14
- package/package/components/divider/divider.svelte.d.ts +31 -10
- package/package/components/divider/spacer.svelte +13 -8
- package/package/components/divider/spacer.svelte.d.ts +20 -9
- package/package/components/drawer/drawer.svelte +63 -76
- package/package/components/drawer/drawer.svelte.d.ts +102 -84
- package/package/components/grid/grid-body.svelte +15 -10
- package/package/components/grid/grid-body.svelte.d.ts +30 -24
- package/package/components/grid/grid-cell.svelte +16 -6
- package/package/components/grid/grid-cell.svelte.d.ts +23 -23
- package/package/components/grid/grid-col-header.svelte +16 -6
- package/package/components/grid/grid-col-header.svelte.d.ts +23 -23
- package/package/components/grid/grid-foot.svelte +16 -6
- package/package/components/grid/grid-foot.svelte.d.ts +23 -23
- package/package/components/grid/grid-head.svelte +16 -6
- package/package/components/grid/grid-head.svelte.d.ts +23 -23
- package/package/components/grid/grid-row-header.svelte +16 -6
- package/package/components/grid/grid-row-header.svelte.d.ts +23 -23
- package/package/components/grid/grid-row.svelte +19 -23
- package/package/components/grid/grid-row.svelte.d.ts +48 -38
- package/package/components/grid/grid.svelte +28 -25
- package/package/components/grid/grid.svelte.d.ts +56 -32
- package/package/components/icon/icon.svelte +14 -9
- package/package/components/icon/icon.svelte.d.ts +20 -9
- package/package/components/listbox/listbox.svelte +46 -52
- package/package/components/listbox/listbox.svelte.d.ts +102 -40
- package/package/components/listbox/option-group.svelte +23 -19
- package/package/components/listbox/option-group.svelte.d.ts +49 -27
- package/package/components/listbox/option.svelte +44 -57
- package/package/components/listbox/option.svelte.d.ts +54 -84
- package/package/components/menu/menu-button.svelte +42 -63
- package/package/components/menu/menu-button.svelte.d.ts +18 -72
- package/package/components/menu/menu-item-checkbox.svelte +29 -41
- package/package/components/menu/menu-item-checkbox.svelte.d.ts +5 -44
- package/package/components/menu/menu-item-group.svelte +22 -19
- package/package/components/menu/menu-item-group.svelte.d.ts +41 -27
- package/package/components/menu/menu-item-radio.svelte +29 -41
- package/package/components/menu/menu-item-radio.svelte.d.ts +5 -44
- package/package/components/menu/menu-item.svelte +66 -75
- package/package/components/menu/menu-item.svelte.d.ts +5 -80
- package/package/components/menu/menu.svelte +27 -22
- package/package/components/menu/menu.svelte.d.ts +50 -30
- package/package/components/radio/radio-group.svelte +38 -42
- package/package/components/radio/radio-group.svelte.d.ts +85 -35
- package/package/components/radio/radio.svelte +45 -48
- package/package/components/radio/radio.svelte.d.ts +96 -42
- package/package/components/select/combobox.svelte +76 -101
- package/package/components/select/combobox.svelte.d.ts +5 -56
- package/package/components/select/select-tags.svelte +48 -59
- package/package/components/select/select-tags.svelte.d.ts +109 -28
- package/package/components/select/select.svelte +18 -37
- package/package/components/select/select.svelte.d.ts +5 -40
- package/package/components/slider/slider.svelte +71 -68
- package/package/components/slider/slider.svelte.d.ts +142 -31
- package/package/components/switch/switch.svelte +36 -46
- package/package/components/switch/switch.svelte.d.ts +83 -37
- package/package/components/table/table-body.svelte +15 -11
- package/package/components/table/table-body.svelte.d.ts +30 -24
- package/package/components/table/table-cell.svelte +16 -6
- package/package/components/table/table-cell.svelte.d.ts +23 -23
- package/package/components/table/table-col-header.svelte +16 -6
- package/package/components/table/table-col-header.svelte.d.ts +23 -23
- package/package/components/table/table-foot.svelte +16 -6
- package/package/components/table/table-foot.svelte.d.ts +23 -23
- package/package/components/table/table-head.svelte +16 -6
- package/package/components/table/table-head.svelte.d.ts +23 -23
- package/package/components/table/table-row-header.svelte +16 -6
- package/package/components/table/table-row-header.svelte.d.ts +23 -23
- package/package/components/table/table-row.svelte +16 -6
- package/package/components/table/table-row.svelte.d.ts +23 -23
- package/package/components/table/table.svelte +16 -6
- package/package/components/table/table.svelte.d.ts +23 -23
- package/package/components/tabs/tab-box.svelte +16 -9
- package/package/components/tabs/tab-box.svelte.d.ts +32 -22
- package/package/components/tabs/tab-list.svelte +36 -35
- package/package/components/tabs/tab-list.svelte.d.ts +65 -33
- package/package/components/tabs/tab-panel.svelte +16 -6
- package/package/components/tabs/tab-panel.svelte.d.ts +23 -23
- package/package/components/tabs/tab-panels.svelte +16 -6
- package/package/components/tabs/tab-panels.svelte.d.ts +23 -21
- package/package/components/tabs/tab.svelte +28 -25
- package/package/components/tabs/tab.svelte.d.ts +17 -63
- package/package/components/text-editor/lexical-root.svelte +38 -32
- package/package/components/text-editor/lexical-root.svelte.d.ts +74 -13
- package/package/components/text-editor/text-editor.svelte +63 -79
- package/package/components/text-editor/text-editor.svelte.d.ts +97 -20
- package/package/components/text-editor/toolbar/editor-toolbar.svelte +41 -24
- package/package/components/text-editor/toolbar/editor-toolbar.svelte.d.ts +32 -7
- package/package/components/text-editor/toolbar/format-text-button.svelte +15 -5
- package/package/components/text-editor/toolbar/format-text-button.svelte.d.ts +13 -6
- package/package/components/text-editor/toolbar/insert-link-button.svelte +18 -16
- package/package/components/text-editor/toolbar/insert-link-button.svelte.d.ts +4 -8
- 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 +13 -6
- package/package/components/text-field/number-input.svelte +63 -81
- package/package/components/text-field/number-input.svelte.d.ts +48 -55
- package/package/components/text-field/password-input.svelte +38 -57
- package/package/components/text-field/password-input.svelte.d.ts +16 -45
- package/package/components/text-field/search-bar.svelte +45 -62
- package/package/components/text-field/search-bar.svelte.d.ts +25 -66
- package/package/components/text-field/text-area.svelte +38 -54
- package/package/components/text-field/text-area.svelte.d.ts +100 -35
- package/package/components/text-field/text-input.svelte +28 -86
- package/package/components/text-field/text-input.svelte.d.ts +4 -78
- package/package/components/toast/toast.svelte +36 -30
- package/package/components/toast/toast.svelte.d.ts +50 -28
- package/package/components/toolbar/toolbar.svelte +25 -25
- package/package/components/toolbar/toolbar.svelte.d.ts +57 -29
- package/package/components/util/app-shell.svelte +22 -10
- package/package/components/util/app-shell.svelte.d.ts +25 -29
- package/package/components/util/group.svelte +20 -15
- package/package/components/util/group.svelte.d.ts +40 -26
- package/package/components/util/modal.svelte +89 -105
- package/package/components/util/modal.svelte.d.ts +6 -71
- package/package/components/util/placeholder.svelte +21 -0
- package/package/components/util/{portal.svelte.d.ts → placeholder.svelte.d.ts} +17 -25
- package/package/components/util/popup.svelte +65 -62
- package/package/components/util/popup.svelte.d.ts +89 -77
- 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 +12 -19
- package/package/components/util/portal.svelte +0 -36
- /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
|
@@ -5,58 +5,49 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
-
import { createEventDispatcher } from 'svelte';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* The `class` attribute on the wrapper element.
|
|
12
|
-
* @type {string}
|
|
13
|
-
*/
|
|
14
|
-
let className = '';
|
|
15
|
-
export { className as class };
|
|
16
|
-
/**
|
|
17
|
-
* Whether to hide the widget. An alias of the `aria-hidden` attribute.
|
|
18
|
-
* @type {boolean | undefined}
|
|
19
|
-
*/
|
|
20
|
-
export let hidden = undefined;
|
|
21
|
-
/**
|
|
22
|
-
* Whether to disable the widget. An alias of the `aria-disabled` attribute.
|
|
23
|
-
* @type {boolean}
|
|
24
|
-
*/
|
|
25
|
-
export let disabled = false;
|
|
26
8
|
/**
|
|
27
|
-
*
|
|
28
|
-
* @
|
|
9
|
+
* @typedef {object} Props
|
|
10
|
+
* @property {string | undefined} [label] - Text label displayed next to the switch.
|
|
11
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
12
|
+
* @property {boolean} [hidden] - Whether to hide the widget.
|
|
13
|
+
* @property {boolean} [disabled] - Whether to disable the widget. An alias of the `aria-disabled`
|
|
14
|
+
* attribute.
|
|
15
|
+
* @property {boolean} [readonly] - Whether to make the widget read-only. An alias of the
|
|
16
|
+
* `aria-readonly` attribute.
|
|
17
|
+
* @property {boolean} [required] - Whether to mark the widget required. An alias of the
|
|
18
|
+
* `aria-required` attribute.
|
|
19
|
+
* @property {boolean} [invalid] - Whether to mark the widget invalid. An alias of the
|
|
20
|
+
* `aria-invalid` attribute.
|
|
21
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
22
|
+
* @property {(event: CustomEvent) => void} [onChange] - Custom `Change` event handler.
|
|
29
23
|
*/
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Whether to mark the widget required. An alias of the `aria-required` attribute.
|
|
33
|
-
* @type {boolean}
|
|
34
|
-
*/
|
|
35
|
-
export let required = false;
|
|
36
|
-
/**
|
|
37
|
-
* Whether to mark the widget invalid. An alias of the `aria-invalid` attribute.
|
|
38
|
-
* @type {boolean}
|
|
39
|
-
*/
|
|
40
|
-
export let invalid = false;
|
|
41
|
-
/**
|
|
42
|
-
* Whether to check the widget. An alias of the `aria-checked` attribute.
|
|
43
|
-
* @type {boolean | 'mixed'}
|
|
44
|
-
*/
|
|
45
|
-
export let checked = false;
|
|
24
|
+
|
|
46
25
|
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {string | undefined}
|
|
26
|
+
* @type {Props & Record<string, any>}
|
|
49
27
|
*/
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
28
|
+
let {
|
|
29
|
+
/* eslint-disable prefer-const */
|
|
30
|
+
checked = $bindable(false),
|
|
31
|
+
label = undefined,
|
|
32
|
+
class: className,
|
|
33
|
+
hidden = false,
|
|
34
|
+
disabled = false,
|
|
35
|
+
readonly = false,
|
|
36
|
+
required = false,
|
|
37
|
+
invalid = false,
|
|
38
|
+
children,
|
|
39
|
+
onChange,
|
|
40
|
+
...restProps
|
|
41
|
+
/* eslint-enable prefer-const */
|
|
42
|
+
} = $props();
|
|
53
43
|
</script>
|
|
54
44
|
|
|
55
45
|
<button
|
|
46
|
+
{...restProps}
|
|
56
47
|
role="switch"
|
|
57
48
|
class="sui switch {className}"
|
|
58
49
|
type="button"
|
|
59
|
-
|
|
50
|
+
{hidden}
|
|
60
51
|
disabled={disabled || undefined}
|
|
61
52
|
aria-checked={checked}
|
|
62
53
|
aria-hidden={hidden}
|
|
@@ -64,11 +55,10 @@
|
|
|
64
55
|
aria-readonly={readonly}
|
|
65
56
|
aria-required={required}
|
|
66
57
|
aria-invalid={invalid}
|
|
67
|
-
{
|
|
68
|
-
on:click={() => {
|
|
58
|
+
onclick={() => {
|
|
69
59
|
if (!disabled && !readonly) {
|
|
70
60
|
checked = !checked;
|
|
71
|
-
|
|
61
|
+
onChange?.(new CustomEvent('Change', { detail: { checked } }));
|
|
72
62
|
}
|
|
73
63
|
}}
|
|
74
64
|
>
|
|
@@ -76,7 +66,7 @@
|
|
|
76
66
|
{#if label}
|
|
77
67
|
{label}
|
|
78
68
|
{:else}
|
|
79
|
-
|
|
69
|
+
{@render children?.()}
|
|
80
70
|
{/if}
|
|
81
71
|
</button>
|
|
82
72
|
|
|
@@ -1,54 +1,100 @@
|
|
|
1
1
|
export default Switch;
|
|
2
|
-
type Switch = SvelteComponent
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
class?: string | undefined;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
invalid?: boolean | undefined;
|
|
7
|
-
label?: string | undefined;
|
|
8
|
-
checked?: boolean | "mixed" | undefined;
|
|
9
|
-
required?: boolean | undefined;
|
|
10
|
-
hidden?: boolean | undefined;
|
|
11
|
-
readonly?: boolean | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
default: {};
|
|
14
|
-
}>, {
|
|
15
|
-
change: CustomEvent<any>;
|
|
16
|
-
} & {
|
|
2
|
+
type Switch = SvelteComponent<Props & Record<string, any>, {
|
|
17
3
|
[evt: string]: CustomEvent<any>;
|
|
18
|
-
}, {
|
|
19
|
-
|
|
20
|
-
}> & {
|
|
21
|
-
$$bindings?: string | undefined;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "checked" | undefined;
|
|
22
6
|
};
|
|
23
7
|
/**
|
|
24
8
|
* A variant of `<Checkbox>`, looking like a switch that can be often seen on mobile apps.
|
|
25
9
|
* @see https://w3c.github.io/aria/#switch
|
|
26
10
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
|
|
27
11
|
*/
|
|
28
|
-
declare const Switch: $$__sveltets_2_IsomorphicComponent
|
|
29
|
-
|
|
12
|
+
declare const Switch: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - Text label displayed next to the switch.
|
|
15
|
+
*/
|
|
16
|
+
label?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* - The `class` attribute on the wrapper element.
|
|
19
|
+
*/
|
|
30
20
|
class?: string | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* - Whether to hide the widget.
|
|
23
|
+
*/
|
|
24
|
+
hidden?: boolean | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
27
|
+
* attribute.
|
|
28
|
+
*/
|
|
31
29
|
disabled?: boolean | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* - Whether to make the widget read-only. An alias of the
|
|
32
|
+
* `aria-readonly` attribute.
|
|
33
|
+
*/
|
|
34
|
+
readonly?: boolean | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* - Whether to mark the widget required. An alias of the
|
|
37
|
+
* `aria-required` attribute.
|
|
38
|
+
*/
|
|
39
|
+
required?: boolean | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
42
|
+
* `aria-invalid` attribute.
|
|
43
|
+
*/
|
|
32
44
|
invalid?: boolean | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* - Primary slot content.
|
|
47
|
+
*/
|
|
48
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* - Custom `Change` event handler.
|
|
51
|
+
*/
|
|
52
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
53
|
+
} & Record<string, any>, {
|
|
54
|
+
[evt: string]: CustomEvent<any>;
|
|
55
|
+
}, {}, {}, "checked">;
|
|
56
|
+
type Props = {
|
|
57
|
+
/**
|
|
58
|
+
* - Text label displayed next to the switch.
|
|
59
|
+
*/
|
|
33
60
|
label?: string | undefined;
|
|
34
|
-
|
|
35
|
-
|
|
61
|
+
/**
|
|
62
|
+
* - The `class` attribute on the wrapper element.
|
|
63
|
+
*/
|
|
64
|
+
class?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* - Whether to hide the widget.
|
|
67
|
+
*/
|
|
36
68
|
hidden?: boolean | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* - Whether to disable the widget. An alias of the `aria-disabled`
|
|
71
|
+
* attribute.
|
|
72
|
+
*/
|
|
73
|
+
disabled?: boolean | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* - Whether to make the widget read-only. An alias of the
|
|
76
|
+
* `aria-readonly` attribute.
|
|
77
|
+
*/
|
|
37
78
|
readonly?: boolean | undefined;
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
79
|
+
/**
|
|
80
|
+
* - Whether to mark the widget required. An alias of the
|
|
81
|
+
* `aria-required` attribute.
|
|
82
|
+
*/
|
|
83
|
+
required?: boolean | undefined;
|
|
84
|
+
/**
|
|
85
|
+
* - Whether to mark the widget invalid. An alias of the
|
|
86
|
+
* `aria-invalid` attribute.
|
|
87
|
+
*/
|
|
88
|
+
invalid?: boolean | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* - Primary slot content.
|
|
91
|
+
*/
|
|
92
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
93
|
+
/**
|
|
94
|
+
* - Custom `Change` event handler.
|
|
95
|
+
*/
|
|
96
|
+
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
97
|
+
};
|
|
52
98
|
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> {
|
|
53
99
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
54
100
|
$$bindings?: Bindings;
|
|
@@ -6,40 +6,44 @@
|
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
8
|
import { generateElementId } from '@sveltia/utils/element';
|
|
9
|
-
|
|
10
9
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @
|
|
10
|
+
* @typedef {object} Props
|
|
11
|
+
* @property {string} [class] - The `class` attribute on the wrapper element.
|
|
12
|
+
* @property {string} [label] - Display label for the row group.
|
|
13
|
+
* @property {import('svelte').Snippet} [children] - Primary slot content.
|
|
13
14
|
*/
|
|
14
|
-
let className = '';
|
|
15
|
-
export { className as class };
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
|
-
*
|
|
19
|
-
* @type {string}
|
|
17
|
+
* @type {Props & Record<string, any>}
|
|
20
18
|
*/
|
|
21
|
-
|
|
19
|
+
let {
|
|
20
|
+
/* eslint-disable prefer-const */
|
|
21
|
+
class: className,
|
|
22
|
+
label = '',
|
|
23
|
+
children,
|
|
24
|
+
...restProps
|
|
25
|
+
/* eslint-enable prefer-const */
|
|
26
|
+
} = $props();
|
|
22
27
|
|
|
23
28
|
const id = generateElementId('tbody');
|
|
24
29
|
</script>
|
|
25
30
|
|
|
26
31
|
<div
|
|
32
|
+
{...restProps}
|
|
27
33
|
role="rowgroup"
|
|
28
34
|
class="sui table-body row-group {className}"
|
|
29
35
|
aria-labelledby={label ? `${id}-label` : undefined}
|
|
30
36
|
aria-roledescription="table body"
|
|
31
|
-
{...$$restProps}
|
|
32
37
|
>
|
|
33
38
|
{#if label}
|
|
34
39
|
<div role="row" class="row-group-caption">
|
|
35
40
|
<!-- We need `colspan` here but cannot place `<th>` under `<div>`, so use a hack -->
|
|
36
|
-
<!-- prettier-ignore -->
|
|
37
41
|
<svelte:element this={'th'} role="rowheader" id="{id}-label" colspan="9999">
|
|
38
42
|
{label}
|
|
39
43
|
</svelte:element>
|
|
40
44
|
</div>
|
|
41
45
|
{/if}
|
|
42
|
-
|
|
46
|
+
{@render children?.()}
|
|
43
47
|
</div>
|
|
44
48
|
|
|
45
49
|
<style>[role=rowgroup] {
|
|
@@ -1,38 +1,44 @@
|
|
|
1
1
|
export default TableBody;
|
|
2
|
-
type TableBody = SvelteComponent
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
class?: string | undefined;
|
|
5
|
-
label?: string | undefined;
|
|
6
|
-
}, {
|
|
7
|
-
default: {};
|
|
8
|
-
}>, {
|
|
2
|
+
type TableBody = SvelteComponent<Props & Record<string, any>, {
|
|
9
3
|
[evt: string]: CustomEvent<any>;
|
|
10
|
-
}, {
|
|
11
|
-
|
|
12
|
-
}> & {
|
|
13
|
-
$$bindings?: string | undefined;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
14
6
|
};
|
|
15
7
|
/**
|
|
16
8
|
* The equivalent of the HTML `<tbody>` element.
|
|
17
9
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody
|
|
18
10
|
* @see https://w3c.github.io/aria/#rowgroup
|
|
19
11
|
*/
|
|
20
|
-
declare const TableBody: $$__sveltets_2_IsomorphicComponent
|
|
21
|
-
|
|
12
|
+
declare const TableBody: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
22
16
|
class?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* - Display label for the row group.
|
|
19
|
+
*/
|
|
23
20
|
label?: string | undefined;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
/**
|
|
22
|
+
* - Primary slot content.
|
|
23
|
+
*/
|
|
24
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
25
|
+
} & Record<string, any>, {
|
|
27
26
|
[evt: string]: CustomEvent<any>;
|
|
28
|
-
}, {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
27
|
+
}, {}, {}, "">;
|
|
28
|
+
type Props = {
|
|
29
|
+
/**
|
|
30
|
+
* - The `class` attribute on the wrapper element.
|
|
31
|
+
*/
|
|
32
|
+
class?: string | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* - Display label for the row group.
|
|
35
|
+
*/
|
|
36
|
+
label?: string | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* - Primary slot content.
|
|
39
|
+
*/
|
|
40
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
41
|
+
};
|
|
36
42
|
interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
|
|
37
43
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
38
44
|
$$bindings?: Bindings;
|
|
@@ -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="cell" class="sui table-cell {className}"
|
|
17
|
-
|
|
26
|
+
<div {...restProps} role="cell" class="sui table-cell {className}">
|
|
27
|
+
{@render children?.()}
|
|
18
28
|
</div>
|
|
19
29
|
|
|
20
30
|
<style>.table-cell {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
export default TableCell;
|
|
2
|
-
type TableCell = SvelteComponent
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
class?: string | undefined;
|
|
5
|
-
}, {
|
|
6
|
-
default: {};
|
|
7
|
-
}>, {
|
|
2
|
+
type TableCell = SvelteComponent<Props & Record<string, any>, {
|
|
8
3
|
[evt: string]: CustomEvent<any>;
|
|
9
|
-
}, {
|
|
10
|
-
|
|
11
|
-
}> & {
|
|
12
|
-
$$bindings?: string | undefined;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
13
6
|
};
|
|
14
7
|
/**
|
|
15
8
|
* The equivalent of the HTML `<td>` element.
|
|
16
9
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td
|
|
17
10
|
* @see https://w3c.github.io/aria/#cell
|
|
18
11
|
*/
|
|
19
|
-
declare const TableCell: $$__sveltets_2_IsomorphicComponent
|
|
20
|
-
|
|
12
|
+
declare const TableCell: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
21
16
|
class?: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Primary slot content.
|
|
19
|
+
*/
|
|
20
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
+
} & Record<string, any>, {
|
|
25
22
|
[evt: string]: CustomEvent<any>;
|
|
26
|
-
}, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
33
|
+
};
|
|
34
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
35
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
36
36
|
$$bindings?: Bindings;
|
|
@@ -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="columnheader" class="sui table-col-header {className}"
|
|
17
|
-
|
|
26
|
+
<div {...restProps} role="columnheader" class="sui table-col-header {className}">
|
|
27
|
+
{@render children?.()}
|
|
18
28
|
</div>
|
|
19
29
|
|
|
20
30
|
<style>.table-col-header {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
export default TableColHeader;
|
|
2
|
-
type TableColHeader = SvelteComponent
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
class?: string | undefined;
|
|
5
|
-
}, {
|
|
6
|
-
default: {};
|
|
7
|
-
}>, {
|
|
2
|
+
type TableColHeader = SvelteComponent<Props & Record<string, any>, {
|
|
8
3
|
[evt: string]: CustomEvent<any>;
|
|
9
|
-
}, {
|
|
10
|
-
|
|
11
|
-
}> & {
|
|
12
|
-
$$bindings?: string | undefined;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
13
6
|
};
|
|
14
7
|
/**
|
|
15
8
|
* The equivalent of the HTML `<th scope="col">` element.
|
|
16
9
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th
|
|
17
10
|
* @see https://w3c.github.io/aria/#columnheader
|
|
18
11
|
*/
|
|
19
|
-
declare const TableColHeader: $$__sveltets_2_IsomorphicComponent
|
|
20
|
-
|
|
12
|
+
declare const TableColHeader: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
21
16
|
class?: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Primary slot content.
|
|
19
|
+
*/
|
|
20
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
+
} & Record<string, any>, {
|
|
25
22
|
[evt: string]: CustomEvent<any>;
|
|
26
|
-
}, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
33
|
+
};
|
|
34
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
35
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
36
36
|
$$bindings?: Bindings;
|
|
@@ -6,20 +6,30 @@
|
|
|
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
26
|
<div
|
|
27
|
+
{...restProps}
|
|
17
28
|
role="rowgroup"
|
|
18
29
|
class="sui table-foot {className}"
|
|
19
30
|
aria-roledescription="table foot"
|
|
20
|
-
{...$$restProps}
|
|
21
31
|
>
|
|
22
|
-
|
|
32
|
+
{@render children?.()}
|
|
23
33
|
</div>
|
|
24
34
|
|
|
25
35
|
<style>.table-foot {
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
export default TableFoot;
|
|
2
|
-
type TableFoot = SvelteComponent
|
|
3
|
-
[x: string]: any;
|
|
4
|
-
class?: string | undefined;
|
|
5
|
-
}, {
|
|
6
|
-
default: {};
|
|
7
|
-
}>, {
|
|
2
|
+
type TableFoot = SvelteComponent<Props & Record<string, any>, {
|
|
8
3
|
[evt: string]: CustomEvent<any>;
|
|
9
|
-
}, {
|
|
10
|
-
|
|
11
|
-
}> & {
|
|
12
|
-
$$bindings?: string | undefined;
|
|
4
|
+
}, {}> & {
|
|
5
|
+
$$bindings?: "" | undefined;
|
|
13
6
|
};
|
|
14
7
|
/**
|
|
15
8
|
* The equivalent of the HTML `<tfoot>` element.
|
|
16
9
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot
|
|
17
10
|
* @see https://w3c.github.io/aria/#rowgroup
|
|
18
11
|
*/
|
|
19
|
-
declare const TableFoot: $$__sveltets_2_IsomorphicComponent
|
|
20
|
-
|
|
12
|
+
declare const TableFoot: $$__sveltets_2_IsomorphicComponent<{
|
|
13
|
+
/**
|
|
14
|
+
* - The `class` attribute on the wrapper element.
|
|
15
|
+
*/
|
|
21
16
|
class?: string | undefined;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
/**
|
|
18
|
+
* - Primary slot content.
|
|
19
|
+
*/
|
|
20
|
+
children?: import("svelte").Snippet<[]> | undefined;
|
|
21
|
+
} & Record<string, any>, {
|
|
25
22
|
[evt: string]: CustomEvent<any>;
|
|
26
|
-
}, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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;
|
|
33
|
+
};
|
|
34
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
35
|
new (options: import("svelte").ComponentConstructorOptions<Props>): import("svelte").SvelteComponent<Props, Events, Slots> & {
|
|
36
36
|
$$bindings?: Bindings;
|