@sveltia/ui 0.85.2 → 0.87.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/dist/components/checkbox/checkbox.svelte.d.ts +1 -1
- package/dist/components/dialog/dialog.svelte +10 -0
- package/dist/components/dialog/dialog.svelte.d.ts +1 -1
- package/dist/components/dialog/prompt-dialog.svelte.d.ts +1 -1
- package/dist/components/listbox/option.svelte.d.ts +1 -1
- package/dist/components/table/table-part.svelte.d.ts +2 -2
- package/dist/components/text-editor/shiki/version.d.ts +1 -1
- package/dist/components/text-editor/shiki/version.js +1 -1
- package/dist/components/text-editor/toolbar/insert-table-button.svelte +1 -0
- package/dist/components/text-field/color-input.svelte.d.ts +1 -1
- package/dist/components/text-field/date-time-input.svelte.d.ts +3 -3
- package/dist/components/text-field/masked-input.svelte +5 -0
- package/dist/components/text-field/number-input.svelte +31 -22
- package/dist/components/text-field/number-input.svelte.d.ts +1 -1
- package/dist/components/text-field/search-bar.svelte +4 -0
- package/dist/components/text-field/text-area.svelte.d.ts +1 -1
- package/dist/components/text-field/text-input.svelte.d.ts +1 -1
- package/dist/components/util/visibility-observer.svelte +6 -1
- package/dist/components/util/visibility-observer.svelte.d.ts +12 -0
- package/dist/locales/en-ZA.yaml +174 -0
- package/dist/typedefs.d.ts +2 -2
- package/dist/typedefs.js +1 -1
- package/package.json +11 -11
|
@@ -47,7 +47,7 @@ declare const Checkbox: import("svelte").Component<ButtonProps & import("../../t
|
|
|
47
47
|
* bind:group>`](https://svelte.dev/docs/svelte/bind#input-bind:group) of Svelte.
|
|
48
48
|
*/
|
|
49
49
|
group?: string[] | undefined;
|
|
50
|
-
} & Record<string, any>, {}, "
|
|
50
|
+
} & Record<string, any>, {}, "checked" | "group">;
|
|
51
51
|
type Props = {
|
|
52
52
|
/**
|
|
53
53
|
* The `class` attribute on the wrapper element.
|
|
@@ -212,6 +212,16 @@
|
|
|
212
212
|
transition-duration: 300ms;
|
|
213
213
|
transform: scale(90%);
|
|
214
214
|
}
|
|
215
|
+
.content.x-small {
|
|
216
|
+
width: var(--sui-dialog-x-small-content-width, var(--sui-dialog-content-width, 300px));
|
|
217
|
+
max-height: var(--sui-dialog-x-small-content-max-height, var(--sui-dialog-content-max-height, 300px));
|
|
218
|
+
--sui-textbox-singleline-min-width: 0;
|
|
219
|
+
}
|
|
220
|
+
@media (max-height: 300px) {
|
|
221
|
+
.content.x-small {
|
|
222
|
+
max-height: calc(100dvh - 32px);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
215
225
|
.content.small {
|
|
216
226
|
width: var(--sui-dialog-small-content-width, var(--sui-dialog-content-width, 400px));
|
|
217
227
|
max-height: var(--sui-dialog-small-content-max-height, var(--sui-dialog-content-max-height, 400px));
|
|
@@ -8,6 +8,6 @@ type Dialog = {
|
|
|
8
8
|
* @see https://w3c.github.io/aria/#dialog
|
|
9
9
|
* @see https://www.w3.org/WAI/ARIA/apg/patterns/dialog-modal/
|
|
10
10
|
*/
|
|
11
|
-
declare const Dialog: import("svelte").Component<ModalProps & DialogProps & Record<string, any>, {}, "
|
|
11
|
+
declare const Dialog: import("svelte").Component<ModalProps & DialogProps & Record<string, any>, {}, "open" | "value">;
|
|
12
12
|
import type { ModalProps } from '../../typedefs.js';
|
|
13
13
|
import type { DialogProps } from '../../typedefs.js';
|
|
@@ -28,7 +28,7 @@ declare const PromptDialog: import("svelte").Component<ModalProps & DialogProps
|
|
|
28
28
|
* Input slot content.
|
|
29
29
|
*/
|
|
30
30
|
input?: Snippet<[]> | undefined;
|
|
31
|
-
} & Record<string, any>, {}, "
|
|
31
|
+
} & Record<string, any>, {}, "open" | "value">;
|
|
32
32
|
type Props = {
|
|
33
33
|
/**
|
|
34
34
|
* Value entered on the textbox.
|
|
@@ -34,7 +34,7 @@ declare const Option: import("svelte").Component<ButtonProps & import("../../typ
|
|
|
34
34
|
* Check icon slot content.
|
|
35
35
|
*/
|
|
36
36
|
checkIcon?: Snippet<[]> | undefined;
|
|
37
|
-
} & Record<string, any>, {}, "
|
|
37
|
+
} & Record<string, any>, {}, "selected" | "hidden">;
|
|
38
38
|
type Props = {
|
|
39
39
|
/**
|
|
40
40
|
* The `class` attribute on the wrapper element.
|
|
@@ -16,7 +16,7 @@ declare const TablePart: import("svelte").Component<{
|
|
|
16
16
|
* The component class name, which also
|
|
17
17
|
* determines the `display` style.
|
|
18
18
|
*/
|
|
19
|
-
kind: `table-${"head" | "
|
|
19
|
+
kind: `table-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}` | `grid-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}`;
|
|
20
20
|
/**
|
|
21
21
|
* The `class` attribute on the wrapper element.
|
|
22
22
|
*/
|
|
@@ -35,7 +35,7 @@ type Props = {
|
|
|
35
35
|
* The component class name, which also
|
|
36
36
|
* determines the `display` style.
|
|
37
37
|
*/
|
|
38
|
-
kind: `table-${"head" | "
|
|
38
|
+
kind: `table-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}` | `grid-${"head" | "foot" | "row" | "col-header" | "row-header" | "cell"}`;
|
|
39
39
|
/**
|
|
40
40
|
* The `class` attribute on the wrapper element.
|
|
41
41
|
*/
|
|
@@ -50,7 +50,7 @@ declare const ColorInput: import("svelte").Component<import("../../typedefs.js")
|
|
|
50
50
|
* `aria-label` attribute.
|
|
51
51
|
*/
|
|
52
52
|
ariaLabel?: string | undefined;
|
|
53
|
-
} & Record<string, any>, {}, "
|
|
53
|
+
} & Record<string, any>, {}, "element" | "value">;
|
|
54
54
|
type Props = {
|
|
55
55
|
/**
|
|
56
56
|
* Input value, a lowercase hex color in the `#rrggbb` format. The
|
|
@@ -27,7 +27,7 @@ declare const DateTimeInput: import("svelte").Component<import("../../typedefs.j
|
|
|
27
27
|
/**
|
|
28
28
|
* The `type` attribute on the `<input>`.
|
|
29
29
|
*/
|
|
30
|
-
type?: "
|
|
30
|
+
type?: "date" | "datetime-local" | "time" | undefined;
|
|
31
31
|
/**
|
|
32
32
|
* Minimum allowed value, in the same format as `value`.
|
|
33
33
|
*/
|
|
@@ -69,7 +69,7 @@ declare const DateTimeInput: import("svelte").Component<import("../../typedefs.j
|
|
|
69
69
|
* `aria-label` attribute.
|
|
70
70
|
*/
|
|
71
71
|
ariaLabel?: string | undefined;
|
|
72
|
-
} & Record<string, any>, {}, "
|
|
72
|
+
} & Record<string, any>, {}, "element" | "value">;
|
|
73
73
|
type Props = {
|
|
74
74
|
/**
|
|
75
75
|
* Input value, in the native input’s format: `YYYY-MM-DD` for `date`,
|
|
@@ -84,7 +84,7 @@ type Props = {
|
|
|
84
84
|
/**
|
|
85
85
|
* The `type` attribute on the `<input>`.
|
|
86
86
|
*/
|
|
87
|
-
type?: "
|
|
87
|
+
type?: "date" | "datetime-local" | "time" | undefined;
|
|
88
88
|
/**
|
|
89
89
|
* Minimum allowed value, in the same format as `value`.
|
|
90
90
|
*/
|
|
@@ -170,6 +170,7 @@
|
|
|
170
170
|
class:flex
|
|
171
171
|
class:disabled
|
|
172
172
|
class:readonly
|
|
173
|
+
class:stepper={stepEnabled}
|
|
173
174
|
{hidden}
|
|
174
175
|
>
|
|
175
176
|
{#if stepEnabled}
|
|
@@ -266,9 +267,13 @@
|
|
|
266
267
|
<style>.number-input {
|
|
267
268
|
display: inline-flex;
|
|
268
269
|
align-items: center;
|
|
270
|
+
position: relative;
|
|
269
271
|
margin: var(--sui-focus-ring-width);
|
|
270
272
|
min-width: var(--sui-textbox-singleline-min-width);
|
|
271
273
|
}
|
|
274
|
+
.number-input.stepper {
|
|
275
|
+
--sui-number-input-end-padding: 24px;
|
|
276
|
+
}
|
|
272
277
|
.number-input.flex:not([hidden]) {
|
|
273
278
|
display: inline-flex;
|
|
274
279
|
width: -moz-available;
|
|
@@ -282,13 +287,8 @@
|
|
|
282
287
|
.number-input:not(.disabled) :global(button[aria-disabled='true']) :global(*) {
|
|
283
288
|
filter: grayscale(1) opacity(var(--sui-disabled-opacity, 0.35));
|
|
284
289
|
}
|
|
285
|
-
.number-input :global(
|
|
286
|
-
|
|
287
|
-
border-end-start-radius: 0;
|
|
288
|
-
}
|
|
289
|
-
.number-input :global(:not(:last-child)) :global(input) {
|
|
290
|
-
border-start-end-radius: 0;
|
|
291
|
-
border-end-end-radius: 0;
|
|
290
|
+
.number-input :global(input) {
|
|
291
|
+
padding-right: var(--sui-number-input-end-padding, 8px);
|
|
292
292
|
}
|
|
293
293
|
.number-input :global(.text-input) {
|
|
294
294
|
flex: auto;
|
|
@@ -299,26 +299,35 @@
|
|
|
299
299
|
|
|
300
300
|
.buttons {
|
|
301
301
|
display: flex;
|
|
302
|
-
flex-direction:
|
|
303
|
-
|
|
304
|
-
|
|
302
|
+
flex-direction: column;
|
|
303
|
+
position: absolute;
|
|
304
|
+
inset-block: 2px;
|
|
305
|
+
right: 2px;
|
|
306
|
+
z-index: 3;
|
|
307
|
+
width: 18px;
|
|
305
308
|
}
|
|
306
309
|
.buttons :global(button) {
|
|
307
310
|
flex: none;
|
|
308
311
|
margin: 0 !important;
|
|
309
|
-
border-width:
|
|
310
|
-
border-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
border-width: 0;
|
|
313
|
+
border-radius: 3px;
|
|
314
|
+
padding: 0;
|
|
315
|
+
width: 100%;
|
|
316
|
+
height: 50%;
|
|
317
|
+
min-height: 0;
|
|
318
|
+
}
|
|
319
|
+
.buttons :global(button) :global(.icon) {
|
|
320
|
+
font-size: 16px;
|
|
314
321
|
}
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
322
|
+
|
|
323
|
+
.number-input:dir(rtl) {
|
|
324
|
+
--sui-textbox-text-align: right;
|
|
318
325
|
}
|
|
319
|
-
.
|
|
320
|
-
|
|
326
|
+
.number-input:dir(rtl) .buttons {
|
|
327
|
+
right: auto;
|
|
328
|
+
left: 2px;
|
|
321
329
|
}
|
|
322
|
-
.
|
|
323
|
-
|
|
330
|
+
.number-input:dir(rtl) :global(input) {
|
|
331
|
+
padding-right: 8px;
|
|
332
|
+
padding-left: var(--sui-number-input-end-padding, 8px);
|
|
324
333
|
}</style>
|
|
@@ -48,7 +48,7 @@ declare const NumberInput: import("svelte").Component<TextInputProps & import(".
|
|
|
48
48
|
* Decrease icon slot content.
|
|
49
49
|
*/
|
|
50
50
|
decreaseIcon?: Snippet<[]> | undefined;
|
|
51
|
-
} & Record<string, any>, {}, "
|
|
51
|
+
} & Record<string, any>, {}, "value" | "invalid">;
|
|
52
52
|
type Props = {
|
|
53
53
|
/**
|
|
54
54
|
* Input value.
|
|
@@ -80,7 +80,7 @@ declare const TextArea: import("svelte").Component<import("../../typedefs.js").K
|
|
|
80
80
|
* Primary slot content.
|
|
81
81
|
*/
|
|
82
82
|
children?: Snippet<[]> | undefined;
|
|
83
|
-
} & Record<string, any>, {}, "
|
|
83
|
+
} & Record<string, any>, {}, "element" | "value">;
|
|
84
84
|
type Props = {
|
|
85
85
|
/**
|
|
86
86
|
* Input value.
|
|
@@ -18,7 +18,7 @@ declare const TextInput: import("svelte").Component<TextInputProps & import("../
|
|
|
18
18
|
* types a shortcode, like `:smi`.
|
|
19
19
|
*/
|
|
20
20
|
useEmojiAutocomplete?: boolean | undefined;
|
|
21
|
-
} & Record<string, any>, {}, "
|
|
21
|
+
} & Record<string, any>, {}, "element" | "value">;
|
|
22
22
|
type Props = {
|
|
23
23
|
/**
|
|
24
24
|
* Input value.
|
|
@@ -7,12 +7,16 @@
|
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @typedef {object} Props
|
|
10
|
+
* @property {boolean} [eager] Whether to render the content right away rather than once it comes
|
|
11
|
+
* into view, such as an item just added to a list, which is then scrolled into view and focused.
|
|
12
|
+
* Only the value at mount is used, as the content stays rendered anyway.
|
|
10
13
|
* @property {Snippet} children Slot content.
|
|
11
14
|
*/
|
|
12
15
|
|
|
13
16
|
/** @type {Props} */
|
|
14
17
|
let {
|
|
15
18
|
/* eslint-disable prefer-const */
|
|
19
|
+
eager = false,
|
|
16
20
|
children,
|
|
17
21
|
/* eslint-enable prefer-const */
|
|
18
22
|
} = $props();
|
|
@@ -20,7 +24,8 @@
|
|
|
20
24
|
/** @type {HTMLElement | null} */
|
|
21
25
|
let placeholder = $state(null);
|
|
22
26
|
/** @type {boolean} */
|
|
23
|
-
|
|
27
|
+
// svelte-ignore state_referenced_locally
|
|
28
|
+
let visible = $state(eager);
|
|
24
29
|
|
|
25
30
|
$effect(() => {
|
|
26
31
|
if (placeholder) {
|
|
@@ -4,12 +4,24 @@ type VisibilityObserver = {
|
|
|
4
4
|
$set?(props: Partial<Props>): void;
|
|
5
5
|
};
|
|
6
6
|
declare const VisibilityObserver: import("svelte").Component<{
|
|
7
|
+
/**
|
|
8
|
+
* Whether to render the content right away rather than once it comes
|
|
9
|
+
* into view, such as an item just added to a list, which is then scrolled into view and focused.
|
|
10
|
+
* Only the value at mount is used, as the content stays rendered anyway.
|
|
11
|
+
*/
|
|
12
|
+
eager?: boolean | undefined;
|
|
7
13
|
/**
|
|
8
14
|
* Slot content.
|
|
9
15
|
*/
|
|
10
16
|
children: Snippet;
|
|
11
17
|
}, {}, "">;
|
|
12
18
|
type Props = {
|
|
19
|
+
/**
|
|
20
|
+
* Whether to render the content right away rather than once it comes
|
|
21
|
+
* into view, such as an item just added to a list, which is then scrolled into view and focused.
|
|
22
|
+
* Only the value at mount is used, as the content stays rendered anyway.
|
|
23
|
+
*/
|
|
24
|
+
eager?: boolean | undefined;
|
|
13
25
|
/**
|
|
14
26
|
* Slot content.
|
|
15
27
|
*/
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
# Dialog action button labels
|
|
2
|
+
ok: OK
|
|
3
|
+
cancel: Cancel
|
|
4
|
+
close: Close
|
|
5
|
+
|
|
6
|
+
# Button to clear content, e.g. search input or calendar date
|
|
7
|
+
clear: Clear
|
|
8
|
+
|
|
9
|
+
# Text editor dialog buttons for link/image insertion
|
|
10
|
+
insert: Insert
|
|
11
|
+
update: Update
|
|
12
|
+
remove: Remove
|
|
13
|
+
|
|
14
|
+
# Combobox dropdown toggle button aria-labels
|
|
15
|
+
collapse: Collapse
|
|
16
|
+
expand: Expand
|
|
17
|
+
|
|
18
|
+
# Infobar/toast dismiss button label
|
|
19
|
+
dismiss: Dismiss
|
|
20
|
+
|
|
21
|
+
# Alert & infobar status, read out by screen readers before the message (visually hidden)
|
|
22
|
+
alert:
|
|
23
|
+
error: Error
|
|
24
|
+
warning: Warning
|
|
25
|
+
info: Information
|
|
26
|
+
success: Success
|
|
27
|
+
|
|
28
|
+
# Role descriptions, read out by screen readers in place of the generic “group” role
|
|
29
|
+
role_descriptions:
|
|
30
|
+
disclosure: disclosure
|
|
31
|
+
option_group: option group
|
|
32
|
+
menu_item_group: menu item group
|
|
33
|
+
checkbox_group: checkbox group
|
|
34
|
+
table_head: table head
|
|
35
|
+
table_body: table body
|
|
36
|
+
table_foot: table foot
|
|
37
|
+
grid_head: grid head
|
|
38
|
+
grid_body: grid body
|
|
39
|
+
grid_foot: grid foot
|
|
40
|
+
|
|
41
|
+
# Emoji suggestion listbox aria-label, shared by the text fields and the text editor
|
|
42
|
+
emoji_suggestions: Emoji Suggestions
|
|
43
|
+
|
|
44
|
+
# Calendar component
|
|
45
|
+
calendar:
|
|
46
|
+
# View switcher group aria-labels and navigation button aria-labels
|
|
47
|
+
year: Year
|
|
48
|
+
previous_decade: Previous Decade
|
|
49
|
+
next_decade: Next Decade
|
|
50
|
+
month: Month
|
|
51
|
+
previous_month: Previous Month
|
|
52
|
+
next_month: Next Month
|
|
53
|
+
# “Today” button label in footer
|
|
54
|
+
today: Today
|
|
55
|
+
|
|
56
|
+
# Split button component
|
|
57
|
+
split_button:
|
|
58
|
+
# Wrapper aria-label, e.g. “Save Options” when primary button is “Save”
|
|
59
|
+
x_options: '{$name} Options'
|
|
60
|
+
# Dropdown toggle aria-label
|
|
61
|
+
more_options: More Options
|
|
62
|
+
|
|
63
|
+
# Combobox component
|
|
64
|
+
combobox:
|
|
65
|
+
# Placeholder when no option is selected
|
|
66
|
+
select_an_option: Select an option…
|
|
67
|
+
# Filter input aria-label
|
|
68
|
+
filter_options: Filter Options
|
|
69
|
+
# Empty state message when filter has no matches
|
|
70
|
+
no_matching_options: No matching options found
|
|
71
|
+
|
|
72
|
+
# Number input component
|
|
73
|
+
number_input:
|
|
74
|
+
# Spin button aria-labels for incrementing/decrementing the number value
|
|
75
|
+
increase: Increase
|
|
76
|
+
decrease: Decrease
|
|
77
|
+
# Description of the allowed range when the number can’t be stepped, e.g. “From 1 to 10”
|
|
78
|
+
range: From {$min} to {$max}
|
|
79
|
+
# Description of the minimum value when the number can’t be stepped
|
|
80
|
+
min: Minimum {$min}
|
|
81
|
+
# Description of the maximum value when the number can’t be stepped
|
|
82
|
+
max: Maximum {$max}
|
|
83
|
+
|
|
84
|
+
# Password input component
|
|
85
|
+
password_input:
|
|
86
|
+
# Visibility toggle button aria-labels
|
|
87
|
+
show_password: Show Password
|
|
88
|
+
hide_password: Hide Password
|
|
89
|
+
|
|
90
|
+
# Secret input component (API keys, tokens, etc.)
|
|
91
|
+
secret_input:
|
|
92
|
+
# Visibility toggle button aria-labels
|
|
93
|
+
show_secret: Show Secret
|
|
94
|
+
hide_secret: Hide Secret
|
|
95
|
+
|
|
96
|
+
# Select tags component (multi-select)
|
|
97
|
+
select_tags:
|
|
98
|
+
# Listbox aria-label
|
|
99
|
+
selected_options: Selected Options
|
|
100
|
+
# Remove button aria-label, e.g. “Remove Option 1”
|
|
101
|
+
remove_x: Remove {$name}
|
|
102
|
+
|
|
103
|
+
# Text editor component
|
|
104
|
+
text_editor:
|
|
105
|
+
# Toolbar aria-labels
|
|
106
|
+
text_editor: Text Editor
|
|
107
|
+
code_editor: Code Editor
|
|
108
|
+
# Block style menu button and menu aria-labels
|
|
109
|
+
text_style_options: Text Style Options
|
|
110
|
+
show_text_style_options: Show Text Style Options
|
|
111
|
+
# Block style menu items
|
|
112
|
+
paragraph: Paragraph
|
|
113
|
+
heading_1: Heading 1
|
|
114
|
+
heading_2: Heading 2
|
|
115
|
+
heading_3: Heading 3
|
|
116
|
+
heading_4: Heading 4
|
|
117
|
+
heading_5: Heading 5
|
|
118
|
+
heading_6: Heading 6
|
|
119
|
+
bulleted_list: Bulleted List
|
|
120
|
+
numbered_list: Numbered List
|
|
121
|
+
blockquote: Block Quote
|
|
122
|
+
code_block: Code Block
|
|
123
|
+
# Inline style button aria-labels
|
|
124
|
+
bold: Bold
|
|
125
|
+
italic: Italic
|
|
126
|
+
strikethrough: Strikethrough
|
|
127
|
+
code: Code
|
|
128
|
+
link: Link
|
|
129
|
+
# Link dialog title
|
|
130
|
+
insert_link: Insert Link
|
|
131
|
+
# Floating link editor button aria-labels
|
|
132
|
+
edit_link: Edit Link
|
|
133
|
+
remove_link: Remove Link
|
|
134
|
+
# Link dialog input field labels
|
|
135
|
+
text: Text
|
|
136
|
+
url: URL
|
|
137
|
+
# Link dialog checkbox label and floating link editor button aria-label
|
|
138
|
+
open_in_new_tab: Open in New Tab
|
|
139
|
+
# Table dialog title
|
|
140
|
+
insert_table: Insert Table
|
|
141
|
+
# Table dialog input field labels
|
|
142
|
+
rows: Rows
|
|
143
|
+
columns: Columns
|
|
144
|
+
# Table menu button and menu aria-labels
|
|
145
|
+
table_options: Table Options
|
|
146
|
+
show_table_options: Show Table Options
|
|
147
|
+
# Table menu items
|
|
148
|
+
insert_row_above: Insert Row Above
|
|
149
|
+
insert_row_below: Insert Row Below
|
|
150
|
+
insert_column_left: Insert Column Left
|
|
151
|
+
insert_column_right: Insert Column Right
|
|
152
|
+
delete_row: Delete Row
|
|
153
|
+
delete_column: Delete Column
|
|
154
|
+
delete_table: Delete Table
|
|
155
|
+
# Horizontal rule button aria-label
|
|
156
|
+
insert_horizontal_rule: Insert Horizontal Rule
|
|
157
|
+
# Alignment menu button and menu aria-labels
|
|
158
|
+
alignment_options: Alignment Options
|
|
159
|
+
show_alignment_options: Show Alignment Options
|
|
160
|
+
# Alignment menu items
|
|
161
|
+
align_left: Left Align
|
|
162
|
+
align_center: Centre Align
|
|
163
|
+
align_right: Right Align
|
|
164
|
+
align_justify: Justify Align
|
|
165
|
+
# Markdown mode toggle button aria-label
|
|
166
|
+
edit_in_markdown: Edit in Markdown
|
|
167
|
+
# HTML mode toggle button aria-label
|
|
168
|
+
edit_in_html: Edit in HTML
|
|
169
|
+
# Error message when rich text conversion fails
|
|
170
|
+
converter_error: Unable to enable rich text mode. Please use the plain text editor instead.
|
|
171
|
+
# Language selector aria-label
|
|
172
|
+
language: Language
|
|
173
|
+
# Plain text mode option in language selector
|
|
174
|
+
plain_text: Plain Text
|
package/dist/typedefs.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ export type ModalProps = {
|
|
|
135
135
|
* The `role` attribute on the `<dialog>`
|
|
136
136
|
* element.
|
|
137
137
|
*/
|
|
138
|
-
role?: "
|
|
138
|
+
role?: "dialog" | "alertdialog" | "none" | undefined;
|
|
139
139
|
/**
|
|
140
140
|
* Whether to show the modal.
|
|
141
141
|
*/
|
|
@@ -221,7 +221,7 @@ export type DialogProps = {
|
|
|
221
221
|
/**
|
|
222
222
|
* Width of the dialog.
|
|
223
223
|
*/
|
|
224
|
-
size?: "small" | "medium" | "large" | "x-large" | undefined;
|
|
224
|
+
size?: "small" | "medium" | "large" | "x-small" | "x-large" | undefined;
|
|
225
225
|
/**
|
|
226
226
|
* The `class` attribute on the `<dialog>` element.
|
|
227
227
|
*/
|
package/dist/typedefs.js
CHANGED
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
* @property {string} [ariaLabelledby] ID of the element that labels the dialog, typically a heading
|
|
83
83
|
* inside a custom `header` snippet. Takes precedence over `title` for the accessible name.
|
|
84
84
|
* @property {'dialog' | 'alertdialog'} [role] The `role` attribute on the `<dialog>` element.
|
|
85
|
-
* @property {'small' | 'medium' | 'large' | 'x-large'} [size] Width of the dialog.
|
|
85
|
+
* @property {'x-small' | 'small' | 'medium' | 'large' | 'x-large'} [size] Width of the dialog.
|
|
86
86
|
* @property {string} [class] The `class` attribute on the `<dialog>` element.
|
|
87
87
|
* @property {boolean} [open] Whether to open the dialog.
|
|
88
88
|
* @property {boolean} [showClose] Whether to show the Close button on the header.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sveltia/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.87.0",
|
|
4
4
|
"description": "A collection of Svelte components and utilities for building user interfaces.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -71,39 +71,39 @@
|
|
|
71
71
|
"@fontsource/noto-mono": "5.3.0",
|
|
72
72
|
"@rollup/plugin-yaml": "^5.0.0",
|
|
73
73
|
"@sveltejs/adapter-auto": "^8.0.0",
|
|
74
|
-
"@sveltejs/kit": "^3.0
|
|
75
|
-
"@sveltejs/package": "^3.0.
|
|
74
|
+
"@sveltejs/kit": "^3.1.0",
|
|
75
|
+
"@sveltejs/package": "^3.0.1",
|
|
76
76
|
"@sveltejs/vite-plugin-svelte": "^7.3.1",
|
|
77
|
-
"@vitest/browser-playwright": "^5.0.
|
|
78
|
-
"@vitest/coverage-v8": "^5.0.
|
|
77
|
+
"@vitest/browser-playwright": "^5.0.5",
|
|
78
|
+
"@vitest/coverage-v8": "^5.0.5",
|
|
79
79
|
"cspell": "^10.4.0",
|
|
80
80
|
"eslint": "^9.39.5",
|
|
81
81
|
"eslint-config-airbnb-extended": "^3.3.0",
|
|
82
82
|
"eslint-config-prettier": "^10.1.8",
|
|
83
83
|
"eslint-plugin-import": "^2.32.0",
|
|
84
|
-
"eslint-plugin-jsdoc": "^65.3.
|
|
84
|
+
"eslint-plugin-jsdoc": "^65.3.8",
|
|
85
85
|
"eslint-plugin-package-json": "^1.10.1",
|
|
86
86
|
"eslint-plugin-svelte": "^3.23.1",
|
|
87
87
|
"globals": "^17.13.0",
|
|
88
|
-
"happy-dom": "^21.0.
|
|
88
|
+
"happy-dom": "^21.0.3",
|
|
89
89
|
"oxlint": "^1.88.0",
|
|
90
|
-
"playwright": "^1.64.
|
|
90
|
+
"playwright": "^1.64.1",
|
|
91
91
|
"postcss": "^8.5.30",
|
|
92
92
|
"postcss-html": "^2.0.0",
|
|
93
93
|
"prettier": "^3.9.10",
|
|
94
94
|
"prettier-plugin-svelte": "^4.1.1",
|
|
95
95
|
"rolldown": "^1.2.14",
|
|
96
|
-
"sass": "^1.105.
|
|
96
|
+
"sass": "^1.105.2",
|
|
97
97
|
"shiki": "^4.5.0",
|
|
98
98
|
"stylelint": "^17.16.0",
|
|
99
99
|
"stylelint-config-recommended-scss": "^17.0.1",
|
|
100
100
|
"stylelint-scss": "^7.3.0",
|
|
101
101
|
"svelte": "^5.57.2",
|
|
102
|
-
"svelte-check": "^4.7.
|
|
102
|
+
"svelte-check": "^4.7.7",
|
|
103
103
|
"svelte-preprocess": "^6.0.5",
|
|
104
104
|
"tslib": "^2.8.1",
|
|
105
105
|
"vite": "^8.3.4",
|
|
106
|
-
"vitest": "^5.0.
|
|
106
|
+
"vitest": "^5.0.5",
|
|
107
107
|
"vitest-browser-svelte": "^3.1.0"
|
|
108
108
|
},
|
|
109
109
|
"peerDependencies": {
|