@bysages/react 0.3.1 → 0.4.1

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 (286) hide show
  1. package/dist/{ai-response-BfKTmtCt.mjs → ai-response-nhDOlELQ.mjs} +4 -2
  2. package/dist/chevron-a2nIZKN4.mjs +6 -0
  3. package/dist/components/accordion/index.d.mts +22 -4
  4. package/dist/components/accordion/index.mjs +32 -2
  5. package/dist/components/affix/index.d.mts +4 -1
  6. package/dist/components/affix/index.mjs +6 -4
  7. package/dist/components/ai/index.d.mts +1 -1
  8. package/dist/components/ai/index.mjs +6 -4
  9. package/dist/components/ai-action/index.d.mts +4 -1
  10. package/dist/components/ai-action/index.mjs +4 -2
  11. package/dist/components/ai-attachments/index.d.mts +10 -4
  12. package/dist/components/ai-attachments/index.mjs +17 -45
  13. package/dist/components/ai-message/index.d.mts +4 -1
  14. package/dist/components/ai-message/index.mjs +4 -2
  15. package/dist/components/ai-prompt-input/index.d.mts +5 -2
  16. package/dist/components/ai-prompt-input/index.mjs +11 -15
  17. package/dist/components/ai-reasoning/index.d.mts +4 -1
  18. package/dist/components/ai-reasoning/index.mjs +5 -3
  19. package/dist/components/ai-response/index.d.mts +4 -1
  20. package/dist/components/ai-response/index.mjs +1 -1
  21. package/dist/components/ai-source/index.d.mts +8 -2
  22. package/dist/components/ai-source/index.mjs +6 -3
  23. package/dist/components/ai-suggestion/index.d.mts +4 -1
  24. package/dist/components/ai-suggestion/index.mjs +4 -2
  25. package/dist/components/ai-tool/index.d.mts +4 -1
  26. package/dist/components/ai-tool/index.mjs +5 -3
  27. package/dist/components/alert/index.d.mts +2 -0
  28. package/dist/components/alert/index.mjs +12 -19
  29. package/dist/components/angle-slider/index.d.mts +19 -2
  30. package/dist/components/angle-slider/index.mjs +32 -9
  31. package/dist/components/aspect-ratio/index.d.mts +4 -1
  32. package/dist/components/aspect-ratio/index.mjs +4 -2
  33. package/dist/components/autocomplete/index.d.mts +3 -1
  34. package/dist/components/autocomplete/index.mjs +15 -3
  35. package/dist/components/avatar/index.d.mts +2 -2
  36. package/dist/components/avatar/index.mjs +10 -3
  37. package/dist/components/avatar-group/index.d.mts +4 -1
  38. package/dist/components/avatar-group/index.mjs +4 -2
  39. package/dist/components/back-top/index.d.mts +7 -1
  40. package/dist/components/back-top/index.mjs +13 -18
  41. package/dist/components/badge/index.d.mts +4 -1
  42. package/dist/components/badge/index.mjs +4 -2
  43. package/dist/components/banner/index.mjs +3 -12
  44. package/dist/components/bento/index.mjs +1 -1
  45. package/dist/components/block-ui/index.d.mts +4 -1
  46. package/dist/components/block-ui/index.mjs +4 -2
  47. package/dist/components/breadcrumb/index.mjs +1 -1
  48. package/dist/components/browser/index.mjs +1 -1
  49. package/dist/components/button/index.d.mts +4 -1
  50. package/dist/components/button/index.mjs +4 -2
  51. package/dist/components/button-group/index.mjs +1 -1
  52. package/dist/components/calendar/index.d.mts +3 -1
  53. package/dist/components/calendar/index.mjs +10 -11
  54. package/dist/components/card/index.mjs +1 -1
  55. package/dist/components/carousel/index.d.mts +21 -1
  56. package/dist/components/carousel/index.mjs +44 -3
  57. package/dist/components/cascade-select/index.d.mts +6 -1
  58. package/dist/components/cascade-select/index.mjs +13 -36
  59. package/dist/components/checkbox/index.d.mts +20 -2
  60. package/dist/components/checkbox/index.mjs +29 -9
  61. package/dist/components/checkbox-group/index.d.mts +8 -6
  62. package/dist/components/checkbox-group/index.mjs +45 -49
  63. package/dist/components/chip/index.d.mts +4 -1
  64. package/dist/components/chip/index.mjs +4 -2
  65. package/dist/components/client-only/index.d.mts +7 -2
  66. package/dist/components/client-only/index.mjs +5 -1
  67. package/dist/components/clipboard/index.d.mts +17 -4
  68. package/dist/components/clipboard/index.mjs +34 -6
  69. package/dist/components/collapsible/index.d.mts +16 -4
  70. package/dist/components/collapsible/index.mjs +26 -2
  71. package/dist/components/color-picker/index.d.mts +20 -4
  72. package/dist/components/color-picker/index.mjs +57 -15
  73. package/dist/components/combobox/index.d.mts +27 -1
  74. package/dist/components/combobox/index.mjs +63 -6
  75. package/dist/components/command/index.d.mts +4 -1
  76. package/dist/components/command/index.mjs +8 -2
  77. package/dist/components/comment/index.d.mts +4 -1
  78. package/dist/components/comment/index.mjs +4 -2
  79. package/dist/components/config-provider/index.d.mts +4 -1
  80. package/dist/components/config-provider/index.mjs +3 -1
  81. package/dist/components/container/index.d.mts +4 -1
  82. package/dist/components/container/index.mjs +4 -2
  83. package/dist/components/data-view/index.d.mts +4 -1
  84. package/dist/components/data-view/index.mjs +4 -2
  85. package/dist/components/date-input/index.d.mts +19 -4
  86. package/dist/components/date-input/index.mjs +34 -10
  87. package/dist/components/date-picker/index.d.mts +21 -4
  88. package/dist/components/date-picker/index.mjs +59 -12
  89. package/dist/components/deferred-content/index.d.mts +4 -1
  90. package/dist/components/deferred-content/index.mjs +4 -2
  91. package/dist/components/descriptions/index.d.mts +10 -2
  92. package/dist/components/descriptions/index.mjs +14 -9
  93. package/dist/components/dialog/index.d.mts +18 -5
  94. package/dist/components/dialog/index.mjs +44 -2
  95. package/dist/components/dock/index.mjs +1 -1
  96. package/dist/components/download-trigger/index.d.mts +7 -2
  97. package/dist/components/download-trigger/index.mjs +5 -1
  98. package/dist/components/drawer/index.d.mts +18 -6
  99. package/dist/components/drawer/index.mjs +41 -2
  100. package/dist/components/dynamic-input/index.d.mts +4 -1
  101. package/dist/components/dynamic-input/index.mjs +11 -19
  102. package/dist/components/editable/index.d.mts +28 -7
  103. package/dist/components/editable/index.mjs +44 -5
  104. package/dist/components/ellipsis/index.d.mts +4 -1
  105. package/dist/components/ellipsis/index.mjs +4 -2
  106. package/dist/components/empty/index.mjs +1 -1
  107. package/dist/components/field/index.d.mts +30 -5
  108. package/dist/components/field/index.mjs +37 -4
  109. package/dist/components/fieldset/index.d.mts +19 -4
  110. package/dist/components/fieldset/index.mjs +29 -4
  111. package/dist/components/file-upload/index.d.mts +29 -9
  112. package/dist/components/file-upload/index.mjs +47 -11
  113. package/dist/components/float-button/index.mjs +1 -1
  114. package/dist/components/floating-panel/index.d.mts +18 -6
  115. package/dist/components/floating-panel/index.mjs +56 -2
  116. package/dist/components/focus-trap/index.d.mts +7 -2
  117. package/dist/components/focus-trap/index.mjs +5 -1
  118. package/dist/components/form/index.d.mts +1 -1
  119. package/dist/components/form/index.mjs +6 -3
  120. package/dist/components/frame/index.d.mts +4 -8
  121. package/dist/components/frame/index.mjs +13 -1
  122. package/dist/components/grid/index.d.mts +4 -1
  123. package/dist/components/grid/index.mjs +4 -2
  124. package/dist/components/highlight/index.d.mts +3 -5
  125. package/dist/components/highlight/index.mjs +7 -2
  126. package/dist/components/hover-card/index.d.mts +20 -4
  127. package/dist/components/hover-card/index.mjs +33 -2
  128. package/dist/components/icon/index.d.mts +10 -8
  129. package/dist/components/icon/index.mjs +6 -4
  130. package/dist/components/image/index.d.mts +5 -2
  131. package/dist/components/image/index.mjs +15 -30
  132. package/dist/components/image-cropper/index.d.mts +13 -2
  133. package/dist/components/image-cropper/index.mjs +35 -3
  134. package/dist/components/image-viewer/index.d.mts +2 -24
  135. package/dist/components/image-viewer/index.mjs +3 -113
  136. package/dist/components/input/index.d.mts +3 -1
  137. package/dist/components/input/index.mjs +1 -1
  138. package/dist/components/input-group/index.mjs +1 -1
  139. package/dist/components/json-tree-view/index.d.mts +17 -1
  140. package/dist/components/json-tree-view/index.mjs +27 -6
  141. package/dist/components/kbd/index.d.mts +4 -1
  142. package/dist/components/kbd/index.mjs +4 -2
  143. package/dist/components/layout/index.d.mts +25 -7
  144. package/dist/components/layout/index.mjs +158 -64
  145. package/dist/components/link/index.d.mts +4 -1
  146. package/dist/components/link/index.mjs +4 -2
  147. package/dist/components/list/index.mjs +1 -1
  148. package/dist/components/listbox/index.d.mts +22 -1
  149. package/dist/components/listbox/index.mjs +37 -5
  150. package/dist/components/marquee/index.d.mts +18 -1
  151. package/dist/components/marquee/index.mjs +35 -3
  152. package/dist/components/masonry/index.d.mts +4 -1
  153. package/dist/components/masonry/index.mjs +4 -2
  154. package/dist/components/media-player/index.d.mts +2 -0
  155. package/dist/components/media-player/index.mjs +2 -0
  156. package/dist/components/mentions/index.d.mts +1 -1
  157. package/dist/components/mentions/index.mjs +1 -1
  158. package/dist/components/menu/index.d.mts +29 -11
  159. package/dist/components/menu/index.mjs +35 -13
  160. package/dist/components/menubar/index.d.mts +3 -1
  161. package/dist/components/menubar/index.mjs +7 -2
  162. package/dist/components/meter/index.mjs +1 -1
  163. package/dist/components/navigation-menu/index.d.mts +25 -1
  164. package/dist/components/navigation-menu/index.mjs +37 -2
  165. package/dist/components/number-input/index.d.mts +28 -6
  166. package/dist/components/number-input/index.mjs +34 -9
  167. package/dist/components/order-list/index.d.mts +4 -1
  168. package/dist/components/order-list/index.mjs +27 -25
  169. package/dist/components/page-header/index.mjs +1 -1
  170. package/dist/components/pagination/index.d.mts +23 -3
  171. package/dist/components/pagination/index.mjs +58 -13
  172. package/dist/components/password-input/index.d.mts +24 -6
  173. package/dist/components/password-input/index.mjs +32 -9
  174. package/dist/components/pin-input/index.d.mts +23 -5
  175. package/dist/components/pin-input/index.mjs +30 -8
  176. package/dist/components/popconfirm/index.d.mts +9 -5
  177. package/dist/components/popconfirm/index.mjs +24 -19
  178. package/dist/components/popover/index.d.mts +2 -8
  179. package/dist/components/popover/index.mjs +45 -5
  180. package/dist/components/presence/index.d.mts +10 -2
  181. package/dist/components/presence/index.mjs +6 -1
  182. package/dist/components/progress/index.d.mts +18 -3
  183. package/dist/components/progress/index.mjs +35 -10
  184. package/dist/components/progress-group/index.d.mts +4 -1
  185. package/dist/components/progress-group/index.mjs +5 -3
  186. package/dist/components/qr-code/index.d.mts +14 -1
  187. package/dist/components/qr-code/index.mjs +27 -3
  188. package/dist/components/radio-group/index.d.mts +27 -2
  189. package/dist/components/radio-group/index.mjs +33 -9
  190. package/dist/components/rating-group/index.d.mts +20 -3
  191. package/dist/components/rating-group/index.mjs +27 -9
  192. package/dist/components/result/index.d.mts +1 -1
  193. package/dist/components/result/index.mjs +3 -3
  194. package/dist/components/scroll-area/index.d.mts +14 -1
  195. package/dist/components/scroll-area/index.mjs +33 -3
  196. package/dist/components/segment-group/index.d.mts +28 -2
  197. package/dist/components/segment-group/index.mjs +35 -8
  198. package/dist/components/select/index.d.mts +2 -2
  199. package/dist/components/select/index.mjs +1 -1
  200. package/dist/components/separator/index.d.mts +4 -1
  201. package/dist/components/separator/index.mjs +4 -2
  202. package/dist/components/signature-pad/index.d.mts +25 -5
  203. package/dist/components/signature-pad/index.mjs +38 -4
  204. package/dist/components/skeleton/index.d.mts +4 -1
  205. package/dist/components/skeleton/index.mjs +4 -2
  206. package/dist/components/slider/index.d.mts +21 -2
  207. package/dist/components/slider/index.mjs +32 -9
  208. package/dist/components/spinner/index.d.mts +4 -1
  209. package/dist/components/spinner/index.mjs +4 -2
  210. package/dist/components/split-button/index.d.mts +3 -1
  211. package/dist/components/split-button/index.mjs +13 -18
  212. package/dist/components/splitter/index.d.mts +17 -4
  213. package/dist/components/splitter/index.mjs +36 -2
  214. package/dist/components/spotlight/index.d.mts +4 -1
  215. package/dist/components/spotlight/index.mjs +4 -2
  216. package/dist/components/stack/index.d.mts +4 -1
  217. package/dist/components/stack/index.mjs +7 -5
  218. package/dist/components/stat/index.mjs +1 -1
  219. package/dist/components/steps/index.d.mts +26 -6
  220. package/dist/components/steps/index.mjs +27 -12
  221. package/dist/components/swap/index.d.mts +11 -5
  222. package/dist/components/swap/index.mjs +31 -4
  223. package/dist/components/switch/index.d.mts +20 -2
  224. package/dist/components/switch/index.mjs +28 -9
  225. package/dist/components/table/index.d.mts +4 -1
  226. package/dist/components/table/index.mjs +38 -60
  227. package/dist/components/tabs/index.d.mts +24 -2
  228. package/dist/components/tabs/index.mjs +26 -10
  229. package/dist/components/tags-input/index.d.mts +33 -8
  230. package/dist/components/tags-input/index.mjs +42 -10
  231. package/dist/components/terminal/index.d.mts +4 -1
  232. package/dist/components/terminal/index.mjs +4 -2
  233. package/dist/components/textarea/index.d.mts +4 -1
  234. package/dist/components/textarea/index.mjs +4 -2
  235. package/dist/components/timeline/index.mjs +1 -1
  236. package/dist/components/timer/index.d.mts +18 -1
  237. package/dist/components/timer/index.mjs +52 -3
  238. package/dist/components/toast/index.d.mts +3 -6
  239. package/dist/components/toast/index.mjs +23 -3
  240. package/dist/components/toc/index.d.mts +19 -5
  241. package/dist/components/toc/index.mjs +32 -6
  242. package/dist/components/toggle/index.d.mts +11 -4
  243. package/dist/components/toggle/index.mjs +22 -2
  244. package/dist/components/toggle-group/index.d.mts +26 -2
  245. package/dist/components/toggle-group/index.mjs +32 -7
  246. package/dist/components/toolbar/index.d.mts +4 -1
  247. package/dist/components/toolbar/index.mjs +4 -2
  248. package/dist/components/tooltip/index.d.mts +17 -4
  249. package/dist/components/tooltip/index.mjs +29 -2
  250. package/dist/components/tour/index.d.mts +18 -9
  251. package/dist/components/tour/index.mjs +45 -3
  252. package/dist/components/transfer/index.d.mts +3 -1
  253. package/dist/components/transfer/index.mjs +15 -27
  254. package/dist/components/tree-select/index.d.mts +3 -1
  255. package/dist/components/tree-select/index.mjs +12 -23
  256. package/dist/components/tree-view/index.d.mts +22 -2
  257. package/dist/components/tree-view/index.mjs +51 -9
  258. package/dist/components/typography/index.d.mts +4 -0
  259. package/dist/components/typography/index.mjs +2 -1
  260. package/dist/components/user/index.d.mts +4 -1
  261. package/dist/components/user/index.mjs +4 -2
  262. package/dist/components/virtual-list/index.d.mts +4 -1
  263. package/dist/components/virtual-list/index.mjs +11 -13
  264. package/dist/components/watermark/index.d.mts +4 -1
  265. package/dist/components/watermark/index.mjs +5 -3
  266. package/dist/family-DE_GQeeM.mjs +9 -0
  267. package/dist/icon-BALgGtNK.mjs +18 -0
  268. package/dist/id-C37UYLwJ.mjs +13 -0
  269. package/dist/image-viewer-B-hKFkEw.mjs +141 -0
  270. package/dist/{index-Dn5mHf1g.d.mts → index-B4twHAQC.d.mts} +194 -106
  271. package/dist/{index-Uefyw7Im.d.mts → index-Bbg4heDO.d.mts} +12 -7
  272. package/dist/index-BcRdWGY-.d.mts +115 -0
  273. package/dist/{index-Iy8m0Qev.d.mts → index-D_iKc2Uw.d.mts} +31 -2
  274. package/dist/index-Dj8S4eyJ.d.mts +41 -0
  275. package/dist/index-Eu-Bttta.d.mts +24 -0
  276. package/dist/{index-uPyYiWaL.d.mts → index-PsgGWW3m.d.mts} +8 -2
  277. package/dist/index.d.mts +36 -35
  278. package/dist/index.mjs +11 -10
  279. package/dist/{input-2oezH-dY.mjs → input-BDpQ0e6G.mjs} +4 -2
  280. package/dist/media-player-DjVvo1_7.mjs +554 -0
  281. package/dist/{mentions-DMIBCBOd.mjs → mentions-BwnyvdXz.mjs} +75 -43
  282. package/dist/select-i9UZsQCU.mjs +121 -0
  283. package/package.json +9 -81
  284. package/dist/chevron-BeHvt46K.mjs +0 -17
  285. package/dist/glyph-VI989p8H.mjs +0 -14
  286. package/dist/select-eAHutw56.mjs +0 -70
@@ -1,17 +1,42 @@
1
- import { ComponentProps } from "react";
1
+ import { ComponentProps, ReactNode } from "react";
2
2
  import { TagsInput as TagsInput$1 } from "@ark-ui/react/tags-input";
3
3
  //#region src/components/tags-input/index.d.ts
4
4
  type TagsInputRootProps = ComponentProps<typeof TagsInput$1.Root> & {
5
5
  /** One rung of the control-height ladder for the vessel at rest. */
6
6
  size?: "sm" | "md" | "lg";
7
7
  };
8
- declare function TagsInputRoot({ size, ...rest }: TagsInputRootProps): import("react").JSX.Element;
9
- /** Ark's TagsInput, dressed in the paper-and-ink system: one field vessel
10
- * whose chips rest as quiet ink and lift only a tone when edited. The API
11
- * is Ark's own — Root, Label, Control, Input, ClearTrigger, Item,
12
- * ItemPreview, ItemText, ItemInput, ItemDeleteTrigger, HiddenInput,
13
- * Context. */
14
- export declare const TagsInput: Omit<typeof TagsInput$1, "Root"> & {
8
+ declare function TagsInputRoot(props: TagsInputRootProps): import("react").JSX.Element;
9
+ interface TagsInputFacadeProps {
10
+ value?: string[];
11
+ defaultValue?: string[];
12
+ label?: string;
13
+ placeholder?: string;
14
+ disabled?: boolean;
15
+ invalid?: boolean;
16
+ required?: boolean;
17
+ /** Show the clear-all control when values exist. */
18
+ clearable?: boolean;
19
+ size?: "sm" | "md" | "lg";
20
+ onValueChange?: (value: string[]) => void;
21
+ children?: ReactNode;
22
+ }
23
+ /** The one-tag path: one labelled vessel whose values become editable
24
+ * chips. Delimiters, limits, and custom validation stay on the anatomy. */
25
+ declare function TagsInputFacade({ value, defaultValue, label, placeholder, disabled, invalid, required, clearable, size, onValueChange }: TagsInputFacadeProps): import("react").JSX.Element;
26
+ export declare const TagsInput: typeof TagsInputFacade & {
15
27
  Root: typeof TagsInputRoot;
28
+ ClearTrigger: import("react").ForwardRefExoticComponent<TagsInput$1.ClearTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
29
+ Context: (props: TagsInput$1.ContextProps) => ReactNode;
30
+ Control: import("react").ForwardRefExoticComponent<TagsInput$1.ControlProps & import("react").RefAttributes<HTMLDivElement>>;
31
+ HiddenInput: import("react").ForwardRefExoticComponent<TagsInput$1.HiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
32
+ Input: import("react").ForwardRefExoticComponent<TagsInput$1.InputProps & import("react").RefAttributes<HTMLInputElement>>;
33
+ Item: import("react").ForwardRefExoticComponent<TagsInput$1.ItemProps & import("react").RefAttributes<HTMLDivElement>>;
34
+ ItemContext: (props: TagsInput$1.ItemContextProps) => ReactNode;
35
+ ItemDeleteTrigger: import("react").ForwardRefExoticComponent<TagsInput$1.ItemDeleteTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
36
+ ItemInput: import("react").ForwardRefExoticComponent<TagsInput$1.ItemInputProps & import("react").RefAttributes<HTMLInputElement>>;
37
+ ItemPreview: import("react").ForwardRefExoticComponent<TagsInput$1.ItemPreviewProps & import("react").RefAttributes<HTMLDivElement>>;
38
+ ItemText: import("react").ForwardRefExoticComponent<TagsInput$1.ItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
39
+ Label: import("react").ForwardRefExoticComponent<TagsInput$1.LabelProps & import("react").RefAttributes<HTMLLabelElement>>;
40
+ RootProvider: import("react").ForwardRefExoticComponent<TagsInput$1.RootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
16
41
  };
17
42
  //#endregion
@@ -1,22 +1,54 @@
1
- import { injectComponentStyle } from "@bysages/core";
2
- import { jsx } from "react/jsx-runtime";
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
+ import { injectComponentStyle } from "@bysages/core/styling";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
3
5
  import { TagsInput as TagsInput$1 } from "@ark-ui/react/tags-input";
4
6
  //#region src/components/tags-input/index.tsx
5
- function TagsInputRoot({ size = "md", ...rest }) {
7
+ function TagsInputRoot(props) {
8
+ const id = useElementId("tags-input", props);
9
+ const { size = "md", ...rest } = props;
6
10
  return /* @__PURE__ */ jsx(TagsInput$1.Root, {
7
11
  ...rest,
12
+ id,
8
13
  "data-size": size
9
14
  });
10
15
  }
11
- /** Ark's TagsInput, dressed in the paper-and-ink system: one field vessel
12
- * whose chips rest as quiet ink and lift only a tone when edited. The API
13
- * is Ark's own — Root, Label, Control, Input, ClearTrigger, Item,
14
- * ItemPreview, ItemText, ItemInput, ItemDeleteTrigger, HiddenInput,
15
- * Context. */
16
- const TagsInput = {
16
+ const closeIcon = iconNode("x", {
17
+ width: 14,
18
+ height: 14
19
+ });
20
+ /** The one-tag path: one labelled vessel whose values become editable
21
+ * chips. Delimiters, limits, and custom validation stay on the anatomy. */
22
+ function TagsInputFacade({ value, defaultValue, label, placeholder, disabled = false, invalid = false, required = false, clearable = true, size = "md", onValueChange }) {
23
+ return /* @__PURE__ */ jsxs(TagsInputRoot, {
24
+ size,
25
+ disabled,
26
+ invalid,
27
+ required,
28
+ defaultValue,
29
+ ...value === void 0 ? {} : {
30
+ value,
31
+ onValueChange: (details) => onValueChange?.(details.value)
32
+ },
33
+ children: [
34
+ label ? /* @__PURE__ */ jsx(TagsInput$1.Label, { children: label }) : null,
35
+ /* @__PURE__ */ jsxs(TagsInput$1.Control, { children: [
36
+ /* @__PURE__ */ jsx(TagsInput$1.Context, { children: (tagsInput) => tagsInput.value.map((tag, index) => /* @__PURE__ */ jsxs(TagsInput$1.Item, {
37
+ index,
38
+ value: tag,
39
+ children: [/* @__PURE__ */ jsxs(TagsInput$1.ItemPreview, { children: [/* @__PURE__ */ jsx(TagsInput$1.ItemText, { children: tag }), /* @__PURE__ */ jsx(TagsInput$1.ItemDeleteTrigger, { children: closeIcon })] }), /* @__PURE__ */ jsx(TagsInput$1.ItemInput, {})]
40
+ }, `${tag}-${index}`)) }),
41
+ /* @__PURE__ */ jsx(TagsInput$1.Input, { placeholder }),
42
+ clearable ? /* @__PURE__ */ jsx(TagsInput$1.ClearTrigger, { children: closeIcon }) : null
43
+ ] }),
44
+ /* @__PURE__ */ jsx(TagsInput$1.HiddenInput, {})
45
+ ]
46
+ });
47
+ }
48
+ const TagsInput = Object.assign(TagsInputFacade, {
17
49
  ...TagsInput$1,
18
50
  Root: TagsInputRoot
19
- };
51
+ });
20
52
  injectComponentStyle("tags-input");
21
53
  //#endregion
22
54
  export { TagsInput };
@@ -13,5 +13,8 @@ export interface TerminalProps extends 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({ lines, prompt, placeholder, label, onCommand, ...rest }: TerminalProps): import("react").JSX.Element;
16
+ declare function TerminalImpl({ lines, prompt, placeholder, label, onCommand, ...rest }: TerminalProps): import("react").JSX.Element;
17
+ export declare const Terminal: typeof TerminalImpl & {
18
+ Root: typeof TerminalImpl;
19
+ };
17
20
  //#endregion
@@ -1,5 +1,6 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
2
- import { injectComponentStyle } from "@bysages/core";
3
+ import { injectComponentStyle } from "@bysages/core/styling";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
5
  import { useEffect, useRef, useState } from "react";
5
6
  //#region src/components/terminal/index.tsx
@@ -7,7 +8,7 @@ import { useEffect, useRef, useState } from "react";
7
8
  * component owns only the reading and the caret — each entered line
8
9
  * leaves as an event, and the caller answers through the lines prop,
9
10
  * so history stays theirs to shape. */
10
- function Terminal({ lines = [], prompt = "$", placeholder, label, onCommand, ...rest }) {
11
+ function TerminalImpl({ lines = [], prompt = "$", placeholder, label, onCommand, ...rest }) {
11
12
  injectComponentStyle("terminal");
12
13
  const messages = useComponentMessages();
13
14
  const commandLineLabel = label ?? messages.terminal.commandLine;
@@ -64,5 +65,6 @@ function Terminal({ lines = [], prompt = "$", placeholder, label, onCommand, ...
64
65
  })]
65
66
  });
66
67
  }
68
+ const Terminal = withSelfRoot(TerminalImpl);
67
69
  //#endregion
68
70
  export { Terminal };
@@ -10,5 +10,8 @@ export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElemen
10
10
  invalid?: boolean;
11
11
  onValueChange?: (value: string) => void;
12
12
  }
13
- export declare function Textarea({ value, invalid, onValueChange, ...rest }: TextareaProps): import("react").JSX.Element;
13
+ declare function TextareaImpl({ value, invalid, onValueChange, ...rest }: TextareaProps): import("react").JSX.Element;
14
+ export declare const Textarea: typeof TextareaImpl & {
15
+ Root: typeof TextareaImpl;
16
+ };
14
17
  //#endregion
@@ -1,8 +1,9 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
+ import { injectComponentStyle } from "@bysages/core/styling";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { useFieldContext } from "@ark-ui/react/field";
4
5
  //#region src/components/textarea/index.tsx
5
- function Textarea({ value, invalid = false, onValueChange, ...rest }) {
6
+ function TextareaImpl({ value, invalid = false, onValueChange, ...rest }) {
6
7
  injectComponentStyle("textarea");
7
8
  const field = useFieldContext();
8
9
  const fieldProps = field?.getTextareaProps() ?? {};
@@ -16,5 +17,6 @@ function Textarea({ value, invalid = false, onValueChange, ...rest }) {
16
17
  onChange: (event) => onValueChange?.(event.target.value)
17
18
  });
18
19
  }
20
+ const Textarea = withSelfRoot(TextareaImpl);
19
21
  //#endregion
20
22
  export { Textarea };
@@ -1,4 +1,4 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { injectComponentStyle } from "@bysages/core/styling";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  //#region src/components/timeline/index.tsx
4
4
  /** A line of moments: Root is the ordered thread, Item one moment on it,
@@ -1,8 +1,25 @@
1
+ import { CSSProperties, ComponentProps } from "react";
1
2
  import { Timer as Timer$1 } from "@ark-ui/react/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("react").JSX.Element;
9
+ type TimerFacadeProps = {
10
+ startMs?: number;
11
+ targetMs?: number;
12
+ countdown?: boolean;
13
+ autoStart?: boolean;
14
+ label?: string;
15
+ className?: string;
16
+ style?: CSSProperties;
17
+ };
18
+ /** The complete timer behind one duration: minute and second digits with
19
+ * start, pause, resume, and reset. Finer intervals and custom faces remain
20
+ * anatomy work. */
21
+ declare function TimerFacade(props: TimerFacadeProps): import("react").JSX.Element;
22
+ export declare const Timer: typeof TimerFacade & Omit<typeof Timer$1, "Root"> & {
23
+ Root: typeof TimerRoot;
24
+ };
8
25
  //#endregion
@@ -1,11 +1,60 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
2
+ import { injectComponentStyle } from "@bysages/core/styling";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
2
4
  import { Timer as Timer$1 } from "@ark-ui/react/timer";
3
5
  //#region src/components/timer/index.tsx
4
6
  /** Ark's Timer, dressed in the paper-and-ink system: monospaced digits
5
7
  * that never jitter, quiet action triggers on the control recipe. The API
6
8
  * is Ark's own — Root, Area, Control, Item, Separator, ActionTrigger,
7
9
  * Context. Unit labels are plain content, not a machine part. */
8
- const Timer = Timer$1;
9
- injectComponentStyle("timer");
10
+ function TimerRoot(props) {
11
+ injectComponentStyle("timer");
12
+ const id = useElementId("timer", props);
13
+ return /* @__PURE__ */ jsx(Timer$1.Root, {
14
+ ...props,
15
+ id
16
+ });
17
+ }
18
+ /** The complete timer behind one duration: minute and second digits with
19
+ * start, pause, resume, and reset. Finer intervals and custom faces remain
20
+ * anatomy work. */
21
+ function TimerFacade(props) {
22
+ const { startMs = 0, targetMs, countdown, autoStart, label, className, style } = props;
23
+ return /* @__PURE__ */ jsxs(TimerRoot, {
24
+ "aria-label": label,
25
+ startMs,
26
+ targetMs,
27
+ countdown,
28
+ autoStart,
29
+ className,
30
+ style,
31
+ children: [/* @__PURE__ */ jsxs(Timer$1.Area, { children: [
32
+ /* @__PURE__ */ jsx(Timer$1.Item, { type: "minutes" }),
33
+ /* @__PURE__ */ jsx(Timer$1.Separator, { children: ":" }),
34
+ /* @__PURE__ */ jsx(Timer$1.Item, { type: "seconds" })
35
+ ] }), /* @__PURE__ */ jsxs(Timer$1.Control, { children: [
36
+ /* @__PURE__ */ jsx(Timer$1.ActionTrigger, {
37
+ action: "start",
38
+ children: "Start"
39
+ }),
40
+ /* @__PURE__ */ jsx(Timer$1.ActionTrigger, {
41
+ action: "pause",
42
+ children: "Pause"
43
+ }),
44
+ /* @__PURE__ */ jsx(Timer$1.ActionTrigger, {
45
+ action: "resume",
46
+ children: "Resume"
47
+ }),
48
+ /* @__PURE__ */ jsx(Timer$1.ActionTrigger, {
49
+ action: "reset",
50
+ children: "Reset"
51
+ })
52
+ ] })]
53
+ });
54
+ }
55
+ const Timer = Object.assign(TimerFacade, {
56
+ ...Timer$1,
57
+ Root: TimerRoot
58
+ });
10
59
  //#endregion
11
60
  export { Timer };
@@ -1,11 +1,8 @@
1
1
  import { CreateToasterReturn, Toast as Toast$1, createToaster } from "@ark-ui/react/toast";
2
2
  //#region src/components/toast/index.d.ts
3
- /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
4
- * popup vessel while a pigment accents the title by type, and the machine's
5
- * translate variables carry the slide. The API is Ark's own — Toaster,
6
- * Root, Title, Description, ActionTrigger, CloseTrigger, plus
7
- * createToaster. */
8
3
  export declare const Toast: typeof Toast$1;
9
- export declare const Toaster: import("react").ForwardRefExoticComponent<import("@ark-ui/react/toast").ToasterProps & import("react").RefAttributes<HTMLDivElement>>;
4
+ export declare const Toaster: import("react").ForwardRefExoticComponent<import("@ark-ui/react/toast").ToasterProps & import("react").RefAttributes<HTMLDivElement>> & {
5
+ Root: import("react").ForwardRefExoticComponent<import("@ark-ui/react/toast").ToasterProps & import("react").RefAttributes<HTMLDivElement>>;
6
+ };
10
7
  //#endregion
11
8
  export { type CreateToasterReturn, createToaster };
@@ -1,4 +1,8 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
2
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
3
+ import { injectComponentStyle } from "@bysages/core/styling";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { forwardRef } from "react";
2
6
  import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/react/toast";
3
7
  //#region src/components/toast/index.tsx
4
8
  /** Ark's Toast, dressed in the paper-and-ink system: each notice rides the
@@ -6,8 +10,24 @@ import { Toast as Toast$1, Toaster as Toaster$1, createToaster } from "@ark-ui/r
6
10
  * translate variables carry the slide. The API is Ark's own — Toaster,
7
11
  * Root, Title, Description, ActionTrigger, CloseTrigger, plus
8
12
  * createToaster. */
9
- const Toast = Toast$1;
10
- const Toaster = Toaster$1;
13
+ function ToastRoot(props) {
14
+ const id = useElementId("toast", props);
15
+ return /* @__PURE__ */ jsx(Toast$1.Root, {
16
+ ...props,
17
+ id
18
+ });
19
+ }
20
+ const Toast = {
21
+ ...Toast$1,
22
+ Root: ToastRoot
23
+ };
24
+ const ToasterRoot = forwardRef(function ToasterRoot(props, ref) {
25
+ return /* @__PURE__ */ jsx(Toaster$1, {
26
+ ref,
27
+ ...props
28
+ });
29
+ });
30
+ const Toaster = withSelfRoot(ToasterRoot);
11
31
  injectComponentStyle("toast");
12
32
  //#endregion
13
33
  export { Toast, Toaster, createToaster };
@@ -1,13 +1,27 @@
1
- import { ComponentProps } from "react";
2
- import { Toc as Toc$1 } from "@ark-ui/react/toc";
1
+ import { CSSProperties, ComponentProps } from "react";
2
+ import { Toc as Toc$1, TocItemData } from "@ark-ui/react/toc";
3
3
  //#region src/components/toc/index.d.ts
4
- /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
4
+ /** Toc, dressed in the paper-and-ink system: a quiet rail of links
5
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. */
6
+ * stands. The parts — Root, Title, List, Item, Link, Indicator. */
7
+ declare function TocRoot(props: ComponentProps<typeof Toc$1.Root>): import("react").JSX.Element;
7
8
  /** The active stroke is decoration; hidden so the list reads as links
8
9
  * alone. */
9
10
  declare function TocIndicator(props: ComponentProps<typeof Toc$1.Indicator>): import("react").JSX.Element;
10
- export declare const Toc: Omit<typeof Toc$1, "Indicator"> & {
11
+ export interface TocFacadeProps {
12
+ items: Array<TocItemData & {
13
+ label: string;
14
+ }>;
15
+ scrollEl?: () => HTMLElement | null;
16
+ title?: string;
17
+ className?: string;
18
+ style?: CSSProperties;
19
+ }
20
+ /** The complete rail behind one page: items become anchor rows, the
21
+ * title names the list, and the active stroke follows the scroller. */
22
+ declare function TocFacade({ items, scrollEl, title, className, style }: TocFacadeProps): import("react").JSX.Element;
23
+ export declare const Toc: typeof TocFacade & Omit<typeof Toc$1, "Root" | "Indicator"> & {
24
+ Root: typeof TocRoot;
11
25
  Indicator: typeof TocIndicator;
12
26
  };
13
27
  //#endregion
@@ -1,10 +1,18 @@
1
- import { injectComponentStyle } from "@bysages/core";
2
- import { jsx } from "react/jsx-runtime";
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
2
+ import { injectComponentStyle } from "@bysages/core/styling";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
3
4
  import { Toc as Toc$1 } from "@ark-ui/react/toc";
4
5
  //#region src/components/toc/index.tsx
5
- /** Ark's Toc, dressed in the paper-and-ink system: a quiet rail of links
6
+ /** Toc, dressed in the paper-and-ink system: a quiet rail of links
6
7
  * beside the scroll, one stroke of primary ink marking where the reader
7
- * stands. The API is Ark's own — Root, Title, List, Item, Link, Indicator. */
8
+ * stands. The parts — Root, Title, List, Item, Link, Indicator. */
9
+ function TocRoot(props) {
10
+ const id = useElementId("toc", props);
11
+ return /* @__PURE__ */ jsx(Toc$1.Root, {
12
+ ...props,
13
+ id
14
+ });
15
+ }
8
16
  /** The active stroke is decoration; hidden so the list reads as links
9
17
  * alone. */
10
18
  function TocIndicator(props) {
@@ -13,10 +21,28 @@ function TocIndicator(props) {
13
21
  "aria-hidden": "true"
14
22
  });
15
23
  }
16
- const Toc = {
24
+ /** The complete rail behind one page: items become anchor rows, the
25
+ * title names the list, and the active stroke follows the scroller. */
26
+ function TocFacade({ items, scrollEl, title = "On this page", className, style }) {
27
+ return /* @__PURE__ */ jsx(TocRoot, {
28
+ className,
29
+ style,
30
+ items,
31
+ scrollEl,
32
+ children: /* @__PURE__ */ jsxs(Toc$1.Nav, { children: [title ? /* @__PURE__ */ jsx(Toc$1.Title, { children: title }) : null, /* @__PURE__ */ jsxs(Toc$1.List, { children: [/* @__PURE__ */ jsx(TocIndicator, {}), items.map((item) => /* @__PURE__ */ jsx(Toc$1.Item, {
33
+ item,
34
+ children: /* @__PURE__ */ jsx(Toc$1.Link, {
35
+ href: `#${item.value}`,
36
+ children: item.label
37
+ })
38
+ }, item.value))] })] })
39
+ });
40
+ }
41
+ const Toc = Object.assign(TocFacade, {
17
42
  ...Toc$1,
43
+ Root: TocRoot,
18
44
  Indicator: TocIndicator
19
- };
45
+ });
20
46
  injectComponentStyle("toc");
21
47
  //#endregion
22
48
  export { Toc };
@@ -1,7 +1,14 @@
1
+ import { ComponentProps } from "react";
1
2
  import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
2
3
  //#region src/components/toggle/index.d.ts
3
- /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
4
- * settles into the flat ink fill while pressed on. The API is Ark's own —
5
- * Root, Indicator. */
6
- export declare const Toggle: typeof Toggle$1;
4
+ export interface ToggleFacadeProps extends ComponentProps<typeof Toggle$1.Root> {
5
+ /** The accessible name when the content is only an icon. */
6
+ label?: string;
7
+ }
8
+ declare function ToggleFacade({ label, children, ...rest }: ToggleFacadeProps): import("react").JSX.Element;
9
+ declare namespace ToggleFacade {
10
+ var displayName: string;
11
+ }
12
+ type ToggleParts = typeof Toggle$1;
13
+ export declare const Toggle: typeof ToggleFacade & ToggleParts;
7
14
  //#endregion
@@ -1,10 +1,30 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
2
+ import { injectComponentStyle } from "@bysages/core/styling";
3
+ import { jsx } from "react/jsx-runtime";
2
4
  import { Toggle as Toggle$1 } from "@ark-ui/react/toggle";
3
5
  //#region src/components/toggle/index.tsx
4
6
  /** Ark's Toggle, dressed in the paper-and-ink system: a standalone seal that
5
7
  * settles into the flat ink fill while pressed on. The API is Ark's own —
6
8
  * Root, Indicator. */
7
- const Toggle = Toggle$1;
9
+ function ToggleRoot(props) {
10
+ const id = useElementId("toggle", props);
11
+ return /* @__PURE__ */ jsx(Toggle$1.Root, {
12
+ ...props,
13
+ id
14
+ });
15
+ }
16
+ function ToggleFacade({ label, children, ...rest }) {
17
+ return /* @__PURE__ */ jsx(ToggleRoot, {
18
+ ...rest,
19
+ "aria-label": label ?? rest["aria-label"],
20
+ children: /* @__PURE__ */ jsx(Toggle$1.Indicator, { children })
21
+ });
22
+ }
23
+ ToggleFacade.displayName = "SToggle";
24
+ const Toggle = Object.assign(ToggleFacade, {
25
+ ...Toggle$1,
26
+ Root: ToggleRoot
27
+ });
8
28
  injectComponentStyle("toggle");
9
29
  //#endregion
10
30
  export { Toggle };
@@ -5,11 +5,35 @@ type ToggleGroupRootProps = ComponentProps<typeof ToggleGroup$1.Root> & {
5
5
  /** One rung of the control-height ladder for the items. */
6
6
  size?: "sm" | "md" | "lg";
7
7
  };
8
- declare function ToggleGroupRoot({ size, ...rest }: ToggleGroupRootProps): import("react").JSX.Element;
8
+ declare function ToggleGroupRoot(props: ToggleGroupRootProps): import("react").JSX.Element;
9
+ export type ToggleGroupItem = {
10
+ value: string;
11
+ label: string;
12
+ /** A built-in core-registry icon; omit it to render the label as text. */
13
+ icon?: string;
14
+ disabled?: boolean;
15
+ };
16
+ export interface ToggleGroupFacadeProps {
17
+ value?: string | string[];
18
+ defaultValue?: string | string[];
19
+ items: ToggleGroupItem[];
20
+ label?: string;
21
+ multiple?: boolean;
22
+ disabled?: boolean;
23
+ /** One rung of the control-height ladder for the items. */
24
+ size?: "sm" | "md" | "lg";
25
+ className?: string;
26
+ onValueChange?: (value: string | string[]) => void;
27
+ }
28
+ declare function ToggleGroupFacade({ value, defaultValue, items, label, multiple, disabled, size, className, onValueChange }: ToggleGroupFacadeProps): import("react").JSX.Element;
29
+ declare namespace ToggleGroupFacade {
30
+ var displayName: string;
31
+ }
9
32
  /** Ark's ToggleGroup, dressed in the paper-and-ink system: a hairline tray
10
33
  * of quiet seals where the pressed item takes the flat ink fill. The API is
11
34
  * Ark's own — Root, Item. */
12
- export declare const ToggleGroup: Omit<typeof ToggleGroup$1, "Root"> & {
35
+ type ToggleGroupParts = Omit<typeof ToggleGroup$1, "Root"> & {
13
36
  Root: typeof ToggleGroupRoot;
14
37
  };
38
+ export declare const ToggleGroup: typeof ToggleGroupFacade & ToggleGroupParts;
15
39
  //#endregion
@@ -1,20 +1,45 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
+ import { injectComponentStyle } from "@bysages/core/styling";
2
4
  import { jsx } from "react/jsx-runtime";
3
5
  import { ToggleGroup as ToggleGroup$1 } from "@ark-ui/react/toggle-group";
4
6
  //#region src/components/toggle-group/index.tsx
5
- function ToggleGroupRoot({ size = "md", ...rest }) {
7
+ function ToggleGroupRoot(props) {
8
+ const id = useElementId("toggle-group", props);
9
+ const { size = "md", ...rest } = props;
6
10
  return /* @__PURE__ */ jsx(ToggleGroup$1.Root, {
7
11
  ...rest,
12
+ id,
8
13
  "data-size": size
9
14
  });
10
15
  }
11
- /** Ark's ToggleGroup, dressed in the paper-and-ink system: a hairline tray
12
- * of quiet seals where the pressed item takes the flat ink fill. The API is
13
- * Ark's own — Root, Item. */
14
- const ToggleGroup = {
16
+ function toArkValue(value) {
17
+ return value === void 0 ? [] : Array.isArray(value) ? value : [value];
18
+ }
19
+ function ToggleGroupFacade({ value, defaultValue, items, label, multiple = false, disabled = false, size = "md", className, onValueChange }) {
20
+ return /* @__PURE__ */ jsx(ToggleGroupRoot, {
21
+ className,
22
+ size,
23
+ "aria-label": label,
24
+ disabled,
25
+ multiple,
26
+ defaultValue: toArkValue(defaultValue),
27
+ ...value === void 0 ? {} : { value: toArkValue(value) },
28
+ onValueChange: (details) => onValueChange?.(multiple ? details.value : details.value.at(0) ?? ""),
29
+ children: items.map((item) => /* @__PURE__ */ jsx(ToggleGroup$1.Item, {
30
+ value: item.value,
31
+ disabled: item.disabled,
32
+ "aria-label": item.label,
33
+ "data-variant": item.icon ? "icon" : "text",
34
+ children: item.icon ? iconNode(item.icon) : item.label
35
+ }, item.value))
36
+ });
37
+ }
38
+ ToggleGroupFacade.displayName = "SToggleGroup";
39
+ const ToggleGroup = Object.assign(ToggleGroupFacade, {
15
40
  ...ToggleGroup$1,
16
41
  Root: ToggleGroupRoot
17
- };
42
+ });
18
43
  injectComponentStyle("toggle-group");
19
44
  //#endregion
20
45
  export { ToggleGroup };
@@ -13,5 +13,8 @@ export interface ToolbarProps extends 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({ label, start, end, children, ...rest }: ToolbarProps): import("react").JSX.Element;
16
+ declare function ToolbarImpl({ label, start, end, children, ...rest }: ToolbarProps): import("react").JSX.Element;
17
+ export declare const Toolbar: typeof ToolbarImpl & {
18
+ Root: typeof ToolbarImpl;
19
+ };
17
20
  //#endregion
@@ -1,10 +1,11 @@
1
- import { injectComponentStyle } from "@bysages/core";
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
+ import { injectComponentStyle } from "@bysages/core/styling";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
4
  //#region src/components/toolbar/index.tsx
4
5
  /** A workbench rail: the start tools at the leading edge, the end tools
5
6
  * at the trailing, the rail itself carrying the toolbar role so
6
7
  * assistive tech reads it as one group of commands. */
7
- function Toolbar({ label, start, end, children, ...rest }) {
8
+ function ToolbarImpl({ label, start, end, children, ...rest }) {
8
9
  injectComponentStyle("toolbar");
9
10
  return /* @__PURE__ */ jsxs("div", {
10
11
  ...rest,
@@ -25,5 +26,6 @@ function Toolbar({ label, start, end, children, ...rest }) {
25
26
  }) : null]
26
27
  });
27
28
  }
29
+ const Toolbar = withSelfRoot(ToolbarImpl);
28
30
  //#endregion
29
31
  export { Toolbar };
@@ -1,7 +1,20 @@
1
+ import { ReactNode } from "react";
1
2
  import { Tooltip as Tooltip$1 } from "@ark-ui/react/tooltip";
2
3
  //#region src/components/tooltip/index.d.ts
3
- /** Ark's Tooltip, dressed in the paper-and-ink system: the smallest
4
- * vessel — a tight chip of ink that dissolves in over its anchor. The
5
- * API is Ark's own — Root, Trigger, Positioner, Content, Arrow, ArrowTip. */
6
- export declare const Tooltip: typeof Tooltip$1;
4
+ type TooltipPlacement = "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end" | "right" | "right-start" | "right-end";
5
+ export interface TooltipFacadeProps {
6
+ open?: boolean;
7
+ defaultOpen?: boolean;
8
+ trigger: ReactNode;
9
+ content: string;
10
+ disabled?: boolean;
11
+ placement?: TooltipPlacement;
12
+ onOpenChange?: (open: boolean) => void;
13
+ }
14
+ declare function TooltipFacade({ open, defaultOpen, trigger, content, disabled, placement, onOpenChange }: TooltipFacadeProps): import("react").JSX.Element;
15
+ declare namespace TooltipFacade {
16
+ var displayName: string;
17
+ }
18
+ type TooltipParts = typeof Tooltip$1;
19
+ export declare const Tooltip: typeof TooltipFacade & TooltipParts;
7
20
  //#endregion