@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,11 +1,17 @@
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
- import { splitProps } from "solid-js";
5
+ import { For, splitProps } from "solid-js";
4
6
  import { Tabs as Tabs$1 } from "@ark-ui/solid/tabs";
5
7
  //#region src/components/tabs/index.tsx
6
8
  function TabsRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size", "variant"]);
10
+ const id = useElementId("tabs", () => rest.id);
8
11
  return createComponent(Tabs$1.Root, mergeProps(rest, {
12
+ get id() {
13
+ return id();
14
+ },
9
15
  get "data-size"() {
10
16
  return own.size ?? "md";
11
17
  },
@@ -14,10 +20,60 @@ function TabsRoot(props) {
14
20
  }
15
21
  }));
16
22
  }
17
- const Tabs = {
23
+ function TabsFacade(props) {
24
+ injectComponentStyle("tabs");
25
+ return createComponent(TabsRoot, mergeProps({
26
+ get size() {
27
+ return props.size ?? "md";
28
+ },
29
+ get variant() {
30
+ return props.variant ?? "line";
31
+ },
32
+ get orientation() {
33
+ return props.orientation ?? "horizontal";
34
+ },
35
+ get defaultValue() {
36
+ return props.defaultValue;
37
+ }
38
+ }, () => {
39
+ return props.value === void 0 ? {} : { value: props.value };
40
+ }, {
41
+ onValueChange: (details) => props.onValueChange?.(details.value),
42
+ get children() {
43
+ return [createComponent(Tabs$1.List, { get children() {
44
+ return [createComponent(For, {
45
+ get each() {
46
+ return props.items;
47
+ },
48
+ children: (item) => createComponent(Tabs$1.Trigger, {
49
+ get value() {
50
+ return item.value;
51
+ },
52
+ get children() {
53
+ return item.label;
54
+ }
55
+ })
56
+ }), createComponent(Tabs$1.Indicator, {})];
57
+ } }), createComponent(For, {
58
+ get each() {
59
+ return props.items;
60
+ },
61
+ children: (item) => createComponent(Tabs$1.Content, {
62
+ get value() {
63
+ return item.value;
64
+ },
65
+ get children() {
66
+ return item.content;
67
+ }
68
+ })
69
+ })];
70
+ }
71
+ }));
72
+ }
73
+ const Tabs = defineFamily(TabsFacade, {
18
74
  ...Tabs$1,
19
75
  Root: TabsRoot
20
- };
76
+ });
21
77
  injectComponentStyle("tabs");
22
78
  //#endregion
23
79
  export { Tabs };
@@ -10,7 +10,7 @@ type TagsInputOwnProps = {
10
10
  size?: "sm" | "md" | "lg";
11
11
  };
12
12
  declare function TagsInputRoot(props: TagsInputRootProps & TagsInputOwnProps): import("solid-js").JSX.Element;
13
- export declare const TagsInput: Omit<typeof TagsInput$1, "Root"> & {
13
+ export declare const TagsInput: typeof TagsInputRoot & Omit<typeof TagsInput$1, "Root"> & {
14
14
  Root: typeof TagsInputRoot;
15
15
  };
16
16
  //#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 { TagsInput as TagsInput$1 } from "@ark-ui/solid/tags-input";
5
7
  //#region src/components/tags-input/index.tsx
6
8
  function TagsInputRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size"]);
8
- return createComponent(TagsInput$1.Root, mergeProps(rest, { get "data-size"() {
9
- return own.size ?? "md";
10
- } }));
10
+ const id = useElementId("tags-input", () => rest.id);
11
+ return createComponent(TagsInput$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 TagsInput = {
20
+ const TagsInput = defineFamily(TagsInputRoot, {
13
21
  ...TagsInput$1,
14
22
  Root: TagsInputRoot
15
- };
23
+ });
16
24
  injectComponentStyle("tags-input");
17
25
  //#endregion
18
26
  export { TagsInput };
@@ -13,5 +13,7 @@ export interface TerminalProps extends Omit<JSX.HTMLAttributes<HTMLDivElement>,
13
13
  * component owns only the reading and the caret — each entered line
14
14
  * leaves as an event, and the caller answers through the lines prop,
15
15
  * so history stays theirs to shape. */
16
- export declare function Terminal(props: TerminalProps): JSX.Element;
16
+ export declare const Terminal: ((props: TerminalProps) => JSX.Element) & {
17
+ Root: (props: TerminalProps) => JSX.Element;
18
+ };
17
19
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { createComponent, delegateEvents, effect, insert, ref, setAttribute, spread, template } from "@solidjs/web";
@@ -9,7 +10,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=terminal data-part=line>
9
10
  * component owns only the reading and the caret — each entered line
10
11
  * leaves as an event, and the caller answers through the lines prop,
11
12
  * so history stays theirs to shape. */
12
- function Terminal(props) {
13
+ const Terminal = withSelfRoot(function Terminal(props) {
13
14
  const messages = useComponentMessages();
14
15
  injectComponentStyle("terminal");
15
16
  const [own, rest] = splitProps(props, [
@@ -80,7 +81,7 @@ function Terminal(props) {
80
81
  a !== _p$?.a && setAttribute(_el$5, "aria-label", a);
81
82
  });
82
83
  return _el$;
83
- }
84
+ });
84
85
  delegateEvents(["input", "keydown"]);
85
86
  //#endregion
86
87
  export { Terminal };
@@ -10,5 +10,7 @@ export interface TextareaProps extends JSX.TextareaHTMLAttributes<HTMLTextAreaEl
10
10
  * itself from the `invalid` prop; inside a `Field.Root` it consumes the
11
11
  * field context, picking up the label id, the described-by wiring and
12
12
  * the invalid state for free. Disabled rides the native attribute. */
13
- export declare function Textarea(props: TextareaProps): JSX.Element;
13
+ export declare const Textarea: ((props: TextareaProps) => JSX.Element) & {
14
+ Root: (props: TextareaProps) => JSX.Element;
15
+ };
14
16
  //#endregion
@@ -1,3 +1,4 @@
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 { mergeProps as mergeProps$1, splitProps } from "solid-js";
@@ -9,7 +10,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<textarea>`);
9
10
  * itself from the `invalid` prop; inside a `Field.Root` it consumes the
10
11
  * field context, picking up the label id, the described-by wiring and
11
12
  * the invalid state for free. Disabled rides the native attribute. */
12
- function Textarea(props) {
13
+ const Textarea = withSelfRoot(function Textarea(props) {
13
14
  injectComponentStyle("textarea");
14
15
  const field = useFieldContext();
15
16
  const [own, rest] = splitProps(props, [
@@ -32,6 +33,6 @@ function Textarea(props) {
32
33
  });
33
34
  }, false);
34
35
  return _el$;
35
- }
36
+ });
36
37
  //#endregion
37
38
  export { Textarea };
@@ -1,8 +1,12 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Timer as Timer$1 } from "@ark-ui/solid/timer";
2
3
  //#region src/components/timer/index.d.ts
3
4
  /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
4
5
  * that never jitter, quiet action triggers on the control recipe. The API
5
6
  * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
6
7
  * Context. Unit labels are plain content, not a machine part. */
7
- export declare const Timer: typeof Timer$1;
8
+ declare function TimerRoot(props: ComponentProps<typeof Timer$1.Root>): import("solid-js").JSX.Element;
9
+ export declare const Timer: typeof TimerRoot & Omit<typeof Timer$1, "Root"> & {
10
+ Root: typeof TimerRoot;
11
+ };
8
12
  //#endregion
@@ -1,11 +1,23 @@
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";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Timer as Timer$1 } from "@ark-ui/solid/timer";
3
6
  //#region src/components/timer/index.ts
4
7
  /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
5
8
  * that never jitter, quiet action triggers on the control recipe. The API
6
9
  * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
7
10
  * Context. Unit labels are plain content, not a machine part. */
8
- const Timer = Timer$1;
11
+ function TimerRoot(props) {
12
+ const id = useElementId("timer", () => props.id);
13
+ return createComponent(Timer$1.Root, mergeProps(props, { get id() {
14
+ return id();
15
+ } }));
16
+ }
17
+ const Timer = defineFamily(TimerRoot, {
18
+ ...Timer$1,
19
+ Root: TimerRoot
20
+ });
9
21
  injectComponentStyle("timer");
10
22
  //#endregion
11
23
  export { Timer };
@@ -1,3 +1,4 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/solid/toast";
2
3
  //#region src/components/toast/index.d.ts
3
4
  /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
@@ -5,7 +6,12 @@ import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/so
5
6
  * translate variables carry the slide. The API is Ark's own — Toaster,
6
7
  * Root, Title, Description, ActionTrigger, CloseTrigger, plus
7
8
  * 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;
9
+ declare function ToastRoot(props: ComponentProps<typeof Toast$1.Root>): import("solid-js").JSX.Element;
10
+ export declare const Toast: typeof ToastRoot & Omit<typeof Toast$1, "Root"> & {
11
+ Root: typeof ToastRoot;
12
+ };
13
+ export declare const Toaster: ((props: import("@ark-ui/solid/toast").ToasterProps) => import("solid-js").JSX.Element) & {
14
+ Root: (props: import("@ark-ui/solid/toast").ToasterProps) => import("solid-js").JSX.Element;
15
+ };
10
16
  //#endregion
11
17
  export { type CreateToasterReturn, createToaster };
@@ -1,4 +1,7 @@
1
+ import { n as withSelfRoot, t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/solid/toast";
3
6
  //#region src/components/toast/index.ts
4
7
  /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
@@ -6,8 +9,17 @@ import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/s
6
9
  * translate variables carry the slide. The API is Ark's own — Toaster,
7
10
  * Root, Title, Description, ActionTrigger, CloseTrigger, plus
8
11
  * createToaster. */
9
- const Toast = Toast$1;
10
- const Toaster = Toaster$1;
12
+ function ToastRoot(props) {
13
+ const id = useElementId("toast", () => props.id);
14
+ return createComponent(Toast$1.Root, mergeProps(props, { get id() {
15
+ return id();
16
+ } }));
17
+ }
18
+ const Toast = defineFamily(ToastRoot, {
19
+ ...Toast$1,
20
+ Root: ToastRoot
21
+ });
22
+ const Toaster = withSelfRoot(Toaster$1);
11
23
  injectComponentStyle("toast");
12
24
  //#endregion
13
25
  export { Toast, Toaster, createToaster };
@@ -1,2 +1,11 @@
1
- import { t as Toc } from "../../index-DdsnfV4f.mjs";
2
- export { Toc };
1
+ import { ComponentProps } from "solid-js";
2
+ import { Toc as Toc$1 } from "@ark-ui/solid/toc";
3
+ //#region src/components/toc/index.d.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
+ declare function TocRoot(props: ComponentProps<typeof Toc$1.Root>): import("solid-js").JSX.Element;
8
+ export declare const Toc: typeof TocRoot & Omit<typeof Toc$1, "Root"> & {
9
+ Root: typeof TocRoot;
10
+ };
11
+ //#endregion
@@ -1,2 +1,2 @@
1
- import { t as Toc } from "../../toc-CZmYEaQR.mjs";
1
+ import { t as Toc } from "../../toc-DYKaKQ_X.mjs";
2
2
  export { Toc };
@@ -1,7 +1,11 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
2
3
  //#region src/components/toggle/index.d.ts
3
4
  /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
4
5
  * settles into the flat ink fill while pressed on. The API is Ark's own —
5
6
  * Root, Indicator. */
6
- export declare const Toggle: typeof Toggle$1;
7
+ declare function ToggleRoot(props: ComponentProps<typeof Toggle$1.Root>): import("solid-js").JSX.Element;
8
+ export declare const Toggle: typeof ToggleRoot & Omit<typeof Toggle$1, "Root"> & {
9
+ Root: typeof ToggleRoot;
10
+ };
7
11
  //#endregion
@@ -1,10 +1,22 @@
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";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Toggle as Toggle$1 } from "@ark-ui/solid/toggle";
3
6
  //#region src/components/toggle/index.ts
4
7
  /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
5
8
  * settles into the flat ink fill while pressed on. The API is Ark's own —
6
9
  * Root, Indicator. */
7
- const Toggle = Toggle$1;
10
+ function ToggleRoot(props) {
11
+ const id = useElementId("toggle", () => props.id);
12
+ return createComponent(Toggle$1.Root, mergeProps(props, { get id() {
13
+ return id();
14
+ } }));
15
+ }
16
+ const Toggle = defineFamily(ToggleRoot, {
17
+ ...Toggle$1,
18
+ Root: ToggleRoot
19
+ });
8
20
  injectComponentStyle("toggle");
9
21
  //#endregion
10
22
  export { Toggle };
@@ -8,7 +8,7 @@ type ToggleGroupOwnProps = {
8
8
  size?: "sm" | "md" | "lg";
9
9
  };
10
10
  declare function ToggleGroupRoot(props: ToggleGroupRootProps & ToggleGroupOwnProps): import("solid-js").JSX.Element;
11
- export declare const ToggleGroup: Omit<typeof ToggleGroup$1, "Root"> & {
11
+ export declare const ToggleGroup: typeof ToggleGroupRoot & Omit<typeof ToggleGroup$1, "Root"> & {
12
12
  Root: typeof ToggleGroupRoot;
13
13
  };
14
14
  //#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 { ToggleGroup as ToggleGroup$1 } from "@ark-ui/solid/toggle-group";
5
7
  //#region src/components/toggle-group/index.tsx
6
8
  function ToggleGroupRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size"]);
8
- return createComponent(ToggleGroup$1.Root, mergeProps(rest, { get "data-size"() {
9
- return own.size ?? "md";
10
- } }));
10
+ const id = useElementId("toggle-group", () => rest.id);
11
+ return createComponent(ToggleGroup$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 ToggleGroup = {
20
+ const ToggleGroup = defineFamily(ToggleGroupRoot, {
13
21
  ...ToggleGroup$1,
14
22
  Root: ToggleGroupRoot
15
- };
23
+ });
16
24
  injectComponentStyle("toggle-group");
17
25
  //#endregion
18
26
  export { ToggleGroup };
@@ -13,5 +13,7 @@ export interface ToolbarProps extends JSX.HTMLAttributes<HTMLDivElement> {
13
13
  /** A workbench rail: the start tools at the leading edge, the end tools
14
14
  * at the trailing, the rail itself carrying the toolbar role so
15
15
  * assistive tech reads it as one group of commands. */
16
- export declare function Toolbar(props: ToolbarProps): JSX.Element;
16
+ export declare const Toolbar: ((props: ToolbarProps) => JSX.Element) & {
17
+ Root: (props: ToolbarProps) => JSX.Element;
18
+ };
17
19
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { createComponent, insert, spread, template } from "@solidjs/web";
3
4
  import { Show, splitProps } from "solid-js";
@@ -7,7 +8,7 @@ var _tmpl$2 = /* @__PURE__ */ template(`<div><div data-scope=toolbar data-part=g
7
8
  /** A workbench rail: the start tools at the leading edge, the end tools
8
9
  * at the trailing, the rail itself carrying the toolbar role so
9
10
  * assistive tech reads it as one group of commands. */
10
- function Toolbar(props) {
11
+ const Toolbar = withSelfRoot(function Toolbar(props) {
11
12
  injectComponentStyle("toolbar");
12
13
  const [own, rest] = splitProps(props, [
13
14
  "label",
@@ -41,6 +42,6 @@ function Toolbar(props) {
41
42
  }
42
43
  }), null);
43
44
  return _el$;
44
- }
45
+ });
45
46
  //#endregion
46
47
  export { Toolbar };
@@ -1,7 +1,22 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
2
3
  //#region src/components/tooltip/index.d.ts
3
4
  /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
4
5
  * vessel — a tight chip of ink that dissolves in over its anchor. The
5
6
  * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
6
- export declare const Tooltip: typeof Tooltip$1;
7
+ declare function TooltipRoot(props: ComponentProps<typeof Tooltip$1.Root>): import("solid-js").JSX.Element;
8
+ type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
9
+ export interface TooltipFacadeProps {
10
+ open?: boolean;
11
+ defaultOpen?: boolean;
12
+ trigger: string | Element;
13
+ content: string;
14
+ disabled?: boolean;
15
+ placement?: TooltipPlacement;
16
+ onOpenChange?: (open: boolean) => void;
17
+ }
18
+ declare function TooltipFacade(props: TooltipFacadeProps): import("solid-js").JSX.Element;
19
+ export declare const Tooltip: typeof TooltipFacade & Omit<typeof Tooltip$1, "Root"> & {
20
+ Root: typeof TooltipRoot;
21
+ };
7
22
  //#endregion
@@ -1,10 +1,63 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
3
+ import { n as withElementProps, t as isElement } from "../../element-dGIhOTJ6.mjs";
1
4
  import { injectComponentStyle } from "@bysages/core";
5
+ import { createComponent, memo, mergeProps } from "@solidjs/web";
6
+ import { createComponent as createComponent$1, mergeProps as mergeProps$1 } from "solid-js";
2
7
  import { Tooltip as Tooltip$1 } from "@ark-ui/solid/tooltip";
3
- //#region src/components/tooltip/index.ts
8
+ //#region src/components/tooltip/index.tsx
4
9
  /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
5
10
  * vessel — a tight chip of ink that dissolves in over its anchor. The
6
11
  * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
7
- const Tooltip = Tooltip$1;
12
+ function TooltipRoot(props) {
13
+ const id = useElementId("tooltip", () => props.id);
14
+ return createComponent$1(Tooltip$1.Root, mergeProps$1(props, { get id() {
15
+ return id();
16
+ } }));
17
+ }
18
+ function TooltipFacade(props) {
19
+ injectComponentStyle("tooltip");
20
+ const triggerElement = () => isElement(props.trigger) ? props.trigger : void 0;
21
+ const triggerChildren = () => triggerElement() ? void 0 : props.trigger;
22
+ const triggerAsChild = (propsFn) => {
23
+ const trigger = triggerElement();
24
+ return trigger ? withElementProps(trigger, propsFn()) : props.trigger;
25
+ };
26
+ return createComponent(TooltipRoot, mergeProps(() => {
27
+ return props.open === void 0 ? {} : { open: props.open };
28
+ }, () => {
29
+ return props.defaultOpen === void 0 ? {} : { defaultOpen: props.defaultOpen };
30
+ }, () => {
31
+ return props.placement === void 0 ? {} : { positioning: { placement: props.placement } };
32
+ }, {
33
+ onOpenChange: (details) => props.onOpenChange?.(details.open),
34
+ get children() {
35
+ return [createComponent(Tooltip$1.Trigger, {
36
+ get disabled() {
37
+ return props.disabled;
38
+ },
39
+ get asChild() {
40
+ return triggerElement() ? triggerAsChild : void 0;
41
+ },
42
+ get children() {
43
+ return triggerChildren();
44
+ }
45
+ }), createComponent(Tooltip$1.Positioner, { get children() {
46
+ return createComponent(Tooltip$1.Content, { get children() {
47
+ return [createComponent(Tooltip$1.Arrow, { get children() {
48
+ return createComponent(Tooltip$1.ArrowTip, {});
49
+ } }), memo(() => {
50
+ return props.content;
51
+ })];
52
+ } });
53
+ } })];
54
+ }
55
+ }));
56
+ }
57
+ const Tooltip = defineFamily(TooltipFacade, {
58
+ ...Tooltip$1,
59
+ Root: TooltipRoot
60
+ });
8
61
  injectComponentStyle("tooltip");
9
62
  //#endregion
10
63
  export { Tooltip };
@@ -1,4 +1,5 @@
1
- import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, useTour } from "@ark-ui/solid/tour";
1
+ import { JSX } from "solid-js";
2
+ import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails, UseTourProps, UseTourReturn } from "@ark-ui/solid/tour";
2
3
  //#region src/components/tour/index.d.ts
3
4
  /** Ark's Tour, dressed in the paper-and-ink system: a dimmed page where
4
5
  * the spotlight alone keeps the focus halo, and the anchored card rides
@@ -6,6 +7,18 @@ import { Tour as Tour$1, TourInteractOutsideEvent, TourPointerDownOutsideEvent,
6
7
  * Spotlight, Positioner, Content, Arrow, ArrowTip, Title, Description,
7
8
  * ProgressText, Control, Actions, ActionTrigger, CloseTrigger, plus
8
9
  * useTour. */
9
- export declare const Tour: typeof Tour$1;
10
+ export interface TourFacadeProps {
11
+ tour: UseTourReturn;
12
+ trigger?: string;
13
+ /** Replaces the standard card body when supplied. */
14
+ content?: JSX.Element;
15
+ children?: JSX.Element;
16
+ }
17
+ declare function TourFacade(props: TourFacadeProps): JSX.Element;
18
+ export declare const Tour: typeof TourFacade & Omit<typeof Tour$1, "Root"> & {
19
+ Root: typeof Tour$1.Root;
20
+ };
21
+ /** Tour machines are created by useTour, so the stable id belongs there. */
22
+ export declare function useTour(props?: UseTourProps): UseTourReturn;
10
23
  //#endregion
11
- export { type TourInteractOutsideEvent, type TourPointerDownOutsideEvent, type TourStepDetails, useTour };
24
+ export type { TourInteractOutsideEvent, TourPointerDownOutsideEvent, TourStepDetails };
@@ -1,13 +1,78 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
3
+ import { Button } from "../button/index.mjs";
1
4
  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;
5
+ import { createComponent, memo } from "@solidjs/web";
6
+ import { Show, mergeProps as mergeProps$1 } from "solid-js";
7
+ import { Tour as Tour$1, useTour as useTour$1 } from "@ark-ui/solid/tour";
8
+ //#region src/components/tour/index.tsx
9
+ function TourFacade(props) {
10
+ injectComponentStyle("tour");
11
+ return createComponent(Tour$1.Root, {
12
+ get tour() {
13
+ return props.tour;
14
+ },
15
+ get children() {
16
+ return [
17
+ createComponent(Button, {
18
+ size: "sm",
19
+ onClick: () => props.tour().start(),
20
+ get children() {
21
+ return props.trigger ?? "Start tour";
22
+ }
23
+ }),
24
+ memo(() => {
25
+ return props.children;
26
+ }),
27
+ createComponent(Tour$1.Backdrop, {}),
28
+ createComponent(Tour$1.Spotlight, {}),
29
+ createComponent(Tour$1.Positioner, { get children() {
30
+ return createComponent(Tour$1.Content, { get children() {
31
+ return createComponent(Show, {
32
+ get when() {
33
+ return props.content;
34
+ },
35
+ get fallback() {
36
+ return createComponent(TourCardBody, {});
37
+ },
38
+ get children() {
39
+ return props.content;
40
+ }
41
+ });
42
+ } });
43
+ } })
44
+ ];
45
+ }
46
+ });
47
+ }
48
+ function TourCardBody() {
49
+ return [
50
+ createComponent(Tour$1.ProgressText, {}),
51
+ createComponent(Tour$1.Title, {}),
52
+ createComponent(Tour$1.Description, {}),
53
+ createComponent(Tour$1.Control, { get children() {
54
+ return createComponent(Tour$1.Actions, { children: (actions) => memo(() => {
55
+ return actions().map((action) => createComponent(Tour$1.ActionTrigger, {
56
+ action,
57
+ get children() {
58
+ return action.label;
59
+ }
60
+ }));
61
+ }) });
62
+ } })
63
+ ];
64
+ }
65
+ const Tour = defineFamily(TourFacade, {
66
+ ...Tour$1,
67
+ Root: Tour$1.Root
68
+ });
69
+ /** Tour machines are created by useTour, so the stable id belongs there. */
70
+ function useTour(props = {}) {
71
+ const id = useElementId("tour", () => props.id);
72
+ return useTour$1(mergeProps$1(props, { get id() {
73
+ return id();
74
+ } }));
75
+ }
11
76
  injectComponentStyle("tour");
12
77
  //#endregion
13
78
  export { Tour, useTour };
@@ -1,3 +1,4 @@
1
+ import { Checkbox } from "../checkbox/index.mjs";
1
2
  import { JSX } from "solid-js";
2
3
  //#region src/components/transfer/index.d.ts
3
4
  export interface TransferItem {
@@ -20,5 +21,6 @@ export interface TransferProps extends JSX.HTMLAttributes<HTMLDivElement> {
20
21
  * `data` stays on the left. `searchable` adds a filter line to each
21
22
  * panel.
22
23
  */
23
- export declare function Transfer(props: TransferProps): JSX.Element;
24
+ declare function TransferImpl(props: TransferProps): JSX.Element;
25
+ export declare const Transfer: typeof TransferImpl & typeof Checkbox;
24
26
  //#endregion