@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";
@@ -84,21 +85,23 @@ var rest_excludes$3 = /* @__PURE__ */ new Set([
84
85
  "$$slots",
85
86
  "$$events",
86
87
  "$$legacy",
87
- "type"
88
+ "type",
89
+ "aria-label"
88
90
  ]);
89
91
  var root$3 = $.from_html(`<button><svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M4 4l8 8M12 4l-8 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path></svg></button>`);
90
92
  function BannerClose($$anchor, $$props) {
91
93
  $.push($$props, true);
92
94
  injectComponentStyle("banner");
93
95
  let type = $.prop($$props, "type", 3, "button"), rest = $.rest_props($$props, rest_excludes$3);
96
+ const messages = useComponentMessages();
94
97
  var button = root$3();
95
- $.attribute_effect(button, () => ({
98
+ $.attribute_effect(button, ($0) => ({
96
99
  ...rest,
97
100
  type: type(),
98
- "aria-label": rest["aria-label"] ?? "Dismiss",
101
+ "aria-label": $0,
99
102
  "data-scope": "banner",
100
103
  "data-part": "close"
101
- }));
104
+ }), [() => $$props["aria-label"] ?? messages().banner.dismiss]);
102
105
  $.append($$anchor, button);
103
106
  $.pop();
104
107
  }
@@ -1,4 +1,4 @@
1
- import { t as Spinner } from "./Spinner-sd__23WT.mjs";
1
+ import { t as Spinner } from "./Spinner-DGAzGJ_8.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core";
3
3
  import "svelte/internal/disclose-version";
4
4
  import * as $ from "svelte/internal/client";
@@ -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";
@@ -6,6 +7,7 @@ var rest_excludes$5 = /* @__PURE__ */ new Set([
6
7
  "$$slots",
7
8
  "$$events",
8
9
  "$$legacy",
10
+ "aria-label",
9
11
  "children"
10
12
  ]);
11
13
  var root$5 = $.from_html(`<nav><!></nav>`);
@@ -13,13 +15,14 @@ function Breadcrumb$1($$anchor, $$props) {
13
15
  $.push($$props, true);
14
16
  injectComponentStyle("breadcrumb");
15
17
  let rest = $.rest_props($$props, rest_excludes$5);
18
+ const messages = useComponentMessages();
16
19
  var nav = root$5();
17
- $.attribute_effect(nav, () => ({
20
+ $.attribute_effect(nav, ($0) => ({
18
21
  ...rest,
19
- "aria-label": "Breadcrumb",
22
+ "aria-label": $0,
20
23
  "data-scope": "breadcrumb",
21
24
  "data-part": "root"
22
- }));
25
+ }), [() => $$props["aria-label"] ?? messages().breadcrumb.label]);
23
26
  var node = $.child(nav);
24
27
  $.snippet(node, () => $$props.children ?? $.noop);
25
28
  $.reset(nav);
@@ -99,7 +99,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
99
99
  "onValueChange",
100
100
  "children"
101
101
  ]);
102
- var root = $.from_svg(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true" style="transform: rotate(180deg)"><path d="m9 5 7 7-7 7"></path></svg>`);
102
+ var root = $.from_svg(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="m15 5-7 7 7 7"></path></svg>`);
103
103
  var root_1 = $.from_svg(`<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.75" aria-hidden="true"><path d="m9 5 7 7-7 7"></path></svg>`);
104
104
  var root_2 = $.from_html(`<!> <!> <!>`, 1);
105
105
  var root_3 = $.from_html(`<div data-scope="calendar" data-part="header"><!></div>`);
@@ -1,3 +1,4 @@
1
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
1
2
  import { t as Input } from "./Input-CZhcEeFU.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import "svelte/internal/disclose-version";
@@ -90,6 +91,7 @@ function CascadeSelect$1($$anchor, $$props) {
90
91
  };
91
92
  injectComponentStyle("cascade-select");
92
93
  let value = $.prop($$props, "value", 15), placeholder = $.prop($$props, "placeholder", 3, "Select…"), filterable = $.prop($$props, "filterable", 3, false), size = $.prop($$props, "size", 3, "md"), multiple = $.prop($$props, "multiple", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
94
+ const messages = useComponentMessages();
93
95
  const locale = useLocaleContext();
94
96
  const env = useEnvironmentContext();
95
97
  const collection = $.derived(() => cascade.collection({
@@ -185,11 +187,15 @@ function CascadeSelect$1($$anchor, $$props) {
185
187
  };
186
188
  $.attribute_effect(button, ($0) => ({
187
189
  ...$0,
190
+ "aria-labelledby": id + ":value-text",
188
191
  onclick: event_handler,
189
192
  disabled: disabled() || void 0
190
193
  }), [() => $.get(api).getTriggerProps()]);
191
194
  var span_3 = $.child(button);
192
- $.attribute_effect(span_3, ($0) => ({ ...$0 }), [() => $.get(api).getValueTextProps()]);
195
+ $.attribute_effect(span_3, ($0) => ({
196
+ ...$0,
197
+ id: id + ":value-text"
198
+ }), [() => $.get(api).getValueTextProps()]);
193
199
  var text_1 = $.only_child(span_3, true);
194
200
  var span_4 = $.sibling(span_3, 2);
195
201
  $.attribute_effect(span_4, ($0) => ({ ...$0 }), [() => $.get(api).getIndicatorProps()]);
@@ -209,17 +215,25 @@ function CascadeSelect$1($$anchor, $$props) {
209
215
  var consequent_2 = ($$anchor) => {
210
216
  var div_4 = root_3();
211
217
  var node_5 = $.child(div_4);
212
- Input(node_5, {
213
- size: "sm",
214
- placeholder: "Filter…",
215
- "aria-label": "Filter options",
216
- get value() {
217
- return $.get(query);
218
- },
219
- set value($$value) {
220
- $.set(query, $$value, true);
221
- }
222
- });
218
+ {
219
+ let $0 = $.derived(() => messages().select.filter);
220
+ let $1 = $.derived(() => messages().select.filter);
221
+ Input(node_5, {
222
+ size: "sm",
223
+ get placeholder() {
224
+ return $.get($0);
225
+ },
226
+ get "aria-label"() {
227
+ return $.get($1);
228
+ },
229
+ get value() {
230
+ return $.get(query);
231
+ },
232
+ set value($$value) {
233
+ $.set(query, $$value, true);
234
+ }
235
+ });
236
+ }
223
237
  $.reset(div_4);
224
238
  $.append($$anchor, div_4);
225
239
  };
@@ -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";
@@ -74,7 +75,10 @@ var root_7 = $.from_html(`<div><!></div>`);
74
75
  function Command$1($$anchor, $$props) {
75
76
  $.push($$props, true);
76
77
  injectComponentStyle("command");
77
- let items = $.prop($$props, "items", 19, () => []), open = $.prop($$props, "open", 15, false), autoFilter = $.prop($$props, "autoFilter", 3, true), emptyText = $.prop($$props, "emptyText", 3, "No matching commands");
78
+ let items = $.prop($$props, "items", 19, () => []), open = $.prop($$props, "open", 15, false), autoFilter = $.prop($$props, "autoFilter", 3, true);
79
+ const messages = useComponentMessages();
80
+ const placeholderText = $.derived(() => $$props.placeholder ?? messages().command.search);
81
+ const emptyMessage = $.derived(() => $$props.emptyText ?? messages().command.noMatches);
78
82
  let listOpen = $.state(true);
79
83
  let fieldText = $.state("");
80
84
  const { collection, set, filter } = useListCollection({
@@ -151,11 +155,12 @@ function Command$1($$anchor, $$props) {
151
155
  {
152
156
  const asChild = ($$anchor, contentProps = $.noop) => {
153
157
  var div_2 = root_7();
154
- $.attribute_effect(div_2, ($0) => ({
158
+ $.attribute_effect(div_2, ($0, $1) => ({
155
159
  ...$0,
156
160
  "data-scope": "command",
157
- "data-part": "content"
158
- }), [() => contentProps()()]);
161
+ "data-part": "content",
162
+ "aria-label": $1
163
+ }), [() => contentProps()(), () => messages().command.palette]);
159
164
  var node_7 = $.child(div_2);
160
165
  $.component(node_7, () => Combobox.Root, ($$anchor, ArkCombobox_Root) => {
161
166
  ArkCombobox_Root($$anchor, {
@@ -179,13 +184,14 @@ function Command$1($$anchor, $$props) {
179
184
  {
180
185
  const asChild = ($$anchor, inputProps = $.noop) => {
181
186
  var input_1 = root_3();
182
- $.attribute_effect(input_1, ($0) => ({
187
+ $.attribute_effect(input_1, ($0, $1) => ({
183
188
  ...$0,
184
189
  type: "text",
185
- placeholder: $$props.placeholder,
190
+ placeholder: $.get(placeholderText),
191
+ "aria-label": $1,
186
192
  "data-scope": "command",
187
193
  "data-part": "input"
188
- }), [() => inputProps()()], void 0, void 0, void 0, true);
194
+ }), [() => inputProps()(), () => messages().command.search], void 0, void 0, void 0, true);
189
195
  $.append($$anchor, input_1);
190
196
  };
191
197
  $.component(node_8, () => Combobox.Input, ($$anchor, ArkCombobox_Input) => {
@@ -276,7 +282,7 @@ function Command$1($$anchor, $$props) {
276
282
  var consequent_2 = ($$anchor) => {
277
283
  var div_6 = root_5();
278
284
  var text_3 = $.only_child(div_6, true);
279
- $.template_effect(() => $.set_text(text_3, emptyText()));
285
+ $.template_effect(() => $.set_text(text_3, $.get(emptyMessage)));
280
286
  $.append($$anchor, div_6);
281
287
  };
282
288
  $.if(node_16, ($$render) => {
@@ -1,4 +1,4 @@
1
- import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "../../AiLoader-0jlig3fe.mjs";
1
+ import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "../../AiLoader-BEiPYOfW.mjs";
2
2
  import { t as ActionProps } from "../../props-BvDM6-cm.mjs";
3
3
  import { n as MessageRole, t as MessageProps } from "../../props-CIwO25eA.mjs";
4
4
  import { t as PromptInputProps } from "../../props-U567RIQo.mjs";
@@ -1,12 +1,12 @@
1
1
  import { t as AiAction } from "../../ai-action-DKsvxilp.mjs";
2
2
  import { t as AiMessage } from "../../ai-message-DBs1fdFm.mjs";
3
- import { t as AiPromptInput } from "../../ai-prompt-input-BmyKyadu.mjs";
3
+ import { t as AiPromptInput } from "../../ai-prompt-input-vh89e9EX.mjs";
4
4
  import { t as AiReasoning } from "../../ai-reasoning-C4YsB2hQ.mjs";
5
- import { t as AiResponse } from "../../ai-response-D5IkRFMN.mjs";
5
+ import { t as AiResponse } from "../../ai-response-BPQPjMlC.mjs";
6
6
  import { n as AiSources, t as AiSource } from "../../ai-source-CvglcFw1.mjs";
7
7
  import { t as AiSuggestion } from "../../ai-suggestion-zGAQ1kkf.mjs";
8
8
  import { t as AiTool } from "../../ai-tool-DY_iNbMk.mjs";
9
- import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "../../AiLoader-0jlig3fe.mjs";
9
+ import { i as Ai$1, n as AiContent, r as AiActions, t as AiLoader } from "../../AiLoader-BEiPYOfW.mjs";
10
10
  //#region src/components/ai/index.ts
11
11
  const Ai = Object.assign(Ai$1, {
12
12
  Conversation: Ai$1,
@@ -1,2 +1,2 @@
1
- import { n as Attachments, t as Attachment } from "../../ai-attachments-Y0Tf6UFL.mjs";
1
+ import { n as Attachments, t as Attachment } from "../../ai-attachments-C0YVIKUc.mjs";
2
2
  export { Attachment as AiAttachment, Attachment, Attachments as AiAttachments, Attachments };
@@ -1,2 +1,2 @@
1
- import { t as AiPromptInput } from "../../ai-prompt-input-BmyKyadu.mjs";
1
+ import { t as AiPromptInput } from "../../ai-prompt-input-vh89e9EX.mjs";
2
2
  export { AiPromptInput, AiPromptInput as PromptInput };
@@ -1,2 +1,2 @@
1
- import { t as AiResponse } from "../../ai-response-D5IkRFMN.mjs";
1
+ import { t as AiResponse } from "../../ai-response-BPQPjMlC.mjs";
2
2
  export { AiResponse, AiResponse as Response };
@@ -1,2 +1,2 @@
1
- import { t as AutoComplete } from "../../autocomplete-D7ZZ7Xpb.mjs";
1
+ import { t as AutoComplete } from "../../autocomplete-Dhuhqp-6.mjs";
2
2
  export { AutoComplete };
@@ -1,2 +1,2 @@
1
- import { t as Banner } from "../../banner-LEPWtGlY.mjs";
1
+ import { t as Banner } from "../../banner-Bj3FFB-O.mjs";
2
2
  export { Banner };
@@ -1,2 +1,2 @@
1
- import { t as BlockUI } from "../../block-ui-CpiV9qza.mjs";
1
+ import { t as BlockUI } from "../../block-ui-CxsMoEoa.mjs";
2
2
  export { BlockUI };
@@ -1,2 +1,2 @@
1
- import { t as Breadcrumb } from "../../breadcrumb-C01pAq93.mjs";
1
+ import { t as Breadcrumb } from "../../breadcrumb-CtBjVdxv.mjs";
2
2
  export { Breadcrumb };
@@ -1,2 +1,2 @@
1
- import { t as Calendar } from "../../calendar-0tSnHuLj.mjs";
1
+ import { t as Calendar } from "../../calendar-BMXmRdwJ.mjs";
2
2
  export { Calendar };
@@ -1,2 +1,2 @@
1
- import { t as CascadeSelect } from "../../cascade-select-B-4Z6oWe.mjs";
1
+ import { t as CascadeSelect } from "../../cascade-select-CfvWchiN.mjs";
2
2
  export { CascadeSelect };
@@ -1,2 +1,2 @@
1
- import { t as Command } from "../../command-fZuTfbz4.mjs";
1
+ import { t as Command } from "../../command-CZRC1T-6.mjs";
2
2
  export { Command };
@@ -1,2 +1,2 @@
1
- import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "../../index-DTAcdUAd.mjs";
1
+ import { a as useConfig, i as ConfigDensity, n as ConfigProviderProps, r as ConfigContext, t as ConfigProvider } from "../../index-BkGvErBJ.mjs";
2
2
  export { type ConfigContext, type ConfigDensity, ConfigProvider, type ConfigProviderProps, useConfig };
@@ -1,2 +1,3 @@
1
- import { n as useConfig, t as ConfigProvider } from "../../config-provider-DW5wVzFr.mjs";
1
+ import { n as useConfig } from "../../context-Da-QMQRq.mjs";
2
+ import { t as ConfigProvider } from "../../config-provider-CZJyd3MX.mjs";
2
3
  export { ConfigProvider, useConfig };
@@ -1,2 +1,2 @@
1
- import { t as DataView } from "../../data-view-B3TY3rYl.mjs";
1
+ import { t as DataView } from "../../data-view-BORK23XZ.mjs";
2
2
  export { DataView };
@@ -1,2 +1,2 @@
1
- import { t as DynamicInput } from "../../dynamic-input-B3IBAoLs.mjs";
1
+ import { t as DynamicInput } from "../../dynamic-input-D1a-5vy-.mjs";
2
2
  export { DynamicInput };
@@ -1,7 +1,8 @@
1
- import { t as FileUploadRoot } from "../../FileUploadRoot-IVcTAZp-.mjs";
1
+ import { n as FileUploadRoot, t as FileUploadTrigger } from "../../FileUploadTrigger-BgAcpLXx.mjs";
2
2
  import { FileUpload as FileUpload$1 } from "@ark-ui/svelte/file-upload";
3
3
  //#region src/components/file-upload/index.d.ts
4
- export declare const FileUpload: Omit<typeof FileUpload$1, "Root"> & {
4
+ export declare const FileUpload: Omit<typeof FileUpload$1, "Root" | "Trigger"> & {
5
5
  Root: typeof FileUploadRoot;
6
+ Trigger: typeof FileUploadTrigger;
6
7
  };
7
8
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as FileUploadRoot } from "../../FileUploadRoot-IVcTAZp-.mjs";
1
+ import { n as FileUploadRoot, t as FileUploadTrigger } from "../../FileUploadTrigger-BgAcpLXx.mjs";
2
2
  import { FileUpload as FileUpload$1 } from "@ark-ui/svelte/file-upload";
3
3
  //#region src/components/file-upload/index.ts
4
4
  /** Ark's FileUpload, dressed in the paper-and-ink system: a dashed
@@ -9,7 +9,8 @@ import { FileUpload as FileUpload$1 } from "@ark-ui/svelte/file-upload";
9
9
  * Context. */
10
10
  const FileUpload = {
11
11
  ...FileUpload$1,
12
- Root: FileUploadRoot
12
+ Root: FileUploadRoot,
13
+ Trigger: FileUploadTrigger
13
14
  };
14
15
  //#endregion
15
16
  export { FileUpload };
@@ -1,2 +1,2 @@
1
- import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "../../float-button-CZAda2SI.mjs";
1
+ import { n as FLOAT_BUTTON_KEY, t as FloatButton } from "../../float-button-BLIHnw2u.mjs";
2
2
  export { FLOAT_BUTTON_KEY, FloatButton };
@@ -1,2 +1,2 @@
1
- import { n as ImageProps, t as Image } from "../../index-DAesWvpj.mjs";
1
+ import { n as ImageProps, t as Image } from "../../index-D1tQgtT0.mjs";
2
2
  export { Image, type ImageProps };
@@ -1,2 +1,2 @@
1
- import { t as Image } from "../../image-1Lgj8xhS.mjs";
1
+ import { t as Image } from "../../image-u_H4LtAC.mjs";
2
2
  export { Image };
@@ -1,2 +1,2 @@
1
- import { n as ImageViewerProps, t as ImageViewer } from "../../index-CiHanb4T.mjs";
1
+ import { n as ImageViewerProps, t as ImageViewer } from "../../index-DG4OAuIf.mjs";
2
2
  export { ImageViewer, type ImageViewerProps };
@@ -1,2 +1,2 @@
1
- import { t as ImageViewer } from "../../image-viewer-Dv3_Iyu8.mjs";
1
+ import { t as ImageViewer } from "../../image-viewer-DzoEcVSn.mjs";
2
2
  export { ImageViewer };
@@ -1,7 +1,7 @@
1
+ import { t as JsonTreeViewTree } from "../../JsonTreeViewTree-CqRP_PwV.mjs";
1
2
  import { JsonTreeView as JsonTreeView$1 } from "@ark-ui/svelte/json-tree-view";
2
3
  //#region src/components/json-tree-view/index.d.ts
3
- /** Ark's JsonTreeView, dressed in the paper-and-ink system: the tree-view
4
- * recipes re-scoped, with value nodes reading as tabular data. The API is
5
- * Ark's own — Root, Tree, plus createJsonTreeCollection. */
6
- export declare const JsonTreeView: typeof JsonTreeView$1;
4
+ export declare const JsonTreeView: Omit<typeof JsonTreeView$1, "Tree"> & {
5
+ Tree: typeof JsonTreeViewTree;
6
+ };
7
7
  //#endregion
@@ -1,10 +1,14 @@
1
+ import { t as JsonTreeViewTree } from "../../JsonTreeViewTree-CqRP_PwV.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { JsonTreeView as JsonTreeView$1 } from "@ark-ui/svelte/json-tree-view";
3
4
  //#region src/components/json-tree-view/index.ts
4
5
  /** Ark's JsonTreeView, dressed in the paper-and-ink system: the tree-view
5
6
  * recipes re-scoped, with value nodes reading as tabular data. The API is
6
7
  * Ark's own — Root, Tree, plus createJsonTreeCollection. */
7
- const JsonTreeView = JsonTreeView$1;
8
+ const JsonTreeView = {
9
+ ...JsonTreeView$1,
10
+ Tree: JsonTreeViewTree
11
+ };
8
12
  injectComponentStyle("json-tree-view");
9
13
  //#endregion
10
14
  export { JsonTreeView };
@@ -1,2 +1,2 @@
1
- import { t as Layout } from "../../layout-WRo4P9-_.mjs";
1
+ import { t as Layout } from "../../layout-GfxGYYhg.mjs";
2
2
  export { Layout };
@@ -1,2 +1,2 @@
1
- import { t as List } from "../../list-B23lA_sc.mjs";
1
+ import { t as List } from "../../list-BgEM9H3z.mjs";
2
2
  export { List };
@@ -1,2 +1,2 @@
1
- import { t as Menubar } from "../../menubar-Crrkg2tZ.mjs";
1
+ import { t as Menubar } from "../../menubar-2MPo9w5z.mjs";
2
2
  export { Menubar };
@@ -1,2 +1,2 @@
1
- import { t as OrderList } from "../../order-list-q7VlsbmU.mjs";
1
+ import { t as OrderList } from "../../order-list-D3EhH7EX.mjs";
2
2
  export { OrderList };
@@ -1,2 +1,2 @@
1
- import { n as Select, t as NativeSelect } from "../../select-rkY0qJKI.mjs";
1
+ import { n as Select, t as NativeSelect } from "../../select-8ume4i2e.mjs";
2
2
  export { NativeSelect, Select };
@@ -1,4 +1,4 @@
1
- import { t as Spinner$1 } from "../../Spinner-sd__23WT.mjs";
1
+ import { t as Spinner$1 } from "../../Spinner-DGAzGJ_8.mjs";
2
2
  //#region src/components/spinner/index.ts
3
3
  /** A wheel of waiting: one arc of ink turning about its center. Quiet by
4
4
  * default — it reports progress without claiming attention. */
@@ -1,2 +1,2 @@
1
- import { t as SplitButton } from "../../split-button-CGjPB9DQ.mjs";
1
+ import { t as SplitButton } from "../../split-button-DnmVc_J0.mjs";
2
2
  export { SplitButton };
@@ -1,7 +1,8 @@
1
- import { t as StepsRoot } from "../../StepsRoot-Dg_3-lRb.mjs";
1
+ import { n as StepsItem, t as StepsRoot } from "../../StepsRoot-C_FYfShw.mjs";
2
2
  import { Steps as Steps$1 } from "@ark-ui/svelte/steps";
3
3
  //#region src/components/steps/index.d.ts
4
- export declare const Steps: Omit<typeof Steps$1, "Root"> & {
4
+ export declare const Steps: Omit<typeof Steps$1, "Root" | "Item"> & {
5
5
  Root: typeof StepsRoot;
6
+ Item: typeof StepsItem;
6
7
  };
7
8
  //#endregion
@@ -1,4 +1,4 @@
1
- import { t as StepsRoot } from "../../StepsRoot-Dg_3-lRb.mjs";
1
+ import { n as StepsItem, t as StepsRoot } from "../../StepsRoot-C_FYfShw.mjs";
2
2
  import { Steps as Steps$1 } from "@ark-ui/svelte/steps";
3
3
  //#region src/components/steps/index.ts
4
4
  /**
@@ -10,7 +10,8 @@ import { Steps as Steps$1 } from "@ark-ui/svelte/steps";
10
10
  */
11
11
  const Steps = {
12
12
  ...Steps$1,
13
- Root: StepsRoot
13
+ Root: StepsRoot,
14
+ Item: StepsItem
14
15
  };
15
16
  //#endregion
16
17
  export { Steps };
@@ -1,2 +1,2 @@
1
- import { n as FlexRender, r as createColumnHelper, t as DataTable } from "../../table-BnNK4_su.mjs";
1
+ import { n as FlexRender, r as createColumnHelper, t as DataTable } from "../../table-BsdqRuvj.mjs";
2
2
  export { DataTable, FlexRender, createColumnHelper };
@@ -1,2 +1,2 @@
1
- import { t as Terminal } from "../../terminal-B3b4KzoN.mjs";
1
+ import { t as Terminal } from "../../terminal-Dgw5JEz4.mjs";
2
2
  export { Terminal };
@@ -1,7 +1,10 @@
1
+ import { t as TocIndicator } from "../../TocIndicator-DPnZxTJ2.mjs";
1
2
  import { Toc as Toc$1 } from "@ark-ui/svelte/toc";
2
3
  //#region src/components/toc/index.d.ts
3
4
  /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
4
5
  * beside the scroll, one stroke of primary ink marking where the reader
5
6
  * stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
6
- export declare const Toc: typeof Toc$1;
7
+ export declare const Toc: Omit<typeof Toc$1, "Indicator"> & {
8
+ Indicator: typeof TocIndicator;
9
+ };
7
10
  //#endregion
@@ -1,10 +1,14 @@
1
+ import { t as TocIndicator } from "../../TocIndicator-DPnZxTJ2.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { Toc as Toc$1 } from "@ark-ui/svelte/toc";
3
4
  //#region src/components/toc/index.ts
4
5
  /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
5
6
  * beside the scroll, one stroke of primary ink marking where the reader
6
7
  * stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
7
- const Toc = Toc$1;
8
+ const Toc = {
9
+ ...Toc$1,
10
+ Indicator: TocIndicator
11
+ };
8
12
  injectComponentStyle("toc");
9
13
  //#endregion
10
14
  export { Toc };
@@ -1,2 +1,2 @@
1
- import { t as Transfer } from "../../transfer-0IAuhFCe.mjs";
1
+ import { t as Transfer } from "../../transfer-C0FLA8W1.mjs";
2
2
  export { Transfer };
@@ -1,2 +1,2 @@
1
- import { t as TreeSelect } from "../../tree-select-BSf4a_En.mjs";
1
+ import { t as TreeSelect } from "../../tree-select-CSYSYZDN.mjs";
2
2
  export { TreeSelect };
@@ -1,2 +1,2 @@
1
- import { n as TreeViewRootProps, t as TreeView } from "../../index-D6PrX-hf.mjs";
1
+ import { n as TreeViewRootProps, t as TreeView } from "../../index-BJvo4qep.mjs";
2
2
  export { TreeView, type TreeViewRootProps };
@@ -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 { TreeView as TreeView$1 } from "@ark-ui/svelte/tree-view";
3
3
  //#region src/components/tree-view/index.ts
4
4
  /** Ark's TreeView, dressed in the paper-and-ink system: quiet rows where
@@ -10,7 +10,9 @@ import { TreeView as TreeView$1 } from "@ark-ui/svelte/tree-view";
10
10
  * NodeRenameInput, plus createTreeCollection. */
11
11
  const TreeView = {
12
12
  ...TreeView$1,
13
- Root: TreeViewRoot
13
+ Root: TreeViewRoot,
14
+ NodeCheckbox: TreeViewNodeCheckbox,
15
+ BranchIndicator: TreeViewBranchIndicator
14
16
  };
15
17
  //#endregion
16
18
  export { TreeView };
@@ -1,2 +1,2 @@
1
- import { t as VirtualList } from "../../virtual-list-psKQ_NVr.mjs";
1
+ import { t as VirtualList } from "../../virtual-list-_10ypBUP.mjs";
2
2
  export { VirtualList };
@@ -1,18 +1,6 @@
1
+ import { t as provideConfig } from "./context-Da-QMQRq.mjs";
1
2
  import "svelte/internal/disclose-version";
2
3
  import * as $ from "svelte/internal/client";
3
- import { getContext, setContext } from "svelte";
4
- //#region src/components/config-provider/context.ts
5
- const CONFIG_KEY = Symbol("bysages-config");
6
- function provideConfig(context) {
7
- setContext(CONFIG_KEY, context);
8
- return context;
9
- }
10
- /** The nearest provider's live snapshot, or an empty one when no
11
- * provider wraps the caller. */
12
- function useConfig() {
13
- return getContext(CONFIG_KEY) ?? {};
14
- }
15
- //#endregion
16
4
  //#region src/components/config-provider/ConfigProvider.svelte
17
5
  var rest_excludes = /* @__PURE__ */ new Set([
18
6
  "$$slots",
@@ -23,6 +11,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
23
11
  "accent",
24
12
  "dir",
25
13
  "locale",
14
+ "messages",
26
15
  "lang",
27
16
  "children"
28
17
  ]);
@@ -45,6 +34,9 @@ function ConfigProvider$1($$anchor, $$props) {
45
34
  },
46
35
  get locale() {
47
36
  return $$props.locale;
37
+ },
38
+ get messages() {
39
+ return $$props.messages;
48
40
  }
49
41
  });
50
42
  var div = root();
@@ -72,4 +64,4 @@ function ConfigProvider$1($$anchor, $$props) {
72
64
  * descendants through `useConfig`. */
73
65
  const ConfigProvider = ConfigProvider$1;
74
66
  //#endregion
75
- export { useConfig as n, ConfigProvider as t };
67
+ export { ConfigProvider as t };
@@ -0,0 +1,14 @@
1
+ import { getContext, setContext } from "svelte";
2
+ //#region src/components/config-provider/context.ts
3
+ const CONFIG_KEY = Symbol("bysages-config");
4
+ function provideConfig(context) {
5
+ setContext(CONFIG_KEY, context);
6
+ return context;
7
+ }
8
+ /** The nearest provider's live snapshot, or an empty one when no
9
+ * provider wraps the caller. */
10
+ function useConfig() {
11
+ return getContext(CONFIG_KEY) ?? {};
12
+ }
13
+ //#endregion
14
+ export { useConfig as n, provideConfig as t };