@bysages/solid 0.2.2 → 0.3.0

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 (293) hide show
  1. package/README.md +16 -2
  2. package/dist/ai-response-ClGGptX3.mjs +139 -0
  3. package/dist/chevron-D5RzcayK.mjs +9 -0
  4. package/dist/components/accordion/index.d.mts +7 -0
  5. package/dist/components/accordion/index.mjs +10 -0
  6. package/dist/components/affix/index.d.mts +20 -0
  7. package/dist/components/affix/index.mjs +33 -0
  8. package/dist/components/ai/index.d.mts +2 -0
  9. package/dist/components/ai/index.mjs +71 -0
  10. package/dist/components/ai-action/index.d.mts +13 -0
  11. package/dist/components/ai-action/index.mjs +27 -0
  12. package/dist/components/ai-attachments/index.d.mts +20 -0
  13. package/dist/components/ai-attachments/index.mjs +110 -0
  14. package/dist/components/ai-message/index.d.mts +13 -0
  15. package/dist/components/ai-message/index.mjs +22 -0
  16. package/dist/components/ai-prompt-input/index.d.mts +45 -0
  17. package/dist/components/ai-prompt-input/index.mjs +153 -0
  18. package/dist/components/ai-reasoning/index.d.mts +13 -0
  19. package/dist/components/ai-reasoning/index.mjs +38 -0
  20. package/dist/components/ai-response/index.d.mts +20 -0
  21. package/dist/components/ai-response/index.mjs +2 -0
  22. package/dist/components/ai-source/index.d.mts +13 -0
  23. package/dist/components/ai-source/index.mjs +36 -0
  24. package/dist/components/ai-suggestion/index.d.mts +13 -0
  25. package/dist/components/ai-suggestion/index.mjs +22 -0
  26. package/dist/components/ai-tool/index.d.mts +23 -0
  27. package/dist/components/ai-tool/index.mjs +90 -0
  28. package/dist/components/alert/index.d.mts +22 -0
  29. package/dist/components/alert/index.mjs +87 -0
  30. package/dist/components/angle-slider/index.d.mts +15 -0
  31. package/dist/components/angle-slider/index.mjs +18 -0
  32. package/dist/components/aspect-ratio/index.d.mts +10 -0
  33. package/dist/components/aspect-ratio/index.mjs +23 -0
  34. package/dist/components/autocomplete/index.d.mts +21 -0
  35. package/dist/components/autocomplete/index.mjs +76 -0
  36. package/dist/components/avatar/index.d.mts +23 -0
  37. package/dist/components/avatar/index.mjs +20 -0
  38. package/dist/components/avatar-group/index.d.mts +11 -0
  39. package/dist/components/avatar-group/index.mjs +20 -0
  40. package/dist/components/back-top/index.d.mts +29 -0
  41. package/dist/components/back-top/index.mjs +93 -0
  42. package/dist/components/badge/index.d.mts +10 -0
  43. package/dist/components/badge/index.mjs +23 -0
  44. package/dist/components/banner/index.d.mts +24 -0
  45. package/dist/components/banner/index.mjs +67 -0
  46. package/dist/components/bento/index.d.mts +24 -0
  47. package/dist/components/bento/index.mjs +51 -0
  48. package/dist/components/block-ui/index.d.mts +12 -0
  49. package/dist/components/block-ui/index.mjs +43 -0
  50. package/dist/components/breadcrumb/index.d.mts +11 -0
  51. package/dist/components/breadcrumb/index.mjs +45 -0
  52. package/dist/components/browser/index.d.mts +21 -0
  53. package/dist/components/browser/index.mjs +87 -0
  54. package/dist/components/button/index.d.mts +15 -0
  55. package/dist/components/button/index.mjs +43 -0
  56. package/dist/components/button-group/index.d.mts +23 -0
  57. package/dist/components/button-group/index.mjs +38 -0
  58. package/dist/components/calendar/index.d.mts +17 -0
  59. package/dist/components/calendar/index.mjs +209 -0
  60. package/dist/components/card/index.d.mts +11 -0
  61. package/dist/components/card/index.mjs +33 -0
  62. package/dist/components/carousel/index.d.mts +9 -0
  63. package/dist/components/carousel/index.mjs +12 -0
  64. package/dist/components/cascade-select/index.d.mts +31 -0
  65. package/dist/components/cascade-select/index.mjs +304 -0
  66. package/dist/components/checkbox/index.d.mts +15 -0
  67. package/dist/components/checkbox/index.mjs +18 -0
  68. package/dist/components/checkbox-group/index.d.mts +28 -0
  69. package/dist/components/checkbox-group/index.mjs +97 -0
  70. package/dist/components/chip/index.d.mts +12 -0
  71. package/dist/components/chip/index.mjs +36 -0
  72. package/dist/components/client-only/index.d.mts +2 -0
  73. package/dist/components/client-only/index.mjs +2 -0
  74. package/dist/components/clipboard/index.d.mts +16 -0
  75. package/dist/components/clipboard/index.mjs +19 -0
  76. package/dist/components/collapsible/index.d.mts +7 -0
  77. package/dist/components/collapsible/index.mjs +10 -0
  78. package/dist/components/collection/index.d.mts +2 -0
  79. package/dist/components/collection/index.mjs +2 -0
  80. package/dist/components/color-picker/index.d.mts +19 -0
  81. package/dist/components/color-picker/index.mjs +18 -0
  82. package/dist/components/combobox/index.d.mts +17 -0
  83. package/dist/components/combobox/index.mjs +18 -0
  84. package/dist/components/command/index.d.mts +43 -0
  85. package/dist/components/command/index.mjs +253 -0
  86. package/dist/components/comment/index.d.mts +17 -0
  87. package/dist/components/comment/index.mjs +101 -0
  88. package/dist/components/config-provider/index.d.mts +48 -0
  89. package/dist/components/config-provider/index.mjs +67 -0
  90. package/dist/components/container/index.d.mts +13 -0
  91. package/dist/components/container/index.mjs +23 -0
  92. package/dist/components/data-view/index.d.mts +18 -0
  93. package/dist/components/data-view/index.mjs +110 -0
  94. package/dist/components/date-input/index.d.mts +15 -0
  95. package/dist/components/date-input/index.mjs +18 -0
  96. package/dist/components/date-picker/index.d.mts +17 -0
  97. package/dist/components/date-picker/index.mjs +18 -0
  98. package/dist/components/deferred-content/index.d.mts +16 -0
  99. package/dist/components/deferred-content/index.mjs +52 -0
  100. package/dist/components/descriptions/index.d.mts +26 -0
  101. package/dist/components/descriptions/index.mjs +69 -0
  102. package/dist/components/dialog/index.d.mts +9 -0
  103. package/dist/components/dialog/index.mjs +11 -0
  104. package/dist/components/dock/index.d.mts +22 -0
  105. package/dist/components/dock/index.mjs +64 -0
  106. package/dist/components/download-trigger/index.d.mts +2 -0
  107. package/dist/components/download-trigger/index.mjs +2 -0
  108. package/dist/components/drawer/index.d.mts +9 -0
  109. package/dist/components/drawer/index.mjs +12 -0
  110. package/dist/components/dynamic-input/index.d.mts +30 -0
  111. package/dist/components/dynamic-input/index.mjs +119 -0
  112. package/dist/components/editable/index.d.mts +15 -0
  113. package/dist/components/editable/index.mjs +18 -0
  114. package/dist/components/ellipsis/index.d.mts +10 -0
  115. package/dist/components/ellipsis/index.mjs +27 -0
  116. package/dist/components/empty/index.d.mts +10 -0
  117. package/dist/components/empty/index.mjs +31 -0
  118. package/dist/components/field/index.d.mts +8 -0
  119. package/dist/components/field/index.mjs +11 -0
  120. package/dist/components/fieldset/index.d.mts +7 -0
  121. package/dist/components/fieldset/index.mjs +10 -0
  122. package/dist/components/file-upload/index.d.mts +17 -0
  123. package/dist/components/file-upload/index.mjs +18 -0
  124. package/dist/components/float-button/index.d.mts +61 -0
  125. package/dist/components/float-button/index.mjs +129 -0
  126. package/dist/components/floating-panel/index.d.mts +9 -0
  127. package/dist/components/floating-panel/index.mjs +12 -0
  128. package/dist/components/focus-trap/index.d.mts +2 -0
  129. package/dist/components/focus-trap/index.mjs +2 -0
  130. package/dist/components/form/index.d.mts +2 -0
  131. package/dist/components/form/index.mjs +125 -0
  132. package/dist/components/format/index.d.mts +9 -0
  133. package/dist/components/format/index.mjs +10 -0
  134. package/dist/components/frame/index.d.mts +10 -0
  135. package/dist/components/frame/index.mjs +12 -0
  136. package/dist/components/grid/index.d.mts +13 -0
  137. package/dist/components/grid/index.mjs +42 -0
  138. package/dist/components/highlight/index.d.mts +7 -0
  139. package/dist/components/highlight/index.mjs +11 -0
  140. package/dist/components/hover-card/index.d.mts +7 -0
  141. package/dist/components/hover-card/index.mjs +10 -0
  142. package/dist/components/icon/index.d.mts +24 -0
  143. package/dist/components/icon/index.mjs +54 -0
  144. package/dist/components/image/index.d.mts +17 -0
  145. package/dist/components/image/index.mjs +70 -0
  146. package/dist/components/image-cropper/index.d.mts +8 -0
  147. package/dist/components/image-cropper/index.mjs +11 -0
  148. package/dist/components/image-viewer/index.d.mts +19 -0
  149. package/dist/components/image-viewer/index.mjs +152 -0
  150. package/dist/components/input/index.d.mts +19 -0
  151. package/dist/components/input/index.mjs +2 -0
  152. package/dist/components/input-group/index.d.mts +18 -0
  153. package/dist/components/input-group/index.mjs +36 -0
  154. package/dist/components/json-tree-view/index.d.mts +7 -0
  155. package/dist/components/json-tree-view/index.mjs +10 -0
  156. package/dist/components/kbd/index.d.mts +6 -0
  157. package/dist/components/kbd/index.mjs +15 -0
  158. package/dist/components/layout/index.d.mts +60 -0
  159. package/dist/components/layout/index.mjs +192 -0
  160. package/dist/components/link/index.d.mts +10 -0
  161. package/dist/components/link/index.mjs +24 -0
  162. package/dist/components/list/index.d.mts +26 -0
  163. package/dist/components/list/index.mjs +97 -0
  164. package/dist/components/listbox/index.d.mts +17 -0
  165. package/dist/components/listbox/index.mjs +19 -0
  166. package/dist/components/marquee/index.d.mts +7 -0
  167. package/dist/components/marquee/index.mjs +10 -0
  168. package/dist/components/masonry/index.d.mts +11 -0
  169. package/dist/components/masonry/index.mjs +34 -0
  170. package/dist/components/mentions/index.d.mts +2 -0
  171. package/dist/components/mentions/index.mjs +3 -0
  172. package/dist/components/menu/index.d.mts +13 -0
  173. package/dist/components/menu/index.mjs +38 -0
  174. package/dist/components/menubar/index.d.mts +32 -0
  175. package/dist/components/menubar/index.mjs +83 -0
  176. package/dist/components/meter/index.d.mts +21 -0
  177. package/dist/components/meter/index.mjs +95 -0
  178. package/dist/components/navigation-menu/index.d.mts +8 -0
  179. package/dist/components/navigation-menu/index.mjs +11 -0
  180. package/dist/components/number-input/index.d.mts +15 -0
  181. package/dist/components/number-input/index.mjs +18 -0
  182. package/dist/components/order-list/index.d.mts +21 -0
  183. package/dist/components/order-list/index.mjs +160 -0
  184. package/dist/components/page-header/index.d.mts +11 -0
  185. package/dist/components/page-header/index.mjs +34 -0
  186. package/dist/components/pagination/index.d.mts +17 -0
  187. package/dist/components/pagination/index.mjs +18 -0
  188. package/dist/components/password-input/index.d.mts +15 -0
  189. package/dist/components/password-input/index.mjs +18 -0
  190. package/dist/components/pin-input/index.d.mts +14 -0
  191. package/dist/components/pin-input/index.mjs +18 -0
  192. package/dist/components/popconfirm/index.d.mts +17 -0
  193. package/dist/components/popconfirm/index.mjs +85 -0
  194. package/dist/components/popover/index.d.mts +8 -0
  195. package/dist/components/popover/index.mjs +11 -0
  196. package/dist/components/presence/index.d.mts +2 -0
  197. package/dist/components/presence/index.mjs +2 -0
  198. package/dist/components/progress/index.d.mts +15 -0
  199. package/dist/components/progress/index.mjs +18 -0
  200. package/dist/components/progress-group/index.d.mts +22 -0
  201. package/dist/components/progress-group/index.mjs +84 -0
  202. package/dist/components/qr-code/index.d.mts +8 -0
  203. package/dist/components/qr-code/index.mjs +11 -0
  204. package/dist/components/radio-group/index.d.mts +15 -0
  205. package/dist/components/radio-group/index.mjs +18 -0
  206. package/dist/components/rating-group/index.d.mts +15 -0
  207. package/dist/components/rating-group/index.mjs +18 -0
  208. package/dist/components/result/index.d.mts +22 -0
  209. package/dist/components/result/index.mjs +66 -0
  210. package/dist/components/scroll-area/index.d.mts +7 -0
  211. package/dist/components/scroll-area/index.mjs +10 -0
  212. package/dist/components/segment-group/index.d.mts +17 -0
  213. package/dist/components/segment-group/index.mjs +23 -0
  214. package/dist/components/select/index.d.mts +2 -0
  215. package/dist/components/select/index.mjs +2 -0
  216. package/dist/components/separator/index.d.mts +11 -0
  217. package/dist/components/separator/index.mjs +27 -0
  218. package/dist/components/signature-pad/index.d.mts +8 -0
  219. package/dist/components/signature-pad/index.mjs +11 -0
  220. package/dist/components/skeleton/index.d.mts +7 -0
  221. package/dist/components/skeleton/index.mjs +15 -0
  222. package/dist/components/slider/index.d.mts +15 -0
  223. package/dist/components/slider/index.mjs +18 -0
  224. package/dist/components/spinner/index.d.mts +9 -0
  225. package/dist/components/spinner/index.mjs +26 -0
  226. package/dist/components/split-button/index.d.mts +36 -0
  227. package/dist/components/split-button/index.mjs +124 -0
  228. package/dist/components/splitter/index.d.mts +7 -0
  229. package/dist/components/splitter/index.mjs +10 -0
  230. package/dist/components/spotlight/index.d.mts +11 -0
  231. package/dist/components/spotlight/index.mjs +38 -0
  232. package/dist/components/stack/index.d.mts +11 -0
  233. package/dist/components/stack/index.mjs +45 -0
  234. package/dist/components/stat/index.d.mts +17 -0
  235. package/dist/components/stat/index.mjs +44 -0
  236. package/dist/components/steps/index.d.mts +18 -0
  237. package/dist/components/steps/index.mjs +18 -0
  238. package/dist/components/swap/index.d.mts +8 -0
  239. package/dist/components/swap/index.mjs +11 -0
  240. package/dist/components/switch/index.d.mts +15 -0
  241. package/dist/components/switch/index.mjs +18 -0
  242. package/dist/components/table/index.d.mts +77 -0
  243. package/dist/components/table/index.mjs +837 -0
  244. package/dist/components/tabs/index.d.mts +19 -0
  245. package/dist/components/tabs/index.mjs +23 -0
  246. package/dist/components/tags-input/index.d.mts +16 -0
  247. package/dist/components/tags-input/index.mjs +18 -0
  248. package/dist/components/terminal/index.d.mts +17 -0
  249. package/dist/components/terminal/index.mjs +84 -0
  250. package/dist/components/textarea/index.d.mts +14 -0
  251. package/dist/components/textarea/index.mjs +37 -0
  252. package/dist/components/timeline/index.d.mts +15 -0
  253. package/dist/components/timeline/index.mjs +44 -0
  254. package/dist/components/timer/index.d.mts +8 -0
  255. package/dist/components/timer/index.mjs +11 -0
  256. package/dist/components/toast/index.d.mts +11 -0
  257. package/dist/components/toast/index.mjs +13 -0
  258. package/dist/components/toc/index.d.mts +7 -0
  259. package/dist/components/toc/index.mjs +10 -0
  260. package/dist/components/toggle/index.d.mts +7 -0
  261. package/dist/components/toggle/index.mjs +10 -0
  262. package/dist/components/toggle-group/index.d.mts +14 -0
  263. package/dist/components/toggle-group/index.mjs +18 -0
  264. package/dist/components/toolbar/index.d.mts +17 -0
  265. package/dist/components/toolbar/index.mjs +46 -0
  266. package/dist/components/tooltip/index.d.mts +7 -0
  267. package/dist/components/tooltip/index.mjs +10 -0
  268. package/dist/components/tour/index.d.mts +11 -0
  269. package/dist/components/tour/index.mjs +13 -0
  270. package/dist/components/transfer/index.d.mts +24 -0
  271. package/dist/components/transfer/index.mjs +175 -0
  272. package/dist/components/tree-select/index.d.mts +28 -0
  273. package/dist/components/tree-select/index.mjs +253 -0
  274. package/dist/components/tree-view/index.d.mts +18 -0
  275. package/dist/components/tree-view/index.mjs +19 -0
  276. package/dist/components/typography/index.d.mts +11 -0
  277. package/dist/components/typography/index.mjs +34 -0
  278. package/dist/components/user/index.d.mts +19 -0
  279. package/dist/components/user/index.mjs +68 -0
  280. package/dist/components/virtual-list/index.d.mts +17 -0
  281. package/dist/components/virtual-list/index.mjs +71 -0
  282. package/dist/components/watermark/index.d.mts +17 -0
  283. package/dist/components/watermark/index.mjs +77 -0
  284. package/dist/index-B1xiJ5ki.d.mts +1811 -0
  285. package/dist/index-DDX7x8aT.d.mts +95 -0
  286. package/dist/index-IfofF-SW.d.mts +10356 -0
  287. package/dist/index-YPUiqD3n.d.mts +42 -0
  288. package/dist/index.d.mts +141 -15209
  289. package/dist/index.mjs +141 -6171
  290. package/dist/input-DoFQ7RXh.mjs +78 -0
  291. package/dist/mentions-f5Js_2W7.mjs +263 -0
  292. package/dist/select-CHaXbzLX.mjs +115 -0
  293. package/package.json +101 -7
@@ -0,0 +1,19 @@
1
+ import { Tabs as Tabs$1, TabsRootProps } from "@ark-ui/solid/tabs";
2
+ //#region src/components/tabs/index.d.ts
3
+ /**
4
+ * Tabs — tabbed navigation.
5
+ *
6
+ * Parts: Root, List, Trigger, Content, Indicator (machine-positioned ink
7
+ * bar on the list rule).
8
+ */
9
+ type TabsOwnProps = {
10
+ /** One rung of the control-height ladder for the tab rows. */
11
+ size?: "sm" | "md" | "lg";
12
+ /** The register: a ruled line (default), or each tab its own card. */
13
+ variant?: "line" | "card";
14
+ };
15
+ declare function TabsRoot(props: TabsRootProps & TabsOwnProps): import("solid-js").JSX.Element;
16
+ export declare const Tabs: Omit<typeof Tabs$1, "Root"> & {
17
+ Root: typeof TabsRoot;
18
+ };
19
+ //#endregion
@@ -0,0 +1,23 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, mergeProps } from "@solidjs/web";
3
+ import { splitProps } from "solid-js";
4
+ import { Tabs as Tabs$1 } from "@ark-ui/solid/tabs";
5
+ //#region src/components/tabs/index.tsx
6
+ function TabsRoot(props) {
7
+ const [own, rest] = splitProps(props, ["size", "variant"]);
8
+ return createComponent(Tabs$1.Root, mergeProps(rest, {
9
+ get "data-size"() {
10
+ return own.size ?? "md";
11
+ },
12
+ get "data-variant"() {
13
+ return own.variant ?? "line";
14
+ }
15
+ }));
16
+ }
17
+ const Tabs = {
18
+ ...Tabs$1,
19
+ Root: TabsRoot
20
+ };
21
+ injectComponentStyle("tabs");
22
+ //#endregion
23
+ export { Tabs };
@@ -0,0 +1,16 @@
1
+ import { TagsInput as TagsInput$1, TagsInputRootProps } from "@ark-ui/solid/tags-input";
2
+ //#region src/components/tags-input/index.d.ts
3
+ /** Ark's TagsInput, dressed in the paper-and-ink system: one field vessel
4
+ * whose chips rest as quiet ink and lift only a tone when edited. The API
5
+ * is Ark's own — Root, Label, Control, Input, ClearTrigger, Item,
6
+ * ItemPreview, ItemText, ItemInput, ItemDeleteTrigger, HiddenInput,
7
+ * Context. */
8
+ type TagsInputOwnProps = {
9
+ /** One rung of the control-height ladder for the vessel at rest. */
10
+ size?: "sm" | "md" | "lg";
11
+ };
12
+ declare function TagsInputRoot(props: TagsInputRootProps & TagsInputOwnProps): import("solid-js").JSX.Element;
13
+ export declare const TagsInput: Omit<typeof TagsInput$1, "Root"> & {
14
+ Root: typeof TagsInputRoot;
15
+ };
16
+ //#endregion
@@ -0,0 +1,18 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, mergeProps } from "@solidjs/web";
3
+ import { splitProps } from "solid-js";
4
+ import { TagsInput as TagsInput$1 } from "@ark-ui/solid/tags-input";
5
+ //#region src/components/tags-input/index.tsx
6
+ function TagsInputRoot(props) {
7
+ const [own, rest] = splitProps(props, ["size"]);
8
+ return createComponent(TagsInput$1.Root, mergeProps(rest, { get "data-size"() {
9
+ return own.size ?? "md";
10
+ } }));
11
+ }
12
+ const TagsInput = {
13
+ ...TagsInput$1,
14
+ Root: TagsInputRoot
15
+ };
16
+ injectComponentStyle("tags-input");
17
+ //#endregion
18
+ export { TagsInput };
@@ -0,0 +1,17 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/terminal/index.d.ts
3
+ export interface TerminalProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>, "onCommand"> {
4
+ /** The transcript, oldest line first. */
5
+ lines?: string[];
6
+ /** The sigil at the head of the entry line. */
7
+ prompt?: string;
8
+ placeholder?: string;
9
+ label?: string;
10
+ onCommand?: (text: string) => void;
11
+ }
12
+ /** A quiet console: the transcript above, the prompt line below. The
13
+ * component owns only the reading and the caret — each entered line
14
+ * leaves as an event, and the caller answers through the lines prop,
15
+ * so history stays theirs to shape. */
16
+ export declare function Terminal(props: TerminalProps): JSX.Element;
17
+ //#endregion
@@ -0,0 +1,84 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, delegateEvents, effect, insert, ref, setAttribute, spread, template } from "@solidjs/web";
3
+ import { For, createEffect, createSignal, onMount, splitProps } from "solid-js";
4
+ //#region src/components/terminal/index.tsx
5
+ var _tmpl$ = /* @__PURE__ */ template(`<div><div data-scope=terminal data-part=scroll></div><div data-scope=terminal data-part=entry><span data-scope=terminal data-part=sigil aria-hidden=true></span><input data-scope=terminal data-part=input autocomplete=off>`);
6
+ var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=terminal data-part=line>`);
7
+ /** A quiet console: the transcript above, the prompt line below. The
8
+ * component owns only the reading and the caret — each entered line
9
+ * leaves as an event, and the caller answers through the lines prop,
10
+ * so history stays theirs to shape. */
11
+ function Terminal(props) {
12
+ injectComponentStyle("terminal");
13
+ const [own, rest] = splitProps(props, [
14
+ "lines",
15
+ "prompt",
16
+ "placeholder",
17
+ "label",
18
+ "onCommand"
19
+ ]);
20
+ const [draft, setDraft] = createSignal("");
21
+ const [scroll, setScroll] = createSignal(null);
22
+ onMount(() => {
23
+ createEffect(() => {
24
+ if (own.lines?.length === void 0) return;
25
+ scroll()?.scrollTo({ top: scroll()?.scrollHeight });
26
+ });
27
+ });
28
+ function submit() {
29
+ const text = draft().trim();
30
+ if (!text) return;
31
+ setDraft("");
32
+ own.onCommand?.(text);
33
+ }
34
+ var _el$ = _tmpl$();
35
+ var _el$2 = _el$.firstChild;
36
+ var _el$4 = _el$2.nextSibling.firstChild;
37
+ var _el$5 = _el$4.nextSibling;
38
+ spread(_el$, [rest, {
39
+ role: "log",
40
+ get "aria-label"() {
41
+ return own.label;
42
+ },
43
+ "data-scope": "terminal",
44
+ "data-part": "root"
45
+ }], true);
46
+ ref(() => {
47
+ return setScroll;
48
+ }, _el$2);
49
+ insert(_el$2, createComponent(For, {
50
+ get each() {
51
+ return own.lines;
52
+ },
53
+ children: (line) => (() => {
54
+ var _el$6 = _tmpl$2();
55
+ insert(_el$6, line);
56
+ return _el$6;
57
+ })()
58
+ }));
59
+ insert(_el$4, () => {
60
+ return own.prompt ?? "$";
61
+ });
62
+ _el$5._$$keydown = (event) => {
63
+ if (event.key === "Enter") {
64
+ event.preventDefault();
65
+ submit();
66
+ }
67
+ };
68
+ _el$5._$$input = (event) => setDraft(event.currentTarget.value);
69
+ effect(() => {
70
+ return {
71
+ e: draft(),
72
+ t: own.placeholder,
73
+ a: own.label ? `${own.label} command line` : "Command line"
74
+ };
75
+ }, ({ e, t, a }, _p$) => {
76
+ _el$5.value = e ?? "";
77
+ t !== _p$?.t && setAttribute(_el$5, "placeholder", t);
78
+ a !== _p$?.a && setAttribute(_el$5, "aria-label", a);
79
+ });
80
+ return _el$;
81
+ }
82
+ delegateEvents(["input", "keydown"]);
83
+ //#endregion
84
+ export { Terminal };
@@ -0,0 +1,14 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/textarea/index.d.ts
3
+ export interface TextareaProps extends JSX.TextareaHTMLAttributes<HTMLTextAreaElement> {
4
+ value?: string;
5
+ onValueChange?: (value: string) => void;
6
+ invalid?: boolean;
7
+ }
8
+ /** The bare multi-line input: the field recipe on a `<textarea>`, sized
9
+ * by rows and resizable in the block direction. Standing alone it styles
10
+ * itself from the `invalid` prop; inside a `Field.Root` it consumes the
11
+ * field context, picking up the label id, the described-by wiring and
12
+ * the invalid state for free. Disabled rides the native attribute. */
13
+ export declare function Textarea(props: TextareaProps): JSX.Element;
14
+ //#endregion
@@ -0,0 +1,37 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { spread, template } from "@solidjs/web";
3
+ import { mergeProps as mergeProps$1, splitProps } from "solid-js";
4
+ import { useFieldContext } from "@ark-ui/solid/field";
5
+ //#region src/components/textarea/index.tsx
6
+ var _tmpl$ = /* @__PURE__ */ template(`<textarea>`);
7
+ /** The bare multi-line input: the field recipe on a `<textarea>`, sized
8
+ * by rows and resizable in the block direction. Standing alone it styles
9
+ * itself from the `invalid` prop; inside a `Field.Root` it consumes the
10
+ * field context, picking up the label id, the described-by wiring and
11
+ * the invalid state for free. Disabled rides the native attribute. */
12
+ function Textarea(props) {
13
+ injectComponentStyle("textarea");
14
+ const field = useFieldContext();
15
+ const [own, rest] = splitProps(props, [
16
+ "value",
17
+ "invalid",
18
+ "onValueChange"
19
+ ]);
20
+ var _el$ = _tmpl$();
21
+ spread(_el$, () => {
22
+ return mergeProps$1(() => field?.().getTextareaProps() ?? {}, rest, {
23
+ get value() {
24
+ return own.value;
25
+ },
26
+ "data-scope": "textarea",
27
+ "data-part": "root",
28
+ get "data-invalid"() {
29
+ return own.invalid || field?.().getTextareaProps()["data-invalid"] != null ? "" : void 0;
30
+ },
31
+ onInput: (event) => own.onValueChange?.(event.currentTarget.value)
32
+ });
33
+ }, false);
34
+ return _el$;
35
+ }
36
+ //#endregion
37
+ export { Textarea };
@@ -0,0 +1,15 @@
1
+ import { Component, JSX } from "solid-js";
2
+ //#region src/components/timeline/index.d.ts
3
+ declare function Root(props: JSX.HTMLAttributes<HTMLOListElement> & {
4
+ orientation?: "vertical" | "horizontal";
5
+ }): JSX.Element;
6
+ declare namespace Root {
7
+ var displayName: string;
8
+ }
9
+ export declare const Timeline: typeof Root & {
10
+ Root: typeof Root;
11
+ Item: Component<Record<string, unknown>>;
12
+ Marker: Component<Record<string, unknown>>;
13
+ Content: Component<Record<string, unknown>>;
14
+ };
15
+ //#endregion
@@ -0,0 +1,44 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, mergeProps, spread, template } from "@solidjs/web";
3
+ import { splitProps } from "solid-js";
4
+ //#region src/components/timeline/index.tsx
5
+ var _tmpl$ = /* @__PURE__ */ template(`<ol>`);
6
+ /** A line of moments: Root is the ordered thread, Item one moment on it,
7
+ * Marker the point where the thread passes, Content what the moment
8
+ * holds. The hairline between markers is drawn by the stylesheet. */
9
+ function part(name, tag) {
10
+ return ((props) => {
11
+ return createComponent(tag, mergeProps(props, {
12
+ "data-scope": "timeline",
13
+ get "data-part"() {
14
+ return name.toLowerCase();
15
+ }
16
+ }));
17
+ });
18
+ }
19
+ function Root(props) {
20
+ injectComponentStyle("timeline");
21
+ const [own, rest] = splitProps(props, ["orientation"]);
22
+ var _el$ = _tmpl$();
23
+ spread(_el$, [rest, {
24
+ "data-scope": "timeline",
25
+ "data-part": "root",
26
+ get "data-orientation"() {
27
+ return own.orientation ?? "vertical";
28
+ }
29
+ }], false);
30
+ return _el$;
31
+ }
32
+ Root.displayName = "TimelineRoot";
33
+ const Item = part("Item", "li");
34
+ const Marker = part("Marker", "span");
35
+ const Content = part("Content", "div");
36
+ const Timeline = Object.assign(Root, {
37
+ Root,
38
+ Item,
39
+ Marker,
40
+ Content
41
+ });
42
+ injectComponentStyle("timeline");
43
+ //#endregion
44
+ export { Timeline };
@@ -0,0 +1,8 @@
1
+ import { Timer as Timer$1 } from "@ark-ui/solid/timer";
2
+ //#region src/components/timer/index.d.ts
3
+ /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
4
+ * that never jitter, quiet action triggers on the control recipe. The API
5
+ * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
6
+ * Context. Unit labels are plain content, not a machine part. */
7
+ export declare const Timer: typeof Timer$1;
8
+ //#endregion
@@ -0,0 +1,11 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Timer as Timer$1 } from "@ark-ui/solid/timer";
3
+ //#region src/components/timer/index.ts
4
+ /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
5
+ * that never jitter, quiet action triggers on the control recipe. The API
6
+ * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
7
+ * Context. Unit labels are plain content, not a machine part. */
8
+ const Timer = Timer$1;
9
+ injectComponentStyle("timer");
10
+ //#endregion
11
+ export { Timer };
@@ -0,0 +1,11 @@
1
+ import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/solid/toast";
2
+ //#region src/components/toast/index.d.ts
3
+ /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
4
+ * popup vessel while a pigment accents the title by type, and the machine's
5
+ * translate variables carry the slide. The API is Ark's own — Toaster,
6
+ * Root, Title, Description, ActionTrigger, CloseTrigger, plus
7
+ * createToaster. */
8
+ export declare const Toast: typeof Toast$1;
9
+ export declare const Toaster: (props: import("@ark-ui/solid/toast").ToasterProps) => import("solid-js").JSX.Element;
10
+ //#endregion
11
+ export { type CreateToasterReturn, createToaster };
@@ -0,0 +1,13 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/solid/toast";
3
+ //#region src/components/toast/index.ts
4
+ /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
5
+ * popup vessel while a pigment accents the title by type, and the machine's
6
+ * translate variables carry the slide. The API is Ark's own — Toaster,
7
+ * Root, Title, Description, ActionTrigger, CloseTrigger, plus
8
+ * createToaster. */
9
+ const Toast = Toast$1;
10
+ const Toaster = Toaster$1;
11
+ injectComponentStyle("toast");
12
+ //#endregion
13
+ export { Toast, Toaster, createToaster };
@@ -0,0 +1,7 @@
1
+ import { Toc as Toc$1 } from "@ark-ui/solid/toc";
2
+ //#region src/components/toc/index.d.ts
3
+ /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
4
+ * beside the scroll, one stroke of primary ink marking where the reader
5
+ * stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
6
+ export declare const Toc: typeof Toc$1;
7
+ //#endregion
@@ -0,0 +1,10 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Toc as Toc$1 } from "@ark-ui/solid/toc";
3
+ //#region src/components/toc/index.ts
4
+ /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
5
+ * beside the scroll, one stroke of primary ink marking where the reader
6
+ * stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
7
+ const Toc = Toc$1;
8
+ injectComponentStyle("toc");
9
+ //#endregion
10
+ export { Toc };
@@ -0,0 +1,7 @@
1
+ import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
2
+ //#region src/components/toggle/index.d.ts
3
+ /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
4
+ * settles into the flat ink fill while pressed on. The API is Ark's own —
5
+ * Root, Indicator. */
6
+ export declare const Toggle: typeof Toggle$1;
7
+ //#endregion
@@ -0,0 +1,10 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
3
+ //#region src/components/toggle/index.ts
4
+ /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
5
+ * settles into the flat ink fill while pressed on. The API is Ark's own —
6
+ * Root, Indicator. */
7
+ const Toggle = Toggle$1;
8
+ injectComponentStyle("toggle");
9
+ //#endregion
10
+ export { Toggle };
@@ -0,0 +1,14 @@
1
+ import { ToggleGroup as ToggleGroup$1, ToggleGroupRootProps } from "@ark-ui/solid/toggle-group";
2
+ //#region src/components/toggle-group/index.d.ts
3
+ /** Ark's ToggleGroup, dressed in the paper-and-ink system: a hairline tray
4
+ * of quiet seals where the pressed item takes the flat ink fill. The API is
5
+ * Ark's own — Root, Item. */
6
+ type ToggleGroupOwnProps = {
7
+ /** One rung of the control-height ladder for the items. */
8
+ size?: "sm" | "md" | "lg";
9
+ };
10
+ declare function ToggleGroupRoot(props: ToggleGroupRootProps & ToggleGroupOwnProps): import("solid-js").JSX.Element;
11
+ export declare const ToggleGroup: Omit<typeof ToggleGroup$1, "Root"> & {
12
+ Root: typeof ToggleGroupRoot;
13
+ };
14
+ //#endregion
@@ -0,0 +1,18 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, mergeProps } from "@solidjs/web";
3
+ import { splitProps } from "solid-js";
4
+ import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/solid/toggle-group";
5
+ //#region src/components/toggle-group/index.tsx
6
+ function ToggleGroupRoot(props) {
7
+ const [own, rest] = splitProps(props, ["size"]);
8
+ return createComponent(ToggleGroup$1.Root, mergeProps(rest, { get "data-size"() {
9
+ return own.size ?? "md";
10
+ } }));
11
+ }
12
+ const ToggleGroup = {
13
+ ...ToggleGroup$1,
14
+ Root: ToggleGroupRoot
15
+ };
16
+ injectComponentStyle("toggle-group");
17
+ //#endregion
18
+ export { ToggleGroup };
@@ -0,0 +1,17 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/toolbar/index.d.ts
3
+ export interface ToolbarProps extends JSX.HTMLAttributes<HTMLDivElement> {
4
+ /** Accessible name when more than one toolbar shares a page. */
5
+ label?: string;
6
+ /** Tools at the leading edge; `children` land here when no start is
7
+ * given. */
8
+ start?: JSX.Element;
9
+ /** Tools at the trailing edge. */
10
+ end?: JSX.Element;
11
+ children?: JSX.Element;
12
+ }
13
+ /** A workbench rail: the start tools at the leading edge, the end tools
14
+ * at the trailing, the rail itself carrying the toolbar role so
15
+ * assistive tech reads it as one group of commands. */
16
+ export declare function Toolbar(props: ToolbarProps): JSX.Element;
17
+ //#endregion
@@ -0,0 +1,46 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { createComponent, insert, spread, template } from "@solidjs/web";
3
+ import { Show, splitProps } from "solid-js";
4
+ //#region src/components/toolbar/index.tsx
5
+ var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=toolbar data-part=group data-edge=end>`);
6
+ var _tmpl$2 = /* @__PURE__ */ template(`<div><div data-scope=toolbar data-part=group data-edge=start>`);
7
+ /** A workbench rail: the start tools at the leading edge, the end tools
8
+ * at the trailing, the rail itself carrying the toolbar role so
9
+ * assistive tech reads it as one group of commands. */
10
+ function Toolbar(props) {
11
+ injectComponentStyle("toolbar");
12
+ const [own, rest] = splitProps(props, [
13
+ "label",
14
+ "start",
15
+ "end",
16
+ "children"
17
+ ]);
18
+ var _el$ = _tmpl$2();
19
+ var _el$2 = _el$.firstChild;
20
+ spread(_el$, [rest, {
21
+ role: "toolbar",
22
+ get "aria-label"() {
23
+ return own.label;
24
+ },
25
+ "data-scope": "toolbar",
26
+ "data-part": "root"
27
+ }], true);
28
+ insert(_el$2, () => {
29
+ return own.start ?? own.children;
30
+ });
31
+ insert(_el$, createComponent(Show, {
32
+ get when() {
33
+ return own.end;
34
+ },
35
+ get children() {
36
+ var _el$3 = _tmpl$();
37
+ insert(_el$3, () => {
38
+ return own.end;
39
+ });
40
+ return _el$3;
41
+ }
42
+ }), null);
43
+ return _el$;
44
+ }
45
+ //#endregion
46
+ export { Toolbar };
@@ -0,0 +1,7 @@
1
+ import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
2
+ //#region src/components/tooltip/index.d.ts
3
+ /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
4
+ * vessel — a tight chip of ink that dissolves in over its anchor. The
5
+ * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
6
+ export declare const Tooltip: typeof Tooltip$1;
7
+ //#endregion
@@ -0,0 +1,10 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
3
+ //#region src/components/tooltip/index.ts
4
+ /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
5
+ * vessel — a tight chip of ink that dissolves in over its anchor. The
6
+ * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
7
+ const Tooltip = Tooltip$1;
8
+ injectComponentStyle("tooltip");
9
+ //#endregion
10
+ export { Tooltip };
@@ -0,0 +1,11 @@
1
+ import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "@ark-ui/solid/tour";
2
+ //#region src/components/tour/index.d.ts
3
+ /** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
4
+ * the spotlight alone keeps the focus halo, and the anchored card rides
5
+ * the shared popup vessel. The API is Ark's own — Root, Backdrop,
6
+ * Spotlight, Positioner, Content, Arrow, ArrowTip, Title, Description,
7
+ * ProgressText, Control, Actions, ActionTrigger, CloseTrigger, plus
8
+ * useTour. */
9
+ export declare const Tour: typeof Tour$1;
10
+ //#endregion
11
+ export { type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, useTour };
@@ -0,0 +1,13 @@
1
+ import { injectComponentStyle } from "@bysages/core";
2
+ import { Tour as Tour$1, useTour } from "@ark-ui/solid/tour";
3
+ //#region src/components/tour/index.ts
4
+ /** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
5
+ * the spotlight alone keeps the focus halo, and the anchored card rides
6
+ * the shared popup vessel. The API is Ark's own — Root, Backdrop,
7
+ * Spotlight, Positioner, Content, Arrow, ArrowTip, Title, Description,
8
+ * ProgressText, Control, Actions, ActionTrigger, CloseTrigger, plus
9
+ * useTour. */
10
+ const Tour = Tour$1;
11
+ injectComponentStyle("tour");
12
+ //#endregion
13
+ export { Tour, useTour };
@@ -0,0 +1,24 @@
1
+ import { JSX } from "solid-js";
2
+ //#region src/components/transfer/index.d.ts
3
+ export interface TransferItem {
4
+ label: string;
5
+ value: string;
6
+ disabled?: boolean;
7
+ }
8
+ export interface TransferProps extends JSX.HTMLAttributes<HTMLDivElement> {
9
+ value?: string[];
10
+ data: TransferItem[];
11
+ titles?: string[];
12
+ searchable?: boolean;
13
+ disabled?: boolean;
14
+ onValueChange?: (value: string[]) => void;
15
+ }
16
+ /**
17
+ * Two ledgers and a crossing: items sit in the source column until the
18
+ * reader checks them and walks them across — and back, the same way.
19
+ * `value` is the target column's value list; everything else in
20
+ * `data` stays on the left. `searchable` adds a filter line to each
21
+ * panel.
22
+ */
23
+ export declare function Transfer(props: TransferProps): JSX.Element;
24
+ //#endregion