@bysages/react 0.3.1 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (272) hide show
  1. package/dist/{ai-response-BfKTmtCt.mjs → ai-response-B4DX7nmJ.mjs} +3 -1
  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 +1 -1
  8. package/dist/components/ai/index.mjs +5 -3
  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 +16 -44
  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 +10 -14
  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 +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 +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 +6 -1
  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 +2 -11
  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/button/index.d.mts +4 -1
  47. package/dist/components/button/index.mjs +3 -1
  48. package/dist/components/calendar/index.d.mts +3 -1
  49. package/dist/components/calendar/index.mjs +9 -10
  50. package/dist/components/carousel/index.d.mts +21 -1
  51. package/dist/components/carousel/index.mjs +43 -2
  52. package/dist/components/cascade-select/index.d.mts +6 -1
  53. package/dist/components/cascade-select/index.mjs +12 -35
  54. package/dist/components/checkbox/index.d.mts +20 -2
  55. package/dist/components/checkbox/index.mjs +28 -8
  56. package/dist/components/checkbox-group/index.d.mts +8 -6
  57. package/dist/components/checkbox-group/index.mjs +44 -48
  58. package/dist/components/chip/index.d.mts +4 -1
  59. package/dist/components/chip/index.mjs +3 -1
  60. package/dist/components/client-only/index.d.mts +7 -2
  61. package/dist/components/client-only/index.mjs +5 -1
  62. package/dist/components/clipboard/index.d.mts +17 -4
  63. package/dist/components/clipboard/index.mjs +33 -5
  64. package/dist/components/collapsible/index.d.mts +16 -4
  65. package/dist/components/collapsible/index.mjs +25 -1
  66. package/dist/components/color-picker/index.d.mts +20 -4
  67. package/dist/components/color-picker/index.mjs +56 -14
  68. package/dist/components/combobox/index.d.mts +27 -1
  69. package/dist/components/combobox/index.mjs +62 -5
  70. package/dist/components/command/index.d.mts +4 -1
  71. package/dist/components/command/index.mjs +7 -1
  72. package/dist/components/comment/index.d.mts +4 -1
  73. package/dist/components/comment/index.mjs +3 -1
  74. package/dist/components/config-provider/index.d.mts +4 -1
  75. package/dist/components/config-provider/index.mjs +3 -1
  76. package/dist/components/container/index.d.mts +4 -1
  77. package/dist/components/container/index.mjs +3 -1
  78. package/dist/components/data-view/index.d.mts +4 -1
  79. package/dist/components/data-view/index.mjs +3 -1
  80. package/dist/components/date-input/index.d.mts +19 -4
  81. package/dist/components/date-input/index.mjs +33 -9
  82. package/dist/components/date-picker/index.d.mts +21 -4
  83. package/dist/components/date-picker/index.mjs +58 -11
  84. package/dist/components/deferred-content/index.d.mts +4 -1
  85. package/dist/components/deferred-content/index.mjs +3 -1
  86. package/dist/components/descriptions/index.d.mts +10 -2
  87. package/dist/components/descriptions/index.mjs +13 -8
  88. package/dist/components/dialog/index.d.mts +18 -5
  89. package/dist/components/dialog/index.mjs +43 -1
  90. package/dist/components/download-trigger/index.d.mts +7 -2
  91. package/dist/components/download-trigger/index.mjs +5 -1
  92. package/dist/components/drawer/index.d.mts +18 -6
  93. package/dist/components/drawer/index.mjs +40 -1
  94. package/dist/components/dynamic-input/index.d.mts +4 -1
  95. package/dist/components/dynamic-input/index.mjs +10 -18
  96. package/dist/components/editable/index.d.mts +28 -7
  97. package/dist/components/editable/index.mjs +43 -4
  98. package/dist/components/ellipsis/index.d.mts +4 -1
  99. package/dist/components/ellipsis/index.mjs +3 -1
  100. package/dist/components/field/index.d.mts +30 -5
  101. package/dist/components/field/index.mjs +36 -3
  102. package/dist/components/fieldset/index.d.mts +19 -4
  103. package/dist/components/fieldset/index.mjs +28 -3
  104. package/dist/components/file-upload/index.d.mts +29 -9
  105. package/dist/components/file-upload/index.mjs +46 -10
  106. package/dist/components/floating-panel/index.d.mts +18 -6
  107. package/dist/components/floating-panel/index.mjs +55 -1
  108. package/dist/components/focus-trap/index.d.mts +7 -2
  109. package/dist/components/focus-trap/index.mjs +5 -1
  110. package/dist/components/form/index.d.mts +1 -1
  111. package/dist/components/form/index.mjs +5 -2
  112. package/dist/components/frame/index.d.mts +4 -8
  113. package/dist/components/frame/index.mjs +13 -1
  114. package/dist/components/grid/index.d.mts +4 -1
  115. package/dist/components/grid/index.mjs +3 -1
  116. package/dist/components/highlight/index.d.mts +3 -5
  117. package/dist/components/highlight/index.mjs +6 -1
  118. package/dist/components/hover-card/index.d.mts +20 -4
  119. package/dist/components/hover-card/index.mjs +32 -1
  120. package/dist/components/icon/index.d.mts +10 -8
  121. package/dist/components/icon/index.mjs +5 -3
  122. package/dist/components/image/index.d.mts +5 -2
  123. package/dist/components/image/index.mjs +14 -29
  124. package/dist/components/image-cropper/index.d.mts +13 -2
  125. package/dist/components/image-cropper/index.mjs +34 -2
  126. package/dist/components/image-viewer/index.d.mts +2 -24
  127. package/dist/components/image-viewer/index.mjs +3 -113
  128. package/dist/components/input/index.d.mts +3 -1
  129. package/dist/components/input/index.mjs +1 -1
  130. package/dist/components/json-tree-view/index.d.mts +17 -1
  131. package/dist/components/json-tree-view/index.mjs +26 -5
  132. package/dist/components/kbd/index.d.mts +4 -1
  133. package/dist/components/kbd/index.mjs +3 -1
  134. package/dist/components/layout/index.d.mts +25 -7
  135. package/dist/components/layout/index.mjs +157 -63
  136. package/dist/components/link/index.d.mts +4 -1
  137. package/dist/components/link/index.mjs +3 -1
  138. package/dist/components/listbox/index.d.mts +22 -1
  139. package/dist/components/listbox/index.mjs +36 -4
  140. package/dist/components/marquee/index.d.mts +18 -1
  141. package/dist/components/marquee/index.mjs +34 -2
  142. package/dist/components/masonry/index.d.mts +4 -1
  143. package/dist/components/masonry/index.mjs +3 -1
  144. package/dist/components/media-player/index.d.mts +2 -0
  145. package/dist/components/media-player/index.mjs +2 -0
  146. package/dist/components/mentions/index.d.mts +1 -1
  147. package/dist/components/mentions/index.mjs +1 -1
  148. package/dist/components/menu/index.d.mts +29 -11
  149. package/dist/components/menu/index.mjs +34 -12
  150. package/dist/components/menubar/index.d.mts +3 -1
  151. package/dist/components/menubar/index.mjs +6 -1
  152. package/dist/components/navigation-menu/index.d.mts +25 -1
  153. package/dist/components/navigation-menu/index.mjs +36 -1
  154. package/dist/components/number-input/index.d.mts +28 -6
  155. package/dist/components/number-input/index.mjs +33 -8
  156. package/dist/components/order-list/index.d.mts +4 -1
  157. package/dist/components/order-list/index.mjs +26 -24
  158. package/dist/components/pagination/index.d.mts +23 -3
  159. package/dist/components/pagination/index.mjs +57 -12
  160. package/dist/components/password-input/index.d.mts +24 -6
  161. package/dist/components/password-input/index.mjs +31 -8
  162. package/dist/components/pin-input/index.d.mts +23 -5
  163. package/dist/components/pin-input/index.mjs +29 -7
  164. package/dist/components/popconfirm/index.d.mts +9 -5
  165. package/dist/components/popconfirm/index.mjs +23 -18
  166. package/dist/components/popover/index.d.mts +2 -8
  167. package/dist/components/popover/index.mjs +44 -4
  168. package/dist/components/presence/index.d.mts +10 -2
  169. package/dist/components/presence/index.mjs +6 -1
  170. package/dist/components/progress/index.d.mts +18 -3
  171. package/dist/components/progress/index.mjs +34 -9
  172. package/dist/components/progress-group/index.d.mts +4 -1
  173. package/dist/components/progress-group/index.mjs +4 -2
  174. package/dist/components/qr-code/index.d.mts +14 -1
  175. package/dist/components/qr-code/index.mjs +26 -2
  176. package/dist/components/radio-group/index.d.mts +27 -2
  177. package/dist/components/radio-group/index.mjs +32 -8
  178. package/dist/components/rating-group/index.d.mts +20 -3
  179. package/dist/components/rating-group/index.mjs +26 -8
  180. package/dist/components/result/index.d.mts +1 -1
  181. package/dist/components/result/index.mjs +2 -2
  182. package/dist/components/scroll-area/index.d.mts +14 -1
  183. package/dist/components/scroll-area/index.mjs +32 -2
  184. package/dist/components/segment-group/index.d.mts +28 -2
  185. package/dist/components/segment-group/index.mjs +34 -7
  186. package/dist/components/select/index.d.mts +2 -2
  187. package/dist/components/select/index.mjs +1 -1
  188. package/dist/components/separator/index.d.mts +4 -1
  189. package/dist/components/separator/index.mjs +3 -1
  190. package/dist/components/signature-pad/index.d.mts +25 -5
  191. package/dist/components/signature-pad/index.mjs +37 -3
  192. package/dist/components/skeleton/index.d.mts +4 -1
  193. package/dist/components/skeleton/index.mjs +3 -1
  194. package/dist/components/slider/index.d.mts +21 -2
  195. package/dist/components/slider/index.mjs +31 -8
  196. package/dist/components/spinner/index.d.mts +4 -1
  197. package/dist/components/spinner/index.mjs +3 -1
  198. package/dist/components/split-button/index.d.mts +3 -1
  199. package/dist/components/split-button/index.mjs +12 -17
  200. package/dist/components/splitter/index.d.mts +17 -4
  201. package/dist/components/splitter/index.mjs +35 -1
  202. package/dist/components/spotlight/index.d.mts +4 -1
  203. package/dist/components/spotlight/index.mjs +3 -1
  204. package/dist/components/stack/index.d.mts +4 -1
  205. package/dist/components/stack/index.mjs +6 -4
  206. package/dist/components/steps/index.d.mts +26 -6
  207. package/dist/components/steps/index.mjs +26 -11
  208. package/dist/components/swap/index.d.mts +11 -5
  209. package/dist/components/swap/index.mjs +30 -3
  210. package/dist/components/switch/index.d.mts +20 -2
  211. package/dist/components/switch/index.mjs +27 -8
  212. package/dist/components/table/index.d.mts +4 -1
  213. package/dist/components/table/index.mjs +26 -56
  214. package/dist/components/tabs/index.d.mts +24 -2
  215. package/dist/components/tabs/index.mjs +25 -9
  216. package/dist/components/tags-input/index.d.mts +33 -8
  217. package/dist/components/tags-input/index.mjs +41 -9
  218. package/dist/components/terminal/index.d.mts +4 -1
  219. package/dist/components/terminal/index.mjs +3 -1
  220. package/dist/components/textarea/index.d.mts +4 -1
  221. package/dist/components/textarea/index.mjs +3 -1
  222. package/dist/components/timer/index.d.mts +18 -1
  223. package/dist/components/timer/index.mjs +51 -2
  224. package/dist/components/toast/index.d.mts +3 -6
  225. package/dist/components/toast/index.mjs +22 -2
  226. package/dist/components/toc/index.d.mts +19 -5
  227. package/dist/components/toc/index.mjs +31 -5
  228. package/dist/components/toggle/index.d.mts +11 -4
  229. package/dist/components/toggle/index.mjs +21 -1
  230. package/dist/components/toggle-group/index.d.mts +26 -2
  231. package/dist/components/toggle-group/index.mjs +31 -6
  232. package/dist/components/toolbar/index.d.mts +4 -1
  233. package/dist/components/toolbar/index.mjs +3 -1
  234. package/dist/components/tooltip/index.d.mts +17 -4
  235. package/dist/components/tooltip/index.mjs +28 -1
  236. package/dist/components/tour/index.d.mts +18 -9
  237. package/dist/components/tour/index.mjs +44 -2
  238. package/dist/components/transfer/index.d.mts +3 -1
  239. package/dist/components/transfer/index.mjs +14 -26
  240. package/dist/components/tree-select/index.d.mts +3 -1
  241. package/dist/components/tree-select/index.mjs +11 -22
  242. package/dist/components/tree-view/index.d.mts +22 -2
  243. package/dist/components/tree-view/index.mjs +50 -8
  244. package/dist/components/typography/index.d.mts +4 -0
  245. package/dist/components/typography/index.mjs +1 -0
  246. package/dist/components/user/index.d.mts +4 -1
  247. package/dist/components/user/index.mjs +3 -1
  248. package/dist/components/virtual-list/index.d.mts +4 -1
  249. package/dist/components/virtual-list/index.mjs +10 -12
  250. package/dist/components/watermark/index.d.mts +4 -1
  251. package/dist/components/watermark/index.mjs +4 -2
  252. package/dist/family-DE_GQeeM.mjs +9 -0
  253. package/dist/icon-BALgGtNK.mjs +18 -0
  254. package/dist/id-C37UYLwJ.mjs +13 -0
  255. package/dist/image-viewer-Cf6thHax.mjs +141 -0
  256. package/dist/{index-Uefyw7Im.d.mts → index-Bbg4heDO.d.mts} +12 -7
  257. package/dist/index-BcRdWGY-.d.mts +115 -0
  258. package/dist/{index-Iy8m0Qev.d.mts → index-D_iKc2Uw.d.mts} +31 -2
  259. package/dist/{index-Dn5mHf1g.d.mts → index-DdNKngUQ.d.mts} +56 -17
  260. package/dist/index-Dj8S4eyJ.d.mts +41 -0
  261. package/dist/index-Eu-Bttta.d.mts +24 -0
  262. package/dist/{index-uPyYiWaL.d.mts → index-PsgGWW3m.d.mts} +8 -2
  263. package/dist/index.d.mts +36 -35
  264. package/dist/index.mjs +11 -10
  265. package/dist/{input-2oezH-dY.mjs → input-C21Zzuy6.mjs} +3 -1
  266. package/dist/media-player-gQrnxU52.mjs +554 -0
  267. package/dist/{mentions-DMIBCBOd.mjs → mentions-BuWibdci.mjs} +74 -42
  268. package/dist/select-ozUFq0zd.mjs +121 -0
  269. package/package.json +3 -3
  270. package/dist/chevron-BeHvt46K.mjs +0 -17
  271. package/dist/glyph-VI989p8H.mjs +0 -14
  272. package/dist/select-eAHutw56.mjs +0 -70
@@ -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,19 +1,23 @@
1
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
2
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
3
+ import { Combobox as Combobox$1 } from "../combobox/index.mjs";
2
4
  import { injectComponentStyle } from "@bysages/core";
3
5
  import { jsx, jsxs } from "react/jsx-runtime";
4
6
  import { Portal } from "@ark-ui/react/portal";
5
7
  import { useListCollection } from "@ark-ui/react/collection";
6
8
  import { Combobox } from "@ark-ui/react/combobox";
7
9
  //#region src/components/autocomplete/index.tsx
8
- function AutoComplete({ value = "", items = [], placeholder, filter, size = "md", onValueChange, ...rest }) {
10
+ function AutoCompleteImpl({ value = "", items = [], placeholder, filter, size = "md", onValueChange, ...rest }) {
9
11
  injectComponentStyle("combobox");
10
12
  const messages = useComponentMessages();
13
+ const hostId = useElementId("autocomplete", rest);
11
14
  const { collection, filter: filterItems } = useListCollection({
12
15
  initialItems: items,
13
16
  filter: (item, input) => filter ? filter(item, input) : item.toLowerCase().includes(input.toLowerCase())
14
17
  });
15
18
  return /* @__PURE__ */ jsxs(Combobox.Root, {
16
19
  ...rest,
20
+ id: `${hostId}:combobox`,
17
21
  collection,
18
22
  inputValue: value,
19
23
  allowCustomValue: true,
@@ -33,5 +37,6 @@ function AutoComplete({ value = "", items = [], placeholder, filter, size = "md"
33
37
  }, item))] }) }) })]
34
38
  });
35
39
  }
40
+ const AutoComplete = Object.assign(AutoCompleteImpl, Combobox$1);
36
41
  //#endregion
37
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,4 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
1
2
  import { n as useComponentMessages } from "../../messages-1jJWtaYU.mjs";
2
3
  import { injectComponentStyle } from "@bysages/core";
3
4
  import { jsx } from "react/jsx-runtime";
@@ -40,17 +41,7 @@ const Close = (rest) => {
40
41
  "aria-label": rest["aria-label"] ?? messages.banner.dismiss,
41
42
  "data-scope": "banner",
42
43
  "data-part": "close",
43
- children: /* @__PURE__ */ jsx("svg", {
44
- viewBox: "0 0 16 16",
45
- fill: "none",
46
- "aria-hidden": true,
47
- children: /* @__PURE__ */ jsx("path", {
48
- d: "M4 4l8 8M12 4l-8 8",
49
- stroke: "currentColor",
50
- strokeWidth: 1.5,
51
- strokeLinecap: "round"
52
- })
53
- })
44
+ children: iconNode("x")
54
45
  });
55
46
  };
56
47
  const Banner = Object.assign(Root, {
@@ -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 };
@@ -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
@@ -1,18 +1,14 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
3
+ import { DatePicker as DatePicker$1 } from "../date-picker/index.mjs";
1
4
  import { injectComponentStyle } from "@bysages/core";
2
5
  import { jsx, jsxs } from "react/jsx-runtime";
3
6
  import { DatePicker } from "@ark-ui/react/date-picker";
4
7
  //#region src/components/calendar/index.tsx
5
8
  function chevron(dir) {
6
- return /* @__PURE__ */ jsx("svg", {
9
+ return iconNode(dir === "left" ? "chevron-left" : "chevron-right", {
7
10
  width: 16,
8
- height: 16,
9
- viewBox: "0 0 24 24",
10
- fill: "none",
11
- stroke: "currentColor",
12
- strokeWidth: 1.75,
13
- "aria-hidden": true,
14
- style: dir === "left" ? { transform: "rotate(180deg)" } : void 0,
15
- children: /* @__PURE__ */ jsx("path", { d: "m9 5 7 7-7 7" })
11
+ height: 16
16
12
  });
17
13
  }
18
14
  /** The date-picker's month grid, standing on the page without its
@@ -20,9 +16,10 @@ function chevron(dir) {
20
16
  * title zooms out through month and year grids; the grids themselves
21
17
  * are the shared machinery — value, range selection, and focus ride
22
18
  * Ark's own contract. */
23
- function Calendar({ value, min, max, onValueChange, children, ...rest }) {
19
+ function CalendarImpl({ value, min, max, onValueChange, children, ...rest }) {
24
20
  injectComponentStyle("calendar");
25
21
  injectComponentStyle("date-picker");
22
+ const hostId = useElementId("calendar", rest);
26
23
  const title = (dp) => {
27
24
  const d = dp.focusedValue;
28
25
  if (!d) return "";
@@ -48,6 +45,7 @@ function Calendar({ value, min, max, onValueChange, children, ...rest }) {
48
45
  "data-scope": "calendar",
49
46
  "data-part": "root",
50
47
  children: [/* @__PURE__ */ jsxs(DatePicker.Root, {
48
+ id: `${hostId}:date-picker`,
51
49
  open: true,
52
50
  closeOnSelect: true,
53
51
  inline: true,
@@ -92,5 +90,6 @@ function Calendar({ value, min, max, onValueChange, children, ...rest }) {
92
90
  }), children]
93
91
  });
94
92
  }
93
+ const Calendar = Object.assign(CalendarImpl, DatePicker$1);
95
94
  //#endregion
96
95
  export { Calendar };
@@ -1,3 +1,4 @@
1
+ import { CSSProperties, ComponentProps } from "react";
1
2
  import { Carousel as Carousel$1 } from "@ark-ui/react/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,24 @@ import { Carousel as Carousel$1 } from "@ark-ui/react/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("react").JSX.Element;
10
+ type CarouselSlide = string | {
11
+ label: string;
12
+ };
13
+ type CarouselFacadeProps = {
14
+ value?: number;
15
+ defaultValue?: number;
16
+ items: CarouselSlide[];
17
+ spacing?: string;
18
+ label?: string;
19
+ className?: string;
20
+ style?: CSSProperties;
21
+ onValueChange?: (page: number) => void;
22
+ };
23
+ /** The complete carousel behind a slide list: arrows, progress, items, and
24
+ * indicators use the common lane. Custom slides remain anatomy work. */
25
+ declare function CarouselFacade(props: CarouselFacadeProps): import("react").JSX.Element;
26
+ export declare const Carousel: typeof CarouselFacade & Omit<typeof Carousel$1, "Root"> & {
27
+ Root: typeof CarouselRoot;
28
+ };
9
29
  //#endregion
@@ -1,4 +1,7 @@
1
+ import { t as iconNode } from "../../icon-BALgGtNK.mjs";
2
+ import { t as useElementId } from "../../id-C37UYLwJ.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { jsx, jsxs } from "react/jsx-runtime";
2
5
  import { Carousel as Carousel$1 } from "@ark-ui/react/carousel";
3
6
  //#region src/components/carousel/index.tsx
4
7
  /** Ark's Carousel, dressed in the paper-and-ink system: slides ride in one
@@ -6,7 +9,45 @@ import { Carousel as Carousel$1 } from "@ark-ui/react/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;
10
- injectComponentStyle("carousel");
12
+ function CarouselRoot(props) {
13
+ injectComponentStyle("carousel");
14
+ const id = useElementId("carousel", props);
15
+ return /* @__PURE__ */ jsx(Carousel$1.Root, {
16
+ ...props,
17
+ id
18
+ });
19
+ }
20
+ /** The complete carousel behind a slide list: arrows, progress, items, and
21
+ * indicators use the common lane. Custom slides remain anatomy work. */
22
+ function CarouselFacade(props) {
23
+ const { value, defaultValue, items, spacing, label, className, style, onValueChange } = props;
24
+ const slides = items.map((item) => typeof item === "string" ? item : item.label);
25
+ return /* @__PURE__ */ jsxs(CarouselRoot, {
26
+ "aria-label": label,
27
+ slideCount: slides.length,
28
+ defaultPage: defaultValue,
29
+ page: value,
30
+ spacing,
31
+ className,
32
+ style,
33
+ onPageChange: (event) => onValueChange?.(event.page),
34
+ children: [
35
+ /* @__PURE__ */ jsxs(Carousel$1.Control, { children: [
36
+ /* @__PURE__ */ jsx(Carousel$1.PrevTrigger, { children: iconNode("chevron-left") }),
37
+ /* @__PURE__ */ jsx(Carousel$1.ProgressText, {}),
38
+ /* @__PURE__ */ jsx(Carousel$1.NextTrigger, { children: iconNode("chevron-right") })
39
+ ] }),
40
+ /* @__PURE__ */ jsx(Carousel$1.ItemGroup, { children: slides.map((slide, index) => /* @__PURE__ */ jsx(Carousel$1.Item, {
41
+ index,
42
+ children: slide
43
+ }, index)) }),
44
+ /* @__PURE__ */ jsx(Carousel$1.IndicatorGroup, { children: slides.map((_, index) => /* @__PURE__ */ jsx(Carousel$1.Indicator, { index }, index)) })
45
+ ]
46
+ });
47
+ }
48
+ const Carousel = Object.assign(CarouselFacade, {
49
+ ...Carousel$1,
50
+ Root: CarouselRoot
51
+ });
11
52
  //#endregion
12
53
  export { Carousel };
@@ -6,6 +6,8 @@ export interface CascadeSelectNode {
6
6
  children?: CascadeSelectNode[];
7
7
  disabled?: boolean;
8
8
  }
9
+ /**
10
+
9
11
  /**
10
12
  * A corridor of linked columns: pick a branch and the next column
11
13
  * dissolves open beside it, until a leaf click settles the whole path.
@@ -27,5 +29,8 @@ export interface CascadeSelectProps extends HTMLAttributes<HTMLDivElement> {
27
29
  size?: "sm" | "md" | "lg";
28
30
  onValueChange?: (value: string[][]) => void;
29
31
  }
30
- export declare function CascadeSelect({ value, data, placeholder, highlightTrigger, filterable, multiple, disabled, size, onValueChange, ...rest }: CascadeSelectProps): import("react").JSX.Element;
32
+ declare function CascadeSelectImpl({ value, data, placeholder, highlightTrigger, filterable, multiple, disabled, size, onValueChange, ...rest }: CascadeSelectProps): import("react").JSX.Element;
33
+ export declare const CascadeSelect: typeof CascadeSelectImpl & {
34
+ Root: typeof CascadeSelectImpl;
35
+ };
31
36
  //#endregion