@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
@@ -2,6 +2,7 @@ import { t as Button } from "./button-BCcX7lHq.mjs";
2
2
  import { Field } from "./components/field/index.mjs";
3
3
  import { n as MentionsVessel } from "./mentions-DjhgNRmY.mjs";
4
4
  import { t as useMentions } from "./use-mentions-DeF_38di.mjs";
5
+ import { n as useComponentMessages } from "./messages-DNzA55pH.mjs";
5
6
  import { injectComponentStyle } from "@bysages/core";
6
7
  import "svelte/internal/disclose-version";
7
8
  import * as $ from "svelte/internal/client";
@@ -37,35 +38,43 @@ function AiPromptInput$1($$anchor, $$props) {
37
38
  var fragment = $.comment();
38
39
  var node = $.first_child(fragment);
39
40
  var consequent = ($$anchor) => {
40
- Button($$anchor, {
41
- variant: "solid",
42
- size: "sm",
43
- square: true,
44
- type: "button",
45
- "aria-label": "Stop",
46
- get disabled() {
47
- return disabled();
48
- },
49
- onclick: () => $$props.onStop?.(),
50
- children: ($$anchor, $$slotProps) => {
51
- var svg = root();
52
- $.append($$anchor, svg);
53
- },
54
- $$slots: { default: true }
55
- });
41
+ {
42
+ let $0 = $.derived(() => messages().ai.stop);
43
+ Button($$anchor, {
44
+ variant: "solid",
45
+ size: "sm",
46
+ square: true,
47
+ type: "button",
48
+ get "aria-label"() {
49
+ return $.get($0);
50
+ },
51
+ get disabled() {
52
+ return disabled();
53
+ },
54
+ onclick: () => $$props.onStop?.(),
55
+ children: ($$anchor, $$slotProps) => {
56
+ var svg = root();
57
+ $.append($$anchor, svg);
58
+ },
59
+ $$slots: { default: true }
60
+ });
61
+ }
56
62
  };
57
63
  var alternate = ($$anchor) => {
58
64
  {
59
- let $0 = $.derived(() => disabled() || !value().trim());
65
+ let $0 = $.derived(() => messages().ai.send);
66
+ let $1 = $.derived(() => disabled() || !value().trim());
60
67
  Button($$anchor, {
61
68
  variant: "solid",
62
69
  size: "sm",
63
70
  square: true,
64
71
  type: "submit",
65
- "aria-label": "Send",
66
- get disabled() {
72
+ get "aria-label"() {
67
73
  return $.get($0);
68
74
  },
75
+ get disabled() {
76
+ return $.get($1);
77
+ },
69
78
  children: ($$anchor, $$slotProps) => {
70
79
  var svg_1 = root_1();
71
80
  $.append($$anchor, svg_1);
@@ -81,8 +90,10 @@ function AiPromptInput$1($$anchor, $$props) {
81
90
  $.append($$anchor, fragment);
82
91
  };
83
92
  injectComponentStyle("ai");
84
- let value = $.prop($$props, "value", 15, ""), placeholder = $.prop($$props, "placeholder", 3, "Send a message"), disabled = $.prop($$props, "disabled", 3, false), busy = $.prop($$props, "busy", 3, false), rest = $.rest_props($$props, rest_excludes);
93
+ let value = $.prop($$props, "value", 15, ""), disabled = $.prop($$props, "disabled", 3, false), busy = $.prop($$props, "busy", 3, false), rest = $.rest_props($$props, rest_excludes);
85
94
  let textareaEl = $.state(null);
95
+ const messages = useComponentMessages();
96
+ const placeholderText = $.derived(() => $$props.placeholder ?? messages().ai.send);
86
97
  const mentionState = useMentions(() => ({
87
98
  items: $$props.mentions?.items ?? [],
88
99
  trigger: $$props.mentions?.trigger
@@ -142,38 +153,44 @@ function AiPromptInput$1($$anchor, $$props) {
142
153
  children: ($$anchor, $$slotProps) => {
143
154
  var fragment_3 = $.comment();
144
155
  var node_6 = $.first_child(fragment_3);
145
- $.component(node_6, () => Field.Textarea, ($$anchor, Field_Textarea) => {
146
- Field_Textarea($$anchor, {
147
- autoresize: true,
148
- rows: 1,
149
- get placeholder() {
150
- return placeholder();
151
- },
152
- get disabled() {
153
- return disabled();
154
- },
155
- oninput: () => mentionState.onInput(),
156
- onkeydown: (event) => {
157
- if (mentionState.onKeydown(event)) return;
158
- if (event.key === "Enter" && !event.shiftKey) {
159
- event.preventDefault();
160
- send();
156
+ {
157
+ let $0 = $.derived(() => messages().ai.conversation);
158
+ $.component(node_6, () => Field.Textarea, ($$anchor, Field_Textarea) => {
159
+ Field_Textarea($$anchor, {
160
+ autoresize: true,
161
+ rows: 1,
162
+ get placeholderText() {
163
+ return $.get(placeholderText);
164
+ },
165
+ get "aria-label"() {
166
+ return $.get($0);
167
+ },
168
+ get disabled() {
169
+ return disabled();
170
+ },
171
+ oninput: () => mentionState.onInput(),
172
+ onkeydown: (event) => {
173
+ if (mentionState.onKeydown(event)) return;
174
+ if (event.key === "Enter" && !event.shiftKey) {
175
+ event.preventDefault();
176
+ send();
177
+ }
178
+ },
179
+ get ref() {
180
+ return $.get(textareaEl);
181
+ },
182
+ set ref($$value) {
183
+ $.set(textareaEl, $$value, true);
184
+ },
185
+ get value() {
186
+ return value();
187
+ },
188
+ set value($$value) {
189
+ value($$value);
161
190
  }
162
- },
163
- get ref() {
164
- return $.get(textareaEl);
165
- },
166
- set ref($$value) {
167
- $.set(textareaEl, $$value, true);
168
- },
169
- get value() {
170
- return value();
171
- },
172
- set value($$value) {
173
- value($$value);
174
- }
191
+ });
175
192
  });
176
- });
193
+ }
177
194
  $.append($$anchor, fragment_3);
178
195
  },
179
196
  $$slots: { default: true }
@@ -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";
@@ -113,16 +114,19 @@ var root_1 = $.from_html(`<div></div>`);
113
114
  function AiResponse$1($$anchor, $$props) {
114
115
  $.push($$props, true);
115
116
  injectComponentStyle("ai");
116
- let copyLabel = $.prop($$props, "copyLabel", 3, "Copy code"), copiedLabel = $.prop($$props, "copiedLabel", 3, "Copied"), rest = $.rest_props($$props, rest_excludes);
117
+ let rest = $.rest_props($$props, rest_excludes);
118
+ const messages = useComponentMessages();
117
119
  const html = $.derived(() => renderHtml($$props.content, $$props.highlighter ? { highlighter: $$props.highlighter } : void 0));
120
+ const copyText = $.derived(() => $$props.copyLabel ?? messages().ai.copyCode);
121
+ const copiedText = $.derived(() => $$props.copiedLabel ?? messages().ai.copied);
118
122
  let root;
119
123
  $.user_effect(() => {
120
124
  $.get(html);
121
- if (root) decorateCodeCopy(root, copyLabel());
125
+ if (root) decorateCodeCopy(root, $.get(copyText));
122
126
  if (root) wrapResponseTables(root);
123
127
  });
124
128
  const handleClick = (event) => {
125
- clickCodeCopy(event, copyLabel(), copiedLabel());
129
+ clickCodeCopy(event, $.get(copyText), $.get(copiedText));
126
130
  $$props.onclick?.(event);
127
131
  };
128
132
  var div = root_1();
@@ -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";
@@ -20,6 +21,7 @@ function AutoComplete$1($$anchor, $$props) {
20
21
  $.push($$props, true);
21
22
  injectComponentStyle("combobox");
22
23
  let value = $.prop($$props, "value", 15, ""), items = $.prop($$props, "items", 19, () => []), size = $.prop($$props, "size", 3, "md"), rest = $.rest_props($$props, rest_excludes);
24
+ const messages = useComponentMessages();
23
25
  const { collection, filter: filterItems } = useListCollection({
24
26
  initialItems: items(),
25
27
  filter: (item, input) => $$props.filter ? $$props.filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
@@ -85,7 +87,8 @@ function AutoComplete$1($$anchor, $$props) {
85
87
  ArkCombobox_Empty($$anchor, {
86
88
  children: ($$anchor, $$slotProps) => {
87
89
  $.next();
88
- var text = $.text("No matches");
90
+ var text = $.text();
91
+ $.template_effect(($0) => $.set_text(text, $0), [() => messages().command.noMatches]);
89
92
  $.append($$anchor, text);
90
93
  },
91
94
  $$slots: { default: true }
@@ -93,16 +96,16 @@ function AutoComplete$1($$anchor, $$props) {
93
96
  });
94
97
  var node_7 = $.sibling(node_6, 2);
95
98
  $.each(node_7, 16, () => collection().items, (item) => item, ($$anchor, item) => {
96
- var fragment_6 = $.comment();
97
- var node_8 = $.first_child(fragment_6);
99
+ var fragment_7 = $.comment();
100
+ var node_8 = $.first_child(fragment_7);
98
101
  $.component(node_8, () => Combobox.Item, ($$anchor, ArkCombobox_Item) => {
99
102
  ArkCombobox_Item($$anchor, {
100
103
  get item() {
101
104
  return item;
102
105
  },
103
106
  children: ($$anchor, $$slotProps) => {
104
- var fragment_7 = $.comment();
105
- var node_9 = $.first_child(fragment_7);
107
+ var fragment_8 = $.comment();
108
+ var node_9 = $.first_child(fragment_8);
106
109
  $.component(node_9, () => Combobox.ItemText, ($$anchor, ArkCombobox_ItemText) => {
107
110
  ArkCombobox_ItemText($$anchor, {
108
111
  children: ($$anchor, $$slotProps) => {
@@ -114,12 +117,12 @@ function AutoComplete$1($$anchor, $$props) {
114
117
  $$slots: { default: true }
115
118
  });
116
119
  });
117
- $.append($$anchor, fragment_7);
120
+ $.append($$anchor, fragment_8);
118
121
  },
119
122
  $$slots: { default: true }
120
123
  });
121
124
  });
122
- $.append($$anchor, fragment_6);
125
+ $.append($$anchor, fragment_7);
123
126
  });
124
127
  $.append($$anchor, fragment_5);
125
128
  },
@@ -8,12 +8,13 @@ var rest_excludes = /* @__PURE__ */ new Set([
8
8
  "$$events",
9
9
  "$$legacy",
10
10
  "size",
11
+ "shape",
11
12
  "children"
12
13
  ]);
13
14
  function Avatar$2($$anchor, $$props) {
14
15
  $.push($$props, true);
15
16
  injectComponentStyle("avatar");
16
- let rest = $.rest_props($$props, rest_excludes);
17
+ let shape = $.prop($$props, "shape", 3, "circle"), rest = $.rest_props($$props, rest_excludes);
17
18
  var fragment = $.comment();
18
19
  var node = $.first_child(fragment);
19
20
  $.component(node, () => Avatar.Root, ($$anchor, ArkAvatar_Root) => {
@@ -21,6 +22,9 @@ function Avatar$2($$anchor, $$props) {
21
22
  get "data-size"() {
22
23
  return $$props.size;
23
24
  },
25
+ get "data-shape"() {
26
+ return shape();
27
+ },
24
28
  children: ($$anchor, $$slotProps) => {
25
29
  var fragment_1 = $.comment();
26
30
  var node_1 = $.first_child(fragment_1);
@@ -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
  }
@@ -0,0 +1,73 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import "svelte/internal/disclose-version";
3
+ import * as $ from "svelte/internal/client";
4
+ //#region src/components/bento/Bento.svelte
5
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
6
+ "$$slots",
7
+ "$$events",
8
+ "$$legacy",
9
+ "columns",
10
+ "children"
11
+ ]);
12
+ var root$1 = $.from_html(`<div><!></div>`);
13
+ function Bento$1($$anchor, $$props) {
14
+ $.push($$props, true);
15
+ injectComponentStyle("bento");
16
+ /** Tracks across the lattice. */
17
+ let columns = $.prop($$props, "columns", 3, 3), rest = $.rest_props($$props, rest_excludes$1);
18
+ var div = root$1();
19
+ $.attribute_effect(div, ($0) => ({
20
+ ...rest,
21
+ "data-scope": "bento",
22
+ "data-part": "root",
23
+ [$.STYLE]: { "--bs-bento-columns": $0 }
24
+ }), [() => String(columns())]);
25
+ var node = $.child(div);
26
+ $.snippet(node, () => $$props.children ?? $.noop);
27
+ $.reset(div);
28
+ $.append($$anchor, div);
29
+ $.pop();
30
+ }
31
+ //#endregion
32
+ //#region src/components/bento/BentoCell.svelte
33
+ var rest_excludes = /* @__PURE__ */ new Set([
34
+ "$$slots",
35
+ "$$events",
36
+ "$$legacy",
37
+ "span",
38
+ "rowSpan",
39
+ "children"
40
+ ]);
41
+ var root = $.from_html(`<div><!></div>`);
42
+ function BentoCell($$anchor, $$props) {
43
+ $.push($$props, true);
44
+ injectComponentStyle("bento");
45
+ /** Columns this tile claims. */
46
+ /** Rows this tile claims. */
47
+ let span = $.prop($$props, "span", 3, 1), rowSpan = $.prop($$props, "rowSpan", 3, 1), rest = $.rest_props($$props, rest_excludes);
48
+ var div = root();
49
+ $.attribute_effect(div, ($0, $1) => ({
50
+ ...rest,
51
+ "data-scope": "bento",
52
+ "data-part": "cell",
53
+ [$.STYLE]: {
54
+ "--bs-bento-span-x": $0,
55
+ "--bs-bento-span-y": $1
56
+ }
57
+ }), [() => String(span()), () => String(rowSpan())]);
58
+ var node = $.child(div);
59
+ $.snippet(node, () => $$props.children ?? $.noop);
60
+ $.reset(div);
61
+ $.append($$anchor, div);
62
+ $.pop();
63
+ }
64
+ //#endregion
65
+ //#region src/components/bento/index.ts
66
+ /** The bento lattice: a grid of unequal tiles that reads as one plate
67
+ * — Bento, Bento.Cell. */
68
+ const Bento = Object.assign(Bento$1, {
69
+ Root: Bento$1,
70
+ Cell: BentoCell
71
+ });
72
+ //#endregion
73
+ export { Bento as t };
@@ -0,0 +1,50 @@
1
+ import { t as Spinner } from "./Spinner-DGAzGJ_8.mjs";
2
+ import { injectComponentStyle } from "@bysages/core";
3
+ import "svelte/internal/disclose-version";
4
+ import * as $ from "svelte/internal/client";
5
+ //#region src/components/block-ui/BlockUI.svelte
6
+ var rest_excludes = /* @__PURE__ */ new Set([
7
+ "$$slots",
8
+ "$$events",
9
+ "$$legacy",
10
+ "blocked",
11
+ "children"
12
+ ]);
13
+ var root = $.from_html(`<div data-scope="block-ui" data-part="mask"><!></div>`);
14
+ var root_1 = $.from_html(`<div><!> <!></div>`);
15
+ function BlockUI$1($$anchor, $$props) {
16
+ $.push($$props, true);
17
+ injectComponentStyle("block-ui");
18
+ let blocked = $.prop($$props, "blocked", 3, false), rest = $.rest_props($$props, rest_excludes);
19
+ var div = root_1();
20
+ $.attribute_effect(div, () => ({
21
+ ...rest,
22
+ "data-scope": "block-ui",
23
+ "data-part": "root",
24
+ "data-blocked": blocked() ? "" : void 0,
25
+ "aria-busy": blocked() || void 0
26
+ }));
27
+ var node = $.child(div);
28
+ $.snippet(node, () => $$props.children ?? $.noop);
29
+ var node_1 = $.sibling(node, 2);
30
+ var consequent = ($$anchor) => {
31
+ var div_1 = root();
32
+ var node_2 = $.child(div_1);
33
+ Spinner(node_2, { size: "lg" });
34
+ $.reset(div_1);
35
+ $.append($$anchor, div_1);
36
+ };
37
+ $.if(node_1, ($$render) => {
38
+ if (blocked()) $$render(consequent);
39
+ });
40
+ $.reset(div);
41
+ $.append($$anchor, div);
42
+ $.pop();
43
+ }
44
+ //#endregion
45
+ //#region src/components/block-ui/index.ts
46
+ /** A curtain over content that must wait: frosted paper and one
47
+ * quiet wheel. */
48
+ const BlockUI = BlockUI$1;
49
+ //#endregion
50
+ export { BlockUI 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";
@@ -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);
@@ -0,0 +1,146 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import "svelte/internal/disclose-version";
3
+ import * as $ from "svelte/internal/client";
4
+ //#region src/components/browser/Browser.svelte
5
+ var rest_excludes$4 = /* @__PURE__ */ new Set([
6
+ "$$slots",
7
+ "$$events",
8
+ "$$legacy",
9
+ "children"
10
+ ]);
11
+ var root$4 = $.from_html(`<div><!></div>`);
12
+ function Browser$1($$anchor, $$props) {
13
+ $.push($$props, true);
14
+ injectComponentStyle("browser");
15
+ let rest = $.rest_props($$props, rest_excludes$4);
16
+ var div = root$4();
17
+ $.attribute_effect(div, () => ({
18
+ ...rest,
19
+ "data-scope": "browser",
20
+ "data-part": "root"
21
+ }));
22
+ var node = $.child(div);
23
+ $.snippet(node, () => $$props.children ?? $.noop);
24
+ $.reset(div);
25
+ $.append($$anchor, div);
26
+ $.pop();
27
+ }
28
+ //#endregion
29
+ //#region src/components/browser/BrowserBody.svelte
30
+ var rest_excludes$3 = /* @__PURE__ */ new Set([
31
+ "$$slots",
32
+ "$$events",
33
+ "$$legacy",
34
+ "children"
35
+ ]);
36
+ var root$3 = $.from_html(`<div><!></div>`);
37
+ function BrowserBody($$anchor, $$props) {
38
+ $.push($$props, true);
39
+ injectComponentStyle("browser");
40
+ let rest = $.rest_props($$props, rest_excludes$3);
41
+ var div = root$3();
42
+ $.attribute_effect(div, () => ({
43
+ ...rest,
44
+ "data-scope": "browser",
45
+ "data-part": "body"
46
+ }));
47
+ var node = $.child(div);
48
+ $.snippet(node, () => $$props.children ?? $.noop);
49
+ $.reset(div);
50
+ $.append($$anchor, div);
51
+ $.pop();
52
+ }
53
+ //#endregion
54
+ //#region src/components/browser/BrowserDots.svelte
55
+ var rest_excludes$2 = /* @__PURE__ */ new Set([
56
+ "$$slots",
57
+ "$$events",
58
+ "$$legacy"
59
+ ]);
60
+ var root$2 = $.from_html(`<span data-scope="browser" data-part="dot"></span>`);
61
+ var root_1 = $.from_html(`<div></div>`);
62
+ function BrowserDots($$anchor, $$props) {
63
+ $.push($$props, true);
64
+ injectComponentStyle("browser");
65
+ let rest = $.rest_props($$props, rest_excludes$2);
66
+ const tones = [
67
+ "danger",
68
+ "warning",
69
+ "success"
70
+ ];
71
+ var div = root_1();
72
+ $.attribute_effect(div, () => ({
73
+ ...rest,
74
+ "data-scope": "browser",
75
+ "data-part": "dots"
76
+ }));
77
+ $.each(div, 20, () => tones, (tone) => tone, ($$anchor, tone) => {
78
+ var span = root$2();
79
+ $.template_effect(() => $.set_attribute(span, "data-tone", tone));
80
+ $.append($$anchor, span);
81
+ });
82
+ $.reset(div);
83
+ $.append($$anchor, div);
84
+ $.pop();
85
+ }
86
+ //#endregion
87
+ //#region src/components/browser/BrowserTitleBar.svelte
88
+ var rest_excludes$1 = /* @__PURE__ */ new Set([
89
+ "$$slots",
90
+ "$$events",
91
+ "$$legacy",
92
+ "children"
93
+ ]);
94
+ var root$1 = $.from_html(`<div><!></div>`);
95
+ function BrowserTitleBar($$anchor, $$props) {
96
+ $.push($$props, true);
97
+ injectComponentStyle("browser");
98
+ let rest = $.rest_props($$props, rest_excludes$1);
99
+ var div = root$1();
100
+ $.attribute_effect(div, () => ({
101
+ ...rest,
102
+ "data-scope": "browser",
103
+ "data-part": "titlebar"
104
+ }));
105
+ var node = $.child(div);
106
+ $.snippet(node, () => $$props.children ?? $.noop);
107
+ $.reset(div);
108
+ $.append($$anchor, div);
109
+ $.pop();
110
+ }
111
+ //#endregion
112
+ //#region src/components/browser/BrowserUrlBar.svelte
113
+ var rest_excludes = /* @__PURE__ */ new Set([
114
+ "$$slots",
115
+ "$$events",
116
+ "$$legacy",
117
+ "children"
118
+ ]);
119
+ var root = $.from_html(`<div><!></div>`);
120
+ function BrowserUrlBar($$anchor, $$props) {
121
+ $.push($$props, true);
122
+ injectComponentStyle("browser");
123
+ let rest = $.rest_props($$props, rest_excludes);
124
+ var div = root();
125
+ $.attribute_effect(div, () => ({
126
+ ...rest,
127
+ "data-scope": "browser",
128
+ "data-part": "urlbar"
129
+ }));
130
+ var node = $.child(div);
131
+ $.snippet(node, () => $$props.children ?? $.noop);
132
+ $.reset(div);
133
+ $.append($$anchor, div);
134
+ $.pop();
135
+ }
136
+ //#endregion
137
+ //#region src/components/browser/index.ts
138
+ /** A browser window as a vessel: Root, TitleBar, Dots, UrlBar, Body. */
139
+ const Browser = Object.assign(Browser$1, {
140
+ TitleBar: BrowserTitleBar,
141
+ Dots: BrowserDots,
142
+ UrlBar: BrowserUrlBar,
143
+ Body: BrowserBody
144
+ });
145
+ //#endregion
146
+ export { Browser as t };
@@ -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>`);