@sveltia/ui 0.41.2 → 0.41.5

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.
Files changed (47) hide show
  1. package/dist/components/alert/alert.svelte +3 -1
  2. package/dist/components/alert/alert.svelte.d.ts +8 -0
  3. package/dist/components/alert/infobar.svelte +3 -1
  4. package/dist/components/alert/infobar.svelte.d.ts +8 -0
  5. package/dist/components/button/button-group.svelte +3 -1
  6. package/dist/components/button/button-group.svelte.d.ts +8 -0
  7. package/dist/components/button/select-button-group.svelte +3 -0
  8. package/dist/components/button/select-button-group.svelte.d.ts +8 -0
  9. package/dist/components/checkbox/checkbox-group.svelte +3 -0
  10. package/dist/components/checkbox/checkbox-group.svelte.d.ts +8 -0
  11. package/dist/components/checkbox/checkbox.svelte +2 -2
  12. package/dist/components/checkbox/checkbox.svelte.d.ts +2 -2
  13. package/dist/components/divider/divider.svelte +3 -0
  14. package/dist/components/divider/divider.svelte.d.ts +8 -0
  15. package/dist/components/grid/grid.svelte +3 -0
  16. package/dist/components/grid/grid.svelte.d.ts +8 -0
  17. package/dist/components/listbox/listbox.svelte +3 -0
  18. package/dist/components/listbox/listbox.svelte.d.ts +8 -0
  19. package/dist/components/menu/menu.svelte +3 -0
  20. package/dist/components/menu/menu.svelte.d.ts +8 -0
  21. package/dist/components/progressbar/progressbar.svelte +3 -0
  22. package/dist/components/progressbar/progressbar.svelte.d.ts +8 -0
  23. package/dist/components/radio/radio-group.svelte +3 -0
  24. package/dist/components/radio/radio-group.svelte.d.ts +8 -0
  25. package/dist/components/resizable-pane/resizable-handle.svelte +3 -0
  26. package/dist/components/resizable-pane/resizable-handle.svelte.d.ts +8 -0
  27. package/dist/components/select/combobox.svelte +4 -1
  28. package/dist/components/switch/switch.svelte +3 -0
  29. package/dist/components/switch/switch.svelte.d.ts +8 -0
  30. package/dist/components/table/table.svelte +3 -1
  31. package/dist/components/table/table.svelte.d.ts +8 -0
  32. package/dist/components/tabs/tab-list.svelte +3 -0
  33. package/dist/components/tabs/tab-list.svelte.d.ts +8 -0
  34. package/dist/components/text-editor/constants.d.ts +9 -0
  35. package/dist/components/text-editor/constants.js +26 -2
  36. package/dist/components/text-editor/core.js +9 -1
  37. package/dist/components/text-editor/toolbar/insert-link-button.svelte +2 -1
  38. package/dist/components/text-field/text-input.svelte +1 -1
  39. package/dist/components/toolbar/toolbar.svelte +3 -0
  40. package/dist/components/toolbar/toolbar.svelte.d.ts +8 -0
  41. package/dist/components/util/group.svelte +3 -0
  42. package/dist/components/util/group.svelte.d.ts +8 -0
  43. package/dist/locales/en.yaml +50 -3
  44. package/dist/locales/ja.yaml +49 -2
  45. package/dist/typedefs.d.ts +5 -1
  46. package/dist/typedefs.js +2 -1
  47. package/package.json +4 -4
@@ -12,6 +12,7 @@
12
12
  /**
13
13
  * @typedef {object} Props
14
14
  * @property {string} [class] The `class` attribute on the wrapper element.
15
+ * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
15
16
  * @property {Snippet} [children] Primary slot content.
16
17
  */
17
18
 
@@ -21,13 +22,14 @@
21
22
  let {
22
23
  /* eslint-disable prefer-const */
23
24
  class: className,
25
+ ariaLabel = undefined,
24
26
  children,
25
27
  ...restProps
26
28
  /* eslint-enable prefer-const */
27
29
  } = $props();
28
30
  </script>
29
31
 
30
- <div {...restProps} role="table" class="sui table {className}">
32
+ <div {...restProps} role="table" class="sui table {className}" aria-label={ariaLabel}>
31
33
  {@render children?.()}
32
34
  </div>
33
35
 
@@ -13,6 +13,10 @@ declare const Table: import("svelte").Component<{
13
13
  * The `class` attribute on the wrapper element.
14
14
  */
15
15
  class?: string | undefined;
16
+ /**
17
+ * The `aria-label` attribute on the wrapper element.
18
+ */
19
+ ariaLabel?: string | undefined;
16
20
  /**
17
21
  * Primary slot content.
18
22
  */
@@ -23,6 +27,10 @@ type Props = {
23
27
  * The `class` attribute on the wrapper element.
24
28
  */
25
29
  class?: string | undefined;
30
+ /**
31
+ * The `aria-label` attribute on the wrapper element.
32
+ */
33
+ ariaLabel?: string | undefined;
26
34
  /**
27
35
  * Primary slot content.
28
36
  */
@@ -21,6 +21,7 @@
21
21
  * @property {'horizontal' | 'vertical'} [orientation] Orientation of the widget. An alias of the
22
22
  * `aria-orientation` attribute.
23
23
  * @property {string} [name] The `data-name` attribute on the wrapper element.
24
+ * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
24
25
  * @property {Snippet} [children] Primary slot content.
25
26
  * @property {(event: CustomEvent) => void} [onChange] Custom `Change` event handler.
26
27
  */
@@ -35,6 +36,7 @@
35
36
  disabled = false,
36
37
  orientation = 'horizontal',
37
38
  name = undefined,
39
+ ariaLabel = undefined,
38
40
  children,
39
41
  onChange,
40
42
  ...restProps
@@ -100,6 +102,7 @@
100
102
  aria-hidden={hidden}
101
103
  aria-disabled={disabled}
102
104
  aria-orientation={orientation}
105
+ aria-label={ariaLabel}
103
106
  data-name={name || undefined}
104
107
  onInitialized={() => {
105
108
  updateIndicator();
@@ -31,6 +31,10 @@ declare const TabList: import("svelte").Component<{
31
31
  * The `data-name` attribute on the wrapper element.
32
32
  */
33
33
  name?: string | undefined;
34
+ /**
35
+ * The `aria-label` attribute on the wrapper element.
36
+ */
37
+ ariaLabel?: string | undefined;
34
38
  /**
35
39
  * Primary slot content.
36
40
  */
@@ -63,6 +67,10 @@ type Props = {
63
67
  * The `data-name` attribute on the wrapper element.
64
68
  */
65
69
  name?: string | undefined;
70
+ /**
71
+ * The `aria-label` attribute on the wrapper element.
72
+ */
73
+ ariaLabel?: string | undefined;
66
74
  /**
67
75
  * Primary slot content.
68
76
  */
@@ -52,6 +52,15 @@ export const NODE_MAP: Record<Exclude<TextEditorBlockType | "link", "paragraph">
52
52
  * @type {Record<Exclude<TextEditorNodeType, 'paragraph'>, Transformer[]>}
53
53
  */
54
54
  export const TRANSFORMER_MAP: Record<Exclude<TextEditorNodeType, "paragraph">, Transformer[]>;
55
+ /**
56
+ * List of Markdown tags that should be disabled in the editor when converting Lexical nodes to
57
+ * Markdown (but not when converting Markdown to Lexical nodes because we don’t want to lose any
58
+ * formatting). Use underscore for italic text in Markdown instead of asterisks, and use double
59
+ * asterisks for bold text in Markdown instead of underscores. Also, disable triple asterisks and
60
+ * triple underscores for bold+italic text in Markdown, which can be confusing and is not commonly
61
+ * used. This is to ensure that the Markdown output is more readable and consistent.
62
+ */
63
+ export const DISABLED_MARKDOWN_TAGS: string[];
55
64
  import type { EditorThemeClasses } from 'lexical';
56
65
  import type { TextEditorFormatType } from '../../typedefs';
57
66
  import type { TextEditorInlineType } from '../../typedefs';
@@ -5,9 +5,11 @@ import {
5
5
  BOLD_ITALIC_STAR,
6
6
  BOLD_ITALIC_UNDERSCORE,
7
7
  BOLD_STAR,
8
+ BOLD_UNDERSCORE,
8
9
  CODE,
9
10
  HEADING,
10
11
  INLINE_CODE,
12
+ ITALIC_STAR,
11
13
  ITALIC_UNDERSCORE,
12
14
  LINK,
13
15
  ORDERED_LIST,
@@ -241,9 +243,31 @@ export const TRANSFORMER_MAP = {
241
243
  'code-block': [CODE],
242
244
  // TEXT_FORMAT_TRANSFORMERS
243
245
  code: [INLINE_CODE],
244
- bold: [BOLD_ITALIC_STAR, BOLD_ITALIC_UNDERSCORE, BOLD_STAR], // Exclude BOLD_UNDERSCORE
245
- italic: [BOLD_ITALIC_STAR, BOLD_ITALIC_UNDERSCORE, ITALIC_UNDERSCORE], // Exclude ITALIC_STAR
246
+ bold: [
247
+ BOLD_STAR,
248
+ // Disabled for Markdown output in `DISABLED_MARKDOWN_TAGS` below
249
+ BOLD_UNDERSCORE,
250
+ BOLD_ITALIC_STAR,
251
+ BOLD_ITALIC_UNDERSCORE,
252
+ ],
253
+ italic: [
254
+ ITALIC_UNDERSCORE,
255
+ // Disabled for Markdown output in `DISABLED_MARKDOWN_TAGS` below
256
+ ITALIC_STAR,
257
+ BOLD_ITALIC_STAR,
258
+ BOLD_ITALIC_UNDERSCORE,
259
+ ],
246
260
  strikethrough: [STRIKETHROUGH],
247
261
  // TEXT_MATCH_TRANSFORMERS
248
262
  link: [LINK],
249
263
  };
264
+
265
+ /**
266
+ * List of Markdown tags that should be disabled in the editor when converting Lexical nodes to
267
+ * Markdown (but not when converting Markdown to Lexical nodes because we don’t want to lose any
268
+ * formatting). Use underscore for italic text in Markdown instead of asterisks, and use double
269
+ * asterisks for bold text in Markdown instead of underscores. Also, disable triple asterisks and
270
+ * triple underscores for bold+italic text in Markdown, which can be confusing and is not commonly
271
+ * used. This is to ensure that the Markdown output is more readable and consistent.
272
+ */
273
+ export const DISABLED_MARKDOWN_TAGS = ['*', '__', '***', '___'];
@@ -3,6 +3,8 @@
3
3
  import 'prismjs';
4
4
 
5
5
  import {
6
+ CodeHighlightNode,
7
+ CodeNode,
6
8
  $createCodeNode as createCodeNode,
7
9
  $isCodeHighlightNode as isCodeHighlightNode,
8
10
  $isCodeNode as isCodeNode,
@@ -52,6 +54,7 @@ import {
52
54
  import prismComponents from 'prismjs/components';
53
55
  import {
54
56
  BLOCK_BUTTON_TYPES,
57
+ DISABLED_MARKDOWN_TAGS,
55
58
  EDITOR_THEME,
56
59
  NODE_MAP,
57
60
  PRISM_BASE_URL,
@@ -162,10 +165,14 @@ export const getSelectionTypes = () => {
162
165
  * @param {Transformer[]} enabledTransformers Enabled Markdown transformers.
163
166
  */
164
167
  export const onEditorUpdate = (editor, enabledTransformers) => {
168
+ const transformers = enabledTransformers.filter(
169
+ (/** @type {any} */ { tag }) => !DISABLED_MARKDOWN_TAGS.includes(tag),
170
+ );
171
+
165
172
  editor.getRootElement()?.dispatchEvent(
166
173
  new CustomEvent('Update', {
167
174
  detail: {
168
- value: convertToMarkdownString(enabledTransformers)
175
+ value: convertToMarkdownString(transformers)
169
176
  // Remove unnecessary backslash for underscore and backslash characters
170
177
  // @see https://github.com/sveltia/sveltia-cms/issues/430
171
178
  // @see https://github.com/sveltia/sveltia-cms/issues/512
@@ -203,6 +210,7 @@ export const initEditor = ({
203
210
  .filter(([button]) => enabledButtons.includes(/** @type {TextEditorNodeType} */ (button)))
204
211
  .flatMap(([, nodes]) => nodes),
205
212
  ),
213
+ ...(isCodeEditor ? [CodeNode, CodeHighlightNode] : []),
206
214
  HorizontalRuleNode,
207
215
  TableNode,
208
216
  TableCellNode,
@@ -220,7 +220,7 @@
220
220
  id="{id}-url"
221
221
  bind:value={anchorURL}
222
222
  flex
223
- aria-label="URL"
223
+ aria-label={_('_sui.text_editor.url')}
224
224
  onkeydown={(event) => {
225
225
  onInputKeyDown(event);
226
226
  }}
@@ -234,6 +234,7 @@
234
234
  id="{id}-text"
235
235
  bind:value={anchorText}
236
236
  flex
237
+ aria-label={_('_sui.text_editor.text')}
237
238
  onkeydown={(event) => {
238
239
  onInputKeyDown(event);
239
240
  }}
@@ -39,7 +39,7 @@
39
39
  readonly = false,
40
40
  required = false,
41
41
  invalid = false,
42
- 'aria-label': ariaLabel,
42
+ ariaLabel = undefined,
43
43
  children,
44
44
  oninput,
45
45
  ...restProps
@@ -18,6 +18,7 @@
18
18
  * @property {'horizontal' | 'vertical'} [orientation] Orientation of the widget. An alias of the
19
19
  * `aria-orientation` attribute.
20
20
  * @property {'primary' | 'secondary'} [variant] The style variant of the toolbar.
21
+ * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
21
22
  * @property {Snippet} [children] Primary slot content.
22
23
  */
23
24
 
@@ -31,6 +32,7 @@
31
32
  disabled = false,
32
33
  orientation = 'horizontal',
33
34
  variant = undefined,
35
+ ariaLabel = undefined,
34
36
  children,
35
37
  ...restProps
36
38
  /* eslint-enable prefer-const */
@@ -45,6 +47,7 @@
45
47
  aria-hidden={hidden}
46
48
  aria-disabled={disabled}
47
49
  aria-orientation={orientation}
50
+ aria-label={ariaLabel}
48
51
  >
49
52
  <div role="none" class="inner" inert={disabled}>
50
53
  {@render children?.()}
@@ -31,6 +31,10 @@ declare const Toolbar: import("svelte").Component<{
31
31
  * The style variant of the toolbar.
32
32
  */
33
33
  variant?: "primary" | "secondary" | undefined;
34
+ /**
35
+ * The `aria-label` attribute on the wrapper element.
36
+ */
37
+ ariaLabel?: string | undefined;
34
38
  /**
35
39
  * Primary slot content.
36
40
  */
@@ -59,6 +63,10 @@ type Props = {
59
63
  * The style variant of the toolbar.
60
64
  */
61
65
  variant?: "primary" | "secondary" | undefined;
66
+ /**
67
+ * The `aria-label` attribute on the wrapper element.
68
+ */
69
+ ariaLabel?: string | undefined;
62
70
  /**
63
71
  * Primary slot content.
64
72
  */
@@ -14,6 +14,7 @@
14
14
  * @property {boolean} [hidden] Whether to hide the widget.
15
15
  * @property {boolean} [disabled] Whether to disable the widget. An alias of the `aria-disabled`
16
16
  * attribute.
17
+ * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
17
18
  * @property {Snippet} [children] Primary slot content.
18
19
  */
19
20
 
@@ -25,6 +26,7 @@
25
26
  class: className,
26
27
  hidden = false,
27
28
  disabled = false,
29
+ ariaLabel = undefined,
28
30
  children,
29
31
  ...restProps
30
32
  /* eslint-enable prefer-const */
@@ -38,6 +40,7 @@
38
40
  {hidden}
39
41
  aria-hidden={hidden}
40
42
  aria-disabled={disabled}
43
+ aria-label={ariaLabel}
41
44
  >
42
45
  <div role="none" class="inner" inert={disabled}>
43
46
  {@render children?.()}
@@ -21,6 +21,10 @@ declare const Group: import("svelte").Component<{
21
21
  * attribute.
22
22
  */
23
23
  disabled?: boolean | undefined;
24
+ /**
25
+ * The `aria-label` attribute on the wrapper element.
26
+ */
27
+ ariaLabel?: string | undefined;
24
28
  /**
25
29
  * Primary slot content.
26
30
  */
@@ -40,6 +44,10 @@ type Props = {
40
44
  * attribute.
41
45
  */
42
46
  disabled?: boolean | undefined;
47
+ /**
48
+ * The `aria-label` attribute on the wrapper element.
49
+ */
50
+ ariaLabel?: string | undefined;
43
51
  /**
44
52
  * Primary slot content.
45
53
  */
@@ -1,45 +1,85 @@
1
+ # Dialog action button labels
1
2
  ok: OK
2
3
  cancel: Cancel
3
4
  close: Close
5
+
6
+ # Button to clear content, e.g. search input or calendar date
4
7
  clear: Clear
8
+
9
+ # Text editor dialog buttons for link/image insertion
5
10
  insert: Insert
6
11
  update: Update
7
12
  remove: Remove
13
+
14
+ # Combobox dropdown toggle button aria-labels
8
15
  collapse: Collapse
9
16
  expand: Expand
17
+
18
+ # Infobar/toast dismiss button label
10
19
  dismiss: Dismiss
20
+
21
+ # Calendar component
11
22
  calendar:
23
+ # View switcher group aria-labels and navigation button aria-labels
12
24
  year: Year
13
25
  previous_decade: Previous Decade
14
26
  next_decade: Next Decade
15
27
  month: Month
16
28
  previous_month: Previous Month
17
29
  next_month: Next Month
30
+ # “Today” button label in footer
18
31
  today: Today
32
+
33
+ # Split button component
19
34
  split_button:
35
+ # Wrapper aria-label, e.g. “Save Options” when primary button is “Save”
20
36
  x_options: "{$name} Options"
37
+ # Dropdown toggle aria-label
21
38
  more_options: More Options
39
+
40
+ # Combobox component
22
41
  combobox:
42
+ # Placeholder when no option is selected
23
43
  select_an_option: Select an option…
44
+ # Filter input aria-label
24
45
  filter_options: Filter Options
46
+ # Empty state message when filter has no matches
25
47
  no_matching_options: No matching options found
48
+
49
+ # Number input component
26
50
  number_input:
27
- decrease: Decrease
51
+ # Spin button aria-labels for incrementing/decrementing the number value
28
52
  increase: Increase
53
+ decrease: Decrease
54
+
55
+ # Password input component
29
56
  password_input:
57
+ # Visibility toggle button aria-labels
30
58
  show_password: Show Password
31
59
  hide_password: Hide Password
60
+
61
+ # Secret input component (API keys, tokens, etc.)
32
62
  secret_input:
63
+ # Visibility toggle button aria-labels
33
64
  show_secret: Show Secret
34
65
  hide_secret: Hide Secret
66
+
67
+ # Select tags component (multi-select)
35
68
  select_tags:
36
- selected_options: Selected options
69
+ # Listbox aria-label
70
+ selected_options: Selected Options
71
+ # Remove button aria-label, e.g. “Remove Option 1”
37
72
  remove_x: "Remove {$name}"
73
+
74
+ # Text editor component
38
75
  text_editor:
76
+ # Toolbar aria-labels
39
77
  text_editor: Text Editor
40
78
  code_editor: Code Editor
79
+ # Block style menu button and menu aria-labels
41
80
  text_style_options: Text Style Options
42
81
  show_text_style_options: Show Text Style Options
82
+ # Block style menu items
43
83
  paragraph: Paragraph
44
84
  heading_1: Heading 1
45
85
  heading_2: Heading 2
@@ -51,16 +91,23 @@ text_editor:
51
91
  numbered_list: Numbered List
52
92
  blockquote: Block Quote
53
93
  code_block: Code Block
94
+ # Inline style button aria-labels
54
95
  bold: Bold
55
96
  italic: Italic
56
97
  strikethrough: Strikethrough
57
98
  code: Code
58
99
  link: Link
100
+ # Link dialog title
59
101
  insert_link: Insert Link
60
102
  update_link: Update Link
103
+ # Link dialog input field labels
61
104
  text: Text
62
105
  url: URL
106
+ # Markdown mode toggle button aria-label
63
107
  edit_in_markdown: Edit in Markdown
64
- converter_error: There was an error while enabling rich text mode. Please use the plain text editor instead.
108
+ # Error message when rich text conversion fails
109
+ converter_error: Unable to enable rich text mode. Please use the plain text editor instead.
110
+ # Language selector aria-label
65
111
  language: Language
112
+ # Plain text mode option in language selector
66
113
  plain_text: Plain Text
@@ -1,45 +1,85 @@
1
+ # Dialog action button labels
1
2
  ok: OK
2
3
  cancel: キャンセル
3
4
  close: 閉じる
5
+
6
+ # Button to clear content, e.g. search input or calendar date
4
7
  clear: クリア
8
+
9
+ # Text editor dialog buttons for link/image insertion
5
10
  insert: 挿入
6
11
  update: 更新
7
12
  remove: 削除
13
+
14
+ # Combobox dropdown toggle button aria-labels
8
15
  collapse: 折り畳む
9
16
  expand: 広げる
17
+
18
+ # Infobar/toast dismiss button label
10
19
  dismiss: 閉じる
20
+
21
+ # Calendar component
11
22
  calendar:
23
+ # View switcher group aria-labels and navigation button aria-labels
12
24
  year: 年
13
25
  previous_decade: 前の 10 年
14
26
  next_decade: 次の 10 年
15
27
  month: 月
16
28
  previous_month: 前月
17
29
  next_month: 翌月
30
+ # "Today" button label in footer
18
31
  today: 今日
32
+
33
+ # Split button component
19
34
  split_button:
35
+ # Wrapper aria-label, e.g. "Save Options" when primary button is "Save"
20
36
  x_options: "{$name} オプション"
37
+ # Dropdown toggle aria-label
21
38
  more_options: その他のオプション
39
+
40
+ # Combobox component
22
41
  combobox:
42
+ # Placeholder when no option is selected
23
43
  select_an_option: オプションを選択…
44
+ # Filter input aria-label
24
45
  filter_options: オプションを絞り込み
46
+ # Empty state message when filter has no matches
25
47
  no_matching_options: 一致するオプションは見つかりませんでした
48
+
49
+ # Number input component
26
50
  number_input:
27
- decrease: 減らす
51
+ # Spin button aria-labels for incrementing/decrementing the number value
28
52
  increase: 増やす
53
+ decrease: 減らす
54
+
55
+ # Password input component
29
56
  password_input:
57
+ # Visibility toggle button aria-labels
30
58
  show_password: パスワードを表示
31
59
  hide_password: パスワードを隠す
60
+
61
+ # Secret input component (API keys, tokens, etc.)
32
62
  secret_input:
63
+ # Visibility toggle button aria-labels
33
64
  show_secret: シークレットを表示
34
65
  hide_secret: シークレットを隠す
66
+
67
+ # Select tags component (multi-select)
35
68
  select_tags:
69
+ # Listbox aria-label
36
70
  selected_options: 選択済みのオプション
71
+ # Remove button aria-label, e.g. "Remove Option 1"
37
72
  remove_x: "{$name} を削除"
73
+
74
+ # Text editor component
38
75
  text_editor:
76
+ # Toolbar aria-labels
39
77
  text_editor: テキストエディター
40
78
  code_editor: コードエディター
79
+ # Block style menu button and menu aria-labels
41
80
  text_style_options: テキストスタイルオプション
42
81
  show_text_style_options: テキストスタイルオプションを表示
82
+ # Block style menu items
43
83
  paragraph: 段落
44
84
  heading_1: 見出し 1
45
85
  heading_2: 見出し 2
@@ -51,16 +91,23 @@ text_editor:
51
91
  numbered_list: 番号付きリスト
52
92
  blockquote: ブロック引用
53
93
  code_block: コードブロック
94
+ # Inline style button aria-labels
54
95
  bold: 太字
55
96
  italic: 斜体
56
97
  strikethrough: 取り消し線
57
98
  code: コード
58
99
  link: リンク
100
+ # Link dialog title
59
101
  insert_link: リンクを挿入
60
102
  update_link: リンクを更新
103
+ # Link dialog input field labels
61
104
  text: テキスト
62
105
  url: URL
106
+ # Markdown mode toggle button aria-label
63
107
  edit_in_markdown: マークダウンで編集
64
- converter_error: リッチテキストモードを有効化中に問題が発生しました。代わりにプレーンテキストエディターを使用してください。
108
+ # Error message when rich text conversion fails
109
+ converter_error: リッチテキストモードを有効にできませんでした。プレーンテキストエディターを使用してください。
110
+ # Language selector aria-label
65
111
  language: 言語
112
+ # Plain text mode option in language selector
66
113
  plain_text: プレーンテキスト
@@ -397,6 +397,10 @@ export type ComboboxProps = {
397
397
  * Use `-1` to always hide the filter.
398
398
  */
399
399
  filterThreshold?: number | undefined;
400
+ /**
401
+ * The `aria-label` attribute on the wrapper element.
402
+ */
403
+ ariaLabel?: string | undefined;
400
404
  /**
401
405
  * Primary slot content.
402
406
  */
@@ -490,7 +494,7 @@ export type TextInputProps = {
490
494
  /**
491
495
  * `aria-label` attribute.
492
496
  */
493
- "aria-label"?: string | undefined;
497
+ ariaLabel?: string | undefined;
494
498
  /**
495
499
  * Primary slot content.
496
500
  */
package/dist/typedefs.js CHANGED
@@ -139,6 +139,7 @@
139
139
  * @property {PopupPosition} [position] Where to show the dropdown menu.
140
140
  * @property {number} [filterThreshold] Number of items to start showing the filter. Default: `5`.
141
141
  * Use `-1` to always hide the filter.
142
+ * @property {string} [ariaLabel] The `aria-label` attribute on the wrapper element.
142
143
  * @property {Snippet} [children] Primary slot content.
143
144
  * @property {Snippet} [chevronIcon] Chevron icon slot content.
144
145
  * @property {(event: CustomEvent) => void} [onChange] Custom `change` event handler.
@@ -174,7 +175,7 @@
174
175
  * `aria-required` attribute.
175
176
  * @property {boolean} [invalid] Whether to mark the widget invalid. An alias of the `aria-invalid`
176
177
  * attribute.
177
- * @property {string} [aria-label] `aria-label` attribute.
178
+ * @property {string} [ariaLabel] `aria-label` attribute.
178
179
  * @property {Snippet} [children] Primary slot content.
179
180
  */
180
181
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sveltia/ui",
3
- "version": "0.41.2",
3
+ "version": "0.41.5",
4
4
  "description": "A collection of Svelte components and utilities for building user interfaces.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,9 +53,9 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@sveltejs/adapter-auto": "^7.0.1",
56
- "@sveltejs/kit": "^2.69.1",
56
+ "@sveltejs/kit": "^2.69.2",
57
57
  "@sveltejs/package": "^2.5.8",
58
- "@sveltejs/vite-plugin-svelte": "^7.1.4",
58
+ "@sveltejs/vite-plugin-svelte": "^7.2.0",
59
59
  "@vitest/coverage-v8": "^4.1.10",
60
60
  "cspell": "^10.0.1",
61
61
  "eslint": "^9.39.4",
@@ -77,7 +77,7 @@
77
77
  "stylelint-config-recommended-scss": "^17.0.1",
78
78
  "stylelint-scss": "^7.2.0",
79
79
  "svelte": "^5.56.4",
80
- "svelte-check": "^4.7.1",
80
+ "svelte-check": "^4.7.2",
81
81
  "svelte-preprocess": "^6.0.5",
82
82
  "tslib": "^2.8.1",
83
83
  "vite": "^8.1.3",