@bysages/svelte 0.3.0 → 0.3.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.
Files changed (87) hide show
  1. package/dist/{AiLoader-0jlig3fe.mjs → AiLoader-BEiPYOfW.mjs} +11 -6
  2. package/dist/{FileUploadRoot-IVcTAZp-.mjs → FileUploadTrigger-BgAcpLXx.mjs} +39 -3
  3. package/dist/JsonTreeViewTree-CqRP_PwV.mjs +71 -0
  4. package/dist/{Spinner-sd__23WT.mjs → Spinner-DGAzGJ_8.mjs} +6 -3
  5. package/dist/{StepsRoot-Dg_3-lRb.mjs → StepsRoot-C_FYfShw.mjs} +27 -1
  6. package/dist/TocIndicator-DPnZxTJ2.mjs +30 -0
  7. package/dist/TreeViewRoot-RBynRAly.mjs +108 -0
  8. package/dist/{ai-attachments-Y0Tf6UFL.mjs → ai-attachments-C0YVIKUc.mjs} +6 -2
  9. package/dist/{ai-prompt-input-BmyKyadu.mjs → ai-prompt-input-vh89e9EX.mjs} +67 -50
  10. package/dist/{ai-response-D5IkRFMN.mjs → ai-response-BPQPjMlC.mjs} +7 -3
  11. package/dist/{autocomplete-D7ZZ7Xpb.mjs → autocomplete-Dhuhqp-6.mjs} +10 -7
  12. package/dist/{banner-LEPWtGlY.mjs → banner-Bj3FFB-O.mjs} +7 -4
  13. package/dist/{block-ui-CpiV9qza.mjs → block-ui-CxsMoEoa.mjs} +1 -1
  14. package/dist/{breadcrumb-C01pAq93.mjs → breadcrumb-CtBjVdxv.mjs} +6 -3
  15. package/dist/{calendar-0tSnHuLj.mjs → calendar-BMXmRdwJ.mjs} +1 -1
  16. package/dist/{cascade-select-B-4Z6oWe.mjs → cascade-select-CfvWchiN.mjs} +26 -12
  17. package/dist/{command-fZuTfbz4.mjs → command-CZRC1T-6.mjs} +14 -8
  18. package/dist/components/ai/index.d.mts +1 -1
  19. package/dist/components/ai/index.mjs +3 -3
  20. package/dist/components/ai-attachments/index.mjs +1 -1
  21. package/dist/components/ai-prompt-input/index.mjs +1 -1
  22. package/dist/components/ai-response/index.mjs +1 -1
  23. package/dist/components/autocomplete/index.mjs +1 -1
  24. package/dist/components/banner/index.mjs +1 -1
  25. package/dist/components/block-ui/index.mjs +1 -1
  26. package/dist/components/breadcrumb/index.mjs +1 -1
  27. package/dist/components/calendar/index.mjs +1 -1
  28. package/dist/components/cascade-select/index.mjs +1 -1
  29. package/dist/components/command/index.mjs +1 -1
  30. package/dist/components/config-provider/index.d.mts +1 -1
  31. package/dist/components/config-provider/index.mjs +2 -1
  32. package/dist/components/data-view/index.mjs +1 -1
  33. package/dist/components/dynamic-input/index.mjs +1 -1
  34. package/dist/components/file-upload/index.d.mts +3 -2
  35. package/dist/components/file-upload/index.mjs +3 -2
  36. package/dist/components/float-button/index.mjs +1 -1
  37. package/dist/components/image/index.d.mts +1 -1
  38. package/dist/components/image/index.mjs +1 -1
  39. package/dist/components/image-viewer/index.d.mts +1 -1
  40. package/dist/components/image-viewer/index.mjs +1 -1
  41. package/dist/components/json-tree-view/index.d.mts +4 -4
  42. package/dist/components/json-tree-view/index.mjs +5 -1
  43. package/dist/components/layout/index.mjs +1 -1
  44. package/dist/components/list/index.mjs +1 -1
  45. package/dist/components/menubar/index.mjs +1 -1
  46. package/dist/components/order-list/index.mjs +1 -1
  47. package/dist/components/select/index.mjs +1 -1
  48. package/dist/components/spinner/index.mjs +1 -1
  49. package/dist/components/split-button/index.mjs +1 -1
  50. package/dist/components/steps/index.d.mts +3 -2
  51. package/dist/components/steps/index.mjs +3 -2
  52. package/dist/components/table/index.mjs +1 -1
  53. package/dist/components/terminal/index.mjs +1 -1
  54. package/dist/components/toc/index.d.mts +4 -1
  55. package/dist/components/toc/index.mjs +5 -1
  56. package/dist/components/transfer/index.mjs +1 -1
  57. package/dist/components/tree-select/index.mjs +1 -1
  58. package/dist/components/tree-view/index.d.mts +1 -1
  59. package/dist/components/tree-view/index.mjs +4 -2
  60. package/dist/components/virtual-list/index.mjs +1 -1
  61. package/dist/{config-provider-DW5wVzFr.mjs → config-provider-CZJyd3MX.mjs} +6 -14
  62. package/dist/context-Da-QMQRq.mjs +14 -0
  63. package/dist/{data-view-B3TY3rYl.mjs → data-view-BORK23XZ.mjs} +32 -20
  64. package/dist/{dynamic-input-B3IBAoLs.mjs → dynamic-input-D1a-5vy-.mjs} +6 -1
  65. package/dist/{float-button-CZAda2SI.mjs → float-button-BLIHnw2u.mjs} +3 -1
  66. package/dist/{image-1Lgj8xhS.mjs → image-u_H4LtAC.mjs} +4 -0
  67. package/dist/{image-viewer-Dv3_Iyu8.mjs → image-viewer-DzoEcVSn.mjs} +20 -4
  68. package/dist/{index-D6PrX-hf.d.mts → index-BJvo4qep.d.mts} +4 -2
  69. package/dist/{index-DTAcdUAd.d.mts → index-BkGvErBJ.d.mts} +5 -1
  70. package/dist/{index-DAesWvpj.d.mts → index-D1tQgtT0.d.mts} +4 -0
  71. package/dist/{index-CiHanb4T.d.mts → index-DG4OAuIf.d.mts} +4 -0
  72. package/dist/index.d.mts +5 -5
  73. package/dist/index.mjs +29 -28
  74. package/dist/{layout-WRo4P9-_.mjs → layout-GfxGYYhg.mjs} +7 -4
  75. package/dist/{list-B23lA_sc.mjs → list-BgEM9H3z.mjs} +2 -1
  76. package/dist/{menubar-Crrkg2tZ.mjs → menubar-2MPo9w5z.mjs} +1 -0
  77. package/dist/messages-DNzA55pH.mjs +17 -0
  78. package/dist/{order-list-q7VlsbmU.mjs → order-list-D3EhH7EX.mjs} +15 -6
  79. package/dist/{select-rkY0qJKI.mjs → select-8ume4i2e.mjs} +5 -1
  80. package/dist/{split-button-CGjPB9DQ.mjs → split-button-DnmVc_J0.mjs} +5 -3
  81. package/dist/{table-BnNK4_su.mjs → table-BsdqRuvj.mjs} +63 -44
  82. package/dist/{terminal-B3b4KzoN.mjs → terminal-Dgw5JEz4.mjs} +5 -3
  83. package/dist/{transfer-0IAuhFCe.mjs → transfer-C0FLA8W1.mjs} +16 -5
  84. package/dist/{tree-select-BSf4a_En.mjs → tree-select-CSYSYZDN.mjs} +71 -70
  85. package/dist/{virtual-list-psKQ_NVr.mjs → virtual-list-_10ypBUP.mjs} +1 -0
  86. package/package.json +3 -3
  87. package/dist/TreeViewRoot-ConQj9TX.mjs +0 -37
@@ -1,3 +1,4 @@
1
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import "svelte/internal/disclose-version";
3
4
  import * as $ from "svelte/internal/client";
@@ -21,6 +22,7 @@ function DataView$1($$anchor, $$props) {
21
22
  $.push($$props, true);
22
23
  injectComponentStyle("data-view");
23
24
  let layout = $.prop($$props, "layout", 3, "list"), rest = $.rest_props($$props, rest_excludes);
25
+ const messages = useComponentMessages();
24
26
  let page = $.state(1);
25
27
  const pageCount = $.derived(() => $$props.pageSize ? Math.max(1, Math.ceil($$props.items.length / $$props.pageSize)) : 1);
26
28
  const visible = $.derived(() => $$props.pageSize ? $$props.items.slice(($.get(page) - 1) * $$props.pageSize, $.get(page) * $$props.pageSize) : $$props.items);
@@ -61,17 +63,22 @@ function DataView$1($$anchor, $$props) {
61
63
  children: ($$anchor, $$slotProps) => {
62
64
  var fragment = root_1();
63
65
  var node_4 = $.first_child(fragment);
64
- $.component(node_4, () => Pagination.PrevTrigger, ($$anchor, ArkPagination_PrevTrigger) => {
65
- ArkPagination_PrevTrigger($$anchor, {
66
- "aria-label": "Previous page",
67
- children: ($$anchor, $$slotProps) => {
68
- $.next();
69
- var text = $.text("‹");
70
- $.append($$anchor, text);
71
- },
72
- $$slots: { default: true }
66
+ {
67
+ let $0 = $.derived(() => messages().pagination.previous);
68
+ $.component(node_4, () => Pagination.PrevTrigger, ($$anchor, ArkPagination_PrevTrigger) => {
69
+ ArkPagination_PrevTrigger($$anchor, {
70
+ get "aria-label"() {
71
+ return $.get($0);
72
+ },
73
+ children: ($$anchor, $$slotProps) => {
74
+ $.next();
75
+ var text = $.text("‹");
76
+ $.append($$anchor, text);
77
+ },
78
+ $$slots: { default: true }
79
+ });
73
80
  });
74
- });
81
+ }
75
82
  var node_5 = $.sibling(node_4, 2);
76
83
  {
77
84
  const children = ($$anchor, pagination = $.noop) => {
@@ -131,17 +138,22 @@ function DataView$1($$anchor, $$props) {
131
138
  });
132
139
  }
133
140
  var node_10 = $.sibling(node_5, 2);
134
- $.component(node_10, () => Pagination.NextTrigger, ($$anchor, ArkPagination_NextTrigger) => {
135
- ArkPagination_NextTrigger($$anchor, {
136
- "aria-label": "Next page",
137
- children: ($$anchor, $$slotProps) => {
138
- $.next();
139
- var text_3 = $.text("›");
140
- $.append($$anchor, text_3);
141
- },
142
- $$slots: { default: true }
141
+ {
142
+ let $0 = $.derived(() => messages().pagination.next);
143
+ $.component(node_10, () => Pagination.NextTrigger, ($$anchor, ArkPagination_NextTrigger) => {
144
+ ArkPagination_NextTrigger($$anchor, {
145
+ get "aria-label"() {
146
+ return $.get($0);
147
+ },
148
+ children: ($$anchor, $$slotProps) => {
149
+ $.next();
150
+ var text_3 = $.text("›");
151
+ $.append($$anchor, text_3);
152
+ },
153
+ $$slots: { default: true }
154
+ });
143
155
  });
144
- });
156
+ }
145
157
  $.append($$anchor, fragment);
146
158
  },
147
159
  $$slots: { default: true }
@@ -1,4 +1,5 @@
1
1
  import { t as Button } from "./button-BCcX7lHq.mjs";
2
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
2
3
  import { Input } from "./components/input/index.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core";
4
5
  import "svelte/internal/disclose-version";
@@ -24,6 +25,7 @@ function DynamicInput$1($$anchor, $$props) {
24
25
  $.push($$props, true);
25
26
  injectComponentStyle("dynamic-input");
26
27
  let value = $.prop($$props, "value", 31, () => $.proxy([""])), min = $.prop($$props, "min", 3, 0), addLabel = $.prop($$props, "addLabel", 3, "Add entry"), size = $.prop($$props, "size", 3, "md"), disabled = $.prop($$props, "disabled", 3, false), invalid = $.prop($$props, "invalid", 3, false), rest = $.rest_props($$props, rest_excludes);
28
+ const messages = useComponentMessages();
27
29
  const canRemove = $.derived(() => value().length > Math.max(min(), 1));
28
30
  const canAdd = $.derived(() => $$props.max === void 0 || value().length < $$props.max);
29
31
  function update(index, next) {
@@ -69,6 +71,7 @@ function DynamicInput$1($$anchor, $$props) {
69
71
  var node_2 = $.sibling(node_1, 2);
70
72
  {
71
73
  let $0 = $.derived(() => disabled() || !$.get(canRemove));
74
+ let $1 = $.derived(() => messages().dynamicEntry.remove);
72
75
  Button(node_2, {
73
76
  variant: "ghost",
74
77
  square: true,
@@ -78,7 +81,9 @@ function DynamicInput$1($$anchor, $$props) {
78
81
  get disabled() {
79
82
  return $.get($0);
80
83
  },
81
- "aria-label": `Remove entry ${index + 1}`,
84
+ get "aria-label"() {
85
+ return $.get($1);
86
+ },
82
87
  onclick: () => remove(index),
83
88
  children: ($$anchor, $$slotProps) => {
84
89
  var svg = root();
@@ -1,4 +1,5 @@
1
1
  import { t as Button } from "./button-BCcX7lHq.mjs";
2
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import "svelte/internal/disclose-version";
4
5
  import * as $ from "svelte/internal/client";
@@ -102,10 +103,11 @@ function FloatButtonItem($$anchor, $$props) {
102
103
  function FloatButtonTrigger($$anchor, $$props) {
103
104
  $.push($$props, true);
104
105
  injectComponentStyle("float-button");
106
+ const messages = useComponentMessages();
105
107
  const context = useFloatButton();
106
108
  {
107
109
  let $0 = $.derived(() => context?.size ?? "lg");
108
- let $1 = $.derived(() => $$props.label || "Actions");
110
+ let $1 = $.derived(() => $$props.label || messages().floatButton.actions);
109
111
  let $2 = $.derived(() => context?.open ?? false);
110
112
  Button($$anchor, {
111
113
  variant: "solid",
@@ -9,6 +9,8 @@ var rest_excludes = /* @__PURE__ */ new Set([
9
9
  "src",
10
10
  "alt",
11
11
  "fit",
12
+ "width",
13
+ "height",
12
14
  "loading",
13
15
  "fallback"
14
16
  ]);
@@ -61,6 +63,8 @@ function Image$1($$anchor, $$props) {
61
63
  $.template_effect(() => {
62
64
  $.set_attribute(img, "src", $$props.src);
63
65
  $.set_attribute(img, "alt", alt());
66
+ $.set_attribute(img, "width", $$props.width);
67
+ $.set_attribute(img, "height", $$props.height);
64
68
  $.set_attribute(img, "loading", loading());
65
69
  });
66
70
  $.event("load", img, () => $.set(state, "loaded"));
@@ -1,4 +1,5 @@
1
1
  import { t as Button } from "./button-BCcX7lHq.mjs";
2
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
2
3
  import { t as ButtonGroup } from "./button-group-CVLqPMlR.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core";
4
5
  import "svelte/internal/disclose-version";
@@ -62,6 +63,7 @@ function ImageViewer$1($$anchor, $$props) {
62
63
  const MAX_SCALE = 3;
63
64
  const SCALE_STEP = .25;
64
65
  let alt = $.prop($$props, "alt", 3, ""), open = $.prop($$props, "open", 15, false), zoomable = $.prop($$props, "zoomable", 3, true);
66
+ const messages = useComponentMessages();
65
67
  let scale = $.state(1);
66
68
  let rotation = $.state(0);
67
69
  function setOpen(value) {
@@ -129,18 +131,30 @@ function ImageViewer$1($$anchor, $$props) {
129
131
  var consequent = ($$anchor) => {
130
132
  var fragment_11 = root_5();
131
133
  var node_7 = $.first_child(fragment_11);
132
- tool(node_7, () => "Zoom in", () => () => zoom(SCALE_STEP), () => zoomIn);
134
+ {
135
+ let $0 = $.derived(() => messages().imageViewer.zoomIn);
136
+ tool(node_7, () => $.get($0), () => () => zoom(SCALE_STEP), () => zoomIn);
137
+ }
133
138
  var node_8 = $.sibling(node_7, 2);
134
- tool(node_8, () => "Zoom out", () => () => zoom(-.25), () => zoomOut);
139
+ {
140
+ let $0 = $.derived(() => messages().imageViewer.zoomOut);
141
+ tool(node_8, () => $.get($0), () => () => zoom(-.25), () => zoomOut);
142
+ }
135
143
  $.append($$anchor, fragment_11);
136
144
  };
137
145
  $.if(node_6, ($$render) => {
138
146
  if (zoomable()) $$render(consequent);
139
147
  });
140
148
  var node_9 = $.sibling(node_6, 2);
141
- tool(node_9, () => "Rotate 90 degrees", () => turn, () => turnGlyph);
149
+ {
150
+ let $0 = $.derived(() => messages().imageViewer.rotate);
151
+ tool(node_9, () => $.get($0), () => turn, () => turnGlyph);
152
+ }
142
153
  var node_10 = $.sibling(node_9, 2);
143
- tool(node_10, () => "Close", () => () => setOpen(false), () => closeGlyph);
154
+ {
155
+ let $0 = $.derived(() => messages().imageViewer.close);
156
+ tool(node_10, () => $.get($0), () => () => setOpen(false), () => closeGlyph);
157
+ }
144
158
  $.append($$anchor, fragment_10);
145
159
  },
146
160
  $$slots: { default: true }
@@ -149,6 +163,8 @@ function ImageViewer$1($$anchor, $$props) {
149
163
  $.template_effect(() => {
150
164
  $.set_attribute(img, "src", $$props.src);
151
165
  $.set_attribute(img, "alt", alt());
166
+ $.set_attribute(img, "width", $$props.width);
167
+ $.set_attribute(img, "height", $$props.height);
152
168
  styles = $.set_style(img, "", styles, { transform: `scale(${$.get(scale)}) rotate(${$.get(rotation)}deg)` });
153
169
  });
154
170
  $.append($$anchor, fragment_9);
@@ -1,4 +1,4 @@
1
- import { t as TreeViewRoot } from "./TreeViewRoot-ConQj9TX.mjs";
1
+ import { n as TreeViewNodeCheckbox, r as TreeViewBranchIndicator, t as TreeViewRoot } from "./TreeViewRoot-RBynRAly.mjs";
2
2
  import { TreeNode } from "@ark-ui/svelte/collection";
3
3
  import { TreeView, TreeViewRootProps } from "@ark-ui/svelte/tree-view";
4
4
  //#region src/components/tree-view/props.d.ts
@@ -8,8 +8,10 @@ type TreeViewRootProps$1 = TreeViewRootProps<TreeNode> & {
8
8
  };
9
9
  //#endregion
10
10
  //#region src/components/tree-view/index.d.ts
11
- declare const TreeView$1: Omit<typeof TreeView, "Root"> & {
11
+ declare const TreeView$1: Omit<typeof TreeView, "Root" | "NodeCheckbox" | "BranchIndicator"> & {
12
12
  Root: typeof TreeViewRoot;
13
+ NodeCheckbox: typeof TreeViewNodeCheckbox;
14
+ BranchIndicator: typeof TreeViewBranchIndicator;
13
15
  };
14
16
  //#endregion
15
17
  export { TreeViewRootProps$1 as n, TreeView$1 as t };
@@ -1,4 +1,4 @@
1
- import { ThemeScene } from "@bysages/core";
1
+ import { ComponentMessagesOverride, ThemeScene } from "@bysages/core";
2
2
  import { Snippet } from "svelte";
3
3
  import { HTMLAttributes } from "svelte/elements";
4
4
  //#region src/components/config-provider/context.d.ts
@@ -23,6 +23,8 @@ interface ConfigContext {
23
23
  dir?: "ltr" | "rtl";
24
24
  /** BCP-47 locale, landing as the native `lang` attribute. */
25
25
  locale?: string;
26
+ /** Partial leaf overrides applied on top of the locale defaults. */
27
+ messages?: ComponentMessagesOverride;
26
28
  }
27
29
  /** The nearest provider's live snapshot, or an empty one when no
28
30
  * provider wraps the caller. */
@@ -36,6 +38,8 @@ interface ConfigProviderProps extends HTMLAttributes<HTMLDivElement> {
36
38
  dir?: "ltr" | "rtl";
37
39
  /** BCP-47 locale, landing as the native `lang` attribute. */
38
40
  locale?: string;
41
+ /** Partial leaf overrides applied on top of the locale defaults. */
42
+ messages?: ComponentMessagesOverride;
39
43
  children?: Snippet;
40
44
  }
41
45
  //#endregion
@@ -5,6 +5,10 @@ interface ImageProps extends HTMLAttributes<HTMLElement> {
5
5
  src: string;
6
6
  alt?: string;
7
7
  fit?: "cover" | "contain" | "fill" | "none";
8
+ /** Intrinsic width passed to the image, so layout is stable while it loads. */
9
+ width?: number | string;
10
+ /** Intrinsic height passed to the image, so layout is stable while it loads. */
11
+ height?: number | string;
8
12
  loading?: "lazy" | "eager";
9
13
  /** What a broken source leaves — the quiet placeholder glyph by
10
14
  * default. */
@@ -2,6 +2,10 @@
2
2
  interface ImageViewerProps {
3
3
  src: string;
4
4
  alt?: string;
5
+ /** Intrinsic width passed to the preview image, so layout is stable while it loads. */
6
+ width?: number | string;
7
+ /** Intrinsic height passed to the preview image, so layout is stable while it loads. */
8
+ height?: number | string;
5
9
  /** Whether the lightbox is up. Bind it (`bind:open`) to control the
6
10
  * viewer; left alone it keeps the state to itself. */
7
11
  open?: boolean;
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
2
- import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-0jlig3fe.mjs";
2
+ import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-BEiPYOfW.mjs";
3
3
  import { Accordion } from "./components/accordion/index.mjs";
4
4
  import { n as AffixProps, t as Affix } from "./index-k0ac5WNj.mjs";
5
5
  import { t as ActionProps } from "./props-BvDM6-cm.mjs";
@@ -51,7 +51,7 @@ import { ColorPicker } from "./components/color-picker/index.mjs";
51
51
  import { Combobox } from "./components/combobox/index.mjs";
52
52
  import { n as CommandEntry, r as CommandProps, t as Command } from "./index-D_cE3qK2.mjs";
53
53
  import { n as CommentProps, t as Comment } from "./index-zZy5ZnA5.mjs";
54
- import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "./index-DTAcdUAd.mjs";
54
+ import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "./index-BkGvErBJ.mjs";
55
55
  import { n as ContainerProps, t as Container } from "./index-8JoOZcM6.mjs";
56
56
  import { n as DataViewProps, t as DataView } from "./index-KoqiUxmN.mjs";
57
57
  import { DateInput } from "./components/date-input/index.mjs";
@@ -80,8 +80,8 @@ import { Highlight } from "./components/highlight/index.mjs";
80
80
  import { HoverCard } from "./components/hover-card/index.mjs";
81
81
  import { n as IconProps, t as Icon } from "./index-_kQsvJKo.mjs";
82
82
  import { ImageCropper } from "./components/image-cropper/index.mjs";
83
- import { n as ImageViewerProps, t as ImageViewer } from "./index-CiHanb4T.mjs";
84
- import { n as ImageProps, t as Image } from "./index-DAesWvpj.mjs";
83
+ import { n as ImageViewerProps, t as ImageViewer } from "./index-DG4OAuIf.mjs";
84
+ import { n as ImageProps, t as Image } from "./index-D1tQgtT0.mjs";
85
85
  import { n as InputGroupAddonProps, r as InputGroupProps, t as InputGroup } from "./index-DKfQGayE.mjs";
86
86
  import { n as InputProps, t as Input } from "./index-DjaHpB21.mjs";
87
87
  import { JsonTreeView } from "./components/json-tree-view/index.mjs";
@@ -143,7 +143,7 @@ import { Tooltip } from "./components/tooltip/index.mjs";
143
143
  import { Tour, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "./components/tour/index.mjs";
144
144
  import { n as TransferItem, r as TransferProps, t as Transfer } from "./index-Cd4UxWsz.mjs";
145
145
  import { n as TreeSelectNode, r as TreeSelectProps, t as TreeSelect } from "./index-Bj2IsU9D.mjs";
146
- import { n as TreeViewRootProps, t as TreeView } from "./index-D6PrX-hf.mjs";
146
+ import { n as TreeViewRootProps, t as TreeView } from "./index-BJvo4qep.mjs";
147
147
  import { n as TypographyPartProps, t as Typography } from "./index-CeIQyZkc.mjs";
148
148
  import { n as UserProps, t as User } from "./index-DBbjFiDd.mjs";
149
149
  import { n as VirtualListProps, t as VirtualList } from "./index-DGOBhwXN.mjs";
package/dist/index.mjs CHANGED
@@ -6,31 +6,32 @@ import { t as AiMessage } from "./ai-message-DBs1fdFm.mjs";
6
6
  import { Field } from "./components/field/index.mjs";
7
7
  import { n as MentionsVessel, t as Mentions } from "./mentions-DjhgNRmY.mjs";
8
8
  import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
9
- import { t as AiPromptInput } from "./ai-prompt-input-BmyKyadu.mjs";
9
+ import { n as useConfig } from "./context-Da-QMQRq.mjs";
10
+ import { t as AiPromptInput } from "./ai-prompt-input-vh89e9EX.mjs";
10
11
  import { Collapsible } from "./components/collapsible/index.mjs";
11
12
  import { t as AiReasoning } from "./ai-reasoning-C4YsB2hQ.mjs";
12
- import { t as AiResponse } from "./ai-response-D5IkRFMN.mjs";
13
+ import { t as AiResponse } from "./ai-response-BPQPjMlC.mjs";
13
14
  import { n as AiSources, t as AiSource } from "./ai-source-CvglcFw1.mjs";
14
15
  import { t as AiSuggestion } from "./ai-suggestion-zGAQ1kkf.mjs";
15
16
  import { t as AiTool } from "./ai-tool-DY_iNbMk.mjs";
16
- import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-0jlig3fe.mjs";
17
+ import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "./AiLoader-BEiPYOfW.mjs";
17
18
  import { Ai } from "./components/ai/index.mjs";
18
- import { n as Attachments, t as Attachment } from "./ai-attachments-Y0Tf6UFL.mjs";
19
+ import { n as Attachments, t as Attachment } from "./ai-attachments-C0YVIKUc.mjs";
19
20
  import { t as Alert } from "./alert-Xp8I8IY9.mjs";
20
- import { t as AutoComplete } from "./autocomplete-D7ZZ7Xpb.mjs";
21
+ import { t as AutoComplete } from "./autocomplete-Dhuhqp-6.mjs";
21
22
  import { AngleSlider } from "./components/angle-slider/index.mjs";
22
23
  import { t as AspectRatio } from "./aspect-ratio-COOgu44A.mjs";
23
24
  import { t as Avatar } from "./avatar-LR0CZ1Iz.mjs";
24
25
  import { t as AvatarGroup } from "./avatar-group-BgIxNuVj.mjs";
25
26
  import { t as BackTop } from "./back-top-rbP0aP47.mjs";
26
27
  import { t as Badge } from "./badge-DKa-8Pv0.mjs";
27
- import { t as BlockUI } from "./block-ui-CpiV9qza.mjs";
28
- import { t as Breadcrumb } from "./breadcrumb-C01pAq93.mjs";
28
+ import { t as BlockUI } from "./block-ui-CxsMoEoa.mjs";
29
+ import { t as Breadcrumb } from "./breadcrumb-CtBjVdxv.mjs";
29
30
  import { t as ButtonGroup } from "./button-group-CVLqPMlR.mjs";
30
- import { t as Banner } from "./banner-LEPWtGlY.mjs";
31
- import { t as Calendar } from "./calendar-0tSnHuLj.mjs";
31
+ import { t as Banner } from "./banner-Bj3FFB-O.mjs";
32
+ import { t as Calendar } from "./calendar-BMXmRdwJ.mjs";
32
33
  import { t as Card } from "./card-Bc3B7MYz.mjs";
33
- import { t as CascadeSelect } from "./cascade-select-B-4Z6oWe.mjs";
34
+ import { t as CascadeSelect } from "./cascade-select-CfvWchiN.mjs";
34
35
  import { Carousel } from "./components/carousel/index.mjs";
35
36
  import { Checkbox } from "./components/checkbox/index.mjs";
36
37
  import { t as CheckboxGroup } from "./checkbox-group-ARW_z7gp.mjs";
@@ -40,11 +41,11 @@ import { Clipboard } from "./components/clipboard/index.mjs";
40
41
  import { createFileTreeCollection, createGridCollection, createListCollection, createTreeCollection, useAsyncList, useListCollection, useListSelection } from "./components/collection/index.mjs";
41
42
  import { ColorPicker } from "./components/color-picker/index.mjs";
42
43
  import { Combobox } from "./components/combobox/index.mjs";
43
- import { t as Command } from "./command-fZuTfbz4.mjs";
44
+ import { t as Command } from "./command-CZRC1T-6.mjs";
44
45
  import { t as Comment } from "./comment-C91xgrtK.mjs";
45
- import { n as useConfig, t as ConfigProvider } from "./config-provider-DW5wVzFr.mjs";
46
+ import { t as ConfigProvider } from "./config-provider-CZJyd3MX.mjs";
46
47
  import { t as Container } from "./container-Cmiu_3W5.mjs";
47
- import { t as DataView } from "./data-view-B3TY3rYl.mjs";
48
+ import { t as DataView } from "./data-view-BORK23XZ.mjs";
48
49
  import { DateInput } from "./components/date-input/index.mjs";
49
50
  import { t as DeferredContent } from "./deferred-content-CO9YsKMQ.mjs";
50
51
  import { DatePicker } from "./components/date-picker/index.mjs";
@@ -53,13 +54,13 @@ import { Dialog } from "./components/dialog/index.mjs";
53
54
  import { DownloadTrigger, useDownload } from "./components/download-trigger/index.mjs";
54
55
  import { Drawer } from "./components/drawer/index.mjs";
55
56
  import { Input } from "./components/input/index.mjs";
56
- import { t as DynamicInput } from "./dynamic-input-B3IBAoLs.mjs";
57
+ import { t as DynamicInput } from "./dynamic-input-D1a-5vy-.mjs";
57
58
  import { Editable } from "./components/editable/index.mjs";
58
59
  import { t as Ellipsis } from "./ellipsis-CLaZ9Grh.mjs";
59
60
  import { t as Empty } from "./empty-wwcTI107.mjs";
60
61
  import { Fieldset } from "./components/fieldset/index.mjs";
61
62
  import { FileUpload } from "./components/file-upload/index.mjs";
62
- import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "./float-button-CZAda2SI.mjs";
63
+ import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "./float-button-BLIHnw2u.mjs";
63
64
  import { FloatingPanel } from "./components/floating-panel/index.mjs";
64
65
  import { FocusTrap } from "./components/focus-trap/index.mjs";
65
66
  import { Format } from "./components/format/index.mjs";
@@ -69,23 +70,23 @@ import { t as Grid } from "./grid-DNgTWYSL.mjs";
69
70
  import { Highlight } from "./components/highlight/index.mjs";
70
71
  import { HoverCard } from "./components/hover-card/index.mjs";
71
72
  import { t as Icon } from "./icon-D7AeDq0M.mjs";
72
- import { t as Image } from "./image-1Lgj8xhS.mjs";
73
+ import { t as Image } from "./image-u_H4LtAC.mjs";
73
74
  import { ImageCropper } from "./components/image-cropper/index.mjs";
74
- import { t as ImageViewer } from "./image-viewer-Dv3_Iyu8.mjs";
75
+ import { t as ImageViewer } from "./image-viewer-DzoEcVSn.mjs";
75
76
  import { t as InputGroup } from "./input-group-DeKewnvZ.mjs";
76
77
  import { JsonTreeView } from "./components/json-tree-view/index.mjs";
77
78
  import { t as Kbd } from "./kbd-LXHpi4GM.mjs";
78
- import { t as Layout } from "./layout-WRo4P9-_.mjs";
79
+ import { t as Layout } from "./layout-GfxGYYhg.mjs";
79
80
  import { t as Link } from "./link-CuNiatc7.mjs";
80
- import { t as List } from "./list-B23lA_sc.mjs";
81
+ import { t as List } from "./list-BgEM9H3z.mjs";
81
82
  import { Listbox } from "./components/listbox/index.mjs";
82
83
  import { Marquee } from "./components/marquee/index.mjs";
83
84
  import { t as Masonry } from "./masonry-B4-v4kJ0.mjs";
84
85
  import { Menu } from "./components/menu/index.mjs";
85
- import { t as Menubar } from "./menubar-Crrkg2tZ.mjs";
86
+ import { t as Menubar } from "./menubar-2MPo9w5z.mjs";
86
87
  import { t as Meter } from "./meter-BgsJ2g-v.mjs";
87
88
  import { NavigationMenu } from "./components/navigation-menu/index.mjs";
88
- import { t as OrderList } from "./order-list-q7VlsbmU.mjs";
89
+ import { t as OrderList } from "./order-list-D3EhH7EX.mjs";
89
90
  import { NumberInput } from "./components/number-input/index.mjs";
90
91
  import { Pagination } from "./components/pagination/index.mjs";
91
92
  import { PasswordInput } from "./components/password-input/index.mjs";
@@ -100,12 +101,12 @@ import { RadioGroup } from "./components/radio-group/index.mjs";
100
101
  import { RatingGroup } from "./components/rating-group/index.mjs";
101
102
  import { ScrollArea } from "./components/scroll-area/index.mjs";
102
103
  import { SegmentGroup } from "./components/segment-group/index.mjs";
103
- import { n as Select, t as NativeSelect } from "./select-rkY0qJKI.mjs";
104
+ import { n as Select, t as NativeSelect } from "./select-8ume4i2e.mjs";
104
105
  import { t as Separator } from "./separator-4JWXConE.mjs";
105
106
  import { SignaturePad } from "./components/signature-pad/index.mjs";
106
107
  import { t as Skeleton } from "./skeleton-DOfOrlmL.mjs";
107
108
  import { Slider } from "./components/slider/index.mjs";
108
- import { t as SplitButton } from "./split-button-CGjPB9DQ.mjs";
109
+ import { t as SplitButton } from "./split-button-DnmVc_J0.mjs";
109
110
  import { Splitter } from "./components/splitter/index.mjs";
110
111
  import { t as Stack } from "./stack-DCKrejZp.mjs";
111
112
  import { t as PageHeader } from "./page-header-DKpKUkTe.mjs";
@@ -114,9 +115,9 @@ import { t as Stat } from "./stat-5cTU1vyI.mjs";
114
115
  import { Steps } from "./components/steps/index.mjs";
115
116
  import { Swap } from "./components/swap/index.mjs";
116
117
  import { Switch } from "./components/switch/index.mjs";
117
- import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-BnNK4_su.mjs";
118
+ import { n as FlexRender, r as createColumnHelper, t as DataTable } from "./table-BsdqRuvj.mjs";
118
119
  import { Tabs } from "./components/tabs/index.mjs";
119
- import { t as Terminal } from "./terminal-B3b4KzoN.mjs";
120
+ import { t as Terminal } from "./terminal-Dgw5JEz4.mjs";
120
121
  import { TagsInput } from "./components/tags-input/index.mjs";
121
122
  import { t as Textarea } from "./textarea-DzDc678j.mjs";
122
123
  import { t as Timeline } from "./timeline-1yPOTbtY.mjs";
@@ -126,14 +127,14 @@ import { Toc } from "./components/toc/index.mjs";
126
127
  import { Toggle } from "./components/toggle/index.mjs";
127
128
  import { t as Toolbar } from "./toolbar-SNwuRrJr.mjs";
128
129
  import { t as Typography } from "./typography-Cygr9XaD.mjs";
129
- import { t as Transfer } from "./transfer-0IAuhFCe.mjs";
130
+ import { t as Transfer } from "./transfer-C0FLA8W1.mjs";
130
131
  import { ToggleGroup } from "./components/toggle-group/index.mjs";
131
132
  import { Tooltip } from "./components/tooltip/index.mjs";
132
133
  import { Tour, useTour } from "./components/tour/index.mjs";
133
- import { t as TreeSelect } from "./tree-select-BSf4a_En.mjs";
134
+ import { t as TreeSelect } from "./tree-select-CSYSYZDN.mjs";
134
135
  import { TreeView } from "./components/tree-view/index.mjs";
135
136
  import { t as User } from "./user-BjJSjDYV.mjs";
136
- import { t as VirtualList } from "./virtual-list-psKQ_NVr.mjs";
137
+ import { t as VirtualList } from "./virtual-list-_10ypBUP.mjs";
137
138
  import { t as Watermark } from "./watermark-C2d3-EAM.mjs";
138
139
  import { t as Spotlight } from "./spotlight-DMC5E1eS.mjs";
139
140
  import { t as Dock } from "./dock-CKGRnXWu.mjs";
@@ -1,3 +1,4 @@
1
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import "svelte/internal/disclose-version";
3
4
  import * as $ from "svelte/internal/client";
@@ -128,12 +129,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
128
129
  "maxWidth",
129
130
  "children"
130
131
  ]);
131
- var root = $.from_html(`<div data-scope="layout" data-part="sider-resize" role="separator" aria-orientation="vertical" aria-label="Resize sidebar"></div>`);
132
+ var root = $.from_html(`<div data-scope="layout" data-part="sider-resize" role="separator" aria-orientation="vertical"></div>`);
132
133
  var root_1 = $.from_html(`<aside><!> <!></aside>`);
133
134
  function LayoutSider($$anchor, $$props) {
134
135
  $.push($$props, true);
135
136
  injectComponentStyle("layout");
136
137
  let collapsed = $.prop($$props, "collapsed", 11, false), width = $.prop($$props, "width", 15, "16rem"), collapsedWidth = $.prop($$props, "collapsedWidth", 3, "3.5rem"), resizable = $.prop($$props, "resizable", 3, false), minWidth = $.prop($$props, "minWidth", 3, "12rem"), maxWidth = $.prop($$props, "maxWidth", 3, "24rem"), rest = $.rest_props($$props, rest_excludes);
138
+ const messages = useComponentMessages();
137
139
  const layout = useLayout();
138
140
  /** One step of the arrow-key resize, in px. */
139
141
  const RESIZE_STEP = 16;
@@ -187,10 +189,11 @@ function LayoutSider($$anchor, $$props) {
187
189
  var consequent = ($$anchor) => {
188
190
  var div = root();
189
191
  $.set_attribute(div, "tabindex", 0);
190
- $.template_effect(($0) => {
192
+ $.template_effect(($0, $1) => {
191
193
  $.set_attribute(div, "data-dragging", $.get(dragging) ? "" : void 0);
192
- $.set_attribute(div, "aria-valuenow", $0);
193
- }, [() => $.get(rail) ? Math.round($.get(rail).getBoundingClientRect().width) : 0]);
194
+ $.set_attribute(div, "aria-label", $0);
195
+ $.set_attribute(div, "aria-valuenow", $1);
196
+ }, [() => messages().sidebar.resize, () => $.get(rail) ? Math.round($.get(rail).getBoundingClientRect().width) : 0]);
194
197
  $.delegated("pointerdown", div, onPointerDown);
195
198
  $.delegated("pointermove", div, onPointerMove);
196
199
  $.delegated("pointerup", div, onPointerUp);
@@ -111,7 +111,8 @@ var rest_excludes$1 = /* @__PURE__ */ new Set([
111
111
  "$$slots",
112
112
  "$$events",
113
113
  "$$legacy",
114
- "children"
114
+ "children",
115
+ "role"
115
116
  ]);
116
117
  var root$1 = $.from_html(`<li><!></li>`);
117
118
  function ListItem($$anchor, $$props) {
@@ -40,6 +40,7 @@ function Menubar$1($$anchor, $$props) {
40
40
  $.attribute_effect(button, ($0) => ({
41
41
  ...$0,
42
42
  type: "button",
43
+ role: "menuitem",
43
44
  "data-scope": "menubar",
44
45
  "data-part": "trigger"
45
46
  }), [() => props()()]);
@@ -0,0 +1,17 @@
1
+ import { n as useConfig } from "./context-Da-QMQRq.mjs";
2
+ import { resolveComponentMessages } from "@bysages/core";
3
+ //#region src/components/config-provider/messages.ts
4
+ /** Resolve the nearest provider's locale and overrides into one complete
5
+ * message table; calling the selector keeps each read live with provider
6
+ * props. */
7
+ function useComponentMessages() {
8
+ const config = useConfig();
9
+ return () => resolveComponentMessages(config.locale ?? "en", config.messages);
10
+ }
11
+ /** Substitute `{name}` leaves with caller values; unknown leaves stay
12
+ * visible so a typo cannot turn an accessible name silent. */
13
+ function formatMessage(template, values) {
14
+ return template.replace(/\{(\w+)\}/g, (match, key) => key in values ? String(values[key]) : match);
15
+ }
16
+ //#endregion
17
+ export { useComponentMessages as n, formatMessage as t };
@@ -1,3 +1,4 @@
1
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import "svelte/internal/disclose-version";
3
4
  import * as $ from "svelte/internal/client";
@@ -10,12 +11,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
10
11
  "options",
11
12
  "label"
12
13
  ]);
13
- var root = $.from_html(`<li role="option" aria-selected="true" draggable="" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" aria-label="Move to top" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path><path d="M5 4h14"></path></svg></button> <button type="button" aria-label="Move up" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></svg></button> <button type="button" aria-label="Move down" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button> <button type="button" aria-label="Move to bottom" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path><path d="M5 20h14"></path></svg></button></span></li>`);
14
+ var root = $.from_html(`<li draggable="" aria-roledescription="Sortable item" data-scope="order-list" data-part="item"><span data-scope="order-list" data-part="grip" aria-hidden="true">⋮⋮</span> <span data-scope="order-list" data-part="label"> </span> <span data-scope="order-list" data-part="controls"><button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path><path d="M5 4h14"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m18 15-6-6-6 6"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path></svg></button> <button type="button" data-scope="order-list" data-part="move"><svg viewBox="0 0 24 24" width="12" height="12" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="m6 9 6 6 6-6"></path><path d="M5 20h14"></path></svg></button></span></li>`);
14
15
  var root_1 = $.from_html(`<div><ol data-scope="order-list" data-part="list"></ol></div>`);
15
16
  function OrderList$1($$anchor, $$props) {
16
17
  $.push($$props, true);
17
18
  injectComponentStyle("order-list");
18
19
  let value = $.prop($$props, "value", 31, () => $.proxy([])), rest = $.rest_props($$props, rest_excludes);
20
+ const messages = useComponentMessages();
19
21
  let dragging = $.state(null);
20
22
  let dropLine = $.state(null);
21
23
  const rows = $.derived(() => value().map((entry) => $$props.options.find((option) => option.value === entry)).filter((option) => option != null));
@@ -51,9 +53,6 @@ function OrderList$1($$anchor, $$props) {
51
53
  };
52
54
  $.attribute_effect(div, () => ({
53
55
  ...rest,
54
- role: "listbox",
55
- "aria-label": $$props.label,
56
- "aria-multiselectable": false,
57
56
  "data-scope": "order-list",
58
57
  "data-part": "root",
59
58
  ondragleave: event_handler
@@ -70,15 +69,24 @@ function OrderList$1($$anchor, $$props) {
70
69
  var button_3 = $.sibling(button_2, 2);
71
70
  $.reset(span_1);
72
71
  $.reset(li);
73
- $.template_effect(() => {
72
+ $.template_effect(($0, $1, $2, $3) => {
74
73
  $.set_attribute(li, "data-dragging", $.get(dragging) === $.get(option).value ? "" : void 0);
75
74
  $.set_attribute(li, "data-drop-line", $.get(dropLine) && $.get(dropLine).index === $.get(index) ? $.get(dropLine).before ? "top" : "bottom" : void 0);
76
75
  $.set_text(text, $.get(option).label);
76
+ $.set_attribute(button, "aria-label", $0);
77
77
  button.disabled = $.get(index) === 0;
78
+ $.set_attribute(button_1, "aria-label", $1);
78
79
  button_1.disabled = $.get(index) === 0;
80
+ $.set_attribute(button_2, "aria-label", $2);
79
81
  button_2.disabled = $.get(index) === $.get(rows).length - 1;
82
+ $.set_attribute(button_3, "aria-label", $3);
80
83
  button_3.disabled = $.get(index) === $.get(rows).length - 1;
81
- });
84
+ }, [
85
+ () => messages().orderList.toTop,
86
+ () => messages().orderList.moveUp,
87
+ () => messages().orderList.moveDown,
88
+ () => messages().orderList.toBottom
89
+ ]);
82
90
  $.event("dragstart", li, (event) => {
83
91
  $.set(dragging, $.get(option).value, true);
84
92
  event.dataTransfer?.setData("text/plain", $.get(option).value);
@@ -107,6 +115,7 @@ function OrderList$1($$anchor, $$props) {
107
115
  });
108
116
  $.reset(ol);
109
117
  $.reset(div);
118
+ $.template_effect(() => $.set_attribute(ol, "aria-label", $$props.label));
110
119
  $.append($$anchor, div);
111
120
  $.pop();
112
121
  }
@@ -14,7 +14,9 @@ var rest_excludes = /* @__PURE__ */ new Set([
14
14
  "size",
15
15
  "invalid",
16
16
  "placeholder",
17
- "disabled"
17
+ "disabled",
18
+ "aria-label",
19
+ "aria-labelledby"
18
20
  ]);
19
21
  var root = $.from_html(`<option disabled=""> </option>`);
20
22
  var root_1 = $.from_html(`<option> </option>`);
@@ -41,6 +43,8 @@ function NativeSelect$1($$anchor, $$props) {
41
43
  var select = $.child(span);
42
44
  $.attribute_effect(select, () => ({
43
45
  ...$.get(fieldProps),
46
+ "aria-label": $$props["aria-label"],
47
+ "aria-labelledby": $$props["aria-labelledby"],
44
48
  "data-scope": "select",
45
49
  "data-part": "native",
46
50
  disabled: $.get(isDisabled) || void 0