@bysages/react 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 (277) hide show
  1. package/dist/{ai-response-jZy-0Tvv.mjs → ai-response-B4DX7nmJ.mjs} +10 -4
  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 +31 -1
  5. package/dist/components/affix/index.d.mts +4 -1
  6. package/dist/components/affix/index.mjs +5 -3
  7. package/dist/components/ai/index.d.mts +2 -2
  8. package/dist/components/ai/index.mjs +29 -12
  9. package/dist/components/ai-action/index.d.mts +4 -1
  10. package/dist/components/ai-action/index.mjs +3 -1
  11. package/dist/components/ai-attachments/index.d.mts +10 -4
  12. package/dist/components/ai-attachments/index.mjs +19 -45
  13. package/dist/components/ai-message/index.d.mts +4 -1
  14. package/dist/components/ai-message/index.mjs +3 -1
  15. package/dist/components/ai-prompt-input/index.d.mts +5 -2
  16. package/dist/components/ai-prompt-input/index.mjs +17 -17
  17. package/dist/components/ai-reasoning/index.d.mts +4 -1
  18. package/dist/components/ai-reasoning/index.mjs +4 -2
  19. package/dist/components/ai-response/index.d.mts +8 -3
  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 +5 -2
  23. package/dist/components/ai-suggestion/index.d.mts +4 -1
  24. package/dist/components/ai-suggestion/index.mjs +3 -1
  25. package/dist/components/ai-tool/index.d.mts +4 -1
  26. package/dist/components/ai-tool/index.mjs +4 -2
  27. package/dist/components/alert/index.d.mts +2 -0
  28. package/dist/components/alert/index.mjs +11 -18
  29. package/dist/components/angle-slider/index.d.mts +19 -2
  30. package/dist/components/angle-slider/index.mjs +31 -8
  31. package/dist/components/aspect-ratio/index.d.mts +4 -1
  32. package/dist/components/aspect-ratio/index.mjs +3 -1
  33. package/dist/components/autocomplete/index.d.mts +3 -1
  34. package/dist/components/autocomplete/index.mjs +9 -2
  35. package/dist/components/avatar/index.d.mts +2 -2
  36. package/dist/components/avatar/index.mjs +9 -2
  37. package/dist/components/avatar-group/index.d.mts +4 -1
  38. package/dist/components/avatar-group/index.mjs +3 -1
  39. package/dist/components/back-top/index.d.mts +7 -1
  40. package/dist/components/back-top/index.mjs +12 -17
  41. package/dist/components/badge/index.d.mts +4 -1
  42. package/dist/components/badge/index.mjs +3 -1
  43. package/dist/components/banner/index.mjs +13 -18
  44. package/dist/components/block-ui/index.d.mts +4 -1
  45. package/dist/components/block-ui/index.mjs +3 -1
  46. package/dist/components/breadcrumb/index.d.mts +3 -8
  47. package/dist/components/breadcrumb/index.mjs +11 -1
  48. package/dist/components/button/index.d.mts +4 -1
  49. package/dist/components/button/index.mjs +3 -1
  50. package/dist/components/calendar/index.d.mts +3 -1
  51. package/dist/components/calendar/index.mjs +9 -10
  52. package/dist/components/carousel/index.d.mts +21 -1
  53. package/dist/components/carousel/index.mjs +43 -2
  54. package/dist/components/cascade-select/index.d.mts +6 -1
  55. package/dist/components/cascade-select/index.mjs +18 -37
  56. package/dist/components/checkbox/index.d.mts +20 -2
  57. package/dist/components/checkbox/index.mjs +28 -8
  58. package/dist/components/checkbox-group/index.d.mts +8 -6
  59. package/dist/components/checkbox-group/index.mjs +44 -48
  60. package/dist/components/chip/index.d.mts +4 -1
  61. package/dist/components/chip/index.mjs +3 -1
  62. package/dist/components/client-only/index.d.mts +7 -2
  63. package/dist/components/client-only/index.mjs +5 -1
  64. package/dist/components/clipboard/index.d.mts +17 -4
  65. package/dist/components/clipboard/index.mjs +33 -5
  66. package/dist/components/collapsible/index.d.mts +16 -4
  67. package/dist/components/collapsible/index.mjs +25 -1
  68. package/dist/components/color-picker/index.d.mts +20 -4
  69. package/dist/components/color-picker/index.mjs +56 -14
  70. package/dist/components/combobox/index.d.mts +27 -1
  71. package/dist/components/combobox/index.mjs +62 -5
  72. package/dist/components/command/index.d.mts +4 -1
  73. package/dist/components/command/index.mjs +15 -3
  74. package/dist/components/comment/index.d.mts +4 -1
  75. package/dist/components/comment/index.mjs +3 -1
  76. package/dist/components/config-provider/index.d.mts +8 -2
  77. package/dist/components/config-provider/index.mjs +5 -2
  78. package/dist/components/container/index.d.mts +4 -1
  79. package/dist/components/container/index.mjs +3 -1
  80. package/dist/components/data-view/index.d.mts +4 -1
  81. package/dist/components/data-view/index.mjs +7 -3
  82. package/dist/components/date-input/index.d.mts +19 -4
  83. package/dist/components/date-input/index.mjs +33 -9
  84. package/dist/components/date-picker/index.d.mts +21 -4
  85. package/dist/components/date-picker/index.mjs +58 -11
  86. package/dist/components/deferred-content/index.d.mts +4 -1
  87. package/dist/components/deferred-content/index.mjs +3 -1
  88. package/dist/components/descriptions/index.d.mts +10 -2
  89. package/dist/components/descriptions/index.mjs +13 -8
  90. package/dist/components/dialog/index.d.mts +18 -5
  91. package/dist/components/dialog/index.mjs +43 -1
  92. package/dist/components/download-trigger/index.d.mts +7 -2
  93. package/dist/components/download-trigger/index.mjs +5 -1
  94. package/dist/components/drawer/index.d.mts +18 -6
  95. package/dist/components/drawer/index.mjs +40 -1
  96. package/dist/components/dynamic-input/index.d.mts +4 -1
  97. package/dist/components/dynamic-input/index.mjs +13 -19
  98. package/dist/components/editable/index.d.mts +28 -7
  99. package/dist/components/editable/index.mjs +43 -4
  100. package/dist/components/ellipsis/index.d.mts +4 -1
  101. package/dist/components/ellipsis/index.mjs +3 -1
  102. package/dist/components/field/index.d.mts +30 -5
  103. package/dist/components/field/index.mjs +36 -3
  104. package/dist/components/fieldset/index.d.mts +19 -4
  105. package/dist/components/fieldset/index.mjs +28 -3
  106. package/dist/components/file-upload/index.d.mts +36 -9
  107. package/dist/components/file-upload/index.mjs +66 -11
  108. package/dist/components/float-button/index.mjs +3 -1
  109. package/dist/components/floating-panel/index.d.mts +18 -6
  110. package/dist/components/floating-panel/index.mjs +55 -1
  111. package/dist/components/focus-trap/index.d.mts +7 -2
  112. package/dist/components/focus-trap/index.mjs +5 -1
  113. package/dist/components/form/index.d.mts +1 -1
  114. package/dist/components/form/index.mjs +5 -2
  115. package/dist/components/frame/index.d.mts +4 -8
  116. package/dist/components/frame/index.mjs +13 -1
  117. package/dist/components/grid/index.d.mts +4 -1
  118. package/dist/components/grid/index.mjs +3 -1
  119. package/dist/components/highlight/index.d.mts +3 -5
  120. package/dist/components/highlight/index.mjs +6 -1
  121. package/dist/components/hover-card/index.d.mts +20 -4
  122. package/dist/components/hover-card/index.mjs +32 -1
  123. package/dist/components/icon/index.d.mts +10 -8
  124. package/dist/components/icon/index.mjs +5 -3
  125. package/dist/components/image/index.d.mts +11 -2
  126. package/dist/components/image/index.mjs +16 -29
  127. package/dist/components/image-cropper/index.d.mts +13 -2
  128. package/dist/components/image-cropper/index.mjs +34 -2
  129. package/dist/components/image-viewer/index.d.mts +2 -18
  130. package/dist/components/image-viewer/index.mjs +3 -109
  131. package/dist/components/input/index.d.mts +3 -1
  132. package/dist/components/input/index.mjs +1 -1
  133. package/dist/components/json-tree-view/index.d.mts +20 -4
  134. package/dist/components/json-tree-view/index.mjs +38 -4
  135. package/dist/components/kbd/index.d.mts +4 -1
  136. package/dist/components/kbd/index.mjs +3 -1
  137. package/dist/components/layout/index.d.mts +25 -7
  138. package/dist/components/layout/index.mjs +159 -63
  139. package/dist/components/link/index.d.mts +4 -1
  140. package/dist/components/link/index.mjs +3 -1
  141. package/dist/components/list/index.d.mts +5 -4
  142. package/dist/components/list/index.mjs +10 -1
  143. package/dist/components/listbox/index.d.mts +22 -1
  144. package/dist/components/listbox/index.mjs +36 -4
  145. package/dist/components/marquee/index.d.mts +18 -1
  146. package/dist/components/marquee/index.mjs +34 -2
  147. package/dist/components/masonry/index.d.mts +4 -1
  148. package/dist/components/masonry/index.mjs +3 -1
  149. package/dist/components/media-player/index.d.mts +2 -0
  150. package/dist/components/media-player/index.mjs +2 -0
  151. package/dist/components/mentions/index.d.mts +1 -1
  152. package/dist/components/mentions/index.mjs +1 -1
  153. package/dist/components/menu/index.d.mts +29 -11
  154. package/dist/components/menu/index.mjs +34 -12
  155. package/dist/components/menubar/index.d.mts +3 -1
  156. package/dist/components/menubar/index.mjs +7 -1
  157. package/dist/components/navigation-menu/index.d.mts +25 -1
  158. package/dist/components/navigation-menu/index.mjs +36 -1
  159. package/dist/components/number-input/index.d.mts +28 -6
  160. package/dist/components/number-input/index.mjs +33 -8
  161. package/dist/components/order-list/index.d.mts +4 -1
  162. package/dist/components/order-list/index.mjs +34 -33
  163. package/dist/components/pagination/index.d.mts +23 -3
  164. package/dist/components/pagination/index.mjs +57 -12
  165. package/dist/components/password-input/index.d.mts +24 -6
  166. package/dist/components/password-input/index.mjs +31 -8
  167. package/dist/components/pin-input/index.d.mts +23 -5
  168. package/dist/components/pin-input/index.mjs +29 -7
  169. package/dist/components/popconfirm/index.d.mts +9 -5
  170. package/dist/components/popconfirm/index.mjs +23 -18
  171. package/dist/components/popover/index.d.mts +2 -8
  172. package/dist/components/popover/index.mjs +44 -4
  173. package/dist/components/presence/index.d.mts +10 -2
  174. package/dist/components/presence/index.mjs +6 -1
  175. package/dist/components/progress/index.d.mts +18 -3
  176. package/dist/components/progress/index.mjs +34 -9
  177. package/dist/components/progress-group/index.d.mts +4 -1
  178. package/dist/components/progress-group/index.mjs +4 -2
  179. package/dist/components/qr-code/index.d.mts +14 -1
  180. package/dist/components/qr-code/index.mjs +26 -2
  181. package/dist/components/radio-group/index.d.mts +27 -2
  182. package/dist/components/radio-group/index.mjs +32 -8
  183. package/dist/components/rating-group/index.d.mts +20 -3
  184. package/dist/components/rating-group/index.mjs +26 -8
  185. package/dist/components/result/index.d.mts +1 -1
  186. package/dist/components/result/index.mjs +2 -2
  187. package/dist/components/scroll-area/index.d.mts +14 -1
  188. package/dist/components/scroll-area/index.mjs +32 -2
  189. package/dist/components/segment-group/index.d.mts +28 -2
  190. package/dist/components/segment-group/index.mjs +34 -7
  191. package/dist/components/select/index.d.mts +2 -2
  192. package/dist/components/select/index.mjs +1 -1
  193. package/dist/components/separator/index.d.mts +4 -1
  194. package/dist/components/separator/index.mjs +3 -1
  195. package/dist/components/signature-pad/index.d.mts +25 -5
  196. package/dist/components/signature-pad/index.mjs +37 -3
  197. package/dist/components/skeleton/index.d.mts +4 -1
  198. package/dist/components/skeleton/index.mjs +3 -1
  199. package/dist/components/slider/index.d.mts +21 -2
  200. package/dist/components/slider/index.mjs +31 -8
  201. package/dist/components/spinner/index.d.mts +4 -1
  202. package/dist/components/spinner/index.mjs +6 -2
  203. package/dist/components/split-button/index.d.mts +3 -1
  204. package/dist/components/split-button/index.mjs +15 -18
  205. package/dist/components/splitter/index.d.mts +17 -4
  206. package/dist/components/splitter/index.mjs +35 -1
  207. package/dist/components/spotlight/index.d.mts +4 -1
  208. package/dist/components/spotlight/index.mjs +3 -1
  209. package/dist/components/stack/index.d.mts +4 -1
  210. package/dist/components/stack/index.mjs +6 -4
  211. package/dist/components/steps/index.d.mts +27 -3
  212. package/dist/components/steps/index.mjs +36 -12
  213. package/dist/components/swap/index.d.mts +11 -5
  214. package/dist/components/swap/index.mjs +30 -3
  215. package/dist/components/switch/index.d.mts +20 -2
  216. package/dist/components/switch/index.mjs +27 -8
  217. package/dist/components/table/index.d.mts +4 -1
  218. package/dist/components/table/index.mjs +44 -70
  219. package/dist/components/tabs/index.d.mts +24 -2
  220. package/dist/components/tabs/index.mjs +25 -9
  221. package/dist/components/tags-input/index.d.mts +33 -8
  222. package/dist/components/tags-input/index.mjs +41 -9
  223. package/dist/components/terminal/index.d.mts +4 -1
  224. package/dist/components/terminal/index.mjs +8 -3
  225. package/dist/components/textarea/index.d.mts +4 -1
  226. package/dist/components/textarea/index.mjs +3 -1
  227. package/dist/components/timer/index.d.mts +18 -1
  228. package/dist/components/timer/index.mjs +51 -2
  229. package/dist/components/toast/index.d.mts +3 -6
  230. package/dist/components/toast/index.mjs +22 -2
  231. package/dist/components/toc/index.d.mts +24 -4
  232. package/dist/components/toc/index.mjs +41 -3
  233. package/dist/components/toggle/index.d.mts +11 -4
  234. package/dist/components/toggle/index.mjs +21 -1
  235. package/dist/components/toggle-group/index.d.mts +26 -2
  236. package/dist/components/toggle-group/index.mjs +31 -6
  237. package/dist/components/toolbar/index.d.mts +4 -1
  238. package/dist/components/toolbar/index.mjs +3 -1
  239. package/dist/components/tooltip/index.d.mts +17 -4
  240. package/dist/components/tooltip/index.mjs +28 -1
  241. package/dist/components/tour/index.d.mts +18 -9
  242. package/dist/components/tour/index.mjs +44 -2
  243. package/dist/components/transfer/index.d.mts +3 -1
  244. package/dist/components/transfer/index.mjs +20 -30
  245. package/dist/components/tree-select/index.d.mts +3 -1
  246. package/dist/components/tree-select/index.mjs +15 -24
  247. package/dist/components/tree-view/index.d.mts +30 -1
  248. package/dist/components/tree-view/index.mjs +69 -6
  249. package/dist/components/typography/index.d.mts +4 -0
  250. package/dist/components/typography/index.mjs +1 -0
  251. package/dist/components/user/index.d.mts +4 -1
  252. package/dist/components/user/index.mjs +3 -1
  253. package/dist/components/virtual-list/index.d.mts +4 -1
  254. package/dist/components/virtual-list/index.mjs +11 -12
  255. package/dist/components/watermark/index.d.mts +4 -1
  256. package/dist/components/watermark/index.mjs +4 -2
  257. package/dist/family-DE_GQeeM.mjs +9 -0
  258. package/dist/icon-BALgGtNK.mjs +18 -0
  259. package/dist/id-C37UYLwJ.mjs +13 -0
  260. package/dist/image-viewer-Cf6thHax.mjs +141 -0
  261. package/dist/{index-Uefyw7Im.d.mts → index-Bbg4heDO.d.mts} +12 -7
  262. package/dist/index-BcRdWGY-.d.mts +115 -0
  263. package/dist/{index-DFN9F5Zt.d.mts → index-D_iKc2Uw.d.mts} +32 -3
  264. package/dist/{index-CsfxYv6J.d.mts → index-DdNKngUQ.d.mts} +63 -39
  265. package/dist/index-Dj8S4eyJ.d.mts +41 -0
  266. package/dist/index-Eu-Bttta.d.mts +24 -0
  267. package/dist/{index-uPyYiWaL.d.mts → index-PsgGWW3m.d.mts} +8 -2
  268. package/dist/index.d.mts +36 -35
  269. package/dist/index.mjs +13 -12
  270. package/dist/{input-2oezH-dY.mjs → input-C21Zzuy6.mjs} +3 -1
  271. package/dist/media-player-gQrnxU52.mjs +554 -0
  272. package/dist/{mentions-DMIBCBOd.mjs → mentions-BuWibdci.mjs} +74 -42
  273. package/dist/messages-1jJWtaYU.mjs +16 -0
  274. package/dist/select-ozUFq0zd.mjs +121 -0
  275. package/package.json +3 -3
  276. package/dist/chevron-BeHvt46K.mjs +0 -17
  277. package/dist/select-D1xiT1oJ.mjs +0 -68
@@ -1,8 +1,9 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { Button } from "../button/index.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { jsx } from "react/jsx-runtime";
4
5
  //#region src/components/ai-suggestion/index.tsx
5
- function Suggestion({ prompt, onSelect, ...rest }) {
6
+ function SuggestionImpl({ prompt, onSelect, ...rest }) {
6
7
  injectComponentStyle("ai");
7
8
  return /* @__PURE__ */ jsx(Button, {
8
9
  variant: "outline",
@@ -12,5 +13,6 @@ function Suggestion({ prompt, onSelect, ...rest }) {
12
13
  children: prompt
13
14
  });
14
15
  }
16
+ const Suggestion = withSelfRoot(SuggestionImpl);
15
17
  //#endregion
16
18
  export { Suggestion as AiSuggestion, Suggestion };
@@ -16,6 +16,9 @@ export interface ToolProps extends HTMLAttributes<HTMLDivElement> {
16
16
  input?: ReactNode;
17
17
  output?: ReactNode;
18
18
  }
19
- export declare function Tool({ name, label, status, input, output, ...rest }: ToolProps): import("react").JSX.Element;
19
+ declare function ToolImpl({ name, label, status, input, output, ...rest }: ToolProps): import("react").JSX.Element;
20
+ export declare const Tool: typeof ToolImpl & {
21
+ Root: typeof ToolImpl;
22
+ };
20
23
  //#endregion
21
24
  export { Tool as AiTool };
@@ -1,9 +1,10 @@
1
- import { t as chevron } from "../../chevron-BeHvt46K.mjs";
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
2
+ import { t as chevron } from "../../chevron-a2nIZKN4.mjs";
2
3
  import { Collapsible } from "../collapsible/index.mjs";
3
4
  import { injectComponentStyle } from "@bysages/core";
4
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
6
  //#region src/components/ai-tool/index.tsx
6
- function Tool({ name, label, status, input, output, ...rest }) {
7
+ function ToolImpl({ name, label, status, input, output, ...rest }) {
7
8
  injectComponentStyle("ai");
8
9
  return /* @__PURE__ */ jsxs(Collapsible.Root, {
9
10
  ...rest,
@@ -32,5 +33,6 @@ function Tool({ name, label, status, input, output, ...rest }) {
32
33
  }) })]
33
34
  });
34
35
  }
36
+ const Tool = withSelfRoot(ToolImpl);
35
37
  //#endregion
36
38
  export { Tool as AiTool, Tool };
@@ -1,6 +1,8 @@
1
1
  import { HTMLAttributes, ReactNode } from "react";
2
2
  //#region src/components/alert/index.d.ts
3
3
  export type AlertStatus = "ink" | "info" | "success" | "warning" | "danger";
4
+ /** A notice
5
+
4
6
  /** A notice drawn on the page: a wash of the status pigment, one heavier
5
7
  * hairline on the leading edge, the serif for its title. Root, Icon,
6
8
  * Body, Title, Description — the icon reads the status from the Root. */
@@ -1,26 +1,19 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { createContext, useContext } from "react";
4
5
  //#region src/components/alert/index.tsx
5
6
  const StatusContext = createContext("ink");
6
- function glyph(status) {
7
- return /* @__PURE__ */ jsx("svg", {
7
+ function statusIcon(status) {
8
+ return iconNode({
9
+ info: "info",
10
+ success: "circle-check",
11
+ warning: "triangle-alert",
12
+ danger: "circle-x",
13
+ ink: "info"
14
+ }[status], {
8
15
  width: 16,
9
- height: 16,
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- stroke: "currentColor",
13
- strokeWidth: 1.75,
14
- strokeLinecap: "round",
15
- strokeLinejoin: "round",
16
- "aria-hidden": "true",
17
- children: /* @__PURE__ */ jsx("path", { d: {
18
- info: "M12 8v5m0 3v.01M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z",
19
- success: "m4 12.5 5 5L20 6.5",
20
- warning: "M12 4 2.5 20h19L12 4Zm0 6v4m0 3v.01",
21
- danger: "M6 6l12 12M18 6 6 18",
22
- ink: "M12 8v5m0 3v.01M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18Z"
23
- }[status] })
16
+ height: 16
24
17
  });
25
18
  }
26
19
  function AlertRoot({ status = "ink", children, ...rest }) {
@@ -41,7 +34,7 @@ function Icon() {
41
34
  return /* @__PURE__ */ jsx("span", {
42
35
  "data-scope": "alert",
43
36
  "data-part": "icon",
44
- children: glyph(status)
37
+ children: statusIcon(status)
45
38
  });
46
39
  }
47
40
  function Body({ children, ...rest }) {
@@ -5,12 +5,29 @@ type AngleSliderRootProps = ComponentProps<typeof AngleSlider$1.Root> & {
5
5
  /** One rung of the dial ladder — the diameter the needle sweeps. */
6
6
  size?: "sm" | "md" | "lg";
7
7
  };
8
- declare function AngleSliderRoot({ size, ...rest }: AngleSliderRootProps): import("react").JSX.Element;
8
+ declare function AngleSliderRoot(props: AngleSliderRootProps): import("react").JSX.Element;
9
+ export interface AngleSliderFacadeProps {
10
+ value?: number;
11
+ defaultValue?: number;
12
+ label?: string;
13
+ step?: number;
14
+ disabled?: boolean;
15
+ readOnly?: boolean;
16
+ /** One rung of the dial ladder — the diameter the needle sweeps. */
17
+ size?: "sm" | "md" | "lg";
18
+ className?: string;
19
+ onValueChange?: (value: number) => void;
20
+ }
21
+ declare function AngleSliderFacade({ value, defaultValue, label, step, disabled, readOnly, size, className, onValueChange }: AngleSliderFacadeProps): import("react").JSX.Element;
22
+ declare namespace AngleSliderFacade {
23
+ var displayName: string;
24
+ }
9
25
  /** Ark's AngleSlider, dressed in the paper-and-ink system: a flat paper dial
10
26
  * the thumb sweeps as a pigment needle over hairline degree ticks. The API
11
27
  * is Ark's own — Root, Label, ValueText, Control, Thumb, MarkerGroup,
12
28
  * Marker, HiddenInput. */
13
- export declare const AngleSlider: Omit<typeof AngleSlider$1, "Root"> & {
29
+ type AngleSliderParts = Omit<typeof AngleSlider$1, "Root"> & {
14
30
  Root: typeof AngleSliderRoot;
15
31
  };
32
+ export declare const AngleSlider: typeof AngleSliderFacade & AngleSliderParts;
16
33
  //#endregion
@@ -1,21 +1,44 @@
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
- import { jsx } from "react/jsx-runtime";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
3
4
  import { AngleSlider as AngleSlider$1 } from "@ark-ui/react/angle-slider";
4
5
  //#region src/components/angle-slider/index.tsx
5
- function AngleSliderRoot({ size = "md", ...rest }) {
6
+ function AngleSliderRoot(props) {
7
+ const id = useElementId("angle-slider", props);
8
+ const { size = "md", ...rest } = props;
6
9
  return /* @__PURE__ */ jsx(AngleSlider$1.Root, {
7
10
  ...rest,
11
+ id,
8
12
  "data-size": size
9
13
  });
10
14
  }
11
- /** Ark's AngleSlider, dressed in the paper-and-ink system: a flat paper dial
12
- * the thumb sweeps as a pigment needle over hairline degree ticks. The API
13
- * is Ark's own — Root, Label, ValueText, Control, Thumb, MarkerGroup,
14
- * Marker, HiddenInput. */
15
- const AngleSlider = {
15
+ function AngleSliderFacade({ value, defaultValue = 45, label, step = 1, disabled = false, readOnly = false, size = "md", className, onValueChange }) {
16
+ return /* @__PURE__ */ jsxs(AngleSliderRoot, {
17
+ className,
18
+ size,
19
+ disabled,
20
+ readOnly,
21
+ step,
22
+ defaultValue,
23
+ ...value === void 0 ? {} : { value },
24
+ onValueChange: (details) => onValueChange?.(details.value),
25
+ children: [
26
+ label ? /* @__PURE__ */ jsx(AngleSlider$1.Label, { children: label }) : null,
27
+ /* @__PURE__ */ jsx(AngleSlider$1.ValueText, {}),
28
+ /* @__PURE__ */ jsxs(AngleSlider$1.Control, { children: [/* @__PURE__ */ jsx(AngleSlider$1.MarkerGroup, { children: [
29
+ 0,
30
+ 90,
31
+ 180,
32
+ 270
33
+ ].map((degree) => /* @__PURE__ */ jsx(AngleSlider$1.Marker, { value: degree }, degree)) }), /* @__PURE__ */ jsx(AngleSlider$1.Thumb, { children: /* @__PURE__ */ jsx(AngleSlider$1.HiddenInput, {}) })] })
34
+ ]
35
+ });
36
+ }
37
+ AngleSliderFacade.displayName = "SAngleSlider";
38
+ const AngleSlider = Object.assign(AngleSliderFacade, {
16
39
  ...AngleSlider$1,
17
40
  Root: AngleSliderRoot
18
- };
41
+ });
19
42
  injectComponentStyle("angle-slider");
20
43
  //#endregion
21
44
  export { AngleSlider };
@@ -6,5 +6,8 @@ export interface AspectRatioProps extends HTMLAttributes<HTMLDivElement> {
6
6
  /** A CSS `aspect-ratio` value — "16 / 9", "4 / 3", "1 / 1". */
7
7
  ratio?: string;
8
8
  }
9
- export declare function AspectRatio({ ratio, ...rest }: AspectRatioProps): import("react").JSX.Element;
9
+ declare function AspectRatioImpl({ ratio, ...rest }: AspectRatioProps): import("react").JSX.Element;
10
+ export declare const AspectRatio: typeof AspectRatioImpl & {
11
+ Root: typeof AspectRatioImpl;
12
+ };
10
13
  //#endregion
@@ -1,7 +1,8 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/components/aspect-ratio/index.tsx
4
- function AspectRatio({ ratio = "1 / 1", ...rest }) {
5
+ function AspectRatioImpl({ ratio = "1 / 1", ...rest }) {
5
6
  injectComponentStyle("aspect-ratio");
6
7
  return /* @__PURE__ */ jsx("div", {
7
8
  ...rest,
@@ -13,5 +14,6 @@ function AspectRatio({ ratio = "1 / 1", ...rest }) {
13
14
  "data-part": "root"
14
15
  });
15
16
  }
17
+ const AspectRatio = withSelfRoot(AspectRatioImpl);
16
18
  //#endregion
17
19
  export { AspectRatio };
@@ -1,3 +1,4 @@
1
+ import { Combobox } from "../combobox/index.mjs";
1
2
  import { HTMLAttributes } from "react";
2
3
  //#region src/components/autocomplete/index.d.ts
3
4
  /**
@@ -17,5 +18,6 @@ export interface AutoCompleteProps extends Omit<HTMLAttributes<HTMLDivElement>,
17
18
  size?: "sm" | "md" | "lg";
18
19
  onValueChange?: (value: string) => void;
19
20
  }
20
- export declare function AutoComplete({ value, items, placeholder, filter, size, onValueChange, ...rest }: AutoCompleteProps): import("react").JSX.Element;
21
+ declare function AutoCompleteImpl({ value, items, placeholder, filter, size, onValueChange, ...rest }: AutoCompleteProps): import("react").JSX.Element;
22
+ export declare const AutoComplete: typeof AutoCompleteImpl & typeof Combobox;
21
23
  //#endregion
@@ -1,17 +1,23 @@
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
2
+ import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
3
+ import { Combobox as Combobox$1 } from "../combobox/index.mjs";
1
4
  import { injectComponentStyle } from "@bysages/core";
2
5
  import { jsx, jsxs } from "react/jsx-runtime";
3
6
  import { Portal } from "@ark-ui/react/portal";
4
7
  import { useListCollection } from "@ark-ui/react/collection";
5
8
  import { Combobox } from "@ark-ui/react/combobox";
6
9
  //#region src/components/autocomplete/index.tsx
7
- function AutoComplete({ value = "", items = [], placeholder, filter, size = "md", onValueChange, ...rest }) {
10
+ function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size = "md", onValueChange, ...rest }) {
8
11
  injectComponentStyle("combobox");
12
+ const messages = useComponentMessages();
13
+ const hostId = useElementId("autocomplete", rest);
9
14
  const { collection, filter: filterItems } = useListCollection({
10
15
  initialItems: items,
11
16
  filter: (item, input) => filter ? filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
12
17
  });
13
18
  return /* @__PURE__ */ jsxs(Combobox.Root, {
14
19
  ...rest,
20
+ id: `${hostId}:combobox`,
15
21
  collection,
16
22
  inputValue: value,
17
23
  allowCustomValue: true,
@@ -25,11 +31,12 @@ function AutoComplete({ value = "", items = [], placeholder, filter, size = "md"
25
31
  onValueChange?.(details.inputValue);
26
32
  },
27
33
  positioning: { sameWidth: true },
28
- children: [/* @__PURE__ */ jsx(Combobox.Control, { children: /* @__PURE__ */ jsx(Combobox.Input, { placeholder }) }), /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [/* @__PURE__ */ jsx(Combobox.Empty, { children: "No matches" }), collection.items.map((item) => /* @__PURE__ */ jsx(Combobox.Item, {
34
+ children: [/* @__PURE__ */ jsx(Combobox.Control, { children: /* @__PURE__ */ jsx(Combobox.Input, { placeholder }) }), /* @__PURE__ */ jsx(Portal, { children: /* @__PURE__ */ jsx(Combobox.Positioner, { children: /* @__PURE__ */ jsxs(Combobox.Content, { children: [/* @__PURE__ */ jsx(Combobox.Empty, { children: messages.command.noMatches }), collection.items.map((item) => /* @__PURE__ */ jsx(Combobox.Item, {
29
35
  item,
30
36
  children: /* @__PURE__ */ jsx(Combobox.ItemText, { children: item })
31
37
  }, item))] }) }) })]
32
38
  });
33
39
  }
40
+ const AutoComplete = Object.assign(AutoCompleteImpl, Combobox$1);
34
41
  //#endregion
35
42
  export { AutoComplete };
@@ -16,8 +16,8 @@ export interface AvatarProps extends ComponentProps<typeof Avatar$1.Root> {
16
16
  * beside a round portrait. */
17
17
  shape?: "circle" | "square";
18
18
  }
19
- declare function AvatarRoot({ size, shape, ...rest }: AvatarProps): import("react").JSX.Element;
20
- export declare const Avatar: typeof Avatar$1 & {
19
+ declare function AvatarRoot(props: AvatarProps): import("react").JSX.Element;
20
+ export declare const Avatar: typeof AvatarRoot & typeof Avatar$1 & {
21
21
  Root: typeof AvatarRoot;
22
22
  };
23
23
  //#endregion
@@ -1,15 +1,22 @@
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { Avatar as Avatar$1 } from "@ark-ui/react/avatar";
4
5
  //#region src/components/avatar/index.tsx
5
- function AvatarRoot({ size, shape = "circle", ...rest }) {
6
+ function AvatarRoot(props) {
7
+ const id = useElementId("avatar", props);
8
+ const { size, shape = "circle", ...rest } = props;
6
9
  return /* @__PURE__ */ jsx(Avatar$1.Root, {
7
10
  ...rest,
11
+ id,
8
12
  "data-size": size,
9
13
  "data-shape": shape
10
14
  });
11
15
  }
12
- const Avatar = Object.assign({}, Avatar$1, { Root: AvatarRoot });
16
+ const Avatar = Object.assign(AvatarRoot, {
17
+ ...Avatar$1,
18
+ Root: AvatarRoot
19
+ });
13
20
  injectComponentStyle("avatar");
14
21
  //#endregion
15
22
  export { Avatar };
@@ -7,5 +7,8 @@ export interface AvatarGroupProps extends HTMLAttributes<HTMLDivElement> {
7
7
  * stylesheet to re-point the avatars' measure. */
8
8
  size?: "sm" | "md" | "lg";
9
9
  }
10
- export declare function AvatarGroup({ size, children, ...rest }: AvatarGroupProps): import("react").JSX.Element;
10
+ declare function AvatarGroupImpl({ size, children, ...rest }: AvatarGroupProps): import("react").JSX.Element;
11
+ export declare const AvatarGroup: typeof AvatarGroupImpl & {
12
+ Root: typeof AvatarGroupImpl;
13
+ };
11
14
  //#endregion
@@ -1,7 +1,8 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/components/avatar-group/index.tsx
4
- function AvatarGroup({ size, children, ...rest }) {
5
+ function AvatarGroupImpl({ size, children, ...rest }) {
5
6
  injectComponentStyle("avatar-group");
6
7
  return /* @__PURE__ */ jsx("div", {
7
8
  ...rest,
@@ -11,5 +12,6 @@ function AvatarGroup({ size, children, ...rest }) {
11
12
  children
12
13
  });
13
14
  }
15
+ const AvatarGroup = withSelfRoot(AvatarGroupImpl);
14
16
  //#endregion
15
17
  export { AvatarGroup };
@@ -11,6 +11,9 @@ export interface BackTopProps extends HTMLAttributes<HTMLButtonElement> {
11
11
  * scrollTop. The host supplies the positioning context. */
12
12
  scrollEl?: () => HTMLElement | null;
13
13
  }
14
+ /**
15
+ * A way
16
+
14
17
  /**
15
18
  * A way home: after the page has scrolled past `threshold`, a small
16
19
  * floating control rises at the page's corner and returns the reader to
@@ -25,5 +28,8 @@ export interface BackTopProps extends HTMLAttributes<HTMLButtonElement> {
25
28
  * paper, hairline and halo are its; this family owns only the floating
26
29
  * and the entrance.
27
30
  */
28
- export declare function BackTop({ threshold, label, scrollEl, ...rest }: BackTopProps): import("react").JSX.Element;
31
+ declare function BackTopImpl({ threshold, label, scrollEl, ...rest }: BackTopProps): import("react").JSX.Element;
32
+ export declare const BackTop: typeof BackTopImpl & {
33
+ Root: typeof BackTopImpl;
34
+ };
29
35
  //#endregion
@@ -1,23 +1,17 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
3
  import { Button } from "../button/index.mjs";
2
4
  import { injectComponentStyle } from "@bysages/core";
3
5
  import { jsx } from "react/jsx-runtime";
4
6
  import { useEffect, useState } from "react";
5
7
  //#region src/components/back-top/index.tsx
6
- /** The single glyph a way-home control needs: one stroke pointing up. */
7
- function chevronUp() {
8
- return /* @__PURE__ */ jsx("svg", {
9
- width: 16,
10
- height: 16,
11
- viewBox: "0 0 24 24",
12
- fill: "none",
13
- stroke: "currentColor",
14
- strokeWidth: 1.75,
15
- strokeLinecap: "round",
16
- strokeLinejoin: "round",
17
- "aria-hidden": "true",
18
- children: /* @__PURE__ */ jsx("path", { d: "m6 14 6-6 6 6" })
19
- });
20
- }
8
+ const chevronUp = iconNode("chevron-up", {
9
+ width: 16,
10
+ height: 16
11
+ });
12
+ /**
13
+ * A way
14
+
21
15
  /**
22
16
  * A way home: after the page has scrolled past `threshold`, a small
23
17
  * floating control rises at the page's corner and returns the reader to
@@ -32,7 +26,7 @@ function chevronUp() {
32
26
  * paper, hairline and halo are its; this family owns only the floating
33
27
  * and the entrance.
34
28
  */
35
- function BackTop({ threshold = 400, label = "Back to top", scrollEl, ...rest }) {
29
+ function BackTopImpl({ threshold = 400, label = "Back to top", scrollEl, ...rest }) {
36
30
  injectComponentStyle("back-top");
37
31
  const [visible, setVisible] = useState(false);
38
32
  useEffect(() => {
@@ -74,9 +68,10 @@ function BackTop({ threshold = 400, label = "Back to top", scrollEl, ...rest })
74
68
  "aria-hidden": visible ? void 0 : "true",
75
69
  tabIndex: visible ? 0 : -1,
76
70
  onClick: toTop,
77
- children: rest.children ?? chevronUp()
71
+ children: rest.children ?? chevronUp
78
72
  })
79
73
  });
80
74
  }
75
+ const BackTop = withSelfRoot(BackTopImpl);
81
76
  //#endregion
82
77
  export { BackTop };
@@ -6,5 +6,8 @@ export interface BadgeProps extends HTMLAttributes<HTMLSpanElement> {
6
6
  tone?: "ink" | "info" | "success" | "warning" | "danger";
7
7
  variant?: "solid" | "subtle" | "outline";
8
8
  }
9
- export declare function Badge({ tone, variant, ...rest }: BadgeProps): import("react").JSX.Element;
9
+ declare function BadgeImpl({ tone, variant, ...rest }: BadgeProps): import("react").JSX.Element;
10
+ export declare const Badge: typeof BadgeImpl & {
11
+ Root: typeof BadgeImpl;
12
+ };
10
13
  //#endregion
@@ -1,7 +1,8 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/components/badge/index.tsx
4
- function Badge({ tone = "ink", variant = "solid", ...rest }) {
5
+ function BadgeImpl({ tone = "ink", variant = "solid", ...rest }) {
5
6
  injectComponentStyle("badge");
6
7
  return /* @__PURE__ */ jsx("span", {
7
8
  ...rest,
@@ -11,5 +12,6 @@ function Badge({ tone = "ink", variant = "solid", ...rest }) {
11
12
  "data-variant": variant
12
13
  });
13
14
  }
15
+ const Badge = withSelfRoot(BadgeImpl);
14
16
  //#endregion
15
17
  export { Badge };
@@ -1,3 +1,5 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
4
  import { jsx } from "react/jsx-runtime";
3
5
  //#region src/components/banner/index.tsx
@@ -31,24 +33,17 @@ const Description = part("Description", "p");
31
33
  const Actions = part("Actions", "div");
32
34
  /** The quiet close: a plain square-cut button; dismissal stays the
33
35
  * consumer's state. */
34
- const Close = (rest) => /* @__PURE__ */ jsx("button", {
35
- ...rest,
36
- type: rest.type ?? "button",
37
- "aria-label": rest["aria-label"] ?? "Dismiss",
38
- "data-scope": "banner",
39
- "data-part": "close",
40
- children: /* @__PURE__ */ jsx("svg", {
41
- viewBox: "0 0 16 16",
42
- fill: "none",
43
- "aria-hidden": true,
44
- children: /* @__PURE__ */ jsx("path", {
45
- d: "M4 4l8 8M12 4l-8 8",
46
- stroke: "currentColor",
47
- strokeWidth: 1.5,
48
- strokeLinecap: "round"
49
- })
50
- })
51
- });
36
+ const Close = (rest) => {
37
+ const messages = useComponentMessages();
38
+ return /* @__PURE__ */ jsx("button", {
39
+ ...rest,
40
+ type: rest.type ?? "button",
41
+ "aria-label": rest["aria-label"] ?? messages.banner.dismiss,
42
+ "data-scope": "banner",
43
+ "data-part": "close",
44
+ children: iconNode("x")
45
+ });
46
+ };
52
47
  const Banner = Object.assign(Root, {
53
48
  Root,
54
49
  Icon,
@@ -8,5 +8,8 @@ export interface BlockUIProps extends 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({ blocked, children, ...rest }: BlockUIProps): import("react").JSX.Element;
11
+ declare function BlockUIImpl({ blocked, children, ...rest }: BlockUIProps): import("react").JSX.Element;
12
+ export declare const BlockUI: typeof BlockUIImpl & {
13
+ Root: typeof BlockUIImpl;
14
+ };
12
15
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { Spinner } from "../spinner/index.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -5,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
5
6
  /** A curtain over content that must wait: the blocked region keeps its
6
7
  * shape and dims under frosted paper while a quiet wheel reports the
7
8
  * wait. Callers own the state; the curtain only answers it. */
8
- function BlockUI({ blocked = false, children, ...rest }) {
9
+ function BlockUIImpl({ blocked = false, children, ...rest }) {
9
10
  injectComponentStyle("block-ui");
10
11
  return /* @__PURE__ */ jsxs("div", {
11
12
  ...rest,
@@ -20,5 +21,6 @@ function BlockUI({ blocked = false, children, ...rest }) {
20
21
  }) : null]
21
22
  });
22
23
  }
24
+ const BlockUI = withSelfRoot(BlockUIImpl);
23
25
  //#endregion
24
26
  export { BlockUI };
@@ -1,13 +1,8 @@
1
1
  import { AnchorHTMLAttributes, HTMLAttributes } from "react";
2
2
  //#region src/components/breadcrumb/index.d.ts
3
- export declare const Breadcrumb: {
4
- ({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
5
- displayName: string;
6
- } & {
7
- Root: {
8
- ({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
9
- displayName: string;
10
- };
3
+ declare function Root({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
4
+ export declare const Breadcrumb: typeof Root & {
5
+ Root: typeof Root;
11
6
  List: {
12
7
  ({ children, ...rest }: HTMLAttributes<HTMLElement>): import("react").JSX.Element;
13
8
  displayName: string;
@@ -1,3 +1,4 @@
1
+ import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  //#region src/components/breadcrumb/index.tsx
@@ -16,7 +17,16 @@ function part(name, tag, extra = {}, fallback) {
16
17
  Component.displayName = "Breadcrumb" + name;
17
18
  return Component;
18
19
  }
19
- const Root = part("Root", "nav", { "aria-label": "Breadcrumb" });
20
+ function Root({ children, ...rest }) {
21
+ const messages = useComponentMessages();
22
+ return /* @__PURE__ */ jsx("nav", {
23
+ ...rest,
24
+ "aria-label": rest["aria-label"] ?? messages.breadcrumb.label,
25
+ "data-scope": "breadcrumb",
26
+ "data-part": "root",
27
+ children
28
+ });
29
+ }
20
30
  const List = part("List", "ol");
21
31
  const Item = part("Item", "li");
22
32
  const Link = part("Link", "a");
@@ -15,5 +15,8 @@ export interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
15
15
  disabled?: boolean;
16
16
  children?: ReactNode;
17
17
  }
18
- export declare function Button({ variant, tone, size, square, asChild, disabled, type, children, ...rest }: ButtonProps): import("react").JSX.Element | null;
18
+ declare function ButtonImpl({ variant, tone, size, square, asChild, disabled, type, children, ...rest }: ButtonProps): import("react").JSX.Element | null;
19
+ export declare const Button: typeof ButtonImpl & {
20
+ Root: typeof ButtonImpl;
21
+ };
19
22
  //#endregion
@@ -1,8 +1,9 @@
1
+ import { t as withSelfRoot } from "../../family-DE_GQeeM.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { Children, cloneElement, isValidElement } from "react";
4
5
  //#region src/components/button/index.tsx
5
- function Button({ variant = "solid", tone = "ink", size = "md", square = false, asChild = false, disabled = false, type = "button", children, ...rest }) {
6
+ function ButtonImpl({ variant = "solid", tone = "ink", size = "md", square = false, asChild = false, disabled = false, type = "button", children, ...rest }) {
6
7
  injectComponentStyle("button");
7
8
  const partProps = {
8
9
  ...rest,
@@ -25,5 +26,6 @@ function Button({ variant = "solid", tone = "ink", size = "md", square = false,
25
26
  children
26
27
  });
27
28
  }
29
+ const Button = withSelfRoot(ButtonImpl);
28
30
  //#endregion
29
31
  export { Button };
@@ -1,3 +1,4 @@
1
+ import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
1
2
  import { HTMLAttributes } from "react";
2
3
  import { DatePickerRootProps } from "@ark-ui/react/date-picker";
3
4
  //#region src/components/calendar/index.d.ts
@@ -13,5 +14,6 @@ export interface CalendarProps extends 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({ value, min, max, onValueChange, children, ...rest }: CalendarProps): import("react").JSX.Element;
17
+ declare function CalendarImpl({ value, min, max, onValueChange, children, ...rest }: CalendarProps): import("react").JSX.Element;
18
+ export declare const Calendar: typeof CalendarImpl & typeof DatePicker$1;
17
19
  //#endregion