@bysages/react 0.4.4 → 0.6.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 (314) hide show
  1. package/dist/ai-B0o-dsAf.mjs +309 -0
  2. package/dist/ai-prompt-input-Cl9ulICF.mjs +401 -0
  3. package/dist/{ai-response-CjjjprMY.mjs → ai-response-DTxdL5rX.mjs} +9 -11
  4. package/dist/{chevron-BA7kV9m7.mjs → chevron-DnImlNip.mjs} +2 -3
  5. package/dist/components/accordion/index.d.mts +1 -2
  6. package/dist/components/accordion/index.mjs +3 -4
  7. package/dist/components/affix/index.d.mts +1 -2
  8. package/dist/components/affix/index.mjs +2 -3
  9. package/dist/components/ai/index.d.mts +107 -2
  10. package/dist/components/ai/index.mjs +7 -82
  11. package/dist/components/ai-action/index.d.mts +0 -2
  12. package/dist/components/ai-action/index.mjs +2 -3
  13. package/dist/components/ai-attachments/index.d.mts +0 -2
  14. package/dist/components/ai-attachments/index.mjs +4 -5
  15. package/dist/components/ai-message/index.d.mts +2 -14
  16. package/dist/components/ai-message/index.mjs +5 -4
  17. package/dist/components/ai-prompt-input/index.d.mts +14 -18
  18. package/dist/components/ai-prompt-input/index.mjs +1 -126
  19. package/dist/components/ai-reasoning/index.d.mts +0 -2
  20. package/dist/components/ai-reasoning/index.mjs +3 -4
  21. package/dist/components/ai-response/index.d.mts +1 -3
  22. package/dist/components/ai-response/index.mjs +1 -2
  23. package/dist/components/ai-source/index.d.mts +0 -2
  24. package/dist/components/ai-source/index.mjs +2 -3
  25. package/dist/components/ai-suggestion/index.d.mts +0 -2
  26. package/dist/components/ai-suggestion/index.mjs +2 -3
  27. package/dist/components/ai-tool/index.d.mts +2 -24
  28. package/dist/components/ai-tool/index.mjs +46 -14
  29. package/dist/components/alert/index.d.mts +1 -2
  30. package/dist/components/alert/index.mjs +2 -3
  31. package/dist/components/angle-slider/index.d.mts +1 -2
  32. package/dist/components/angle-slider/index.mjs +2 -3
  33. package/dist/components/aspect-ratio/index.d.mts +1 -2
  34. package/dist/components/aspect-ratio/index.mjs +2 -3
  35. package/dist/components/autocomplete/index.d.mts +5 -3
  36. package/dist/components/autocomplete/index.mjs +12 -10
  37. package/dist/components/avatar/index.d.mts +1 -2
  38. package/dist/components/avatar/index.mjs +2 -3
  39. package/dist/components/avatar-group/index.d.mts +1 -2
  40. package/dist/components/avatar-group/index.mjs +2 -3
  41. package/dist/components/back-top/index.d.mts +1 -2
  42. package/dist/components/back-top/index.mjs +3 -4
  43. package/dist/components/badge/index.d.mts +1 -2
  44. package/dist/components/badge/index.mjs +2 -3
  45. package/dist/components/banner/index.d.mts +1 -2
  46. package/dist/components/banner/index.mjs +3 -4
  47. package/dist/components/bento/index.d.mts +1 -3
  48. package/dist/components/bento/index.mjs +1 -2
  49. package/dist/components/block-ui/index.d.mts +1 -2
  50. package/dist/components/block-ui/index.mjs +2 -3
  51. package/dist/components/breadcrumb/index.d.mts +1 -2
  52. package/dist/components/breadcrumb/index.mjs +2 -3
  53. package/dist/components/browser/index.d.mts +1 -3
  54. package/dist/components/browser/index.mjs +1 -2
  55. package/dist/components/button/index.d.mts +1 -2
  56. package/dist/components/button/index.mjs +2 -3
  57. package/dist/components/button-group/index.d.mts +1 -2
  58. package/dist/components/button-group/index.mjs +1 -2
  59. package/dist/components/calendar/index.d.mts +1 -2
  60. package/dist/components/calendar/index.mjs +3 -4
  61. package/dist/components/card/index.d.mts +1 -3
  62. package/dist/components/card/index.mjs +1 -2
  63. package/dist/components/carousel/index.d.mts +1 -2
  64. package/dist/components/carousel/index.mjs +3 -4
  65. package/dist/components/cascade-select/index.d.mts +5 -3
  66. package/dist/components/cascade-select/index.mjs +42 -40
  67. package/dist/components/checkbox/index.d.mts +1 -2
  68. package/dist/components/checkbox/index.mjs +3 -4
  69. package/dist/components/checkbox-group/index.d.mts +1 -2
  70. package/dist/components/checkbox-group/index.mjs +3 -4
  71. package/dist/components/chip/index.d.mts +1 -2
  72. package/dist/components/chip/index.mjs +2 -3
  73. package/dist/components/client-only/index.d.mts +0 -2
  74. package/dist/components/client-only/index.mjs +2 -3
  75. package/dist/components/clipboard/index.d.mts +1 -2
  76. package/dist/components/clipboard/index.mjs +3 -4
  77. package/dist/components/collapsible/index.d.mts +1 -2
  78. package/dist/components/collapsible/index.mjs +3 -4
  79. package/dist/components/collection/index.mjs +1 -2
  80. package/dist/components/color-picker/index.d.mts +10 -3
  81. package/dist/components/color-picker/index.mjs +39 -33
  82. package/dist/components/combobox/index.d.mts +10 -3
  83. package/dist/components/combobox/index.mjs +17 -12
  84. package/dist/components/command/index.d.mts +5 -3
  85. package/dist/components/command/index.mjs +74 -72
  86. package/dist/components/comment/index.d.mts +1 -2
  87. package/dist/components/comment/index.mjs +2 -3
  88. package/dist/components/config-provider/index.d.mts +1 -2
  89. package/dist/components/config-provider/index.mjs +2 -3
  90. package/dist/components/container/index.d.mts +1 -2
  91. package/dist/components/container/index.mjs +2 -3
  92. package/dist/components/data-view/index.d.mts +1 -2
  93. package/dist/components/data-view/index.mjs +3 -4
  94. package/dist/components/date-input/index.d.mts +0 -2
  95. package/dist/components/date-input/index.mjs +2 -3
  96. package/dist/components/date-picker/index.d.mts +9 -3
  97. package/dist/components/date-picker/index.mjs +30 -25
  98. package/dist/components/deferred-content/index.d.mts +1 -2
  99. package/dist/components/deferred-content/index.mjs +2 -3
  100. package/dist/components/descriptions/index.d.mts +1 -2
  101. package/dist/components/descriptions/index.mjs +2 -3
  102. package/dist/components/dialog/index.d.mts +49 -5
  103. package/dist/components/dialog/index.mjs +67 -20
  104. package/dist/components/dock/index.d.mts +1 -3
  105. package/dist/components/dock/index.mjs +1 -2
  106. package/dist/components/download-trigger/index.d.mts +0 -2
  107. package/dist/components/download-trigger/index.mjs +2 -3
  108. package/dist/components/drawer/index.d.mts +20 -5
  109. package/dist/components/drawer/index.mjs +21 -16
  110. package/dist/components/dynamic-input/index.d.mts +1 -2
  111. package/dist/components/dynamic-input/index.mjs +5 -6
  112. package/dist/components/editable/index.d.mts +1 -2
  113. package/dist/components/editable/index.mjs +3 -4
  114. package/dist/components/ellipsis/index.d.mts +1 -2
  115. package/dist/components/ellipsis/index.mjs +2 -3
  116. package/dist/components/empty/index.d.mts +1 -3
  117. package/dist/components/empty/index.mjs +1 -2
  118. package/dist/components/field/index.d.mts +1 -2
  119. package/dist/components/field/index.mjs +2 -3
  120. package/dist/components/fieldset/index.d.mts +1 -2
  121. package/dist/components/fieldset/index.mjs +2 -3
  122. package/dist/components/file-upload/index.d.mts +1 -2
  123. package/dist/components/file-upload/index.mjs +3 -4
  124. package/dist/components/float-button/index.d.mts +1 -2
  125. package/dist/components/float-button/index.mjs +3 -4
  126. package/dist/components/floating-panel/index.d.mts +20 -5
  127. package/dist/components/floating-panel/index.mjs +37 -32
  128. package/dist/components/focus-trap/index.d.mts +0 -2
  129. package/dist/components/focus-trap/index.mjs +2 -3
  130. package/dist/components/form/index.d.mts +0 -2
  131. package/dist/components/form/index.mjs +2 -3
  132. package/dist/components/format/index.d.mts +1 -3
  133. package/dist/components/format/index.mjs +1 -2
  134. package/dist/components/frame/index.d.mts +1 -3
  135. package/dist/components/frame/index.mjs +3 -4
  136. package/dist/components/grid/index.d.mts +1 -2
  137. package/dist/components/grid/index.mjs +2 -3
  138. package/dist/components/highlight/index.d.mts +1 -3
  139. package/dist/components/highlight/index.mjs +2 -3
  140. package/dist/components/hover-card/index.d.mts +18 -5
  141. package/dist/components/hover-card/index.mjs +16 -11
  142. package/dist/components/icon/index.d.mts +1 -2
  143. package/dist/components/icon/index.mjs +2 -3
  144. package/dist/components/image/index.d.mts +1 -2
  145. package/dist/components/image/index.mjs +3 -4
  146. package/dist/components/image-cropper/index.d.mts +1 -2
  147. package/dist/components/image-cropper/index.mjs +2 -3
  148. package/dist/components/image-viewer/index.d.mts +1 -1
  149. package/dist/components/image-viewer/index.mjs +1 -2
  150. package/dist/components/input/index.d.mts +1 -3
  151. package/dist/components/input/index.mjs +1 -2
  152. package/dist/components/input-group/index.d.mts +1 -3
  153. package/dist/components/input-group/index.mjs +1 -2
  154. package/dist/components/json-tree-view/index.d.mts +1 -2
  155. package/dist/components/json-tree-view/index.mjs +3 -4
  156. package/dist/components/kbd/index.d.mts +1 -2
  157. package/dist/components/kbd/index.mjs +2 -3
  158. package/dist/components/layout/index.d.mts +1 -2
  159. package/dist/components/layout/index.mjs +19 -15
  160. package/dist/components/link/index.d.mts +1 -2
  161. package/dist/components/link/index.mjs +2 -3
  162. package/dist/components/list/index.d.mts +1 -2
  163. package/dist/components/list/index.mjs +1 -2
  164. package/dist/components/listbox/index.d.mts +0 -2
  165. package/dist/components/listbox/index.mjs +3 -4
  166. package/dist/components/marquee/index.d.mts +1 -2
  167. package/dist/components/marquee/index.mjs +2 -3
  168. package/dist/components/masonry/index.d.mts +1 -2
  169. package/dist/components/masonry/index.mjs +2 -3
  170. package/dist/components/media-player/index.d.mts +1 -1
  171. package/dist/components/media-player/index.mjs +1 -2
  172. package/dist/components/mentions/index.d.mts +2 -2
  173. package/dist/components/mentions/index.mjs +1 -2
  174. package/dist/components/menu/index.d.mts +11 -4
  175. package/dist/components/menu/index.mjs +15 -10
  176. package/dist/components/menubar/index.d.mts +5 -3
  177. package/dist/components/menubar/index.mjs +14 -12
  178. package/dist/components/meter/index.d.mts +1 -3
  179. package/dist/components/meter/index.mjs +1 -2
  180. package/dist/components/navigation-menu/index.d.mts +10 -3
  181. package/dist/components/navigation-menu/index.mjs +9 -4
  182. package/dist/components/number-input/index.d.mts +1 -2
  183. package/dist/components/number-input/index.mjs +3 -4
  184. package/dist/components/order-list/index.d.mts +1 -2
  185. package/dist/components/order-list/index.mjs +4 -5
  186. package/dist/components/page-header/index.d.mts +1 -3
  187. package/dist/components/page-header/index.mjs +1 -2
  188. package/dist/components/pagination/index.d.mts +3 -4
  189. package/dist/components/pagination/index.mjs +3 -4
  190. package/dist/components/password-input/index.d.mts +1 -2
  191. package/dist/components/password-input/index.mjs +3 -4
  192. package/dist/components/pin-input/index.d.mts +1 -2
  193. package/dist/components/pin-input/index.mjs +2 -3
  194. package/dist/components/popconfirm/index.d.mts +6 -4
  195. package/dist/components/popconfirm/index.mjs +33 -31
  196. package/dist/components/popover/index.d.mts +1 -1
  197. package/dist/components/popover/index.mjs +23 -18
  198. package/dist/components/presence/index.d.mts +0 -2
  199. package/dist/components/presence/index.mjs +2 -3
  200. package/dist/components/progress/index.d.mts +1 -2
  201. package/dist/components/progress/index.mjs +2 -3
  202. package/dist/components/progress-group/index.d.mts +1 -2
  203. package/dist/components/progress-group/index.mjs +2 -3
  204. package/dist/components/qr-code/index.d.mts +1 -2
  205. package/dist/components/qr-code/index.mjs +2 -3
  206. package/dist/components/radio-group/index.d.mts +1 -2
  207. package/dist/components/radio-group/index.mjs +2 -3
  208. package/dist/components/rating-group/index.d.mts +1 -2
  209. package/dist/components/rating-group/index.mjs +3 -4
  210. package/dist/components/result/index.d.mts +1 -2
  211. package/dist/components/result/index.mjs +2 -3
  212. package/dist/components/scroll-area/index.d.mts +8 -3
  213. package/dist/components/scroll-area/index.mjs +7 -6
  214. package/dist/components/segment-group/index.d.mts +1 -2
  215. package/dist/components/segment-group/index.mjs +2 -3
  216. package/dist/components/select/index.d.mts +1 -1
  217. package/dist/components/select/index.mjs +1 -2
  218. package/dist/components/separator/index.d.mts +1 -2
  219. package/dist/components/separator/index.mjs +2 -3
  220. package/dist/components/signature-pad/index.d.mts +1 -2
  221. package/dist/components/signature-pad/index.mjs +3 -4
  222. package/dist/components/skeleton/index.d.mts +1 -2
  223. package/dist/components/skeleton/index.mjs +2 -3
  224. package/dist/components/slider/index.d.mts +1 -2
  225. package/dist/components/slider/index.mjs +2 -3
  226. package/dist/components/spinner/index.d.mts +1 -2
  227. package/dist/components/spinner/index.mjs +3 -4
  228. package/dist/components/split-button/index.d.mts +5 -3
  229. package/dist/components/split-button/index.mjs +16 -14
  230. package/dist/components/splitter/index.d.mts +1 -2
  231. package/dist/components/splitter/index.mjs +2 -3
  232. package/dist/components/spotlight/index.d.mts +1 -2
  233. package/dist/components/spotlight/index.mjs +2 -3
  234. package/dist/components/stack/index.d.mts +1 -2
  235. package/dist/components/stack/index.mjs +2 -3
  236. package/dist/components/stat/index.d.mts +1 -3
  237. package/dist/components/stat/index.mjs +1 -2
  238. package/dist/components/steps/index.d.mts +0 -2
  239. package/dist/components/steps/index.mjs +2 -3
  240. package/dist/components/swap/index.d.mts +1 -2
  241. package/dist/components/swap/index.mjs +3 -4
  242. package/dist/components/switch/index.d.mts +1 -2
  243. package/dist/components/switch/index.mjs +2 -3
  244. package/dist/components/table/index.d.mts +21 -3
  245. package/dist/components/table/index.mjs +28 -14
  246. package/dist/components/tabs/index.d.mts +9 -3
  247. package/dist/components/tabs/index.mjs +36 -8
  248. package/dist/components/tag/index.d.mts +1 -2
  249. package/dist/components/tag/index.mjs +3 -4
  250. package/dist/components/tags-input/index.d.mts +1 -2
  251. package/dist/components/tags-input/index.mjs +3 -4
  252. package/dist/components/terminal/index.d.mts +4 -3
  253. package/dist/components/terminal/index.mjs +8 -7
  254. package/dist/components/textarea/index.d.mts +1 -2
  255. package/dist/components/textarea/index.mjs +2 -3
  256. package/dist/components/timeline/index.d.mts +1 -2
  257. package/dist/components/timeline/index.mjs +1 -2
  258. package/dist/components/timer/index.d.mts +1 -2
  259. package/dist/components/timer/index.mjs +2 -3
  260. package/dist/components/toast/index.d.mts +0 -2
  261. package/dist/components/toast/index.mjs +4 -5
  262. package/dist/components/toc/index.d.mts +1 -2
  263. package/dist/components/toc/index.mjs +2 -3
  264. package/dist/components/toggle/index.d.mts +1 -2
  265. package/dist/components/toggle/index.mjs +2 -3
  266. package/dist/components/toggle-group/index.d.mts +1 -2
  267. package/dist/components/toggle-group/index.mjs +3 -4
  268. package/dist/components/toolbar/index.d.mts +1 -2
  269. package/dist/components/toolbar/index.mjs +2 -3
  270. package/dist/components/tooltip/index.d.mts +18 -5
  271. package/dist/components/tooltip/index.mjs +10 -5
  272. package/dist/components/tour/index.d.mts +20 -5
  273. package/dist/components/tour/index.mjs +18 -13
  274. package/dist/components/transfer/index.d.mts +1 -2
  275. package/dist/components/transfer/index.mjs +5 -6
  276. package/dist/components/tree-select/index.d.mts +6 -4
  277. package/dist/components/tree-select/index.mjs +43 -41
  278. package/dist/components/tree-view/index.d.mts +15 -5
  279. package/dist/components/tree-view/index.mjs +30 -12
  280. package/dist/components/typography/index.d.mts +9 -7
  281. package/dist/components/typography/index.mjs +10 -3
  282. package/dist/components/user/index.d.mts +1 -2
  283. package/dist/components/user/index.mjs +2 -3
  284. package/dist/components/virtual-list/index.d.mts +1 -2
  285. package/dist/components/virtual-list/index.mjs +2 -3
  286. package/dist/components/watermark/index.d.mts +1 -2
  287. package/dist/components/watermark/index.mjs +2 -3
  288. package/dist/{family-DE_GQeeM.mjs → family-Co1YsN4N.mjs} +1 -2
  289. package/dist/floating-BhcDRgnx.d.mts +7 -0
  290. package/dist/floating-CMR7cvmA.mjs +33 -0
  291. package/dist/generative/index.d.mts +0 -2
  292. package/dist/generative/index.mjs +28 -53
  293. package/dist/{icon-Cri0-7-x.mjs → icon-C9udWCyz.mjs} +1 -2
  294. package/dist/{id-C37UYLwJ.mjs → id-Ctic_3o8.mjs} +1 -2
  295. package/dist/{image-viewer-D4FuYrk6.mjs → image-viewer-BPTApdoP.mjs} +50 -52
  296. package/dist/index-CEYybyEQ.d.mts +163 -0
  297. package/dist/index-CjO4Ggf0.d.mts +115 -0
  298. package/dist/{index-BcRdWGY-.d.mts → index-DIZEFqJM.d.mts} +0 -8
  299. package/dist/{index-D_iKc2Uw.d.mts → index-DZ2S5rMj.d.mts} +10 -6
  300. package/dist/index-j02dTkfc.d.mts +37 -0
  301. package/dist/index-lCsvE2Vl.d.mts +37 -0
  302. package/dist/{index-Dj8S4eyJ.d.mts → index-n9VlNO7D.d.mts} +4 -5
  303. package/dist/index.d.mts +13 -13
  304. package/dist/index.mjs +10 -10
  305. package/dist/{input-BDpQ0e6G.mjs → input-YRjehBhU.mjs} +3 -5
  306. package/dist/{media-player-C0WcjVI-.mjs → media-player-DxG0EYz7.mjs} +7 -12
  307. package/dist/mentions-B59tQDPt.mjs +341 -0
  308. package/dist/{messages-1jJWtaYU.mjs → messages-B6n0lVyt.mjs} +1 -2
  309. package/dist/{select-D_soVdWK.mjs → select-BLFqfeVw.mjs} +24 -20
  310. package/package.json +17 -17
  311. package/dist/index-B4twHAQC.d.mts +0 -10456
  312. package/dist/index-Bbg4heDO.d.mts +0 -113
  313. package/dist/index-Eu-Bttta.d.mts +0 -24
  314. package/dist/mentions-BwnyvdXz.mjs +0 -213
@@ -1,9 +1,9 @@
1
- import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
- import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
+ import { r as iconNode } from "../../icon-C9udWCyz.mjs";
2
+ import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useState } from "react";
6
- //#region src/components/tag/index.tsx
6
+ // src/components/tag/index.tsx
7
7
  /** A small named seal for filtering and cataloguing. The resting shape
8
8
  * is a span; `checkable` raises it to a pressed button, and `closable`
9
9
  * hangs the removal seal inside — dismissal stays the consumer's state,
@@ -71,5 +71,4 @@ function TagImpl({ tone = "ink", variant = "solid", checkable = false, value, de
71
71
  }
72
72
  TagImpl.displayName = "STag";
73
73
  const Tag = withSelfRoot(TagImpl);
74
- //#endregion
75
74
  export { Tag };
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps, ReactNode } from "react";
2
2
  import { TagsInput as TagsInput$1 } from "@ark-ui/react/tags-input";
3
- //#region src/components/tags-input/index.d.ts
4
3
  type TagsInputRootProps = ComponentProps<typeof TagsInput$1.Root> & {
5
4
  /** One rung of the control-height ladder for the vessel at rest. */
6
5
  size?: "sm" | "md" | "lg";
@@ -39,4 +38,4 @@ export declare const TagsInput: typeof TagsInputFacade & {
39
38
  Label: import("react").ForwardRefExoticComponent<TagsInput$1.LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
40
39
  RootProvider: import("react").ForwardRefExoticComponent<TagsInput$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
41
40
  };
42
- //#endregion
41
+ export {};
@@ -1,9 +1,9 @@
1
- import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { r as iconNode } from "../../icon-C9udWCyz.mjs";
2
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { TagsInput as TagsInput$1 } from "@ark-ui/react/tags-input";
6
- //#region src/components/tags-input/index.tsx
6
+ // src/components/tags-input/index.tsx
7
7
  function TagsInputRoot(props) {
8
8
  const id = useElementId("tags-input", props);
9
9
  const { size = "md", ...rest } = props;
@@ -50,5 +50,4 @@ const TagsInput = Object.assign(TagsInputFacade, {
50
50
  Root: TagsInputRoot
51
51
  });
52
52
  injectComponentStyle("tags-input");
53
- //#endregion
54
53
  export { TagsInput };
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes } from "react";
2
- //#region src/components/terminal/index.d.ts
3
2
  export interface TerminalProps extends HTMLAttributes<HTMLDivElement> {
4
3
  /** The transcript, oldest line first. */
5
4
  lines?: string[];
@@ -7,14 +6,16 @@ export interface TerminalProps extends HTMLAttributes<HTMLDivElement> {
7
6
  prompt?: string;
8
7
  placeholder?: string;
9
8
  label?: string;
9
+ /** Treat the transcript as output only; no command line mounts. */
10
+ readOnly?: boolean;
10
11
  onCommand?: (text: string) => void;
11
12
  }
12
13
  /** A quiet console: the transcript above, the prompt line below. The
13
14
  * component owns only the reading and the caret — each entered line
14
15
  * leaves as an event, and the caller answers through the lines prop,
15
16
  * so history stays theirs to shape. */
16
- declare function TerminalImpl({ lines, prompt, placeholder, label, onCommand, ...rest }: TerminalProps): import("react").JSX.Element;
17
+ declare function TerminalImpl({ lines, prompt, placeholder, label, readOnly, onCommand, ...rest }: TerminalProps): import("react").JSX.Element;
17
18
  export declare const Terminal: typeof TerminalImpl & {
18
19
  Root: typeof TerminalImpl;
19
20
  };
20
- //#endregion
21
+ export {};
@@ -1,22 +1,23 @@
1
- import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
- import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
1
+ import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
2
+ import { n as useComponentMessages } from "../../messages-B6n0lVyt.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  import { useEffect, useRef, useState } from "react";
6
- //#region src/components/terminal/index.tsx
6
+ // src/components/terminal/index.tsx
7
7
  /** A quiet console: the transcript above, the prompt line below. The
8
8
  * component owns only the reading and the caret — each entered line
9
9
  * leaves as an event, and the caller answers through the lines prop,
10
10
  * so history stays theirs to shape. */
11
- function TerminalImpl({ lines = [], prompt = "$", placeholder, label, onCommand, ...rest }) {
11
+ function TerminalImpl({ lines = [], prompt = "$", placeholder, label, readOnly = false, onCommand, ...rest }) {
12
12
  injectComponentStyle("terminal");
13
13
  const messages = useComponentMessages();
14
14
  const commandLineLabel = label ?? messages.terminal.commandLine;
15
15
  const [draft, setDraft] = useState("");
16
16
  const scroll = useRef(null);
17
+ const transcript = lines.join("\n");
17
18
  useEffect(() => {
18
19
  scroll.current?.scrollTo({ top: scroll.current.scrollHeight });
19
- }, [lines.length]);
20
+ }, [transcript]);
20
21
  function submit() {
21
22
  const text = draft.trim();
22
23
  if (!text) return;
@@ -29,6 +30,7 @@ function TerminalImpl({ lines = [], prompt = "$", placeholder, label, onCommand,
29
30
  "aria-label": commandLineLabel,
30
31
  "data-scope": "terminal",
31
32
  "data-part": "root",
33
+ ...readOnly ? { "data-readonly": "" } : {},
32
34
  children: [/* @__PURE__ */ jsx("div", {
33
35
  ref: scroll,
34
36
  "data-scope": "terminal",
@@ -38,7 +40,7 @@ function TerminalImpl({ lines = [], prompt = "$", placeholder, label, onCommand,
38
40
  "data-part": "line",
39
41
  children: line
40
42
  }, index))
41
- }), /* @__PURE__ */ jsxs("div", {
43
+ }), readOnly ? null : /* @__PURE__ */ jsxs("div", {
42
44
  "data-scope": "terminal",
43
45
  "data-part": "entry",
44
46
  children: [/* @__PURE__ */ jsx("span", {
@@ -66,5 +68,4 @@ function TerminalImpl({ lines = [], prompt = "$", placeholder, label, onCommand,
66
68
  });
67
69
  }
68
70
  const Terminal = withSelfRoot(TerminalImpl);
69
- //#endregion
70
71
  export { Terminal };
@@ -1,5 +1,4 @@
1
1
  import { TextareaHTMLAttributes } from "react";
2
- //#region src/components/textarea/index.d.ts
3
2
  /** The bare multi-line input: the field recipe on a `<textarea>`, sized
4
3
  * by rows and resizable in the block direction. Standing alone it styles
5
4
  * itself from the `invalid` prop; inside a `Field.Root` it consumes the
@@ -14,4 +13,4 @@ declare function TextareaImpl({ value, invalid, onValueChange, ...rest }: Textar
14
13
  export declare const Textarea: typeof TextareaImpl & {
15
14
  Root: typeof TextareaImpl;
16
15
  };
17
- //#endregion
16
+ export {};
@@ -1,8 +1,8 @@
1
- import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
+ import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { useFieldContext } from "@ark-ui/react/field";
5
- //#region src/components/textarea/index.tsx
5
+ // src/components/textarea/index.tsx
6
6
  function TextareaImpl({ value, invalid = false, onValueChange, ...rest }) {
7
7
  injectComponentStyle("textarea");
8
8
  const field = useFieldContext();
@@ -18,5 +18,4 @@ function TextareaImpl({ value, invalid = false, onValueChange, ...rest }) {
18
18
  });
19
19
  }
20
20
  const Textarea = withSelfRoot(TextareaImpl);
21
- //#endregion
22
21
  export { Textarea };
@@ -1,6 +1,5 @@
1
1
  import * as React from "react";
2
2
  import { HTMLAttributes } from "react";
3
- //#region src/components/timeline/index.d.ts
4
3
  declare function Root({ orientation, children, ...rest }: HTMLAttributes<HTMLElement> & {
5
4
  children?: React.ReactNode;
6
5
  orientation?: "vertical" | "horizontal";
@@ -23,4 +22,4 @@ export declare const Timeline: typeof Root & {
23
22
  displayName: string;
24
23
  };
25
24
  };
26
- //#endregion
25
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { injectComponentStyle } from "@bysages/core/styling";
2
2
  import { jsx } from "react/jsx-runtime";
3
- //#region src/components/timeline/index.tsx
3
+ // src/components/timeline/index.tsx
4
4
  /** A line of moments: Root is the ordered thread, Item one moment on it,
5
5
  * Marker the point where the thread passes, Content what the moment
6
6
  * holds. The hairline between markers is drawn by the stylesheet. */
@@ -36,5 +36,4 @@ const Timeline = Object.assign(Root, {
36
36
  Content
37
37
  });
38
38
  injectComponentStyle("timeline");
39
- //#endregion
40
39
  export { Timeline };
@@ -1,6 +1,5 @@
1
1
  import { CSSProperties, ComponentProps } from "react";
2
2
  import { Timer as Timer$1 } from "@ark-ui/react/timer";
3
- //#region src/components/timer/index.d.ts
4
3
  /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
5
4
  * that never jitter, quiet action triggers on the control recipe. The API
6
5
  * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
@@ -22,4 +21,4 @@ declare function TimerFacade(props: TimerFacadeProps): import("react").JSX.Eleme
22
21
  export declare const Timer: typeof TimerFacade & Omit<typeof Timer$1, "Root"> & {
23
22
  Root: typeof TimerRoot;
24
23
  };
25
- //#endregion
24
+ export {};
@@ -1,8 +1,8 @@
1
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Timer as Timer$1 } from "@ark-ui/react/timer";
5
- //#region src/components/timer/index.tsx
5
+ // src/components/timer/index.tsx
6
6
  /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
7
7
  * that never jitter, quiet action triggers on the control recipe. The API
8
8
  * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
@@ -56,5 +56,4 @@ const Timer = Object.assign(TimerFacade, {
56
56
  ...Timer$1,
57
57
  Root: TimerRoot
58
58
  });
59
- //#endregion
60
59
  export { Timer };
@@ -1,8 +1,6 @@
1
1
  import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/react/toast";
2
- //#region src/components/toast/index.d.ts
3
2
  export declare const Toast: typeof Toast$1;
4
3
  export declare const Toaster: import("react").ForwardRefExoticComponent<import("@ark-ui/react/toast").ToasterProps & import("react").RefAttributes<HTMLDivElement>> & {
5
4
  Root: import("react").ForwardRefExoticComponent<import("@ark-ui/react/toast").ToasterProps & import("react").RefAttributes<HTMLDivElement>>;
6
5
  };
7
- //#endregion
8
6
  export { type CreateToasterReturn, createToaster };
@@ -1,11 +1,11 @@
1
- import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
- import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
+ import { r as iconNode } from "../../icon-C9udWCyz.mjs";
2
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
3
+ import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
4
4
  import { injectComponentStyle } from "@bysages/core/styling";
5
5
  import { jsx, jsxs } from "react/jsx-runtime";
6
6
  import { forwardRef } from "react";
7
7
  import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/react/toast";
8
- //#region src/components/toast/index.tsx
8
+ // src/components/toast/index.tsx
9
9
  /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
10
10
  * popup vessel while a pigment accents the title by type, and the machine's
11
11
  * translate variables carry the slide. The API is Ark's own — Toaster,
@@ -42,5 +42,4 @@ const ToasterRoot = forwardRef(function ToasterRoot(props, ref) {
42
42
  });
43
43
  const Toaster = withSelfRoot(ToasterRoot);
44
44
  injectComponentStyle("toast");
45
- //#endregion
46
45
  export { Toast, Toaster, createToaster };
@@ -1,6 +1,5 @@
1
1
  import { CSSProperties, ComponentProps } from "react";
2
2
  import { Toc as Toc$1, TocItemData } from "@ark-ui/react/toc";
3
- //#region src/components/toc/index.d.ts
4
3
  /** Toc, dressed in the paper-and-ink system: a quiet rail of links
5
4
  * beside the scroll, one stroke of primary ink marking where the reader
6
5
  * stands. The parts — Root, Title, List, Item, Link, Indicator. */
@@ -24,4 +23,4 @@ export declare const Toc: typeof TocFacade & Omit<typeof Toc$1, "Root" | "Indica
24
23
  Root: typeof TocRoot;
25
24
  Indicator: typeof TocIndicator;
26
25
  };
27
- //#endregion
26
+ export {};
@@ -1,8 +1,8 @@
1
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Toc as Toc$1 } from "@ark-ui/react/toc";
5
- //#region src/components/toc/index.tsx
5
+ // src/components/toc/index.tsx
6
6
  /** Toc, dressed in the paper-and-ink system: a quiet rail of links
7
7
  * beside the scroll, one stroke of primary ink marking where the reader
8
8
  * stands. The parts — Root, Title, List, Item, Link, Indicator. */
@@ -44,5 +44,4 @@ const Toc = Object.assign(TocFacade, {
44
44
  Indicator: TocIndicator
45
45
  });
46
46
  injectComponentStyle("toc");
47
- //#endregion
48
47
  export { Toc };
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
3
- //#region src/components/toggle/index.d.ts
4
3
  export interface ToggleFacadeProps extends ComponentProps<typeof Toggle$1.Root> {
5
4
  /** The accessible name when the content is only an icon. */
6
5
  label?: string;
@@ -11,4 +10,4 @@ declare namespace ToggleFacade {
11
10
  }
12
11
  type ToggleParts = typeof Toggle$1;
13
12
  export declare const Toggle: typeof ToggleFacade & ToggleParts;
14
- //#endregion
13
+ export {};
@@ -1,8 +1,8 @@
1
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx } from "react/jsx-runtime";
4
4
  import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
5
- //#region src/components/toggle/index.tsx
5
+ // src/components/toggle/index.tsx
6
6
  /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
7
7
  * settles into the flat ink fill while pressed on. The API is Ark's own —
8
8
  * Root, Indicator. */
@@ -26,5 +26,4 @@ const Toggle = Object.assign(ToggleFacade, {
26
26
  Root: ToggleRoot
27
27
  });
28
28
  injectComponentStyle("toggle");
29
- //#endregion
30
29
  export { Toggle };
@@ -1,6 +1,5 @@
1
1
  import { ComponentProps } from "react";
2
2
  import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/react/toggle-group";
3
- //#region src/components/toggle-group/index.d.ts
4
3
  type ToggleGroupRootProps = ComponentProps<typeof ToggleGroup$1.Root> & {
5
4
  /** One rung of the control-height ladder for the items. */
6
5
  size?: "sm" | "md" | "lg";
@@ -36,4 +35,4 @@ type ToggleGroupParts = Omit<typeof ToggleGroup$1, "Root"> & {
36
35
  Root: typeof ToggleGroupRoot;
37
36
  };
38
37
  export declare const ToggleGroup: typeof ToggleGroupFacade & ToggleGroupParts;
39
- //#endregion
38
+ export {};
@@ -1,9 +1,9 @@
1
- import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { r as iconNode } from "../../icon-C9udWCyz.mjs";
2
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
3
3
  import { injectComponentStyle } from "@bysages/core/styling";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/react/toggle-group";
6
- //#region src/components/toggle-group/index.tsx
6
+ // src/components/toggle-group/index.tsx
7
7
  function ToggleGroupRoot(props) {
8
8
  const id = useElementId("toggle-group", props);
9
9
  const { size = "md", ...rest } = props;
@@ -41,5 +41,4 @@ const ToggleGroup = Object.assign(ToggleGroupFacade, {
41
41
  Root: ToggleGroupRoot
42
42
  });
43
43
  injectComponentStyle("toggle-group");
44
- //#endregion
45
44
  export { ToggleGroup };
@@ -1,5 +1,4 @@
1
1
  import { HTMLAttributes, ReactNode } from "react";
2
- //#region src/components/toolbar/index.d.ts
3
2
  export interface ToolbarProps extends HTMLAttributes<HTMLDivElement> {
4
3
  /** Accessible name when more than one toolbar shares a page. */
5
4
  label?: string;
@@ -17,4 +16,4 @@ declare function ToolbarImpl({ label, start, end, children, ...rest }: ToolbarPr
17
16
  export declare const Toolbar: typeof ToolbarImpl & {
18
17
  Root: typeof ToolbarImpl;
19
18
  };
20
- //#endregion
19
+ export {};
@@ -1,7 +1,7 @@
1
- import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
+ import { t as withSelfRoot } from "../../family-Co1YsN4N.mjs";
2
2
  import { injectComponentStyle } from "@bysages/core/styling";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
- //#region src/components/toolbar/index.tsx
4
+ // src/components/toolbar/index.tsx
5
5
  /** A workbench rail: the start tools at the leading edge, the end tools
6
6
  * at the trailing, the rail itself carrying the toolbar role so
7
7
  * assistive tech reads it as one group of commands. */
@@ -27,5 +27,4 @@ function ToolbarImpl({ label, start, end, children, ...rest }) {
27
27
  });
28
28
  }
29
29
  const Toolbar = withSelfRoot(ToolbarImpl);
30
- //#endregion
31
30
  export { Toolbar };
@@ -1,8 +1,14 @@
1
- import { ReactNode } from "react";
1
+ import { n as FloatingPortalTarget, t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
2
+ import { ComponentProps, ReactNode } from "react";
2
3
  import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
3
- //#region src/components/tooltip/index.d.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
+ declare function TooltipRoot(props: ComponentProps<typeof Tooltip$1.Root>): import("react").JSX.Element;
4
8
  type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
5
9
  export interface TooltipFacadeProps {
10
+ /** Portal after hydration; `false` keeps the vessel inline. */
11
+ portal?: FloatingPortalTarget;
6
12
  open?: boolean;
7
13
  defaultOpen?: boolean;
8
14
  trigger: ReactNode;
@@ -11,10 +17,17 @@ export interface TooltipFacadeProps {
11
17
  placement?: TooltipPlacement;
12
18
  onOpenChange?: (open: boolean) => void;
13
19
  }
14
- declare function TooltipFacade({ open, defaultOpen, trigger, content, disabled, placement, onOpenChange }: TooltipFacadeProps): import("react").JSX.Element;
20
+ declare const TooltipPositioner: {
21
+ ({ portal, ...rest }: FloatingPortalProps & Tooltip$1.PositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare function TooltipFacade({ portal, open, defaultOpen, trigger, content, disabled, placement, onOpenChange }: TooltipFacadeProps): import("react").JSX.Element;
15
25
  declare namespace TooltipFacade {
16
26
  var displayName: string;
17
27
  }
18
- type TooltipParts = typeof Tooltip$1;
28
+ type TooltipParts = Omit<typeof Tooltip$1, "Root" | "Positioner"> & {
29
+ Positioner: typeof TooltipPositioner;
30
+ Root: typeof TooltipRoot;
31
+ };
19
32
  export declare const Tooltip: typeof TooltipFacade & TooltipParts;
20
- //#endregion
33
+ export {};
@@ -1,9 +1,10 @@
1
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
2
+ import { n as definePositioner, t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core/styling";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { isValidElement } from "react";
5
6
  import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
6
- //#region src/components/tooltip/index.tsx
7
+ // src/components/tooltip/index.tsx
7
8
  /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
8
9
  * vessel — a tight chip of ink that dissolves in over its anchor. The
9
10
  * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
@@ -14,7 +15,8 @@ function TooltipRoot(props) {
14
15
  id
15
16
  });
16
17
  }
17
- function TooltipFacade({ open, defaultOpen, trigger, content, disabled = false, placement, onOpenChange }) {
18
+ const TooltipPositioner = definePositioner(Tooltip$1.Positioner);
19
+ function TooltipFacade({ portal = false, open, defaultOpen, trigger, content, disabled = false, placement, onOpenChange }) {
18
20
  return /* @__PURE__ */ jsxs(TooltipRoot, {
19
21
  ...placement === void 0 ? {} : { positioning: { placement } },
20
22
  ...open === void 0 ? {} : { open },
@@ -24,14 +26,17 @@ function TooltipFacade({ open, defaultOpen, trigger, content, disabled = false,
24
26
  asChild: isValidElement(trigger),
25
27
  disabled,
26
28
  children: trigger
27
- }), /* @__PURE__ */ jsx(Tooltip$1.Positioner, { children: /* @__PURE__ */ jsxs(Tooltip$1.Content, { children: [/* @__PURE__ */ jsx(Tooltip$1.Arrow, { children: /* @__PURE__ */ jsx(Tooltip$1.ArrowTip, {}) }), content] }) })]
29
+ }), /* @__PURE__ */ jsx(FloatingPortal, {
30
+ portal,
31
+ children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, { children: /* @__PURE__ */ jsxs(Tooltip$1.Content, { children: [/* @__PURE__ */ jsx(Tooltip$1.Arrow, { children: /* @__PURE__ */ jsx(Tooltip$1.ArrowTip, {}) }), content] }) })
32
+ })]
28
33
  });
29
34
  }
30
35
  TooltipFacade.displayName = "STooltip";
31
36
  const Tooltip = Object.assign(TooltipFacade, {
32
37
  ...Tooltip$1,
38
+ Positioner: TooltipPositioner,
33
39
  Root: TooltipRoot
34
40
  });
35
41
  injectComponentStyle("tooltip");
36
- //#endregion
37
42
  export { Tooltip };
@@ -1,20 +1,35 @@
1
- import { ReactNode } from "react";
1
+ import { n as FloatingPortalTarget, t as FloatingPortalProps } from "../../floating-BhcDRgnx.mjs";
2
+ import { ComponentProps, ReactNode } from "react";
2
3
  import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, UseTourProps, UseTourReturn } from "@ark-ui/react/tour";
3
- //#region src/components/tour/index.d.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
+ declare function TourRoot(props: ComponentProps<typeof Tour$1.Root>): import("react").JSX.Element;
4
11
  export interface TourFacadeProps {
12
+ /** Portal after hydration; `false` keeps the vessel inline. */
13
+ portal?: FloatingPortalTarget;
5
14
  tour: UseTourReturn;
6
15
  trigger?: string;
7
16
  /** Replaces the standard card body when supplied. */
8
17
  content?: ReactNode;
9
18
  children?: ReactNode;
10
19
  }
11
- declare function TourFacade({ tour, trigger, content, children }: TourFacadeProps): import("react").JSX.Element;
20
+ declare const TourPositioner: {
21
+ ({ portal, ...rest }: FloatingPortalProps & Tour$1.PositionerProps & import("react").RefAttributes<HTMLDivElement>): import("react").JSX.Element;
22
+ displayName: string;
23
+ };
24
+ declare function TourFacade({ portal, tour, trigger, content, children }: TourFacadeProps): import("react").JSX.Element;
12
25
  declare namespace TourFacade {
13
26
  var displayName: string;
14
27
  }
15
- type TourParts = typeof Tour$1;
28
+ type TourParts = Omit<typeof Tour$1, "Root" | "Positioner"> & {
29
+ Positioner: typeof TourPositioner;
30
+ Root: typeof TourRoot;
31
+ };
16
32
  export declare const Tour: typeof TourFacade & TourParts;
17
33
  /** Tour machines are created by useTour, so the stable id belongs there. */
18
34
  export declare function useTour(props?: UseTourProps): UseTourReturn;
19
- //#endregion
20
35
  export type { TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails };
@@ -1,9 +1,10 @@
1
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
2
2
  import { Button } from "../button/index.mjs";
3
+ import { n as definePositioner, t as FloatingPortal } from "../../floating-CMR7cvmA.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core/styling";
4
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
6
  import { Tour as Tour$1, useTour as useTour$1 } from "@ark-ui/react/tour";
6
- //#region src/components/tour/index.tsx
7
+ // src/components/tour/index.tsx
7
8
  /** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
8
9
  * the spotlight alone keeps the focus halo, and the anchored card rides
9
10
  * the shared popup vessel. The API is Ark's own — Root, Backdrop,
@@ -13,7 +14,8 @@ import { Tour as Tour$1, useTour as useTour$1 } from "@ark-ui/react/tour";
13
14
  function TourRoot(props) {
14
15
  return /* @__PURE__ */ jsx(Tour$1.Root, { ...props });
15
16
  }
16
- function TourFacade({ tour, trigger = "Start tour", content, children }) {
17
+ const TourPositioner = definePositioner(Tour$1.Positioner);
18
+ function TourFacade({ portal = true, tour, trigger = "Start tour", content, children }) {
17
19
  return /* @__PURE__ */ jsxs(TourRoot, {
18
20
  tour,
19
21
  children: [
@@ -25,21 +27,25 @@ function TourFacade({ tour, trigger = "Start tour", content, children }) {
25
27
  children,
26
28
  /* @__PURE__ */ jsx(Tour$1.Backdrop, {}),
27
29
  /* @__PURE__ */ jsx(Tour$1.Spotlight, {}),
28
- /* @__PURE__ */ jsx(Tour$1.Positioner, { children: /* @__PURE__ */ jsx(Tour$1.Content, { children: content ?? /* @__PURE__ */ jsxs(Fragment, { children: [
29
- /* @__PURE__ */ jsx(Tour$1.ProgressText, {}),
30
- /* @__PURE__ */ jsx(Tour$1.Title, {}),
31
- /* @__PURE__ */ jsx(Tour$1.Description, {}),
32
- /* @__PURE__ */ jsx(Tour$1.Control, { children: /* @__PURE__ */ jsx(Tour$1.Actions, { children: (actions) => actions.map((action) => /* @__PURE__ */ jsx(Tour$1.ActionTrigger, {
33
- action,
34
- children: action.label
35
- }, action.label)) }) })
36
- ] }) }) })
30
+ /* @__PURE__ */ jsx(FloatingPortal, {
31
+ portal,
32
+ children: /* @__PURE__ */ jsx(Tour$1.Positioner, { children: /* @__PURE__ */ jsx(Tour$1.Content, { children: content ?? /* @__PURE__ */ jsxs(Fragment, { children: [
33
+ /* @__PURE__ */ jsx(Tour$1.ProgressText, {}),
34
+ /* @__PURE__ */ jsx(Tour$1.Title, {}),
35
+ /* @__PURE__ */ jsx(Tour$1.Description, {}),
36
+ /* @__PURE__ */ jsx(Tour$1.Control, { children: /* @__PURE__ */ jsx(Tour$1.Actions, { children: (actions) => actions.map((action) => /* @__PURE__ */ jsx(Tour$1.ActionTrigger, {
37
+ action,
38
+ children: action.label
39
+ }, action.label)) }) })
40
+ ] }) }) })
41
+ })
37
42
  ]
38
43
  });
39
44
  }
40
45
  TourFacade.displayName = "STour";
41
46
  const Tour = Object.assign(TourFacade, {
42
47
  ...Tour$1,
48
+ Positioner: TourPositioner,
43
49
  Root: TourRoot
44
50
  });
45
51
  /** Tour machines are created by useTour, so the stable id belongs there. */
@@ -51,5 +57,4 @@ function useTour(props = {}) {
51
57
  });
52
58
  }
53
59
  injectComponentStyle("tour");
54
- //#endregion
55
60
  export { Tour, useTour };
@@ -1,6 +1,5 @@
1
1
  import { Checkbox } from "../checkbox/index.mjs";
2
2
  import { HTMLAttributes } from "react";
3
- //#region src/components/transfer/index.d.ts
4
3
  export interface TransferItem {
5
4
  label: string;
6
5
  value: string;
@@ -22,4 +21,4 @@ export interface TransferProps extends HTMLAttributes<HTMLDivElement> {
22
21
  */
23
22
  declare function TransferImpl({ value, data, titles, searchable, disabled, onValueChange, ...rest }: TransferProps): import("react").JSX.Element;
24
23
  export declare const Transfer: typeof TransferImpl & typeof Checkbox;
25
- //#endregion
24
+ export {};
@@ -1,14 +1,14 @@
1
- import { r as iconNode } from "../../icon-Cri0-7-x.mjs";
2
- import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
- import { n as useComponentMessages, t as formatMessage } from "../../messages-1jJWtaYU.mjs";
1
+ import { r as iconNode } from "../../icon-C9udWCyz.mjs";
2
+ import { t as useElementId } from "../../id-Ctic_3o8.mjs";
3
+ import { n as useComponentMessages, t as formatMessage } from "../../messages-B6n0lVyt.mjs";
4
4
  import { Button } from "../button/index.mjs";
5
- import { t as Input } from "../../input-BDpQ0e6G.mjs";
5
+ import { t as Input } from "../../input-YRjehBhU.mjs";
6
6
  import { Checkbox as Checkbox$1 } from "../checkbox/index.mjs";
7
7
  import { injectComponentStyle } from "@bysages/core/styling";
8
8
  import { jsx, jsxs } from "react/jsx-runtime";
9
9
  import { useState } from "react";
10
10
  import { Checkbox } from "@ark-ui/react/checkbox";
11
- //#region src/components/transfer/index.tsx
11
+ // src/components/transfer/index.tsx
12
12
  const checkIcon = iconNode("check");
13
13
  function arrowIcon(direction) {
14
14
  return iconNode(direction === "right" ? "arrow-right" : "arrow-left");
@@ -140,5 +140,4 @@ function TransferImpl({ value = [], data, titles = ["Source", "Target"], searcha
140
140
  });
141
141
  }
142
142
  const Transfer = Object.assign(TransferImpl, Checkbox$1);
143
- //#endregion
144
143
  export { Transfer };
@@ -1,6 +1,6 @@
1
- import { t as Popover } from "../../index-Eu-Bttta.mjs";
1
+ import { n as FloatingPortalTarget } from "../../floating-BhcDRgnx.mjs";
2
+ import { t as Popover } from "../../index-j02dTkfc.mjs";
2
3
  import { HTMLAttributes } from "react";
3
- //#region src/components/tree-select/index.d.ts
4
4
  export interface TreeSelectNode {
5
5
  label: string;
6
6
  value: string;
@@ -15,6 +15,8 @@ export interface TreeSelectNode {
15
15
  * matches keep their ancestors and the branches fan open.
16
16
  */
17
17
  export interface TreeSelectProps extends HTMLAttributes<HTMLDivElement> {
18
+ /** Portal after hydration; `false` keeps the vessel inline. */
19
+ portal?: FloatingPortalTarget;
18
20
  value?: string;
19
21
  data: TreeSelectNode[];
20
22
  placeholder?: string;
@@ -25,6 +27,6 @@ export interface TreeSelectProps extends HTMLAttributes<HTMLDivElement> {
25
27
  size?: "sm" | "md" | "lg";
26
28
  onValueChange?: (value: string) => void;
27
29
  }
28
- declare function TreeSelectImpl({ value, data, placeholder, filterable, disabled, size, onValueChange, ...rest }: TreeSelectProps): import("react").JSX.Element;
30
+ declare function TreeSelectImpl({ portal, value, data, placeholder, filterable, disabled, size, onValueChange, ...rest }: TreeSelectProps): import("react").JSX.Element;
29
31
  export declare const TreeSelect: typeof TreeSelectImpl & typeof Popover;
30
- //#endregion
32
+ export {};