@bysages/solid 0.3.1 → 0.4.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 (268) hide show
  1. package/dist/{ai-response-slzE03wh.mjs → ai-response-D2uINBIi.mjs} +13 -5
  2. package/dist/chevron-BHQrYKPM.mjs +8 -0
  3. package/dist/components/accordion/index.d.mts +22 -2
  4. package/dist/components/accordion/index.mjs +68 -2
  5. package/dist/components/affix/index.d.mts +3 -1
  6. package/dist/components/affix/index.mjs +5 -4
  7. package/dist/components/ai/index.d.mts +1 -1
  8. package/dist/components/ai/index.mjs +6 -5
  9. package/dist/components/ai-action/index.d.mts +3 -1
  10. package/dist/components/ai-action/index.mjs +3 -2
  11. package/dist/components/ai-attachments/index.d.mts +8 -4
  12. package/dist/components/ai-attachments/index.mjs +38 -36
  13. package/dist/components/ai-message/index.d.mts +3 -1
  14. package/dist/components/ai-message/index.mjs +3 -2
  15. package/dist/components/ai-prompt-input/index.d.mts +3 -1
  16. package/dist/components/ai-prompt-input/index.mjs +47 -43
  17. package/dist/components/ai-reasoning/index.d.mts +3 -1
  18. package/dist/components/ai-reasoning/index.mjs +4 -3
  19. package/dist/components/ai-response/index.d.mts +3 -1
  20. package/dist/components/ai-response/index.mjs +1 -1
  21. package/dist/components/ai-source/index.d.mts +6 -2
  22. package/dist/components/ai-source/index.mjs +5 -4
  23. package/dist/components/ai-suggestion/index.d.mts +3 -1
  24. package/dist/components/ai-suggestion/index.mjs +3 -2
  25. package/dist/components/ai-tool/index.d.mts +3 -1
  26. package/dist/components/ai-tool/index.mjs +4 -3
  27. package/dist/components/alert/index.mjs +31 -34
  28. package/dist/components/angle-slider/index.d.mts +1 -1
  29. package/dist/components/angle-slider/index.mjs +13 -5
  30. package/dist/components/aspect-ratio/index.d.mts +3 -1
  31. package/dist/components/aspect-ratio/index.mjs +3 -2
  32. package/dist/components/autocomplete/index.d.mts +4 -1
  33. package/dist/components/autocomplete/index.mjs +10 -1
  34. package/dist/components/avatar/index.d.mts +1 -1
  35. package/dist/components/avatar/index.mjs +10 -1
  36. package/dist/components/avatar-group/index.d.mts +3 -1
  37. package/dist/components/avatar-group/index.mjs +3 -2
  38. package/dist/components/back-top/index.d.mts +3 -1
  39. package/dist/components/back-top/index.mjs +9 -5
  40. package/dist/components/badge/index.d.mts +3 -1
  41. package/dist/components/badge/index.mjs +3 -2
  42. package/dist/components/banner/index.mjs +6 -2
  43. package/dist/components/block-ui/index.d.mts +3 -1
  44. package/dist/components/block-ui/index.mjs +3 -2
  45. package/dist/components/button/index.d.mts +3 -1
  46. package/dist/components/button/index.mjs +3 -2
  47. package/dist/components/calendar/index.d.mts +3 -1
  48. package/dist/components/calendar/index.mjs +29 -21
  49. package/dist/components/carousel/index.d.mts +5 -1
  50. package/dist/components/carousel/index.mjs +13 -1
  51. package/dist/components/cascade-select/index.d.mts +3 -1
  52. package/dist/components/cascade-select/index.mjs +73 -72
  53. package/dist/components/checkbox/index.d.mts +1 -1
  54. package/dist/components/checkbox/index.mjs +13 -5
  55. package/dist/components/checkbox-group/index.d.mts +4 -9
  56. package/dist/components/checkbox-group/index.mjs +65 -68
  57. package/dist/components/chip/index.d.mts +3 -1
  58. package/dist/components/chip/index.mjs +3 -2
  59. package/dist/components/client-only/index.d.mts +7 -2
  60. package/dist/components/client-only/index.mjs +8 -1
  61. package/dist/components/clipboard/index.d.mts +1 -1
  62. package/dist/components/clipboard/index.mjs +13 -5
  63. package/dist/components/collapsible/index.d.mts +15 -1
  64. package/dist/components/collapsible/index.mjs +39 -2
  65. package/dist/components/color-picker/index.d.mts +13 -2
  66. package/dist/components/color-picker/index.mjs +95 -8
  67. package/dist/components/combobox/index.d.mts +24 -1
  68. package/dist/components/combobox/index.mjs +129 -8
  69. package/dist/components/command/index.d.mts +4 -1
  70. package/dist/components/command/index.mjs +13 -1
  71. package/dist/components/comment/index.d.mts +3 -1
  72. package/dist/components/comment/index.mjs +3 -2
  73. package/dist/components/config-provider/index.d.mts +3 -1
  74. package/dist/components/config-provider/index.mjs +3 -2
  75. package/dist/components/container/index.d.mts +3 -1
  76. package/dist/components/container/index.mjs +3 -2
  77. package/dist/components/data-view/index.d.mts +3 -1
  78. package/dist/components/data-view/index.mjs +5 -6
  79. package/dist/components/date-input/index.d.mts +1 -1
  80. package/dist/components/date-input/index.mjs +13 -5
  81. package/dist/components/date-picker/index.d.mts +1 -1
  82. package/dist/components/date-picker/index.mjs +13 -5
  83. package/dist/components/deferred-content/index.d.mts +3 -1
  84. package/dist/components/deferred-content/index.mjs +3 -2
  85. package/dist/components/descriptions/index.d.mts +7 -0
  86. package/dist/components/descriptions/index.mjs +21 -2
  87. package/dist/components/dialog/index.d.mts +17 -1
  88. package/dist/components/dialog/index.mjs +84 -2
  89. package/dist/components/download-trigger/index.d.mts +7 -2
  90. package/dist/components/download-trigger/index.mjs +8 -1
  91. package/dist/components/drawer/index.d.mts +17 -1
  92. package/dist/components/drawer/index.mjs +83 -2
  93. package/dist/components/dynamic-input/index.d.mts +3 -1
  94. package/dist/components/dynamic-input/index.mjs +10 -6
  95. package/dist/components/editable/index.d.mts +1 -1
  96. package/dist/components/editable/index.mjs +13 -5
  97. package/dist/components/ellipsis/index.d.mts +3 -1
  98. package/dist/components/ellipsis/index.mjs +3 -2
  99. package/dist/components/field/index.d.mts +5 -1
  100. package/dist/components/field/index.mjs +13 -1
  101. package/dist/components/fieldset/index.d.mts +5 -1
  102. package/dist/components/fieldset/index.mjs +13 -1
  103. package/dist/components/file-upload/index.d.mts +1 -7
  104. package/dist/components/file-upload/index.mjs +13 -5
  105. package/dist/components/floating-panel/index.d.mts +5 -1
  106. package/dist/components/floating-panel/index.mjs +13 -1
  107. package/dist/components/focus-trap/index.d.mts +7 -2
  108. package/dist/components/focus-trap/index.mjs +8 -1
  109. package/dist/components/form/index.d.mts +1 -1
  110. package/dist/components/form/index.mjs +10 -4
  111. package/dist/components/frame/index.d.mts +6 -1
  112. package/dist/components/frame/index.mjs +10 -1
  113. package/dist/components/grid/index.d.mts +3 -1
  114. package/dist/components/grid/index.mjs +3 -2
  115. package/dist/components/highlight/index.d.mts +3 -1
  116. package/dist/components/highlight/index.mjs +2 -1
  117. package/dist/components/hover-card/index.d.mts +19 -1
  118. package/dist/components/hover-card/index.mjs +91 -2
  119. package/dist/components/icon/index.d.mts +8 -7
  120. package/dist/components/icon/index.mjs +4 -3
  121. package/dist/components/image/index.d.mts +4 -2
  122. package/dist/components/image/index.mjs +34 -33
  123. package/dist/components/image-cropper/index.d.mts +5 -1
  124. package/dist/components/image-cropper/index.mjs +13 -1
  125. package/dist/components/image-viewer/index.d.mts +2 -23
  126. package/dist/components/image-viewer/index.mjs +3 -159
  127. package/dist/components/input/index.d.mts +3 -1
  128. package/dist/components/input/index.mjs +1 -1
  129. package/dist/components/json-tree-view/index.d.mts +5 -4
  130. package/dist/components/json-tree-view/index.mjs +15 -18
  131. package/dist/components/kbd/index.d.mts +3 -1
  132. package/dist/components/kbd/index.mjs +3 -2
  133. package/dist/components/link/index.d.mts +3 -1
  134. package/dist/components/link/index.mjs +3 -2
  135. package/dist/components/listbox/index.d.mts +1 -1
  136. package/dist/components/listbox/index.mjs +13 -5
  137. package/dist/components/marquee/index.d.mts +5 -1
  138. package/dist/components/marquee/index.mjs +13 -1
  139. package/dist/components/masonry/index.d.mts +3 -1
  140. package/dist/components/masonry/index.mjs +3 -2
  141. package/dist/components/media-player/index.d.mts +2 -0
  142. package/dist/components/media-player/index.mjs +2 -0
  143. package/dist/components/mentions/index.d.mts +1 -1
  144. package/dist/components/mentions/index.mjs +2 -2
  145. package/dist/components/menu/index.d.mts +21 -1
  146. package/dist/components/menu/index.mjs +62 -5
  147. package/dist/components/menubar/index.d.mts +3 -1
  148. package/dist/components/menubar/index.mjs +30 -9
  149. package/dist/components/navigation-menu/index.d.mts +5 -1
  150. package/dist/components/navigation-menu/index.mjs +13 -1
  151. package/dist/components/number-input/index.d.mts +1 -1
  152. package/dist/components/number-input/index.mjs +13 -5
  153. package/dist/components/order-list/index.d.mts +3 -1
  154. package/dist/components/order-list/index.mjs +67 -63
  155. package/dist/components/pagination/index.d.mts +1 -1
  156. package/dist/components/pagination/index.mjs +13 -5
  157. package/dist/components/password-input/index.d.mts +1 -1
  158. package/dist/components/password-input/index.mjs +13 -5
  159. package/dist/components/pin-input/index.d.mts +1 -1
  160. package/dist/components/pin-input/index.mjs +13 -5
  161. package/dist/components/popconfirm/index.d.mts +3 -1
  162. package/dist/components/popconfirm/index.mjs +16 -8
  163. package/dist/components/popover/index.d.mts +19 -1
  164. package/dist/components/popover/index.mjs +91 -2
  165. package/dist/components/presence/index.d.mts +10 -2
  166. package/dist/components/presence/index.mjs +9 -1
  167. package/dist/components/progress/index.d.mts +1 -1
  168. package/dist/components/progress/index.mjs +13 -5
  169. package/dist/components/progress-group/index.d.mts +3 -1
  170. package/dist/components/progress-group/index.mjs +4 -3
  171. package/dist/components/qr-code/index.d.mts +5 -1
  172. package/dist/components/qr-code/index.mjs +13 -1
  173. package/dist/components/radio-group/index.d.mts +1 -1
  174. package/dist/components/radio-group/index.mjs +13 -5
  175. package/dist/components/rating-group/index.d.mts +2 -2
  176. package/dist/components/rating-group/index.mjs +13 -5
  177. package/dist/components/result/index.d.mts +1 -1
  178. package/dist/components/result/index.mjs +5 -3
  179. package/dist/components/scroll-area/index.d.mts +5 -1
  180. package/dist/components/scroll-area/index.mjs +13 -1
  181. package/dist/components/segment-group/index.d.mts +1 -1
  182. package/dist/components/segment-group/index.mjs +11 -6
  183. package/dist/components/select/index.d.mts +2 -2
  184. package/dist/components/select/index.mjs +1 -1
  185. package/dist/components/separator/index.d.mts +3 -1
  186. package/dist/components/separator/index.mjs +3 -2
  187. package/dist/components/signature-pad/index.d.mts +5 -1
  188. package/dist/components/signature-pad/index.mjs +13 -1
  189. package/dist/components/skeleton/index.d.mts +3 -1
  190. package/dist/components/skeleton/index.mjs +3 -2
  191. package/dist/components/slider/index.d.mts +1 -1
  192. package/dist/components/slider/index.mjs +13 -5
  193. package/dist/components/spinner/index.d.mts +3 -1
  194. package/dist/components/spinner/index.mjs +3 -2
  195. package/dist/components/split-button/index.d.mts +3 -1
  196. package/dist/components/split-button/index.mjs +14 -3
  197. package/dist/components/splitter/index.d.mts +5 -1
  198. package/dist/components/splitter/index.mjs +13 -1
  199. package/dist/components/spotlight/index.d.mts +3 -1
  200. package/dist/components/spotlight/index.mjs +3 -2
  201. package/dist/components/stack/index.d.mts +3 -1
  202. package/dist/components/stack/index.mjs +6 -5
  203. package/dist/components/steps/index.d.mts +20 -3
  204. package/dist/components/steps/index.mjs +66 -7
  205. package/dist/components/swap/index.d.mts +5 -1
  206. package/dist/components/swap/index.mjs +13 -1
  207. package/dist/components/switch/index.d.mts +1 -1
  208. package/dist/components/switch/index.mjs +13 -5
  209. package/dist/components/table/index.d.mts +3 -1
  210. package/dist/components/table/index.mjs +169 -151
  211. package/dist/components/tabs/index.d.mts +20 -2
  212. package/dist/components/tabs/index.mjs +59 -3
  213. package/dist/components/tags-input/index.d.mts +1 -1
  214. package/dist/components/tags-input/index.mjs +13 -5
  215. package/dist/components/terminal/index.d.mts +3 -1
  216. package/dist/components/terminal/index.mjs +3 -2
  217. package/dist/components/textarea/index.d.mts +3 -1
  218. package/dist/components/textarea/index.mjs +3 -2
  219. package/dist/components/timer/index.d.mts +5 -1
  220. package/dist/components/timer/index.mjs +13 -1
  221. package/dist/components/toast/index.d.mts +8 -2
  222. package/dist/components/toast/index.mjs +14 -2
  223. package/dist/components/toc/index.d.mts +11 -2
  224. package/dist/components/toc/index.mjs +1 -1
  225. package/dist/components/toggle/index.d.mts +5 -1
  226. package/dist/components/toggle/index.mjs +13 -1
  227. package/dist/components/toggle-group/index.d.mts +1 -1
  228. package/dist/components/toggle-group/index.mjs +13 -5
  229. package/dist/components/toolbar/index.d.mts +3 -1
  230. package/dist/components/toolbar/index.mjs +3 -2
  231. package/dist/components/tooltip/index.d.mts +16 -1
  232. package/dist/components/tooltip/index.mjs +55 -2
  233. package/dist/components/tour/index.d.mts +16 -3
  234. package/dist/components/tour/index.mjs +74 -9
  235. package/dist/components/transfer/index.d.mts +3 -1
  236. package/dist/components/transfer/index.mjs +54 -50
  237. package/dist/components/tree-select/index.d.mts +3 -1
  238. package/dist/components/tree-select/index.mjs +37 -30
  239. package/dist/components/tree-view/index.d.mts +1 -8
  240. package/dist/components/tree-view/index.mjs +16 -21
  241. package/dist/components/user/index.d.mts +3 -1
  242. package/dist/components/user/index.mjs +8 -2
  243. package/dist/components/virtual-list/index.d.mts +3 -1
  244. package/dist/components/virtual-list/index.mjs +13 -9
  245. package/dist/components/watermark/index.d.mts +3 -1
  246. package/dist/components/watermark/index.mjs +4 -3
  247. package/dist/element-dGIhOTJ6.mjs +16 -0
  248. package/dist/family-Cmd8HEyK.mjs +11 -0
  249. package/dist/icon-DTqmJCd5.mjs +48 -0
  250. package/dist/id-2ygNzPHF.mjs +12 -0
  251. package/dist/image-viewer-B9A5lXsk.mjs +228 -0
  252. package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
  253. package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
  254. package/dist/index-DhripUtf.d.mts +39 -0
  255. package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
  256. package/dist/{index-IfofF-SW.d.mts → index-nFXK_8hJ.d.mts} +53 -23
  257. package/dist/index-wW28BYf1.d.mts +124 -0
  258. package/dist/index.d.mts +23 -22
  259. package/dist/index.mjs +13 -12
  260. package/dist/{input-DoFQ7RXh.mjs → input-CPAJdwDb.mjs} +3 -2
  261. package/dist/media-player-BC8D_d29.mjs +796 -0
  262. package/dist/{mentions-f5Js_2W7.mjs → mentions-CeG5u8Qm.mjs} +67 -51
  263. package/dist/select-7YjMSBGx.mjs +292 -0
  264. package/dist/{toc-CZmYEaQR.mjs → toc-DYKaKQ_X.mjs} +12 -2
  265. package/package.json +3 -3
  266. package/dist/chevron-D5RzcayK.mjs +0 -9
  267. package/dist/index-DdsnfV4f.d.mts +0 -16
  268. package/dist/select-CX6OuQlU.mjs +0 -123
@@ -1,4 +1,5 @@
1
- import { t as chevron } from "../../chevron-D5RzcayK.mjs";
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
2
3
  import { Collapsible } from "../collapsible/index.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core";
4
5
  import { createComponent, insert, mergeProps, template } from "@solidjs/web";
@@ -8,7 +9,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<span>`);
8
9
  var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=ai data-part=reasoning-content>`);
9
10
  /** The model's thought, folded by the shared collapsible in its quiet
10
11
  * register: bare ink for a trigger, the thought on one hairline. */
11
- function Reasoning(props) {
12
+ const Reasoning = withSelfRoot(function Reasoning(props) {
12
13
  injectComponentStyle("ai");
13
14
  const [own, rest] = splitProps(props, ["label", "children"]);
14
15
  return createComponent(Collapsible.Root, mergeProps(rest, {
@@ -33,6 +34,6 @@ function Reasoning(props) {
33
34
  } })];
34
35
  }
35
36
  }));
36
- }
37
+ });
37
38
  //#endregion
38
39
  export { Reasoning as AiReasoning, Reasoning };
@@ -15,6 +15,8 @@ export interface ResponseProps extends JSX.HTMLAttributes<HTMLDivElement> {
15
15
  /** Markdown set on the paper. Rendering goes through
16
16
  * `@tanstack/markdown`, whose defaults leave raw HTML and executable
17
17
  * links inert — streaming-safe by construction. */
18
- export declare function Response(props: ResponseProps): JSX.Element;
18
+ export declare const Response: ((props: ResponseProps) => JSX.Element) & {
19
+ Root: (props: ResponseProps) => JSX.Element;
20
+ };
19
21
  //#endregion
20
22
  export { Response as AiResponse };
@@ -1,2 +1,2 @@
1
- import { t as Response } from "../../ai-response-slzE03wh.mjs";
1
+ import { t as Response } from "../../ai-response-D2uINBIi.mjs";
2
2
  export { Response as AiResponse, Response };
@@ -6,8 +6,12 @@ export interface SourceProps extends JSX.HTMLAttributes<HTMLAnchorElement> {
6
6
  href: string;
7
7
  }
8
8
  /** One place the ink came from; href and the rest ride the anchor. */
9
- export declare function Source(props: SourceProps): JSX.Element;
9
+ export declare const Source: ((props: SourceProps) => JSX.Element) & {
10
+ Root: (props: SourceProps) => JSX.Element;
11
+ };
10
12
  /** The reading list under a response: where this ink came from. */
11
- export declare function Sources(props: JSX.HTMLAttributes<HTMLOListElement>): JSX.Element;
13
+ export declare const Sources: ((props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element) & {
14
+ Root: (props: JSX.HTMLAttributes<HTMLOListElement>) => JSX.Element;
15
+ };
12
16
  //#endregion
13
17
  export { Source as AiSource, Sources as AiSources };
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { claimElement, insert, spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
@@ -5,7 +6,7 @@ import { splitProps } from "solid-js";
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<li data-scope=ai data-part=source><a>`);
6
7
  var _tmpl$2 = /* @__PURE__ */ template(`<ol>`);
7
8
  /** One place the ink came from; href and the rest ride the anchor. */
8
- function Source(props) {
9
+ const Source = withSelfRoot(function Source(props) {
9
10
  injectComponentStyle("ai");
10
11
  const [own, rest] = splitProps(props, ["href", "children"]);
11
12
  var _el$ = _tmpl$();
@@ -22,15 +23,15 @@ function Source(props) {
22
23
  return own.children ?? own.href;
23
24
  });
24
25
  return _el$;
25
- }
26
+ });
26
27
  /** The reading list under a response: where this ink came from. */
27
- function Sources(props) {
28
+ const Sources = withSelfRoot(function Sources(props) {
28
29
  var _el$3 = _tmpl$2();
29
30
  spread(_el$3, [props, {
30
31
  "data-scope": "ai",
31
32
  "data-part": "sources"
32
33
  }], false);
33
34
  return _el$3;
34
- }
35
+ });
35
36
  //#endregion
36
37
  export { Source as AiSource, Source, Sources as AiSources, Sources };
@@ -8,6 +8,8 @@ export interface SuggestionProps extends Omit<JSX.HTMLAttributes<HTMLButtonEleme
8
8
  }
9
9
  /** A seal-cut button proposing the next stroke; selection hands back
10
10
  * the prompt. The shared Button in its outline register. */
11
- export declare function Suggestion(props: SuggestionProps): JSX.Element;
11
+ export declare const Suggestion: ((props: SuggestionProps) => JSX.Element) & {
12
+ Root: (props: SuggestionProps) => JSX.Element;
13
+ };
12
14
  //#endregion
13
15
  export { Suggestion as AiSuggestion };
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { Button } from "../button/index.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { createComponent, mergeProps } from "@solidjs/web";
@@ -5,7 +6,7 @@ import { splitProps } from "solid-js";
5
6
  //#region src/components/ai-suggestion/index.tsx
6
7
  /** A seal-cut button proposing the next stroke; selection hands back
7
8
  * the prompt. The shared Button in its outline register. */
8
- function Suggestion(props) {
9
+ const Suggestion = withSelfRoot(function Suggestion(props) {
9
10
  injectComponentStyle("ai");
10
11
  const [own, rest] = splitProps(props, ["prompt", "onSelect"]);
11
12
  return createComponent(Button, mergeProps({
@@ -17,6 +18,6 @@ function Suggestion(props) {
17
18
  return own.prompt;
18
19
  }
19
20
  }));
20
- }
21
+ });
21
22
  //#endregion
22
23
  export { Suggestion as AiSuggestion, Suggestion };
@@ -18,6 +18,8 @@ export interface ToolProps extends JSX.HTMLAttributes<HTMLDivElement> {
18
18
  /** A tool call: the shared collapsible as the vessel — the name it was
19
19
  * reached by and the state it reached in on the trigger, its input and
20
20
  * output folded inside. */
21
- export declare function Tool(props: ToolProps): JSX.Element;
21
+ export declare const Tool: ((props: ToolProps) => JSX.Element) & {
22
+ Root: (props: ToolProps) => JSX.Element;
23
+ };
22
24
  //#endregion
23
25
  export { Tool as AiTool };
@@ -1,4 +1,5 @@
1
- import { t as chevron } from "../../chevron-D5RzcayK.mjs";
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as chevron } from "../../chevron-BHQrYKPM.mjs";
2
3
  import { Collapsible } from "../collapsible/index.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core";
4
5
  import { createComponent, insert, mergeProps, template } from "@solidjs/web";
@@ -13,7 +14,7 @@ var _tmpl$6 = /* @__PURE__ */ template(`<div data-scope=ai data-part=tool-body><
13
14
  /** A tool call: the shared collapsible as the vessel — the name it was
14
15
  * reached by and the state it reached in on the trigger, its input and
15
16
  * output folded inside. */
16
- function Tool(props) {
17
+ const Tool = withSelfRoot(function Tool(props) {
17
18
  injectComponentStyle("ai");
18
19
  const [own, rest] = splitProps(props, [
19
20
  "name",
@@ -85,6 +86,6 @@ function Tool(props) {
85
86
  return _el$3;
86
87
  } })];
87
88
  } }));
88
- }
89
+ });
89
90
  //#endregion
90
91
  export { Tool as AiTool, Tool };
@@ -1,26 +1,23 @@
1
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, effect, insert, setAttribute, spread, template } from "@solidjs/web";
3
+ import { createComponent, insert, spread, template } from "@solidjs/web";
3
4
  import { createContext, splitProps, useContext } from "solid-js";
4
5
  //#region src/components/alert/index.tsx
5
- var _tmpl$ = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path>`);
6
- var _tmpl$2 = /* @__PURE__ */ template(`<div>`);
7
- var _tmpl$3 = /* @__PURE__ */ template(`<span data-scope=alert data-part=icon>`);
8
- var _tmpl$4 = /* @__PURE__ */ template(`<p>`);
6
+ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
7
+ var _tmpl$2 = /* @__PURE__ */ template(`<span data-scope=alert data-part=icon>`);
8
+ var _tmpl$3 = /* @__PURE__ */ template(`<p>`);
9
9
  const StatusContext = createContext(() => "ink");
10
- function glyph(status) {
11
- const paths = {
12
- info: "M12 8v5m0 3v.01M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z",
13
- success: "m4 12.5 5 5L20 6.5",
14
- warning: "M12 4 2.5 20h19L12 4Zm0 6v4m0 3v.01",
15
- danger: "M6 6l12 12M18 6 6 18",
16
- ink: "M12 8v5m0 3v.01M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z"
17
- };
18
- var _el$ = _tmpl$();
19
- var _el$2 = _el$.firstChild;
20
- effect(() => paths[status], (_v$) => {
21
- setAttribute(_el$2, "d", _v$);
10
+ function statusIcon(status) {
11
+ return iconNode({
12
+ ink: "info",
13
+ info: "info",
14
+ success: "circle-check",
15
+ warning: "triangle-alert",
16
+ danger: "circle-x"
17
+ }[status], {
18
+ width: "16",
19
+ height: "16"
22
20
  });
23
- return _el$;
24
21
  }
25
22
  function AlertRoot(props) {
26
23
  const [own, rest] = splitProps(props, ["status"]);
@@ -28,8 +25,8 @@ function AlertRoot(props) {
28
25
  return createComponent(StatusContext.Provider, {
29
26
  value: status,
30
27
  get children() {
31
- var _el$3 = _tmpl$2();
32
- spread(_el$3, [rest, {
28
+ var _el$ = _tmpl$();
29
+ spread(_el$, [rest, {
33
30
  get role() {
34
31
  return status() === "ink" || status() === "info" ? "status" : "alert";
35
32
  },
@@ -39,41 +36,41 @@ function AlertRoot(props) {
39
36
  return status();
40
37
  }
41
38
  }], false);
42
- return _el$3;
39
+ return _el$;
43
40
  }
44
41
  });
45
42
  }
46
43
  function Icon() {
47
44
  const status = useContext(StatusContext);
48
- var _el$4 = _tmpl$3();
49
- insert(_el$4, () => {
50
- return glyph(status());
45
+ var _el$2 = _tmpl$2();
46
+ insert(_el$2, () => {
47
+ return statusIcon(status());
51
48
  });
52
- return _el$4;
49
+ return _el$2;
53
50
  }
54
51
  function Body(props) {
55
- var _el$5 = _tmpl$2();
56
- spread(_el$5, [props, {
52
+ var _el$3 = _tmpl$();
53
+ spread(_el$3, [props, {
57
54
  "data-scope": "alert",
58
55
  "data-part": "body"
59
56
  }], false);
60
- return _el$5;
57
+ return _el$3;
61
58
  }
62
59
  function Title(props) {
63
- var _el$6 = _tmpl$4();
64
- spread(_el$6, [props, {
60
+ var _el$4 = _tmpl$3();
61
+ spread(_el$4, [props, {
65
62
  "data-scope": "alert",
66
63
  "data-part": "title"
67
64
  }], false);
68
- return _el$6;
65
+ return _el$4;
69
66
  }
70
67
  function Description(props) {
71
- var _el$7 = _tmpl$4();
72
- spread(_el$7, [props, {
68
+ var _el$5 = _tmpl$3();
69
+ spread(_el$5, [props, {
73
70
  "data-scope": "alert",
74
71
  "data-part": "description"
75
72
  }], false);
76
- return _el$7;
73
+ return _el$5;
77
74
  }
78
75
  const Alert = Object.assign(AlertRoot, {
79
76
  Root: AlertRoot,
@@ -9,7 +9,7 @@ type AngleSliderOwnProps = {
9
9
  size?: "sm" | "md" | "lg";
10
10
  };
11
11
  declare function AngleSliderRoot(props: AngleSliderRootProps & AngleSliderOwnProps): import("solid-js").JSX.Element;
12
- export declare const AngleSlider: Omit<typeof AngleSlider$1, "Root"> & {
12
+ export declare const AngleSlider: typeof AngleSliderRoot & Omit<typeof AngleSlider$1, "Root"> & {
13
13
  Root: typeof AngleSliderRoot;
14
14
  };
15
15
  //#endregion
@@ -1,3 +1,5 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
4
  import { createComponent, mergeProps } from "@solidjs/web";
3
5
  import { splitProps } from "solid-js";
@@ -5,14 +7,20 @@ import { AngleSlider as AngleSlider$1 } from "@ark-ui/solid/angle-slider";
5
7
  //#region src/components/angle-slider/index.tsx
6
8
  function AngleSliderRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size"]);
8
- return createComponent(AngleSlider$1.Root, mergeProps(rest, { get "data-size"() {
9
- return own.size ?? "md";
10
- } }));
10
+ const id = useElementId("angle-slider", () => rest.id);
11
+ return createComponent(AngleSlider$1.Root, mergeProps(rest, {
12
+ get id() {
13
+ return id();
14
+ },
15
+ get "data-size"() {
16
+ return own.size ?? "md";
17
+ }
18
+ }));
11
19
  }
12
- const AngleSlider = {
20
+ const AngleSlider = defineFamily(AngleSliderRoot, {
13
21
  ...AngleSlider$1,
14
22
  Root: AngleSliderRoot
15
- };
23
+ });
16
24
  injectComponentStyle("angle-slider");
17
25
  //#endregion
18
26
  export { AngleSlider };
@@ -6,5 +6,7 @@ export interface AspectRatioProps extends JSX.HTMLAttributes<HTMLDivElement> {
6
6
  /** A CSS `aspect-ratio` value — "16 / 9", "4 / 3", "1 / 1". */
7
7
  ratio?: string;
8
8
  }
9
- export declare function AspectRatio(props: AspectRatioProps): JSX.Element;
9
+ export declare const AspectRatio: ((props: AspectRatioProps) => JSX.Element) & {
10
+ Root: (props: AspectRatioProps) => JSX.Element;
11
+ };
10
12
  //#endregion
@@ -1,9 +1,10 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
4
5
  //#region src/components/aspect-ratio/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
- function AspectRatio(props) {
7
+ const AspectRatio = withSelfRoot(function AspectRatio(props) {
7
8
  injectComponentStyle("aspect-ratio");
8
9
  const [own, rest] = splitProps(props, ["ratio"]);
9
10
  var _el$ = _tmpl$();
@@ -18,6 +19,6 @@ function AspectRatio(props) {
18
19
  "data-part": "root"
19
20
  }], false);
20
21
  return _el$;
21
- }
22
+ });
22
23
  //#endregion
23
24
  export { AspectRatio };
@@ -1,5 +1,7 @@
1
+ import { Combobox } from "../combobox/index.mjs";
1
2
  //#region src/components/autocomplete/index.d.ts
2
3
  export interface AutoCompleteProps {
4
+ id?: string;
3
5
  value?: string;
4
6
  items?: string[];
5
7
  placeholder?: string;
@@ -17,5 +19,6 @@ export interface AutoCompleteProps {
17
19
  * matching is a case-insensitive substring unless `filter` says
18
20
  * otherwise.
19
21
  */
20
- export declare function AutoComplete(props: AutoCompleteProps): import("solid-js").JSX.Element;
22
+ declare function AutoCompleteImpl(props: AutoCompleteProps): import("solid-js").JSX.Element;
23
+ export declare const AutoComplete: typeof AutoCompleteImpl & typeof Combobox;
21
24
  //#endregion
@@ -1,4 +1,7 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
4
+ import { Combobox as Combobox$1 } from "../combobox/index.mjs";
2
5
  import { injectComponentStyle } from "@bysages/core";
3
6
  import { createComponent, mergeProps } from "@solidjs/web";
4
7
  import { For, splitProps } from "solid-js";
@@ -14,10 +17,11 @@ import { Portal } from "solid-js/web";
14
17
  * matching is a case-insensitive substring unless `filter` says
15
18
  * otherwise.
16
19
  */
17
- function AutoComplete(props) {
20
+ function AutoCompleteImpl(props) {
18
21
  const messages = useComponentMessages();
19
22
  injectComponentStyle("combobox");
20
23
  const [own, rest] = splitProps(props, [
24
+ "id",
21
25
  "value",
22
26
  "items",
23
27
  "placeholder",
@@ -25,11 +29,15 @@ function AutoComplete(props) {
25
29
  "filter",
26
30
  "onValueChange"
27
31
  ]);
32
+ const id = useElementId("autocomplete", () => props.id);
28
33
  const { collection, filter } = useListCollection({
29
34
  initialItems: own.items ?? [],
30
35
  filter: (item, input) => own.filter ? own.filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
31
36
  });
32
37
  return createComponent(Combobox.Root, mergeProps(rest, {
38
+ get id() {
39
+ return id();
40
+ },
33
41
  get collection() {
34
42
  return collection();
35
43
  },
@@ -76,5 +84,6 @@ function AutoComplete(props) {
76
84
  }
77
85
  }));
78
86
  }
87
+ const AutoComplete = defineFamily(AutoCompleteImpl, Combobox$1);
79
88
  //#endregion
80
89
  export { AutoComplete };
@@ -17,7 +17,7 @@ export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
17
17
  shape?: "circle" | "square";
18
18
  }
19
19
  declare function AvatarRoot(props: AvatarProps): import("solid-js").JSX.Element;
20
- export declare const Avatar: typeof Avatar$1 & {
20
+ export declare const Avatar: typeof AvatarRoot & Omit<typeof Avatar$1, "Root"> & {
21
21
  Root: typeof AvatarRoot;
22
22
  };
23
23
  //#endregion
@@ -1,3 +1,5 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
4
  import { createComponent, mergeProps } from "@solidjs/web";
3
5
  import { splitProps } from "solid-js";
@@ -5,7 +7,11 @@ import { Avatar as Avatar$1 } from "@ark-ui/solid/avatar";
5
7
  //#region src/components/avatar/index.tsx
6
8
  function AvatarRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size", "shape"]);
10
+ const id = useElementId("avatar", () => rest.id);
8
11
  return createComponent(Avatar$1.Root, mergeProps(rest, {
12
+ get id() {
13
+ return id();
14
+ },
9
15
  get "data-size"() {
10
16
  return own.size;
11
17
  },
@@ -14,7 +20,10 @@ function AvatarRoot(props) {
14
20
  }
15
21
  }));
16
22
  }
17
- const Avatar = Object.assign({}, Avatar$1, { Root: AvatarRoot });
23
+ const Avatar = defineFamily(AvatarRoot, {
24
+ ...Avatar$1,
25
+ Root: AvatarRoot
26
+ });
18
27
  injectComponentStyle("avatar");
19
28
  //#endregion
20
29
  export { Avatar };
@@ -7,5 +7,7 @@ export interface AvatarGroupProps extends JSX.HTMLAttributes<HTMLDivElement> {
7
7
  * stylesheet to re-point the avatars' measure. */
8
8
  size?: "sm" | "md" | "lg";
9
9
  }
10
- export declare function AvatarGroup(props: AvatarGroupProps): JSX.Element;
10
+ export declare const AvatarGroup: ((props: AvatarGroupProps) => JSX.Element) & {
11
+ Root: (props: AvatarGroupProps) => JSX.Element;
12
+ };
11
13
  //#endregion
@@ -1,9 +1,10 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
4
5
  //#region src/components/avatar-group/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
- function AvatarGroup(props) {
7
+ const AvatarGroup = withSelfRoot(function AvatarGroup(props) {
7
8
  injectComponentStyle("avatar-group");
8
9
  const [own, rest] = splitProps(props, ["size"]);
9
10
  var _el$ = _tmpl$();
@@ -15,6 +16,6 @@ function AvatarGroup(props) {
15
16
  }
16
17
  }], false);
17
18
  return _el$;
18
- }
19
+ });
19
20
  //#endregion
20
21
  export { AvatarGroup };
@@ -25,5 +25,7 @@ export interface BackTopProps extends JSX.HTMLAttributes<HTMLButtonElement> {
25
25
  * paper, hairline and halo are its; this family owns only the floating
26
26
  * and the entrance.
27
27
  */
28
- export declare function BackTop(props: BackTopProps): JSX.Element;
28
+ export declare const BackTop: ((props: BackTopProps) => JSX.Element) & {
29
+ Root: (props: BackTopProps) => JSX.Element;
30
+ };
29
31
  //#endregion
@@ -1,10 +1,11 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
2
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
1
3
  import { Button } from "../button/index.mjs";
2
4
  import { injectComponentStyle } from "@bysages/core";
3
5
  import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
4
6
  import { createSignal, onCleanup, onMount, splitProps } from "solid-js";
5
7
  //#region src/components/back-top/index.tsx
6
8
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
7
- var _tmpl$2 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m6 14 6-6 6 6">`);
8
9
  /**
9
10
  * A way home: after the page has scrolled past `threshold`, a small
10
11
  * floating control rises at the page's corner and returns the reader to
@@ -19,7 +20,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24
19
20
  * paper, hairline and halo are its; this family owns only the floating
20
21
  * and the entrance.
21
22
  */
22
- function BackTop(props) {
23
+ const BackTop = withSelfRoot(function BackTop(props) {
23
24
  injectComponentStyle("back-top");
24
25
  const [own, rest] = splitProps(props, [
25
26
  "threshold",
@@ -84,10 +85,13 @@ function BackTop(props) {
84
85
  }
85
86
  })));
86
87
  return _el$;
87
- }
88
- /** The single glyph a way-home control needs: one stroke pointing up. */
88
+ });
89
+ /** The single icon a way-home control needs: one stroke pointing up. */
89
90
  function chevronUp() {
90
- return _tmpl$2();
91
+ return iconNode("chevron-up", {
92
+ width: "16",
93
+ height: "16"
94
+ });
91
95
  }
92
96
  //#endregion
93
97
  export { BackTop };
@@ -6,5 +6,7 @@ export interface BadgeProps extends JSX.HTMLAttributes<HTMLSpanElement> {
6
6
  tone?: "ink" | "info" | "success" | "warning" | "danger";
7
7
  variant?: "solid" | "subtle" | "outline";
8
8
  }
9
- export declare function Badge(props: BadgeProps): JSX.Element;
9
+ export declare const Badge: ((props: BadgeProps) => JSX.Element) & {
10
+ Root: (props: BadgeProps) => JSX.Element;
11
+ };
10
12
  //#endregion
@@ -1,9 +1,10 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
4
5
  //#region src/components/badge/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<span>`);
6
- function Badge(props) {
7
+ const Badge = withSelfRoot(function Badge(props) {
7
8
  injectComponentStyle("badge");
8
9
  const [own, rest] = splitProps(props, ["tone", "variant"]);
9
10
  var _el$ = _tmpl$();
@@ -18,6 +19,6 @@ function Badge(props) {
18
19
  }
19
20
  }], false);
20
21
  return _el$;
21
- }
22
+ });
22
23
  //#endregion
23
24
  export { Badge };
@@ -1,10 +1,11 @@
1
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
1
2
  import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
- import { createComponent, mergeProps, spread, template } from "@solidjs/web";
4
+ import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
4
5
  import { splitProps } from "solid-js";
5
6
  //#region src/components/banner/index.tsx
6
7
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
7
- var _tmpl$2 = /* @__PURE__ */ template(`<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>`);
8
+ var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
8
9
  /** A page-level notice, spoken across the full measure: a wash of the
9
10
  * status pigment, one heavier hairline on the leading edge, and room
10
11
  * for actions and a quiet close. Ink is the neutral register; the four
@@ -53,6 +54,9 @@ function Close(props) {
53
54
  "data-scope": "banner",
54
55
  "data-part": "close"
55
56
  }], true);
57
+ insert(_el$2, () => {
58
+ return iconNode("x");
59
+ });
56
60
  return _el$2;
57
61
  }
58
62
  const Banner = Object.assign(Root, {
@@ -8,5 +8,7 @@ export interface BlockUIProps extends JSX.HTMLAttributes<HTMLDivElement> {
8
8
  /** A curtain over content that must wait: the blocked region keeps its
9
9
  * shape and dims under frosted paper while a quiet wheel reports the
10
10
  * wait. Callers own the state; the curtain only answers it. */
11
- export declare function BlockUI(props: BlockUIProps): JSX.Element;
11
+ export declare const BlockUI: ((props: BlockUIProps) => JSX.Element) & {
12
+ Root: (props: BlockUIProps) => JSX.Element;
13
+ };
12
14
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { Spinner } from "../spinner/index.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { createComponent, insert, spread, template } from "@solidjs/web";
@@ -8,7 +9,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<div><!><!>`);
8
9
  /** A curtain over content that must wait: the blocked region keeps its
9
10
  * shape and dims under frosted paper while a quiet wheel reports the
10
11
  * wait. Callers own the state; the curtain only answers it. */
11
- function BlockUI(props) {
12
+ const BlockUI = withSelfRoot(function BlockUI(props) {
12
13
  injectComponentStyle("block-ui");
13
14
  const [own, rest] = splitProps(props, ["blocked", "children"]);
14
15
  var _el$ = _tmpl$2();
@@ -38,6 +39,6 @@ function BlockUI(props) {
38
39
  }
39
40
  }), _el$4);
40
41
  return _el$;
41
- }
42
+ });
42
43
  //#endregion
43
44
  export { BlockUI };
@@ -11,5 +11,7 @@ export interface ButtonProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement>
11
11
  /** Icon-only: the silhouette squares to the control height. */
12
12
  square?: boolean;
13
13
  }
14
- export declare function Button(props: ButtonProps): JSX.Element;
14
+ export declare const Button: ((props: ButtonProps) => JSX.Element) & {
15
+ Root: (props: ButtonProps) => JSX.Element;
16
+ };
15
17
  //#endregion
@@ -1,9 +1,10 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
4
5
  //#region src/components/button/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<button>`);
6
- function Button(props) {
7
+ const Button = withSelfRoot(function Button(props) {
7
8
  injectComponentStyle("button");
8
9
  const [own, rest] = splitProps(props, [
9
10
  "variant",
@@ -38,6 +39,6 @@ function Button(props) {
38
39
  "data-motion": "ink-ripple lit"
39
40
  }], false);
40
41
  return _el$;
41
- }
42
+ });
42
43
  //#endregion
43
44
  export { Button };