@bysages/solid 0.3.0 → 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 (273) hide show
  1. package/dist/{ai-response-ClGGptX3.mjs → ai-response-D2uINBIi.mjs} +17 -7
  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 +14 -16
  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 +41 -37
  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 +59 -46
  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 +15 -2
  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 +9 -3
  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/breadcrumb/index.mjs +5 -5
  46. package/dist/components/button/index.d.mts +3 -1
  47. package/dist/components/button/index.mjs +3 -2
  48. package/dist/components/calendar/index.d.mts +3 -1
  49. package/dist/components/calendar/index.mjs +29 -21
  50. package/dist/components/carousel/index.d.mts +5 -1
  51. package/dist/components/carousel/index.mjs +13 -1
  52. package/dist/components/cascade-select/index.d.mts +3 -1
  53. package/dist/components/cascade-select/index.mjs +82 -74
  54. package/dist/components/checkbox/index.d.mts +1 -1
  55. package/dist/components/checkbox/index.mjs +13 -5
  56. package/dist/components/checkbox-group/index.d.mts +4 -9
  57. package/dist/components/checkbox-group/index.mjs +65 -68
  58. package/dist/components/chip/index.d.mts +3 -1
  59. package/dist/components/chip/index.mjs +3 -2
  60. package/dist/components/client-only/index.d.mts +7 -2
  61. package/dist/components/client-only/index.mjs +8 -1
  62. package/dist/components/clipboard/index.d.mts +1 -1
  63. package/dist/components/clipboard/index.mjs +13 -5
  64. package/dist/components/collapsible/index.d.mts +15 -1
  65. package/dist/components/collapsible/index.mjs +39 -2
  66. package/dist/components/color-picker/index.d.mts +13 -2
  67. package/dist/components/color-picker/index.mjs +95 -8
  68. package/dist/components/combobox/index.d.mts +24 -1
  69. package/dist/components/combobox/index.mjs +129 -8
  70. package/dist/components/command/index.d.mts +4 -1
  71. package/dist/components/command/index.mjs +24 -4
  72. package/dist/components/comment/index.d.mts +3 -1
  73. package/dist/components/comment/index.mjs +3 -2
  74. package/dist/components/config-provider/index.d.mts +7 -2
  75. package/dist/components/config-provider/index.mjs +6 -3
  76. package/dist/components/container/index.d.mts +3 -1
  77. package/dist/components/container/index.mjs +3 -2
  78. package/dist/components/data-view/index.d.mts +3 -1
  79. package/dist/components/data-view/index.mjs +13 -8
  80. package/dist/components/date-input/index.d.mts +1 -1
  81. package/dist/components/date-input/index.mjs +13 -5
  82. package/dist/components/date-picker/index.d.mts +1 -1
  83. package/dist/components/date-picker/index.mjs +13 -5
  84. package/dist/components/deferred-content/index.d.mts +3 -1
  85. package/dist/components/deferred-content/index.mjs +3 -2
  86. package/dist/components/descriptions/index.d.mts +7 -0
  87. package/dist/components/descriptions/index.mjs +21 -2
  88. package/dist/components/dialog/index.d.mts +17 -1
  89. package/dist/components/dialog/index.mjs +84 -2
  90. package/dist/components/download-trigger/index.d.mts +7 -2
  91. package/dist/components/download-trigger/index.mjs +8 -1
  92. package/dist/components/drawer/index.d.mts +17 -1
  93. package/dist/components/drawer/index.mjs +83 -2
  94. package/dist/components/dynamic-input/index.d.mts +3 -1
  95. package/dist/components/dynamic-input/index.mjs +15 -7
  96. package/dist/components/editable/index.d.mts +1 -1
  97. package/dist/components/editable/index.mjs +13 -5
  98. package/dist/components/ellipsis/index.d.mts +3 -1
  99. package/dist/components/ellipsis/index.mjs +3 -2
  100. package/dist/components/field/index.d.mts +5 -1
  101. package/dist/components/field/index.mjs +13 -1
  102. package/dist/components/fieldset/index.d.mts +5 -1
  103. package/dist/components/fieldset/index.mjs +13 -1
  104. package/dist/components/file-upload/index.d.mts +1 -1
  105. package/dist/components/file-upload/index.mjs +24 -6
  106. package/dist/components/float-button/index.mjs +3 -1
  107. package/dist/components/floating-panel/index.d.mts +5 -1
  108. package/dist/components/floating-panel/index.mjs +13 -1
  109. package/dist/components/focus-trap/index.d.mts +7 -2
  110. package/dist/components/focus-trap/index.mjs +8 -1
  111. package/dist/components/form/index.d.mts +1 -1
  112. package/dist/components/form/index.mjs +10 -4
  113. package/dist/components/frame/index.d.mts +6 -1
  114. package/dist/components/frame/index.mjs +10 -1
  115. package/dist/components/grid/index.d.mts +3 -1
  116. package/dist/components/grid/index.mjs +3 -2
  117. package/dist/components/highlight/index.d.mts +3 -1
  118. package/dist/components/highlight/index.mjs +2 -1
  119. package/dist/components/hover-card/index.d.mts +19 -1
  120. package/dist/components/hover-card/index.mjs +91 -2
  121. package/dist/components/icon/index.d.mts +8 -7
  122. package/dist/components/icon/index.mjs +4 -3
  123. package/dist/components/image/index.d.mts +8 -2
  124. package/dist/components/image/index.mjs +40 -33
  125. package/dist/components/image-cropper/index.d.mts +5 -1
  126. package/dist/components/image-cropper/index.mjs +13 -1
  127. package/dist/components/image-viewer/index.d.mts +2 -19
  128. package/dist/components/image-viewer/index.mjs +3 -151
  129. package/dist/components/input/index.d.mts +3 -1
  130. package/dist/components/input/index.mjs +1 -1
  131. package/dist/components/json-tree-view/index.d.mts +5 -1
  132. package/dist/components/json-tree-view/index.mjs +22 -2
  133. package/dist/components/kbd/index.d.mts +3 -1
  134. package/dist/components/kbd/index.mjs +3 -2
  135. package/dist/components/layout/index.mjs +8 -4
  136. package/dist/components/link/index.d.mts +3 -1
  137. package/dist/components/link/index.mjs +3 -2
  138. package/dist/components/list/index.d.mts +2 -1
  139. package/dist/components/list/index.mjs +35 -26
  140. package/dist/components/listbox/index.d.mts +1 -1
  141. package/dist/components/listbox/index.mjs +13 -5
  142. package/dist/components/marquee/index.d.mts +5 -1
  143. package/dist/components/marquee/index.mjs +13 -1
  144. package/dist/components/masonry/index.d.mts +3 -1
  145. package/dist/components/masonry/index.mjs +3 -2
  146. package/dist/components/media-player/index.d.mts +2 -0
  147. package/dist/components/media-player/index.mjs +2 -0
  148. package/dist/components/mentions/index.d.mts +1 -1
  149. package/dist/components/mentions/index.mjs +2 -2
  150. package/dist/components/menu/index.d.mts +21 -1
  151. package/dist/components/menu/index.mjs +62 -5
  152. package/dist/components/menubar/index.d.mts +3 -1
  153. package/dist/components/menubar/index.mjs +31 -9
  154. package/dist/components/navigation-menu/index.d.mts +5 -1
  155. package/dist/components/navigation-menu/index.mjs +13 -1
  156. package/dist/components/number-input/index.d.mts +1 -1
  157. package/dist/components/number-input/index.mjs +13 -5
  158. package/dist/components/order-list/index.d.mts +3 -1
  159. package/dist/components/order-list/index.mjs +79 -67
  160. package/dist/components/pagination/index.d.mts +1 -1
  161. package/dist/components/pagination/index.mjs +13 -5
  162. package/dist/components/password-input/index.d.mts +1 -1
  163. package/dist/components/password-input/index.mjs +13 -5
  164. package/dist/components/pin-input/index.d.mts +1 -1
  165. package/dist/components/pin-input/index.mjs +13 -5
  166. package/dist/components/popconfirm/index.d.mts +3 -1
  167. package/dist/components/popconfirm/index.mjs +16 -8
  168. package/dist/components/popover/index.d.mts +19 -1
  169. package/dist/components/popover/index.mjs +91 -2
  170. package/dist/components/presence/index.d.mts +10 -2
  171. package/dist/components/presence/index.mjs +9 -1
  172. package/dist/components/progress/index.d.mts +1 -1
  173. package/dist/components/progress/index.mjs +13 -5
  174. package/dist/components/progress-group/index.d.mts +3 -1
  175. package/dist/components/progress-group/index.mjs +4 -3
  176. package/dist/components/qr-code/index.d.mts +5 -1
  177. package/dist/components/qr-code/index.mjs +13 -1
  178. package/dist/components/radio-group/index.d.mts +1 -1
  179. package/dist/components/radio-group/index.mjs +13 -5
  180. package/dist/components/rating-group/index.d.mts +2 -2
  181. package/dist/components/rating-group/index.mjs +13 -5
  182. package/dist/components/result/index.d.mts +1 -1
  183. package/dist/components/result/index.mjs +5 -3
  184. package/dist/components/scroll-area/index.d.mts +5 -1
  185. package/dist/components/scroll-area/index.mjs +13 -1
  186. package/dist/components/segment-group/index.d.mts +1 -1
  187. package/dist/components/segment-group/index.mjs +11 -6
  188. package/dist/components/select/index.d.mts +2 -2
  189. package/dist/components/select/index.mjs +1 -1
  190. package/dist/components/separator/index.d.mts +3 -1
  191. package/dist/components/separator/index.mjs +3 -2
  192. package/dist/components/signature-pad/index.d.mts +5 -1
  193. package/dist/components/signature-pad/index.mjs +13 -1
  194. package/dist/components/skeleton/index.d.mts +3 -1
  195. package/dist/components/skeleton/index.mjs +3 -2
  196. package/dist/components/slider/index.d.mts +1 -1
  197. package/dist/components/slider/index.mjs +13 -5
  198. package/dist/components/spinner/index.d.mts +3 -1
  199. package/dist/components/spinner/index.mjs +6 -3
  200. package/dist/components/split-button/index.d.mts +3 -1
  201. package/dist/components/split-button/index.mjs +19 -4
  202. package/dist/components/splitter/index.d.mts +5 -1
  203. package/dist/components/splitter/index.mjs +13 -1
  204. package/dist/components/spotlight/index.d.mts +3 -1
  205. package/dist/components/spotlight/index.mjs +3 -2
  206. package/dist/components/stack/index.d.mts +3 -1
  207. package/dist/components/stack/index.mjs +6 -5
  208. package/dist/components/steps/index.d.mts +25 -3
  209. package/dist/components/steps/index.mjs +73 -8
  210. package/dist/components/swap/index.d.mts +5 -1
  211. package/dist/components/swap/index.mjs +13 -1
  212. package/dist/components/switch/index.d.mts +1 -1
  213. package/dist/components/switch/index.mjs +13 -5
  214. package/dist/components/table/index.d.mts +3 -1
  215. package/dist/components/table/index.mjs +194 -164
  216. package/dist/components/tabs/index.d.mts +20 -2
  217. package/dist/components/tabs/index.mjs +59 -3
  218. package/dist/components/tags-input/index.d.mts +1 -1
  219. package/dist/components/tags-input/index.mjs +13 -5
  220. package/dist/components/terminal/index.d.mts +3 -1
  221. package/dist/components/terminal/index.mjs +6 -3
  222. package/dist/components/textarea/index.d.mts +3 -1
  223. package/dist/components/textarea/index.mjs +3 -2
  224. package/dist/components/timer/index.d.mts +5 -1
  225. package/dist/components/timer/index.mjs +13 -1
  226. package/dist/components/toast/index.d.mts +8 -2
  227. package/dist/components/toast/index.mjs +14 -2
  228. package/dist/components/toc/index.d.mts +5 -1
  229. package/dist/components/toc/index.mjs +1 -9
  230. package/dist/components/toggle/index.d.mts +5 -1
  231. package/dist/components/toggle/index.mjs +13 -1
  232. package/dist/components/toggle-group/index.d.mts +1 -1
  233. package/dist/components/toggle-group/index.mjs +13 -5
  234. package/dist/components/toolbar/index.d.mts +3 -1
  235. package/dist/components/toolbar/index.mjs +3 -2
  236. package/dist/components/tooltip/index.d.mts +16 -1
  237. package/dist/components/tooltip/index.mjs +55 -2
  238. package/dist/components/tour/index.d.mts +16 -3
  239. package/dist/components/tour/index.mjs +74 -9
  240. package/dist/components/transfer/index.d.mts +3 -1
  241. package/dist/components/transfer/index.mjs +68 -54
  242. package/dist/components/tree-select/index.d.mts +3 -1
  243. package/dist/components/tree-select/index.mjs +45 -35
  244. package/dist/components/tree-view/index.d.mts +1 -1
  245. package/dist/components/tree-view/index.mjs +26 -5
  246. package/dist/components/user/index.d.mts +3 -1
  247. package/dist/components/user/index.mjs +8 -2
  248. package/dist/components/virtual-list/index.d.mts +3 -1
  249. package/dist/components/virtual-list/index.mjs +14 -9
  250. package/dist/components/watermark/index.d.mts +3 -1
  251. package/dist/components/watermark/index.mjs +4 -3
  252. package/dist/element-dGIhOTJ6.mjs +16 -0
  253. package/dist/family-Cmd8HEyK.mjs +11 -0
  254. package/dist/icon-DTqmJCd5.mjs +48 -0
  255. package/dist/id-2ygNzPHF.mjs +12 -0
  256. package/dist/image-viewer-B9A5lXsk.mjs +228 -0
  257. package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
  258. package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
  259. package/dist/index-DhripUtf.d.mts +39 -0
  260. package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
  261. package/dist/{index-IfofF-SW.d.mts → index-nFXK_8hJ.d.mts} +53 -23
  262. package/dist/index-wW28BYf1.d.mts +124 -0
  263. package/dist/index.d.mts +22 -21
  264. package/dist/index.mjs +14 -13
  265. package/dist/{input-DoFQ7RXh.mjs → input-CPAJdwDb.mjs} +3 -2
  266. package/dist/media-player-BC8D_d29.mjs +796 -0
  267. package/dist/{mentions-f5Js_2W7.mjs → mentions-CeG5u8Qm.mjs} +67 -51
  268. package/dist/select-7YjMSBGx.mjs +292 -0
  269. package/dist/toc-DYKaKQ_X.mjs +31 -0
  270. package/dist/use-component-messages-C4SCVYjD.mjs +17 -0
  271. package/package.json +3 -3
  272. package/dist/chevron-D5RzcayK.mjs +0 -9
  273. package/dist/select-CHaXbzLX.mjs +0 -115
@@ -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,9 +1,11 @@
1
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
2
+ import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, mergeProps, spread, template } from "@solidjs/web";
4
+ import { createComponent, insert, mergeProps, spread, template } from "@solidjs/web";
3
5
  import { splitProps } from "solid-js";
4
6
  //#region src/components/banner/index.tsx
5
7
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
- 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>`);
7
9
  /** A page-level notice, spoken across the full measure: a wash of the
8
10
  * status pigment, one heavier hairline on the leading edge, and room
9
11
  * for actions and a quiet close. Ink is the neutral register; the four
@@ -40,17 +42,21 @@ const Actions = part("Actions", "div");
40
42
  * consumer's state. */
41
43
  function Close(props) {
42
44
  const [own, rest] = splitProps(props, ["type"]);
45
+ const messages = useComponentMessages();
43
46
  var _el$2 = _tmpl$2();
44
47
  spread(_el$2, [rest, {
45
48
  get type() {
46
49
  return own.type ?? "button";
47
50
  },
48
51
  get "aria-label"() {
49
- return rest["aria-label"] ?? "Dismiss";
52
+ return rest["aria-label"] ?? messages().banner.dismiss;
50
53
  },
51
54
  "data-scope": "banner",
52
55
  "data-part": "close"
53
56
  }], true);
57
+ insert(_el$2, () => {
58
+ return iconNode("x");
59
+ });
54
60
  return _el$2;
55
61
  }
56
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 };
@@ -1,14 +1,14 @@
1
+ import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { createComponent, mergeProps, spread, template } from "@solidjs/web";
3
4
  import { mergeProps as mergeProps$1 } from "solid-js";
4
5
  //#region src/components/breadcrumb/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<span>`);
6
- /** A trail of waymarks: Root wraps the nav, List the ordered trail, and
7
- * each Item carries a Link — or the Current page — parted by a quiet
8
- * Separator. Links take href and the rest through attributes. */
9
7
  function part(name, tag, extra = {}) {
10
8
  return ((props) => {
11
- return createComponent(tag, mergeProps(extra, props, {
9
+ const messages = useComponentMessages();
10
+ const partExtra = typeof extra === "function" ? extra(messages()) : extra;
11
+ return createComponent(tag, mergeProps(partExtra, props, {
12
12
  "data-scope": "breadcrumb",
13
13
  get "data-part"() {
14
14
  return name.toLowerCase();
@@ -16,7 +16,7 @@ function part(name, tag, extra = {}) {
16
16
  }));
17
17
  });
18
18
  }
19
- const Root = part("Root", "nav", { "aria-label": "Breadcrumb" });
19
+ const Root = part("Root", "nav", (messages) => ({ "aria-label": messages.breadcrumb.label }));
20
20
  const List = part("List", "ol");
21
21
  const Item = part("Item", "li");
22
22
  const Link = part("Link", "a");
@@ -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 };
@@ -1,3 +1,4 @@
1
+ import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
1
2
  import { JSX } from "solid-js";
2
3
  import { DatePickerRootProps } from "@ark-ui/solid/date-picker";
3
4
  //#region src/components/calendar/index.d.ts
@@ -13,5 +14,6 @@ export interface CalendarProps extends JSX.HTMLAttributes<HTMLDivElement> {
13
14
  * title zooms out through month and year grids; the grids themselves
14
15
  * are the shared machinery — value, range selection, and focus ride
15
16
  * Ark's own contract. */
16
- export declare function Calendar(props: CalendarProps): JSX.Element;
17
+ declare function CalendarImpl(props: CalendarProps): JSX.Element;
18
+ export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
17
19
  //#endregion
@@ -1,32 +1,36 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
3
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
4
+ import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
1
5
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, effect, insert, memo, mergeProps, readShallow, spread, style, template } from "@solidjs/web";
6
+ import { createComponent, insert, memo, mergeProps, spread, template } from "@solidjs/web";
3
7
  import { For, Show, splitProps } from "solid-js";
4
8
  import { DatePicker } from "@ark-ui/solid/date-picker";
5
9
  //#region src/components/calendar/index.tsx
6
- var _tmpl$ = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 aria-hidden=true><path d="m9 5 7 7-7 7">`);
7
- var _tmpl$2 = /* @__PURE__ */ template(`<div data-scope=calendar data-part=header>`);
8
- var _tmpl$3 = /* @__PURE__ */ template(`<div><!><!>`);
10
+ var _tmpl$ = /* @__PURE__ */ template(`<div data-scope=calendar data-part=header>`);
11
+ var _tmpl$2 = /* @__PURE__ */ template(`<div><!><!>`);
9
12
  function chevron(dir) {
10
- var _el$ = _tmpl$();
11
- effect(() => readShallow(dir === "left" ? { transform: "rotate(180deg)" } : void 0), (_v$, _$p) => {
12
- style(_el$, _v$, _$p);
13
+ return iconNode(dir === "left" ? "chevron-left" : "chevron-right", {
14
+ width: "16",
15
+ height: "16"
13
16
  });
14
- return _el$;
15
17
  }
16
18
  /** The date-picker's month grid, standing on the page without its
17
19
  * popup: always open, the trigger gone, the vessel a quiet card. The
18
20
  * title zooms out through month and year grids; the grids themselves
19
21
  * are the shared machinery — value, range selection, and focus ride
20
22
  * Ark's own contract. */
21
- function Calendar(props) {
23
+ function CalendarImpl(props) {
22
24
  injectComponentStyle("calendar");
23
25
  injectComponentStyle("date-picker");
24
26
  const [own, rest] = splitProps(props, [
27
+ "id",
25
28
  "value",
26
29
  "min",
27
30
  "max",
28
31
  "onValueChange"
29
32
  ]);
33
+ const id = useElementId("calendar", () => own.id);
30
34
  const title = (dp) => {
31
35
  const api = dp();
32
36
  const d = api.focusedValue;
@@ -40,8 +44,8 @@ function Calendar(props) {
40
44
  return `${decade} - ${decade + 9}`;
41
45
  };
42
46
  const header = () => (() => {
43
- var _el$2 = _tmpl$2();
44
- insert(_el$2, createComponent(DatePicker.ViewControl, { get children() {
47
+ var _el$ = _tmpl$();
48
+ insert(_el$, createComponent(DatePicker.ViewControl, { get children() {
45
49
  return [
46
50
  createComponent(DatePicker.PrevTrigger, { get children() {
47
51
  return chevron("left");
@@ -54,16 +58,19 @@ function Calendar(props) {
54
58
  } })
55
59
  ];
56
60
  } }));
57
- return _el$2;
61
+ return _el$;
58
62
  })();
59
- var _el$3 = _tmpl$3();
60
- var _el$4 = _el$3.firstChild;
61
- var _el$5 = _el$4.nextSibling;
62
- spread(_el$3, [rest, {
63
+ var _el$2 = _tmpl$2();
64
+ var _el$3 = _el$2.firstChild;
65
+ var _el$4 = _el$3.nextSibling;
66
+ spread(_el$2, [rest, {
63
67
  "data-scope": "calendar",
64
68
  "data-part": "root"
65
69
  }], true);
66
- insert(_el$3, createComponent(DatePicker.Root, mergeProps({
70
+ insert(_el$2, createComponent(DatePicker.Root, mergeProps({
71
+ get id() {
72
+ return id();
73
+ },
67
74
  open: true,
68
75
  closeOnSelect: true,
69
76
  inline: true
@@ -194,16 +201,17 @@ function Calendar(props) {
194
201
  })
195
202
  ];
196
203
  }
197
- })), _el$4);
198
- insert(_el$3, createComponent(Show, {
204
+ })), _el$3);
205
+ insert(_el$2, createComponent(Show, {
199
206
  get when() {
200
207
  return rest.children;
201
208
  },
202
209
  get children() {
203
210
  return rest.children;
204
211
  }
205
- }), _el$5);
206
- return _el$3;
212
+ }), _el$4);
213
+ return _el$2;
207
214
  }
215
+ const Calendar = defineFamily(CalendarImpl, DatePicker$1);
208
216
  //#endregion
209
217
  export { Calendar };
@@ -1,3 +1,4 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
2
3
  //#region src/components/carousel/index.d.ts
3
4
  /** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
@@ -5,5 +6,8 @@ import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
5
6
  * current indicator alone carries the ink. The API is Ark's own — Root,
6
7
  * Control, PrevTrigger, NextTrigger, ItemGroup, Item, IndicatorGroup,
7
8
  * Indicator, AutoplayTrigger, ProgressText. */
8
- export declare const Carousel: typeof Carousel$1;
9
+ declare function CarouselRoot(props: ComponentProps<typeof Carousel$1.Root>): import("solid-js").JSX.Element;
10
+ export declare const Carousel: typeof CarouselRoot & Omit<typeof Carousel$1, "Root"> & {
11
+ Root: typeof CarouselRoot;
12
+ };
9
13
  //#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 { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
3
6
  //#region src/components/carousel/index.ts
4
7
  /** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
@@ -6,7 +9,16 @@ import { Carousel as Carousel$1 } from "@ark-ui/solid/carousel";
6
9
  * current indicator alone carries the ink. The API is Ark's own — Root,
7
10
  * Control, PrevTrigger, NextTrigger, ItemGroup, Item, IndicatorGroup,
8
11
  * Indicator, AutoplayTrigger, ProgressText. */
9
- const Carousel = Carousel$1;
12
+ function CarouselRoot(props) {
13
+ const id = useElementId("carousel", () => props.id);
14
+ return createComponent(Carousel$1.Root, mergeProps(props, { get id() {
15
+ return id();
16
+ } }));
17
+ }
18
+ const Carousel = defineFamily(CarouselRoot, {
19
+ ...Carousel$1,
20
+ Root: CarouselRoot
21
+ });
10
22
  injectComponentStyle("carousel");
11
23
  //#endregion
12
24
  export { Carousel };
@@ -27,5 +27,7 @@ export interface CascadeSelectProps extends JSX.HTMLAttributes<HTMLDivElement> {
27
27
  * swaps the corridor for a flat list of matching paths while a query
28
28
  * runs — each hit still reads as its full route.
29
29
  */
30
- export declare function CascadeSelect(props: CascadeSelectProps): JSX.Element;
30
+ export declare const CascadeSelect: ((props: CascadeSelectProps) => JSX.Element) & {
31
+ Root: (props: CascadeSelectProps) => JSX.Element;
32
+ };
31
33
  //#endregion