@bysages/svelte 0.2.3 → 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 (173) hide show
  1. package/README.md +16 -2
  2. package/dist/{ai-BOUoSSjw.mjs → AiLoader-BEiPYOfW.mjs} +13 -40
  3. package/dist/{FileUploadRoot-IVcTAZp-.mjs → FileUploadTrigger-BgAcpLXx.mjs} +39 -3
  4. package/dist/Input-CZhcEeFU.mjs +75 -0
  5. package/dist/JsonTreeViewTree-CqRP_PwV.mjs +71 -0
  6. package/dist/{spinner-EpUWE3Hu.mjs → Spinner-DGAzGJ_8.mjs} +7 -9
  7. package/dist/{StepsRoot-Dg_3-lRb.mjs → StepsRoot-C_FYfShw.mjs} +27 -1
  8. package/dist/{TabsRoot-BMMO3B77.mjs → TabsRoot-DXd41HqW.mjs} +5 -1
  9. package/dist/TocIndicator-DPnZxTJ2.mjs +30 -0
  10. package/dist/TreeViewRoot-RBynRAly.mjs +108 -0
  11. package/dist/{ai-attachments-Y0Tf6UFL.mjs → ai-attachments-C0YVIKUc.mjs} +6 -2
  12. package/dist/{ai-prompt-input-BmyKyadu.mjs → ai-prompt-input-vh89e9EX.mjs} +67 -50
  13. package/dist/{ai-response-D5IkRFMN.mjs → ai-response-BPQPjMlC.mjs} +7 -3
  14. package/dist/{autocomplete-D7ZZ7Xpb.mjs → autocomplete-Dhuhqp-6.mjs} +10 -7
  15. package/dist/{avatar-BHYqgq4d.mjs → avatar-LR0CZ1Iz.mjs} +5 -1
  16. package/dist/{banner-LEPWtGlY.mjs → banner-Bj3FFB-O.mjs} +7 -4
  17. package/dist/bento-BTvt7gsB.mjs +73 -0
  18. package/dist/block-ui-CxsMoEoa.mjs +50 -0
  19. package/dist/{breadcrumb-C01pAq93.mjs → breadcrumb-CtBjVdxv.mjs} +6 -3
  20. package/dist/browser-gmPTH6mJ.mjs +146 -0
  21. package/dist/{calendar-0tSnHuLj.mjs → calendar-BMXmRdwJ.mjs} +1 -1
  22. package/dist/{cascade-select-C-eBcN_4.mjs → cascade-select-CfvWchiN.mjs} +32 -18
  23. package/dist/{command-fZuTfbz4.mjs → command-CZRC1T-6.mjs} +14 -8
  24. package/dist/components/ai/index.d.mts +3 -2
  25. package/dist/components/ai/index.mjs +27 -2
  26. package/dist/components/ai-action/index.d.mts +1 -1
  27. package/dist/components/ai-action/index.mjs +1 -1
  28. package/dist/components/ai-attachments/index.mjs +1 -1
  29. package/dist/components/ai-message/index.d.mts +1 -1
  30. package/dist/components/ai-message/index.mjs +1 -1
  31. package/dist/components/ai-prompt-input/index.d.mts +1 -1
  32. package/dist/components/ai-prompt-input/index.mjs +2 -2
  33. package/dist/components/ai-reasoning/index.d.mts +1 -1
  34. package/dist/components/ai-reasoning/index.mjs +1 -1
  35. package/dist/components/ai-response/index.d.mts +1 -1
  36. package/dist/components/ai-response/index.mjs +2 -2
  37. package/dist/components/ai-source/index.d.mts +1 -1
  38. package/dist/components/ai-source/index.mjs +1 -1
  39. package/dist/components/ai-suggestion/index.d.mts +1 -1
  40. package/dist/components/ai-suggestion/index.mjs +1 -1
  41. package/dist/components/ai-tool/index.d.mts +1 -1
  42. package/dist/components/ai-tool/index.mjs +1 -1
  43. package/dist/components/autocomplete/index.mjs +1 -1
  44. package/dist/components/avatar/index.d.mts +1 -1
  45. package/dist/components/avatar/index.mjs +1 -1
  46. package/dist/components/banner/index.mjs +1 -1
  47. package/dist/components/bento/index.d.mts +2 -0
  48. package/dist/components/bento/index.mjs +2 -0
  49. package/dist/components/block-ui/index.d.mts +2 -0
  50. package/dist/components/block-ui/index.mjs +2 -0
  51. package/dist/components/breadcrumb/index.mjs +1 -1
  52. package/dist/components/browser/index.d.mts +9 -0
  53. package/dist/components/browser/index.mjs +2 -0
  54. package/dist/components/calendar/index.mjs +1 -1
  55. package/dist/components/cascade-select/index.mjs +1 -1
  56. package/dist/components/command/index.mjs +1 -1
  57. package/dist/components/config-provider/index.d.mts +1 -1
  58. package/dist/components/config-provider/index.mjs +2 -1
  59. package/dist/components/data-view/index.d.mts +2 -0
  60. package/dist/components/data-view/index.mjs +2 -0
  61. package/dist/components/deferred-content/index.d.mts +2 -0
  62. package/dist/components/deferred-content/index.mjs +2 -0
  63. package/dist/components/descriptions/index.d.mts +1 -1
  64. package/dist/components/descriptions/index.mjs +1 -1
  65. package/dist/components/dock/index.d.mts +2 -0
  66. package/dist/components/dock/index.mjs +2 -0
  67. package/dist/components/dynamic-input/index.mjs +1 -1
  68. package/dist/components/file-upload/index.d.mts +3 -2
  69. package/dist/components/file-upload/index.mjs +3 -2
  70. package/dist/components/float-button/index.mjs +1 -1
  71. package/dist/components/form/index.d.mts +2 -2
  72. package/dist/components/form/index.mjs +2 -2
  73. package/dist/components/icon/index.d.mts +1 -1
  74. package/dist/components/icon/index.mjs +1 -1
  75. package/dist/components/image/index.d.mts +1 -1
  76. package/dist/components/image/index.mjs +1 -1
  77. package/dist/components/image-viewer/index.d.mts +1 -1
  78. package/dist/components/image-viewer/index.mjs +1 -1
  79. package/dist/components/input/index.d.mts +1 -1
  80. package/dist/components/input/index.mjs +1 -1
  81. package/dist/components/json-tree-view/index.d.mts +4 -4
  82. package/dist/components/json-tree-view/index.mjs +5 -1
  83. package/dist/components/layout/index.mjs +1 -1
  84. package/dist/components/list/index.mjs +1 -1
  85. package/dist/components/menubar/index.mjs +1 -1
  86. package/dist/components/order-list/index.d.mts +2 -0
  87. package/dist/components/order-list/index.mjs +2 -0
  88. package/dist/components/result/index.d.mts +12 -0
  89. package/dist/components/result/index.mjs +2 -0
  90. package/dist/components/select/index.d.mts +2 -7
  91. package/dist/components/select/index.mjs +2 -14
  92. package/dist/components/spinner/index.mjs +6 -1
  93. package/dist/components/split-button/index.mjs +1 -1
  94. package/dist/components/spotlight/index.d.mts +2 -0
  95. package/dist/components/spotlight/index.mjs +2 -0
  96. package/dist/components/steps/index.d.mts +3 -2
  97. package/dist/components/steps/index.mjs +3 -2
  98. package/dist/components/table/index.mjs +1 -1
  99. package/dist/components/tabs/index.d.mts +1 -1
  100. package/dist/components/tabs/index.mjs +1 -1
  101. package/dist/components/terminal/index.d.mts +2 -0
  102. package/dist/components/terminal/index.mjs +2 -0
  103. package/dist/components/timeline/index.d.mts +1 -1
  104. package/dist/components/timeline/index.mjs +1 -1
  105. package/dist/components/toc/index.d.mts +4 -1
  106. package/dist/components/toc/index.mjs +5 -1
  107. package/dist/components/toolbar/index.d.mts +2 -0
  108. package/dist/components/toolbar/index.mjs +2 -0
  109. package/dist/components/transfer/index.mjs +1 -1
  110. package/dist/components/tree-select/index.mjs +1 -1
  111. package/dist/components/tree-view/index.d.mts +1 -1
  112. package/dist/components/tree-view/index.mjs +4 -2
  113. package/dist/components/user/index.d.mts +2 -0
  114. package/dist/components/user/index.mjs +2 -0
  115. package/dist/components/virtual-list/index.d.mts +2 -0
  116. package/dist/components/virtual-list/index.mjs +2 -0
  117. package/dist/{config-provider-DW5wVzFr.mjs → config-provider-CZJyd3MX.mjs} +6 -14
  118. package/dist/context-Da-QMQRq.mjs +14 -0
  119. package/dist/data-view-BORK23XZ.mjs +179 -0
  120. package/dist/deferred-content-CO9YsKMQ.mjs +65 -0
  121. package/dist/{descriptions-Cv3x5qLW.mjs → descriptions-DgkA_9B-.mjs} +14 -8
  122. package/dist/dock-CKGRnXWu.mjs +84 -0
  123. package/dist/{dynamic-input-B3IBAoLs.mjs → dynamic-input-D1a-5vy-.mjs} +6 -1
  124. package/dist/{float-button-CZAda2SI.mjs → float-button-BLIHnw2u.mjs} +3 -1
  125. package/dist/{form-De-ZwM1P.mjs → form-BTL9S1gn.mjs} +4 -4
  126. package/dist/{icon-B6_cYYzO.mjs → icon-D7AeDq0M.mjs} +7 -6
  127. package/dist/{image-1Lgj8xhS.mjs → image-u_H4LtAC.mjs} +4 -0
  128. package/dist/{image-viewer-Dv3_Iyu8.mjs → image-viewer-DzoEcVSn.mjs} +20 -4
  129. package/dist/index-0k-VxNRm.d.mts +15 -0
  130. package/dist/{index-NJ21Q4f4.d.mts → index-BEfqqxjl.d.mts} +11 -1
  131. package/dist/{index-D6PrX-hf.d.mts → index-BJvo4qep.d.mts} +4 -2
  132. package/dist/{index-DTAcdUAd.d.mts → index-BkGvErBJ.d.mts} +5 -1
  133. package/dist/index-BmFfkztS.d.mts +14 -0
  134. package/dist/{index-BgLAlGbg.d.mts → index-BoR_54C_.d.mts} +3 -0
  135. package/dist/index-BolxaoaW.d.mts +18 -0
  136. package/dist/index-CAb_-2Bn.d.mts +21 -0
  137. package/dist/{index-Cd5VU1DI.d.mts → index-CV1LSzq5.d.mts} +3 -0
  138. package/dist/index-CmskeLd_.d.mts +23 -0
  139. package/dist/index-CnrohEXe.d.mts +24 -0
  140. package/dist/{index-BjVEomHj.d.mts → index-CtbGSRNw.d.mts} +719 -3781
  141. package/dist/{index-Nt0a2iYy.d.mts → index-D1U7Svy2.d.mts} +2 -2
  142. package/dist/{index-DAesWvpj.d.mts → index-D1tQgtT0.d.mts} +4 -0
  143. package/dist/index-D6eYSdmD.d.mts +28 -0
  144. package/dist/index-D9UBDdoA.d.mts +17 -0
  145. package/dist/index-DBbjFiDd.d.mts +20 -0
  146. package/dist/{index-CiHanb4T.d.mts → index-DG4OAuIf.d.mts} +4 -0
  147. package/dist/index-DGOBhwXN.d.mts +18 -0
  148. package/dist/{index-DrXCIscJ.d.mts → index-DjaHpB21.d.mts} +3 -0
  149. package/dist/index-KoqiUxmN.d.mts +20 -0
  150. package/dist/{index-BnvnT-GQ.d.mts → index-_kQsvJKo.d.mts} +6 -2
  151. package/dist/index-mshFOd-j.d.mts +20 -0
  152. package/dist/index.d.mts +28 -14
  153. package/dist/index.mjs +45 -30
  154. package/dist/{layout-WRo4P9-_.mjs → layout-GfxGYYhg.mjs} +7 -4
  155. package/dist/{list-B23lA_sc.mjs → list-BgEM9H3z.mjs} +2 -1
  156. package/dist/{menubar-Crrkg2tZ.mjs → menubar-2MPo9w5z.mjs} +1 -0
  157. package/dist/messages-DNzA55pH.mjs +17 -0
  158. package/dist/order-list-D3EhH7EX.mjs +129 -0
  159. package/dist/result-4Oee2ndu.mjs +159 -0
  160. package/dist/select-8ume4i2e.mjs +99 -0
  161. package/dist/{split-button-CGjPB9DQ.mjs → split-button-DnmVc_J0.mjs} +5 -3
  162. package/dist/spotlight-DMC5E1eS.mjs +51 -0
  163. package/dist/{table-C0AcH5Dw.mjs → table-BsdqRuvj.mjs} +63 -44
  164. package/dist/terminal-Dgw5JEz4.mjs +80 -0
  165. package/dist/{timeline-BV4eahUx.mjs → timeline-1yPOTbtY.mjs} +4 -2
  166. package/dist/toolbar-SNwuRrJr.mjs +68 -0
  167. package/dist/{transfer-0IAuhFCe.mjs → transfer-C0FLA8W1.mjs} +16 -5
  168. package/dist/{tree-select-aHymj8Zu.mjs → tree-select-CSYSYZDN.mjs} +72 -71
  169. package/dist/user-BjJSjDYV.mjs +100 -0
  170. package/dist/virtual-list-_10ypBUP.mjs +60 -0
  171. package/package.json +28 -7
  172. package/dist/Input-Biz4J1B6.mjs +0 -39
  173. package/dist/TreeViewRoot-ConQj9TX.mjs +0 -37
@@ -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",
@@ -3,14 +3,14 @@ import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
4
  import { Field } from "@ark-ui/svelte/field";
5
5
  import { getContext, setContext } from "svelte";
6
- import { createField, createForm } from "@tanstack/svelte-form";
6
+ import { createField, createField as useField, createForm, createForm as useForm } from "@tanstack/svelte-form";
7
7
  //#region src/components/form/context.ts
8
8
  const FORM_KEY = Symbol("bysages-form");
9
9
  function provideForm(engine) {
10
10
  setContext(FORM_KEY, engine);
11
11
  return engine;
12
12
  }
13
- function useForm() {
13
+ function useForm$1() {
14
14
  return getContext(FORM_KEY) ?? null;
15
15
  }
16
16
  //#endregion
@@ -163,7 +163,7 @@ function FormField$1($$anchor, $$props) {
163
163
  };
164
164
  injectComponentStyle("form");
165
165
  let required = $.prop($$props, "required", 3, false), invalid = $.prop($$props, "invalid", 3, false), disabled = $.prop($$props, "disabled", 3, false), rest = $.rest_props($$props, rest_excludes);
166
- const engine = $$props.form ?? useForm();
166
+ const engine = $$props.form ?? useForm$1();
167
167
  function errorText(error) {
168
168
  if (error == null) return "";
169
169
  if (typeof error === "string") return error;
@@ -209,4 +209,4 @@ const Form = Form$1;
209
209
  const FormField = FormField$1;
210
210
  injectComponentStyle("field");
211
211
  //#endregion
212
- export { createForm as i, FormField as n, createField as r, Form as t };
212
+ export { useField as a, createForm as i, FormField as n, useForm as o, createField as r, Form as t };
@@ -1,7 +1,7 @@
1
1
  import { injectComponentStyle } from "@bysages/core";
2
2
  import "svelte/internal/disclose-version";
3
3
  import * as $ from "svelte/internal/client";
4
- import { getIcon } from "@bysages/icons";
4
+ import { getIcon } from "@bysages/core/icons";
5
5
  //#region src/components/icon/Icon.svelte
6
6
  var rest_excludes = /* @__PURE__ */ new Set([
7
7
  "$$slots",
@@ -9,6 +9,7 @@ var rest_excludes = /* @__PURE__ */ new Set([
9
9
  "$$legacy",
10
10
  "size",
11
11
  "label",
12
+ "glyph",
12
13
  "name",
13
14
  "children"
14
15
  ]);
@@ -18,8 +19,8 @@ function Icon$1($$anchor, $$props) {
18
19
  $.push($$props, true);
19
20
  injectComponentStyle("icon");
20
21
  let size = $.prop($$props, "size", 3, "inherit"), rest = $.rest_props($$props, rest_excludes);
21
- const glyph = $$props.name && $$props.children == null ? getIcon($$props.name) : void 0;
22
- if ($$props.name && $$props.children == null && !glyph) console.error(`[icons] unknown icon name "${$$props.name}" — extend packages/icons/icons.config.json and rerun the generator`);
22
+ const resolved = $$props.glyph ?? ($$props.name && $$props.children == null ? getIcon($$props.name) : void 0);
23
+ if ($$props.name && $$props.children == null && $$props.glyph == null && !resolved) console.error(`[icons] unknown icon name "${$$props.name}" — not in the wrappers' whitelist; import the glyph from @bysages/icons and pass it as glyph`);
23
24
  var span = root_1();
24
25
  $.attribute_effect(span, () => ({
25
26
  ...rest,
@@ -39,14 +40,14 @@ function Icon$1($$anchor, $$props) {
39
40
  };
40
41
  var consequent_1 = ($$anchor) => {
41
42
  var svg = root();
42
- $.html(svg, () => glyph.body, true);
43
+ $.html(svg, () => resolved.body, true);
43
44
  $.reset(svg);
44
- $.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${glyph.width ?? 24 ?? ""} ${glyph.height ?? 24 ?? ""}`));
45
+ $.template_effect(() => $.set_attribute(svg, "viewBox", `0 0 ${resolved.width ?? 24 ?? ""} ${resolved.height ?? 24 ?? ""}`));
45
46
  $.append($$anchor, svg);
46
47
  };
47
48
  $.if(node, ($$render) => {
48
49
  if ($$props.children) $$render(consequent);
49
- else if (glyph) $$render(consequent_1, 1);
50
+ else if (resolved) $$render(consequent_1, 1);
50
51
  });
51
52
  $.reset(span);
52
53
  $.append($$anchor, span);
@@ -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);
@@ -0,0 +1,15 @@
1
+ import { HTMLAttributes } from "svelte/elements";
2
+ //#region src/components/spotlight/props.d.ts
3
+ interface SpotlightProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** How far the lamp throws before the ink swallows it. */
5
+ radius?: string;
6
+ }
7
+ //#endregion
8
+ //#region src/components/spotlight/index.d.ts
9
+ /** The ink-light card: a vessel whose rim and face take light from the
10
+ * reader's hand. */
11
+ declare const Spotlight: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
12
+ radius?: string;
13
+ }, {}, "">;
14
+ //#endregion
15
+ export { SpotlightProps as n, Spotlight as t };
@@ -5,6 +5,16 @@ interface DescriptionsRootProps extends HTMLAttributes<HTMLDListElement> {
5
5
  /** The horizontal layout reads as a table of two columns; the
6
6
  * vertical one stacks each pair for narrow measures. */
7
7
  layout?: "horizontal" | "vertical";
8
+ /** The framed register: one hairline round the whole, terms on
9
+ * inset paper. */
10
+ bordered?: boolean;
11
+ /** Pairs across the grid: one ledger per column. */
12
+ column?: number;
13
+ children?: Snippet;
14
+ }
15
+ interface DescriptionsItemProps extends HTMLAttributes<HTMLElement> {
16
+ /** Column pairs this entry stretches across. */
17
+ span?: number;
8
18
  children?: Snippet;
9
19
  }
10
20
  interface DescriptionsPartProps extends HTMLAttributes<HTMLElement> {
@@ -17,7 +27,7 @@ interface DescriptionsPartProps extends HTMLAttributes<HTMLElement> {
17
27
  * stacks each pair for narrow measures. */
18
28
  declare const Descriptions: import("svelte").Component<DescriptionsRootProps, {}, ""> & {
19
29
  Root: import("svelte").Component<DescriptionsRootProps, {}, "">;
20
- Item: import("svelte").Component<DescriptionsPartProps, {}, "">;
30
+ Item: import("svelte").Component<DescriptionsItemProps, {}, "">;
21
31
  Term: import("svelte").Component<DescriptionsPartProps, {}, "">;
22
32
  Detail: import("svelte").Component<DescriptionsPartProps, {}, "">;
23
33
  };
@@ -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
@@ -0,0 +1,14 @@
1
+ import { HTMLAttributes } from "svelte/elements";
2
+ //#region src/components/block-ui/props.d.ts
3
+ interface BlockUIProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** Whether the curtain is drawn. */
5
+ blocked?: boolean;
6
+ children?: import("svelte").Snippet;
7
+ }
8
+ //#endregion
9
+ //#region src/components/block-ui/index.d.ts
10
+ /** A curtain over content that must wait: frosted paper and one
11
+ * quiet wheel. */
12
+ declare const BlockUI: import("svelte").Component<BlockUIProps, {}, "">;
13
+ //#endregion
14
+ export { BlockUIProps as n, BlockUI as t };
@@ -2,6 +2,9 @@ import { Snippet } from "svelte";
2
2
  import { HTMLAttributes } from "svelte/elements";
3
3
  //#region src/components/timeline/props.d.ts
4
4
  interface TimelineProps extends HTMLAttributes<HTMLOListElement> {
5
+ /** The thread's direction: a vertical line of moments, or one
6
+ * running left to right. */
7
+ orientation?: "vertical" | "horizontal";
5
8
  children?: Snippet;
6
9
  }
7
10
  interface TimelineItemProps extends HTMLAttributes<HTMLLIElement> {
@@ -0,0 +1,18 @@
1
+ import { Snippet } from "svelte";
2
+ import { HTMLAttributes } from "svelte/elements";
3
+ //#region src/components/deferred-content/props.d.ts
4
+ interface DeferredContentProps extends Omit<HTMLAttributes<HTMLDivElement>, "placeholder"> {
5
+ /** How much of the placeholder must be visible before the content
6
+ * mounts, from 0 (any pixel) to 1 (the whole box). */
7
+ threshold?: number;
8
+ /** Drawn until the box approaches the viewport. */
9
+ placeholder?: Snippet;
10
+ children?: Snippet;
11
+ }
12
+ //#endregion
13
+ //#region src/components/deferred-content/index.d.ts
14
+ /** Content that waits to be worth rendering: the slot mounts when the
15
+ * placeholder approaches the viewport. */
16
+ declare const DeferredContent: import("svelte").Component<DeferredContentProps, {}, "">;
17
+ //#endregion
18
+ export { DeferredContentProps as n, DeferredContent as t };
@@ -0,0 +1,21 @@
1
+ import { HTMLAttributes } from "svelte/elements";
2
+ //#region src/components/order-list/props.d.ts
3
+ interface OrderOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ interface OrderListProps extends HTMLAttributes<HTMLDivElement> {
8
+ /** Two-way bindable — the rows in their current order; the value is
9
+ * the order. */
10
+ value?: string[];
11
+ /** Every row the ledger knows, in no particular order. */
12
+ options: OrderOption[];
13
+ label?: string;
14
+ }
15
+ //#endregion
16
+ //#region src/components/order-list/index.d.ts
17
+ /** A ledger the reader may rewrite: rows move by grip or by the side
18
+ * arrows; the value is the order. */
19
+ declare const OrderList: import("svelte").Component<OrderListProps, {}, "value">;
20
+ //#endregion
21
+ export { OrderListProps as n, OrderOption as r, OrderList as t };
@@ -6,6 +6,9 @@ interface AvatarProps {
6
6
  * default (large) stands as tall as the biggest control so an avatar
7
7
  * rides a row without stretching it. */
8
8
  size?: AvatarSize;
9
+ /** The corner: round by default; square cuts it sharp, a stamp
10
+ * beside a round portrait. */
11
+ shape?: "circle" | "square";
9
12
  children?: import("svelte").Snippet;
10
13
  }
11
14
  //#endregion
@@ -0,0 +1,23 @@
1
+ import { HTMLAttributes } from "svelte/elements";
2
+ //#region src/components/bento/props.d.ts
3
+ interface BentoProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** Tracks across the lattice. */
5
+ columns?: number;
6
+ }
7
+ //#endregion
8
+ //#region src/components/bento/index.d.ts
9
+ /** The bento lattice: a grid of unequal tiles that reads as one plate
10
+ * — Bento, Bento.Cell. */
11
+ declare const Bento: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
12
+ columns?: number;
13
+ }, {}, ""> & {
14
+ Root: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
15
+ columns?: number;
16
+ }, {}, "">;
17
+ Cell: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
18
+ span?: number;
19
+ rowSpan?: number;
20
+ }, {}, "">;
21
+ };
22
+ //#endregion
23
+ export { BentoProps as n, Bento as t };
@@ -0,0 +1,24 @@
1
+ import { HTMLAttributes } from "svelte/elements";
2
+ //#region src/components/dock/props.d.ts
3
+ interface DockProps extends HTMLAttributes<HTMLDivElement> {
4
+ /** The tallest an item swells under the hand — 1 stands still. */
5
+ maxScale?: number;
6
+ /** How far the hand reaches, in px, before an item stops answering. */
7
+ radius?: number;
8
+ }
9
+ //#endregion
10
+ //#region src/components/dock/index.d.ts
11
+ /** The magnifying dock: a floating rail whose icons swell toward the
12
+ * hand — Dock, Dock.Item. */
13
+ declare const Dock: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
14
+ maxScale?: number;
15
+ radius?: number;
16
+ }, {}, ""> & {
17
+ Root: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement> & {
18
+ maxScale?: number;
19
+ radius?: number;
20
+ }, {}, "">;
21
+ Item: import("svelte").Component<import("svelte/elements").HTMLAttributes<HTMLDivElement>, {}, "">;
22
+ };
23
+ //#endregion
24
+ export { DockProps as n, Dock as t };