@sveltia/ui 0.25.7 → 0.25.9
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/dist/components/alert/alert.svelte +7 -3
- package/dist/components/alert/alert.svelte.d.ts +11 -10
- package/dist/components/alert/infobar.svelte +9 -5
- package/dist/components/alert/infobar.svelte.d.ts +15 -14
- package/dist/components/button/button-group.svelte +6 -2
- package/dist/components/button/button-group.svelte.d.ts +7 -6
- package/dist/components/button/button.svelte +5 -2
- package/dist/components/button/button.svelte.d.ts +2 -1
- package/dist/components/button/select-button-group.svelte +12 -8
- package/dist/components/button/select-button-group.svelte.d.ts +19 -18
- package/dist/components/button/select-button.svelte +6 -3
- package/dist/components/button/select-button.svelte.d.ts +4 -3
- package/dist/components/button/split-button.svelte +10 -7
- package/dist/components/button/split-button.svelte.d.ts +18 -17
- package/dist/components/calendar/calendar.svelte +1 -1
- package/dist/components/calendar/calendar.svelte.d.ts +2 -2
- package/dist/components/checkbox/checkbox-group.svelte +9 -5
- package/dist/components/checkbox/checkbox-group.svelte.d.ts +13 -12
- package/dist/components/checkbox/checkbox.svelte +13 -9
- package/dist/components/checkbox/checkbox.svelte.d.ts +19 -17
- package/dist/components/dialog/alert-dialog.svelte +5 -2
- package/dist/components/dialog/alert-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/confirmation-dialog.svelte +5 -2
- package/dist/components/dialog/confirmation-dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/dialog.svelte +5 -2
- package/dist/components/dialog/dialog.svelte.d.ts +3 -1
- package/dist/components/dialog/prompt-dialog.svelte +16 -7
- package/dist/components/dialog/prompt-dialog.svelte.d.ts +17 -13
- package/dist/components/disclosure/disclosure.svelte +12 -8
- package/dist/components/disclosure/disclosure.svelte.d.ts +21 -20
- package/dist/components/divider/divider.svelte +3 -3
- package/dist/components/divider/divider.svelte.d.ts +6 -6
- package/dist/components/divider/spacer.svelte +2 -2
- package/dist/components/divider/spacer.svelte.d.ts +4 -4
- package/dist/components/drawer/drawer.svelte +18 -13
- package/dist/components/drawer/drawer.svelte.d.ts +39 -37
- package/dist/components/grid/grid-body.svelte +7 -3
- package/dist/components/grid/grid-body.svelte.d.ts +9 -8
- package/dist/components/grid/grid-cell.svelte +6 -2
- package/dist/components/grid/grid-cell.svelte.d.ts +7 -6
- package/dist/components/grid/grid-col-header.svelte +6 -2
- package/dist/components/grid/grid-col-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-foot.svelte +6 -2
- package/dist/components/grid/grid-foot.svelte.d.ts +7 -6
- package/dist/components/grid/grid-head.svelte +6 -2
- package/dist/components/grid/grid-head.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row-header.svelte +6 -2
- package/dist/components/grid/grid-row-header.svelte.d.ts +7 -6
- package/dist/components/grid/grid-row.svelte +9 -5
- package/dist/components/grid/grid-row.svelte.d.ts +13 -12
- package/dist/components/grid/grid.svelte +10 -6
- package/dist/components/grid/grid.svelte.d.ts +15 -14
- package/dist/components/icon/icon.svelte +2 -2
- package/dist/components/icon/icon.svelte.d.ts +4 -4
- package/dist/components/listbox/listbox.svelte +18 -13
- package/dist/components/listbox/listbox.svelte.d.ts +27 -26
- package/dist/components/listbox/option-group.svelte +9 -5
- package/dist/components/listbox/option-group.svelte.d.ts +13 -12
- package/dist/components/listbox/option.svelte +12 -8
- package/dist/components/listbox/option.svelte.d.ts +17 -15
- package/dist/components/menu/menu-button.svelte +7 -4
- package/dist/components/menu/menu-button.svelte.d.ts +6 -5
- package/dist/components/menu/menu-item-checkbox.svelte +5 -2
- package/dist/components/menu/menu-item-checkbox.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item-group.svelte +9 -5
- package/dist/components/menu/menu-item-group.svelte.d.ts +8 -8
- package/dist/components/menu/menu-item-radio.svelte +5 -2
- package/dist/components/menu/menu-item-radio.svelte.d.ts +3 -1
- package/dist/components/menu/menu-item.svelte +5 -2
- package/dist/components/menu/menu-item.svelte.d.ts +3 -1
- package/dist/components/menu/menu.svelte +9 -5
- package/dist/components/menu/menu.svelte.d.ts +13 -12
- package/dist/components/progressbar/progressbar.svelte +5 -5
- package/dist/components/progressbar/progressbar.svelte.d.ts +10 -10
- package/dist/components/radio/radio-group.svelte +13 -9
- package/dist/components/radio/radio-group.svelte.d.ts +21 -20
- package/dist/components/radio/radio.svelte +15 -11
- package/dist/components/radio/radio.svelte.d.ts +27 -26
- package/dist/components/select/combobox.svelte +6 -3
- package/dist/components/select/combobox.svelte.d.ts +3 -1
- package/dist/components/select/select-tags.svelte +16 -13
- package/dist/components/select/select-tags.svelte.d.ts +27 -28
- package/dist/components/select/select.svelte +5 -1
- package/dist/components/select/select.svelte.d.ts +2 -1
- package/dist/components/slider/slider.svelte +27 -25
- package/dist/components/slider/slider.svelte.d.ts +35 -34
- package/dist/components/switch/switch.svelte +13 -9
- package/dist/components/switch/switch.svelte.d.ts +21 -20
- package/dist/components/table/table-body.svelte +7 -3
- package/dist/components/table/table-body.svelte.d.ts +9 -8
- package/dist/components/table/table-cell.svelte +6 -2
- package/dist/components/table/table-cell.svelte.d.ts +7 -6
- package/dist/components/table/table-col-header.svelte +6 -2
- package/dist/components/table/table-col-header.svelte.d.ts +7 -6
- package/dist/components/table/table-foot.svelte +6 -2
- package/dist/components/table/table-foot.svelte.d.ts +7 -6
- package/dist/components/table/table-head.svelte +6 -2
- package/dist/components/table/table-head.svelte.d.ts +7 -6
- package/dist/components/table/table-row-header.svelte +6 -2
- package/dist/components/table/table-row-header.svelte.d.ts +7 -6
- package/dist/components/table/table-row.svelte +6 -2
- package/dist/components/table/table-row.svelte.d.ts +7 -6
- package/dist/components/table/table.svelte +6 -2
- package/dist/components/table/table.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-box.svelte +7 -3
- package/dist/components/tabs/tab-box.svelte.d.ts +9 -8
- package/dist/components/tabs/tab-list.svelte +12 -8
- package/dist/components/tabs/tab-list.svelte.d.ts +19 -18
- package/dist/components/tabs/tab-panel.svelte +6 -2
- package/dist/components/tabs/tab-panel.svelte.d.ts +7 -6
- package/dist/components/tabs/tab-panels.svelte +6 -2
- package/dist/components/tabs/tab-panels.svelte.d.ts +7 -6
- package/dist/components/tabs/tab.svelte +6 -3
- package/dist/components/tabs/tab.svelte.d.ts +4 -3
- package/dist/components/text-editor/code-editor.svelte +16 -18
- package/dist/components/text-editor/code-editor.svelte.d.ts +25 -24
- package/dist/components/text-editor/core.d.ts +5 -3
- package/dist/components/text-editor/core.js +26 -15
- package/dist/components/text-editor/index.d.ts +12 -6
- package/dist/components/text-editor/index.js +7 -3
- package/dist/components/text-editor/lexical-root.svelte +27 -30
- package/dist/components/text-editor/lexical-root.svelte.d.ts +17 -16
- package/dist/components/text-editor/store.svelte.d.ts +2 -1
- package/dist/components/text-editor/store.svelte.js +10 -5
- package/dist/components/text-editor/text-editor.svelte +22 -13
- package/dist/components/text-editor/text-editor.svelte.d.ts +37 -32
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte +3 -3
- package/dist/components/text-editor/toolbar/code-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte +6 -2
- package/dist/components/text-editor/toolbar/code-language-switcher.svelte.d.ts +2 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/format-text-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-image-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-image-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/insert-link-button.svelte +9 -4
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte +6 -2
- package/dist/components/text-editor/toolbar/insert-menu-button.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte +10 -6
- package/dist/components/text-editor/toolbar/text-editor-toolbar.svelte.d.ts +6 -6
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte +8 -5
- package/dist/components/text-editor/toolbar/toggle-block-menu-item.svelte.d.ts +5 -4
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte +7 -3
- package/dist/components/text-editor/toolbar/toolbar-wrapper.svelte.d.ts +9 -8
- package/dist/components/text-editor/transformers/table.d.ts +3 -2
- package/dist/components/text-editor/transformers/table.js +5 -1
- package/dist/components/text-field/number-input.svelte +12 -8
- package/dist/components/text-field/number-input.svelte.d.ts +20 -17
- package/dist/components/text-field/password-input.svelte +8 -4
- package/dist/components/text-field/password-input.svelte.d.ts +10 -7
- package/dist/components/text-field/search-bar.svelte +9 -5
- package/dist/components/text-field/search-bar.svelte.d.ts +14 -11
- package/dist/components/text-field/text-area.svelte +18 -14
- package/dist/components/text-field/text-area.svelte.d.ts +29 -27
- package/dist/components/text-field/text-input.svelte +7 -3
- package/dist/components/text-field/text-input.svelte.d.ts +5 -3
- package/dist/components/toast/toast.svelte +10 -5
- package/dist/components/toast/toast.svelte.d.ts +16 -14
- package/dist/components/toolbar/toolbar.svelte +11 -7
- package/dist/components/toolbar/toolbar.svelte.d.ts +17 -16
- package/dist/components/util/app-shell.svelte +6 -3
- package/dist/components/util/app-shell.svelte.d.ts +7 -8
- package/dist/components/util/group.svelte +8 -4
- package/dist/components/util/group.svelte.d.ts +11 -10
- package/dist/components/util/modal.svelte +7 -3
- package/dist/components/util/modal.svelte.d.ts +2 -1
- package/dist/components/util/placeholder.svelte +5 -1
- package/dist/components/util/placeholder.svelte.d.ts +5 -4
- package/dist/components/util/popup.svelte +23 -17
- package/dist/components/util/popup.svelte.d.ts +36 -33
- package/dist/index.js +3 -3
- package/dist/services/events.svelte.d.ts +2 -1
- package/dist/services/events.svelte.js +12 -8
- package/dist/services/group.svelte.d.ts +2 -1
- package/dist/services/group.svelte.js +16 -12
- package/dist/services/popup.svelte.d.ts +16 -10
- package/dist/services/popup.svelte.js +14 -13
- package/dist/typedefs.d.ts +191 -189
- package/dist/typedefs.js +168 -164
- package/package.json +18 -18
|
@@ -9,7 +9,11 @@
|
|
|
9
9
|
import Combobox from './combobox.svelte';
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
* @
|
|
12
|
+
* @import { ComboboxProps } from '../../typedefs';
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* @type {ComboboxProps & Record<string, any>}
|
|
13
17
|
*/
|
|
14
18
|
let {
|
|
15
19
|
/* eslint-disable prefer-const */
|
|
@@ -9,4 +9,5 @@ type Select = {
|
|
|
9
9
|
* @see https://w3c.github.io/aria/#combobox
|
|
10
10
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/combobox/examples/combobox-select-only/
|
|
11
11
|
*/
|
|
12
|
-
declare const Select: import("svelte").Component<
|
|
12
|
+
declare const Select: import("svelte").Component<ComboboxProps & Record<string, any>, {}, "value">;
|
|
13
|
+
import type { ComboboxProps } from '../../typedefs';
|
|
@@ -10,27 +10,31 @@
|
|
|
10
10
|
<script>
|
|
11
11
|
import { onMount } from 'svelte';
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* @import { Snippet } from 'svelte';
|
|
15
|
+
*/
|
|
16
|
+
|
|
13
17
|
/**
|
|
14
18
|
* @typedef {object} Props
|
|
15
|
-
* @property {number} [value]
|
|
16
|
-
* @property {number} [min]
|
|
17
|
-
* @property {number} [max]
|
|
18
|
-
* @property {string} [sliderLabel]
|
|
19
|
-
* @property {[number, number]} [values]
|
|
20
|
-
* @property {[string, string]} [sliderLabels]
|
|
21
|
-
* @property {number} [step]
|
|
22
|
-
* @property {(string[] | number[])} [optionLabels]
|
|
23
|
-
* @property {boolean} [flex]
|
|
24
|
-
* @property {string} [class]
|
|
25
|
-
* @property {boolean} [hidden]
|
|
26
|
-
* @property {boolean} [disabled]
|
|
19
|
+
* @property {number} [value] Current value.
|
|
20
|
+
* @property {number} [min] Minimum allowed value. An alias of the `aria-valuemin` attribute.
|
|
21
|
+
* @property {number} [max] Maximum allowed value. An alias of the `aria-valuemax` attribute.
|
|
22
|
+
* @property {string} [sliderLabel] `aria-label` on the slider.
|
|
23
|
+
* @property {[number, number]} [values] Value list for a multi-thumb slider.
|
|
24
|
+
* @property {[string, string]} [sliderLabels] `aria-label` on a multi-thumb slider.
|
|
25
|
+
* @property {number} [step] Step option like `<input type="range">`.
|
|
26
|
+
* @property {(string[] | number[])} [optionLabels] Visible labels on the slider.
|
|
27
|
+
* @property {boolean} [flex] Make the text input container flexible.
|
|
28
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
29
|
+
* @property {boolean} [hidden] Whether to hide the widget.
|
|
30
|
+
* @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
|
|
27
31
|
* attribute.
|
|
28
|
-
* @property {boolean} [readonly]
|
|
32
|
+
* @property {boolean} [readonly] Whether to make the widget read-only. An alias of the
|
|
29
33
|
* `aria-readonly` attribute.
|
|
30
|
-
* @property {boolean} [invalid]
|
|
34
|
+
* @property {boolean} [invalid] Whether to mark the widget invalid. An alias of the
|
|
31
35
|
* `aria-invalid` attribute.
|
|
32
|
-
* @property {
|
|
33
|
-
* @property {(detail: { values?: number[], value?: number }) => void} [onChange]
|
|
36
|
+
* @property {Snippet} [children] Primary slot content.
|
|
37
|
+
* @property {(detail: { values?: number[], value?: number }) => void} [onChange] `change` event
|
|
34
38
|
* handler.
|
|
35
39
|
*/
|
|
36
40
|
|
|
@@ -77,7 +81,7 @@
|
|
|
77
81
|
|
|
78
82
|
/**
|
|
79
83
|
* Move a thumb with mouse.
|
|
80
|
-
* @param {number} diff
|
|
84
|
+
* @param {number} diff Distance from the original X position in pixels.
|
|
81
85
|
*/
|
|
82
86
|
const moveThumb = (diff) => {
|
|
83
87
|
if (diff < 0) {
|
|
@@ -113,9 +117,8 @@
|
|
|
113
117
|
|
|
114
118
|
/**
|
|
115
119
|
* Handle the `keydown` event fired on the slider.
|
|
116
|
-
* @param {KeyboardEvent} event
|
|
117
|
-
* @param {number} [valueIndex]
|
|
118
|
-
* value.
|
|
120
|
+
* @param {KeyboardEvent} event `keydown` event.
|
|
121
|
+
* @param {number} [valueIndex] Index in the {@link values} array to be used to get/set the value.
|
|
119
122
|
*/
|
|
120
123
|
const onKeyDown = (event, valueIndex = 0) => {
|
|
121
124
|
const { key, ctrlKey, metaKey, shiftKey, altKey } = event;
|
|
@@ -166,7 +169,7 @@
|
|
|
166
169
|
|
|
167
170
|
/**
|
|
168
171
|
* Handle the `pointermove` event fired anywhere on the page.
|
|
169
|
-
* @param {PointerEvent} event
|
|
172
|
+
* @param {PointerEvent} event `pointermove` event.
|
|
170
173
|
*/
|
|
171
174
|
const onPointerMove = (event) => {
|
|
172
175
|
const { screenX, pointerId } = event;
|
|
@@ -182,7 +185,7 @@
|
|
|
182
185
|
|
|
183
186
|
/**
|
|
184
187
|
* Handle the `pointerup` and `pointercancel` events fired anywhere on the page.
|
|
185
|
-
* @param {PointerEvent} event
|
|
188
|
+
* @param {PointerEvent} event `pointerup` or `pointercancel` event.
|
|
186
189
|
*/
|
|
187
190
|
const onPointerUp = (event) => {
|
|
188
191
|
const { pointerId } = event;
|
|
@@ -212,9 +215,8 @@
|
|
|
212
215
|
|
|
213
216
|
/**
|
|
214
217
|
* Handle the `pointerdown` event fired on the slider.
|
|
215
|
-
* @param {PointerEvent} event
|
|
216
|
-
* @param {number} [valueIndex]
|
|
217
|
-
* value.
|
|
218
|
+
* @param {PointerEvent} event `pointerdown` event.
|
|
219
|
+
* @param {number} [valueIndex] Index in the {@link values} array to be used to get/set the value.
|
|
218
220
|
*/
|
|
219
221
|
const onPointerDown = (event, valueIndex = 0) => {
|
|
220
222
|
const { clientX, screenX, pointerId } = event;
|
|
@@ -13,70 +13,70 @@ type Slider = {
|
|
|
13
13
|
*/
|
|
14
14
|
declare const Slider: import("svelte").Component<{
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Current value.
|
|
17
17
|
*/
|
|
18
18
|
value?: number | undefined;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Minimum allowed value. An alias of the `aria-valuemin` attribute.
|
|
21
21
|
*/
|
|
22
22
|
min?: number | undefined;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Maximum allowed value. An alias of the `aria-valuemax` attribute.
|
|
25
25
|
*/
|
|
26
26
|
max?: number | undefined;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* `aria-label` on the slider.
|
|
29
29
|
*/
|
|
30
30
|
sliderLabel?: string | undefined;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Value list for a multi-thumb slider.
|
|
33
33
|
*/
|
|
34
34
|
values?: [number, number] | undefined;
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* `aria-label` on a multi-thumb slider.
|
|
37
37
|
*/
|
|
38
38
|
sliderLabels?: [string, string] | undefined;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Step option like `<input type="range">`.
|
|
41
41
|
*/
|
|
42
42
|
step?: number | undefined;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Visible labels on the slider.
|
|
45
45
|
*/
|
|
46
46
|
optionLabels?: string[] | number[] | undefined;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Make the text input container flexible.
|
|
49
49
|
*/
|
|
50
50
|
flex?: boolean | undefined;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* The `class` attribute on the wrapper element.
|
|
53
53
|
*/
|
|
54
54
|
class?: string | undefined;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Whether to hide the widget.
|
|
57
57
|
*/
|
|
58
58
|
hidden?: boolean | undefined;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
61
61
|
* attribute.
|
|
62
62
|
*/
|
|
63
63
|
disabled?: boolean | undefined;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Whether to make the widget read-only. An alias of the
|
|
66
66
|
* `aria-readonly` attribute.
|
|
67
67
|
*/
|
|
68
68
|
readonly?: boolean | undefined;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Whether to mark the widget invalid. An alias of the
|
|
71
71
|
* `aria-invalid` attribute.
|
|
72
72
|
*/
|
|
73
73
|
invalid?: boolean | undefined;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Primary slot content.
|
|
76
76
|
*/
|
|
77
|
-
children?:
|
|
77
|
+
children?: Snippet<[]> | undefined;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* `change` event
|
|
80
80
|
* handler.
|
|
81
81
|
*/
|
|
82
82
|
onChange?: ((detail: {
|
|
@@ -86,70 +86,70 @@ declare const Slider: import("svelte").Component<{
|
|
|
86
86
|
} & Record<string, any>, {}, "value" | "values">;
|
|
87
87
|
type Props = {
|
|
88
88
|
/**
|
|
89
|
-
*
|
|
89
|
+
* Current value.
|
|
90
90
|
*/
|
|
91
91
|
value?: number | undefined;
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* Minimum allowed value. An alias of the `aria-valuemin` attribute.
|
|
94
94
|
*/
|
|
95
95
|
min?: number | undefined;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Maximum allowed value. An alias of the `aria-valuemax` attribute.
|
|
98
98
|
*/
|
|
99
99
|
max?: number | undefined;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
101
|
+
* `aria-label` on the slider.
|
|
102
102
|
*/
|
|
103
103
|
sliderLabel?: string | undefined;
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* Value list for a multi-thumb slider.
|
|
106
106
|
*/
|
|
107
107
|
values?: [number, number] | undefined;
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* `aria-label` on a multi-thumb slider.
|
|
110
110
|
*/
|
|
111
111
|
sliderLabels?: [string, string] | undefined;
|
|
112
112
|
/**
|
|
113
|
-
*
|
|
113
|
+
* Step option like `<input type="range">`.
|
|
114
114
|
*/
|
|
115
115
|
step?: number | undefined;
|
|
116
116
|
/**
|
|
117
|
-
*
|
|
117
|
+
* Visible labels on the slider.
|
|
118
118
|
*/
|
|
119
119
|
optionLabels?: string[] | number[] | undefined;
|
|
120
120
|
/**
|
|
121
|
-
*
|
|
121
|
+
* Make the text input container flexible.
|
|
122
122
|
*/
|
|
123
123
|
flex?: boolean | undefined;
|
|
124
124
|
/**
|
|
125
|
-
*
|
|
125
|
+
* The `class` attribute on the wrapper element.
|
|
126
126
|
*/
|
|
127
127
|
class?: string | undefined;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Whether to hide the widget.
|
|
130
130
|
*/
|
|
131
131
|
hidden?: boolean | undefined;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
134
134
|
* attribute.
|
|
135
135
|
*/
|
|
136
136
|
disabled?: boolean | undefined;
|
|
137
137
|
/**
|
|
138
|
-
*
|
|
138
|
+
* Whether to make the widget read-only. An alias of the
|
|
139
139
|
* `aria-readonly` attribute.
|
|
140
140
|
*/
|
|
141
141
|
readonly?: boolean | undefined;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
143
|
+
* Whether to mark the widget invalid. An alias of the
|
|
144
144
|
* `aria-invalid` attribute.
|
|
145
145
|
*/
|
|
146
146
|
invalid?: boolean | undefined;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* Primary slot content.
|
|
149
149
|
*/
|
|
150
|
-
children?:
|
|
150
|
+
children?: Snippet<[]> | undefined;
|
|
151
151
|
/**
|
|
152
|
-
*
|
|
152
|
+
* `change` event
|
|
153
153
|
* handler.
|
|
154
154
|
*/
|
|
155
155
|
onChange?: ((detail: {
|
|
@@ -157,3 +157,4 @@ type Props = {
|
|
|
157
157
|
value?: number;
|
|
158
158
|
}) => void) | undefined;
|
|
159
159
|
};
|
|
160
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,21 +5,25 @@
|
|
|
5
5
|
@see https://www.w3.org/WAI/ARIA/apg/patterns/switch/
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [label]
|
|
11
|
-
* @property {string} [class]
|
|
12
|
-
* @property {boolean} [hidden]
|
|
13
|
-
* @property {boolean} [disabled]
|
|
14
|
+
* @property {string} [label] Text label displayed next to the switch.
|
|
15
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
16
|
+
* @property {boolean} [hidden] Whether to hide the widget.
|
|
17
|
+
* @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
|
|
14
18
|
* attribute.
|
|
15
|
-
* @property {boolean} [readonly]
|
|
19
|
+
* @property {boolean} [readonly] Whether to make the widget read-only. An alias of the
|
|
16
20
|
* `aria-readonly` attribute.
|
|
17
|
-
* @property {boolean} [required]
|
|
21
|
+
* @property {boolean} [required] Whether to mark the widget required. An alias of the
|
|
18
22
|
* `aria-required` attribute.
|
|
19
|
-
* @property {boolean} [invalid]
|
|
23
|
+
* @property {boolean} [invalid] Whether to mark the widget invalid. An alias of the
|
|
20
24
|
* `aria-invalid` attribute.
|
|
21
|
-
* @property {
|
|
22
|
-
* @property {(event: CustomEvent) => void} [onChange]
|
|
25
|
+
* @property {Snippet} [children] Primary slot content.
|
|
26
|
+
* @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
|
|
23
27
|
*/
|
|
24
28
|
|
|
25
29
|
/**
|
|
@@ -10,85 +10,86 @@ type Switch = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const Switch: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Text label displayed next to the switch.
|
|
14
14
|
*/
|
|
15
15
|
label?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* The `class` attribute on the wrapper element.
|
|
18
18
|
*/
|
|
19
19
|
class?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Whether to hide the widget.
|
|
22
22
|
*/
|
|
23
23
|
hidden?: boolean | undefined;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
26
26
|
* attribute.
|
|
27
27
|
*/
|
|
28
28
|
disabled?: boolean | undefined;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Whether to make the widget read-only. An alias of the
|
|
31
31
|
* `aria-readonly` attribute.
|
|
32
32
|
*/
|
|
33
33
|
readonly?: boolean | undefined;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Whether to mark the widget required. An alias of the
|
|
36
36
|
* `aria-required` attribute.
|
|
37
37
|
*/
|
|
38
38
|
required?: boolean | undefined;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Whether to mark the widget invalid. An alias of the
|
|
41
41
|
* `aria-invalid` attribute.
|
|
42
42
|
*/
|
|
43
43
|
invalid?: boolean | undefined;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Primary slot content.
|
|
46
46
|
*/
|
|
47
|
-
children?:
|
|
47
|
+
children?: Snippet<[]> | undefined;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Custom `Change` event handler.
|
|
50
50
|
*/
|
|
51
51
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
52
52
|
} & Record<string, any>, {}, "checked">;
|
|
53
53
|
type Props = {
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Text label displayed next to the switch.
|
|
56
56
|
*/
|
|
57
57
|
label?: string | undefined;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* The `class` attribute on the wrapper element.
|
|
60
60
|
*/
|
|
61
61
|
class?: string | undefined;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Whether to hide the widget.
|
|
64
64
|
*/
|
|
65
65
|
hidden?: boolean | undefined;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Whether to disable the widget. An alias of the `aria-disabled`
|
|
68
68
|
* attribute.
|
|
69
69
|
*/
|
|
70
70
|
disabled?: boolean | undefined;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Whether to make the widget read-only. An alias of the
|
|
73
73
|
* `aria-readonly` attribute.
|
|
74
74
|
*/
|
|
75
75
|
readonly?: boolean | undefined;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Whether to mark the widget required. An alias of the
|
|
78
78
|
* `aria-required` attribute.
|
|
79
79
|
*/
|
|
80
80
|
required?: boolean | undefined;
|
|
81
81
|
/**
|
|
82
|
-
*
|
|
82
|
+
* Whether to mark the widget invalid. An alias of the
|
|
83
83
|
* `aria-invalid` attribute.
|
|
84
84
|
*/
|
|
85
85
|
invalid?: boolean | undefined;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Primary slot content.
|
|
88
88
|
*/
|
|
89
|
-
children?:
|
|
89
|
+
children?: Snippet<[]> | undefined;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* Custom `Change` event handler.
|
|
92
92
|
*/
|
|
93
93
|
onChange?: ((event: CustomEvent) => void) | undefined;
|
|
94
94
|
};
|
|
95
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,11 +5,15 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {string} [label]
|
|
12
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {string} [label] Display label for the row group.
|
|
16
|
+
* @property {Snippet} [children] Primary slot content.
|
|
13
17
|
*/
|
|
14
18
|
|
|
15
19
|
/**
|
|
@@ -10,29 +10,30 @@ type TableBody = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const TableBody: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Display label for the row group.
|
|
18
18
|
*/
|
|
19
19
|
label?: string | undefined;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Primary slot content.
|
|
22
22
|
*/
|
|
23
|
-
children?:
|
|
23
|
+
children?: Snippet<[]> | undefined;
|
|
24
24
|
} & Record<string, any>, {}, "">;
|
|
25
25
|
type Props = {
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The `class` attribute on the wrapper element.
|
|
28
28
|
*/
|
|
29
29
|
class?: string | undefined;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Display label for the row group.
|
|
32
32
|
*/
|
|
33
33
|
label?: string | undefined;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Primary slot content.
|
|
36
36
|
*/
|
|
37
|
-
children?:
|
|
37
|
+
children?: Snippet<[]> | undefined;
|
|
38
38
|
};
|
|
39
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#cell
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type TableCell = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const TableCell: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#columnheader
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type TableColHeader = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const TableColHeader: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|
|
@@ -10,21 +10,22 @@ type TableFoot = {
|
|
|
10
10
|
*/
|
|
11
11
|
declare const TableFoot: import("svelte").Component<{
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* The `class` attribute on the wrapper element.
|
|
14
14
|
*/
|
|
15
15
|
class?: string | undefined;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Primary slot content.
|
|
18
18
|
*/
|
|
19
|
-
children?:
|
|
19
|
+
children?: Snippet<[]> | undefined;
|
|
20
20
|
} & Record<string, any>, {}, "">;
|
|
21
21
|
type Props = {
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The `class` attribute on the wrapper element.
|
|
24
24
|
*/
|
|
25
25
|
class?: string | undefined;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Primary slot content.
|
|
28
28
|
*/
|
|
29
|
-
children?:
|
|
29
|
+
children?: Snippet<[]> | undefined;
|
|
30
30
|
};
|
|
31
|
+
import type { Snippet } from 'svelte';
|
|
@@ -5,10 +5,14 @@
|
|
|
5
5
|
@see https://w3c.github.io/aria/#rowgroup
|
|
6
6
|
-->
|
|
7
7
|
<script>
|
|
8
|
+
/**
|
|
9
|
+
* @import { Snippet } from 'svelte';
|
|
10
|
+
*/
|
|
11
|
+
|
|
8
12
|
/**
|
|
9
13
|
* @typedef {object} Props
|
|
10
|
-
* @property {string} [class]
|
|
11
|
-
* @property {
|
|
14
|
+
* @property {string} [class] The `class` attribute on the wrapper element.
|
|
15
|
+
* @property {Snippet} [children] Primary slot content.
|
|
12
16
|
*/
|
|
13
17
|
|
|
14
18
|
/**
|