@bysages/solid 0.3.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. package/dist/{ai-response-ClGGptX3.mjs → ai-response-D2uINBIi.mjs} +17 -7
  2. package/dist/chevron-BHQrYKPM.mjs +8 -0
  3. package/dist/components/accordion/index.d.mts +22 -2
  4. package/dist/components/accordion/index.mjs +68 -2
  5. package/dist/components/affix/index.d.mts +3 -1
  6. package/dist/components/affix/index.mjs +5 -4
  7. package/dist/components/ai/index.d.mts +1 -1
  8. package/dist/components/ai/index.mjs +14 -16
  9. package/dist/components/ai-action/index.d.mts +3 -1
  10. package/dist/components/ai-action/index.mjs +3 -2
  11. package/dist/components/ai-attachments/index.d.mts +8 -4
  12. package/dist/components/ai-attachments/index.mjs +41 -37
  13. package/dist/components/ai-message/index.d.mts +3 -1
  14. package/dist/components/ai-message/index.mjs +3 -2
  15. package/dist/components/ai-prompt-input/index.d.mts +3 -1
  16. package/dist/components/ai-prompt-input/index.mjs +59 -46
  17. package/dist/components/ai-reasoning/index.d.mts +3 -1
  18. package/dist/components/ai-reasoning/index.mjs +4 -3
  19. package/dist/components/ai-response/index.d.mts +3 -1
  20. package/dist/components/ai-response/index.mjs +1 -1
  21. package/dist/components/ai-source/index.d.mts +6 -2
  22. package/dist/components/ai-source/index.mjs +5 -4
  23. package/dist/components/ai-suggestion/index.d.mts +3 -1
  24. package/dist/components/ai-suggestion/index.mjs +3 -2
  25. package/dist/components/ai-tool/index.d.mts +3 -1
  26. package/dist/components/ai-tool/index.mjs +4 -3
  27. package/dist/components/alert/index.mjs +31 -34
  28. package/dist/components/angle-slider/index.d.mts +1 -1
  29. package/dist/components/angle-slider/index.mjs +13 -5
  30. package/dist/components/aspect-ratio/index.d.mts +3 -1
  31. package/dist/components/aspect-ratio/index.mjs +3 -2
  32. package/dist/components/autocomplete/index.d.mts +4 -1
  33. package/dist/components/autocomplete/index.mjs +15 -2
  34. package/dist/components/avatar/index.d.mts +1 -1
  35. package/dist/components/avatar/index.mjs +10 -1
  36. package/dist/components/avatar-group/index.d.mts +3 -1
  37. package/dist/components/avatar-group/index.mjs +3 -2
  38. package/dist/components/back-top/index.d.mts +3 -1
  39. package/dist/components/back-top/index.mjs +9 -5
  40. package/dist/components/badge/index.d.mts +3 -1
  41. package/dist/components/badge/index.mjs +3 -2
  42. package/dist/components/banner/index.mjs +9 -3
  43. package/dist/components/block-ui/index.d.mts +3 -1
  44. package/dist/components/block-ui/index.mjs +3 -2
  45. package/dist/components/breadcrumb/index.mjs +5 -5
  46. package/dist/components/button/index.d.mts +3 -1
  47. package/dist/components/button/index.mjs +3 -2
  48. package/dist/components/calendar/index.d.mts +3 -1
  49. package/dist/components/calendar/index.mjs +29 -21
  50. package/dist/components/carousel/index.d.mts +5 -1
  51. package/dist/components/carousel/index.mjs +13 -1
  52. package/dist/components/cascade-select/index.d.mts +3 -1
  53. package/dist/components/cascade-select/index.mjs +82 -74
  54. package/dist/components/checkbox/index.d.mts +1 -1
  55. package/dist/components/checkbox/index.mjs +13 -5
  56. package/dist/components/checkbox-group/index.d.mts +4 -9
  57. package/dist/components/checkbox-group/index.mjs +65 -68
  58. package/dist/components/chip/index.d.mts +3 -1
  59. package/dist/components/chip/index.mjs +3 -2
  60. package/dist/components/client-only/index.d.mts +7 -2
  61. package/dist/components/client-only/index.mjs +8 -1
  62. package/dist/components/clipboard/index.d.mts +1 -1
  63. package/dist/components/clipboard/index.mjs +13 -5
  64. package/dist/components/collapsible/index.d.mts +15 -1
  65. package/dist/components/collapsible/index.mjs +39 -2
  66. package/dist/components/color-picker/index.d.mts +13 -2
  67. package/dist/components/color-picker/index.mjs +95 -8
  68. package/dist/components/combobox/index.d.mts +24 -1
  69. package/dist/components/combobox/index.mjs +129 -8
  70. package/dist/components/command/index.d.mts +4 -1
  71. package/dist/components/command/index.mjs +24 -4
  72. package/dist/components/comment/index.d.mts +3 -1
  73. package/dist/components/comment/index.mjs +3 -2
  74. package/dist/components/config-provider/index.d.mts +7 -2
  75. package/dist/components/config-provider/index.mjs +6 -3
  76. package/dist/components/container/index.d.mts +3 -1
  77. package/dist/components/container/index.mjs +3 -2
  78. package/dist/components/data-view/index.d.mts +3 -1
  79. package/dist/components/data-view/index.mjs +13 -8
  80. package/dist/components/date-input/index.d.mts +1 -1
  81. package/dist/components/date-input/index.mjs +13 -5
  82. package/dist/components/date-picker/index.d.mts +1 -1
  83. package/dist/components/date-picker/index.mjs +13 -5
  84. package/dist/components/deferred-content/index.d.mts +3 -1
  85. package/dist/components/deferred-content/index.mjs +3 -2
  86. package/dist/components/descriptions/index.d.mts +7 -0
  87. package/dist/components/descriptions/index.mjs +21 -2
  88. package/dist/components/dialog/index.d.mts +17 -1
  89. package/dist/components/dialog/index.mjs +84 -2
  90. package/dist/components/download-trigger/index.d.mts +7 -2
  91. package/dist/components/download-trigger/index.mjs +8 -1
  92. package/dist/components/drawer/index.d.mts +17 -1
  93. package/dist/components/drawer/index.mjs +83 -2
  94. package/dist/components/dynamic-input/index.d.mts +3 -1
  95. package/dist/components/dynamic-input/index.mjs +15 -7
  96. package/dist/components/editable/index.d.mts +1 -1
  97. package/dist/components/editable/index.mjs +13 -5
  98. package/dist/components/ellipsis/index.d.mts +3 -1
  99. package/dist/components/ellipsis/index.mjs +3 -2
  100. package/dist/components/field/index.d.mts +5 -1
  101. package/dist/components/field/index.mjs +13 -1
  102. package/dist/components/fieldset/index.d.mts +5 -1
  103. package/dist/components/fieldset/index.mjs +13 -1
  104. package/dist/components/file-upload/index.d.mts +1 -1
  105. package/dist/components/file-upload/index.mjs +24 -6
  106. package/dist/components/float-button/index.mjs +3 -1
  107. package/dist/components/floating-panel/index.d.mts +5 -1
  108. package/dist/components/floating-panel/index.mjs +13 -1
  109. package/dist/components/focus-trap/index.d.mts +7 -2
  110. package/dist/components/focus-trap/index.mjs +8 -1
  111. package/dist/components/form/index.d.mts +1 -1
  112. package/dist/components/form/index.mjs +10 -4
  113. package/dist/components/frame/index.d.mts +6 -1
  114. package/dist/components/frame/index.mjs +10 -1
  115. package/dist/components/grid/index.d.mts +3 -1
  116. package/dist/components/grid/index.mjs +3 -2
  117. package/dist/components/highlight/index.d.mts +3 -1
  118. package/dist/components/highlight/index.mjs +2 -1
  119. package/dist/components/hover-card/index.d.mts +19 -1
  120. package/dist/components/hover-card/index.mjs +91 -2
  121. package/dist/components/icon/index.d.mts +8 -7
  122. package/dist/components/icon/index.mjs +4 -3
  123. package/dist/components/image/index.d.mts +8 -2
  124. package/dist/components/image/index.mjs +40 -33
  125. package/dist/components/image-cropper/index.d.mts +5 -1
  126. package/dist/components/image-cropper/index.mjs +13 -1
  127. package/dist/components/image-viewer/index.d.mts +2 -19
  128. package/dist/components/image-viewer/index.mjs +3 -151
  129. package/dist/components/input/index.d.mts +3 -1
  130. package/dist/components/input/index.mjs +1 -1
  131. package/dist/components/json-tree-view/index.d.mts +5 -1
  132. package/dist/components/json-tree-view/index.mjs +22 -2
  133. package/dist/components/kbd/index.d.mts +3 -1
  134. package/dist/components/kbd/index.mjs +3 -2
  135. package/dist/components/layout/index.mjs +8 -4
  136. package/dist/components/link/index.d.mts +3 -1
  137. package/dist/components/link/index.mjs +3 -2
  138. package/dist/components/list/index.d.mts +2 -1
  139. package/dist/components/list/index.mjs +35 -26
  140. package/dist/components/listbox/index.d.mts +1 -1
  141. package/dist/components/listbox/index.mjs +13 -5
  142. package/dist/components/marquee/index.d.mts +5 -1
  143. package/dist/components/marquee/index.mjs +13 -1
  144. package/dist/components/masonry/index.d.mts +3 -1
  145. package/dist/components/masonry/index.mjs +3 -2
  146. package/dist/components/media-player/index.d.mts +2 -0
  147. package/dist/components/media-player/index.mjs +2 -0
  148. package/dist/components/mentions/index.d.mts +1 -1
  149. package/dist/components/mentions/index.mjs +2 -2
  150. package/dist/components/menu/index.d.mts +21 -1
  151. package/dist/components/menu/index.mjs +62 -5
  152. package/dist/components/menubar/index.d.mts +3 -1
  153. package/dist/components/menubar/index.mjs +31 -9
  154. package/dist/components/navigation-menu/index.d.mts +5 -1
  155. package/dist/components/navigation-menu/index.mjs +13 -1
  156. package/dist/components/number-input/index.d.mts +1 -1
  157. package/dist/components/number-input/index.mjs +13 -5
  158. package/dist/components/order-list/index.d.mts +3 -1
  159. package/dist/components/order-list/index.mjs +79 -67
  160. package/dist/components/pagination/index.d.mts +1 -1
  161. package/dist/components/pagination/index.mjs +13 -5
  162. package/dist/components/password-input/index.d.mts +1 -1
  163. package/dist/components/password-input/index.mjs +13 -5
  164. package/dist/components/pin-input/index.d.mts +1 -1
  165. package/dist/components/pin-input/index.mjs +13 -5
  166. package/dist/components/popconfirm/index.d.mts +3 -1
  167. package/dist/components/popconfirm/index.mjs +16 -8
  168. package/dist/components/popover/index.d.mts +19 -1
  169. package/dist/components/popover/index.mjs +91 -2
  170. package/dist/components/presence/index.d.mts +10 -2
  171. package/dist/components/presence/index.mjs +9 -1
  172. package/dist/components/progress/index.d.mts +1 -1
  173. package/dist/components/progress/index.mjs +13 -5
  174. package/dist/components/progress-group/index.d.mts +3 -1
  175. package/dist/components/progress-group/index.mjs +4 -3
  176. package/dist/components/qr-code/index.d.mts +5 -1
  177. package/dist/components/qr-code/index.mjs +13 -1
  178. package/dist/components/radio-group/index.d.mts +1 -1
  179. package/dist/components/radio-group/index.mjs +13 -5
  180. package/dist/components/rating-group/index.d.mts +2 -2
  181. package/dist/components/rating-group/index.mjs +13 -5
  182. package/dist/components/result/index.d.mts +1 -1
  183. package/dist/components/result/index.mjs +5 -3
  184. package/dist/components/scroll-area/index.d.mts +5 -1
  185. package/dist/components/scroll-area/index.mjs +13 -1
  186. package/dist/components/segment-group/index.d.mts +1 -1
  187. package/dist/components/segment-group/index.mjs +11 -6
  188. package/dist/components/select/index.d.mts +2 -2
  189. package/dist/components/select/index.mjs +1 -1
  190. package/dist/components/separator/index.d.mts +3 -1
  191. package/dist/components/separator/index.mjs +3 -2
  192. package/dist/components/signature-pad/index.d.mts +5 -1
  193. package/dist/components/signature-pad/index.mjs +13 -1
  194. package/dist/components/skeleton/index.d.mts +3 -1
  195. package/dist/components/skeleton/index.mjs +3 -2
  196. package/dist/components/slider/index.d.mts +1 -1
  197. package/dist/components/slider/index.mjs +13 -5
  198. package/dist/components/spinner/index.d.mts +3 -1
  199. package/dist/components/spinner/index.mjs +6 -3
  200. package/dist/components/split-button/index.d.mts +3 -1
  201. package/dist/components/split-button/index.mjs +19 -4
  202. package/dist/components/splitter/index.d.mts +5 -1
  203. package/dist/components/splitter/index.mjs +13 -1
  204. package/dist/components/spotlight/index.d.mts +3 -1
  205. package/dist/components/spotlight/index.mjs +3 -2
  206. package/dist/components/stack/index.d.mts +3 -1
  207. package/dist/components/stack/index.mjs +6 -5
  208. package/dist/components/steps/index.d.mts +25 -3
  209. package/dist/components/steps/index.mjs +73 -8
  210. package/dist/components/swap/index.d.mts +5 -1
  211. package/dist/components/swap/index.mjs +13 -1
  212. package/dist/components/switch/index.d.mts +1 -1
  213. package/dist/components/switch/index.mjs +13 -5
  214. package/dist/components/table/index.d.mts +3 -1
  215. package/dist/components/table/index.mjs +194 -164
  216. package/dist/components/tabs/index.d.mts +20 -2
  217. package/dist/components/tabs/index.mjs +59 -3
  218. package/dist/components/tags-input/index.d.mts +1 -1
  219. package/dist/components/tags-input/index.mjs +13 -5
  220. package/dist/components/terminal/index.d.mts +3 -1
  221. package/dist/components/terminal/index.mjs +6 -3
  222. package/dist/components/textarea/index.d.mts +3 -1
  223. package/dist/components/textarea/index.mjs +3 -2
  224. package/dist/components/timer/index.d.mts +5 -1
  225. package/dist/components/timer/index.mjs +13 -1
  226. package/dist/components/toast/index.d.mts +8 -2
  227. package/dist/components/toast/index.mjs +14 -2
  228. package/dist/components/toc/index.d.mts +5 -1
  229. package/dist/components/toc/index.mjs +1 -9
  230. package/dist/components/toggle/index.d.mts +5 -1
  231. package/dist/components/toggle/index.mjs +13 -1
  232. package/dist/components/toggle-group/index.d.mts +1 -1
  233. package/dist/components/toggle-group/index.mjs +13 -5
  234. package/dist/components/toolbar/index.d.mts +3 -1
  235. package/dist/components/toolbar/index.mjs +3 -2
  236. package/dist/components/tooltip/index.d.mts +16 -1
  237. package/dist/components/tooltip/index.mjs +55 -2
  238. package/dist/components/tour/index.d.mts +16 -3
  239. package/dist/components/tour/index.mjs +74 -9
  240. package/dist/components/transfer/index.d.mts +3 -1
  241. package/dist/components/transfer/index.mjs +68 -54
  242. package/dist/components/tree-select/index.d.mts +3 -1
  243. package/dist/components/tree-select/index.mjs +45 -35
  244. package/dist/components/tree-view/index.d.mts +1 -1
  245. package/dist/components/tree-view/index.mjs +26 -5
  246. package/dist/components/user/index.d.mts +3 -1
  247. package/dist/components/user/index.mjs +8 -2
  248. package/dist/components/virtual-list/index.d.mts +3 -1
  249. package/dist/components/virtual-list/index.mjs +14 -9
  250. package/dist/components/watermark/index.d.mts +3 -1
  251. package/dist/components/watermark/index.mjs +4 -3
  252. package/dist/element-dGIhOTJ6.mjs +16 -0
  253. package/dist/family-Cmd8HEyK.mjs +11 -0
  254. package/dist/icon-DTqmJCd5.mjs +48 -0
  255. package/dist/id-2ygNzPHF.mjs +12 -0
  256. package/dist/image-viewer-B9A5lXsk.mjs +228 -0
  257. package/dist/{index-B1xiJ5ki.d.mts → index-B1-quIrl.d.mts} +6 -2
  258. package/dist/{index-DDX7x8aT.d.mts → index-DEArHiFI.d.mts} +16 -7
  259. package/dist/index-DhripUtf.d.mts +39 -0
  260. package/dist/{index-YPUiqD3n.d.mts → index-ID48LCMU.d.mts} +28 -2
  261. package/dist/{index-IfofF-SW.d.mts → index-nFXK_8hJ.d.mts} +53 -23
  262. package/dist/index-wW28BYf1.d.mts +124 -0
  263. package/dist/index.d.mts +22 -21
  264. package/dist/index.mjs +14 -13
  265. package/dist/{input-DoFQ7RXh.mjs → input-CPAJdwDb.mjs} +3 -2
  266. package/dist/media-player-BC8D_d29.mjs +796 -0
  267. package/dist/{mentions-f5Js_2W7.mjs → mentions-CeG5u8Qm.mjs} +67 -51
  268. package/dist/select-7YjMSBGx.mjs +292 -0
  269. package/dist/toc-DYKaKQ_X.mjs +31 -0
  270. package/dist/use-component-messages-C4SCVYjD.mjs +17 -0
  271. package/package.json +3 -3
  272. package/dist/chevron-D5RzcayK.mjs +0 -9
  273. package/dist/select-CHaXbzLX.mjs +0 -115
@@ -1,10 +1,22 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { ScrollArea as ScrollArea$1 } from "@ark-ui/solid/scroll-area";
3
6
  //#region src/components/scroll-area/index.ts
4
7
  /** Ark's ScrollArea, dressed in the paper-and-ink system: native bars
5
8
  * give way to quiet ink lanes that surface on hover and scroll. The API
6
9
  * is Ark's own — Root, Viewport, Content, Scrollbar, Thumb, Corner. */
7
- const ScrollArea = ScrollArea$1;
10
+ function ScrollAreaRoot(props) {
11
+ const id = useElementId("scroll-area", () => props.id);
12
+ return createComponent(ScrollArea$1.Root, mergeProps(props, { get id() {
13
+ return id();
14
+ } }));
15
+ }
16
+ const ScrollArea = defineFamily(ScrollAreaRoot, {
17
+ ...ScrollArea$1,
18
+ Root: ScrollAreaRoot
19
+ });
8
20
  injectComponentStyle("scroll-area");
9
21
  //#endregion
10
22
  export { ScrollArea };
@@ -11,7 +11,7 @@ declare function SegmentGroupRoot(props: SegmentGroupRootProps & SegmentGroupOwn
11
11
  /** SegmentGroup, dressed in the paper-and-ink system: a hairline tray
12
12
  * where one flat ink plate travels beneath the checked seal. The parts - Root, Label, Indicator, Item, ItemText, ItemControl,
13
13
  * ItemHiddenInput. */
14
- export declare const SegmentGroup: Omit<typeof SegmentGroup$1, "Root"> & {
14
+ export declare const SegmentGroup: typeof SegmentGroupRoot & Omit<typeof SegmentGroup$1, "Root"> & {
15
15
  Root: typeof SegmentGroupRoot;
16
16
  };
17
17
  //#endregion
@@ -1,23 +1,28 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, splitProps } from "solid-js";
4
+ import { createComponent, mergeProps, splitProps } from "solid-js";
3
5
  import { SegmentGroup as SegmentGroup$1 } from "@ark-ui/solid/segment-group";
4
6
  //#region src/components/segment-group/index.tsx
5
7
  function SegmentGroupRoot(props) {
6
8
  const [own, rest] = splitProps(props, ["size"]);
7
- return createComponent(SegmentGroup$1.Root, {
9
+ const id = useElementId("segment-group", () => rest.id);
10
+ return createComponent(SegmentGroup$1.Root, mergeProps(rest, {
8
11
  get "data-size"() {
9
12
  return own.size ?? "md";
10
13
  },
11
- ...rest
12
- });
14
+ get id() {
15
+ return id();
16
+ }
17
+ }));
13
18
  }
14
19
  /** SegmentGroup, dressed in the paper-and-ink system: a hairline tray
15
20
  * where one flat ink plate travels beneath the checked seal. The parts - Root, Label, Indicator, Item, ItemText, ItemControl,
16
21
  * ItemHiddenInput. */
17
- const SegmentGroup = {
22
+ const SegmentGroup = defineFamily(SegmentGroupRoot, {
18
23
  ...SegmentGroup$1,
19
24
  Root: SegmentGroupRoot
20
- };
25
+ });
21
26
  injectComponentStyle("segment-group");
22
27
  //#endregion
23
28
  export { SegmentGroup };
@@ -1,2 +1,2 @@
1
- import { i as NativeSelectProps, n as NativeSelect, r as NativeSelectOption, t as Select } from "../../index-YPUiqD3n.mjs";
2
- export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select };
1
+ import { a as NativeSelectProps, i as NativeSelectOption, n as SelectFacadeProps, r as NativeSelect, t as Select } from "../../index-ID48LCMU.mjs";
2
+ export { NativeSelect, type NativeSelectOption, type NativeSelectProps, Select, SelectFacadeProps };
@@ -1,2 +1,2 @@
1
- import { n as NativeSelect, t as Select } from "../../select-CHaXbzLX.mjs";
1
+ import { n as NativeSelect, t as Select } from "../../select-7YjMSBGx.mjs";
2
2
  export { NativeSelect, Select };
@@ -7,5 +7,7 @@ export interface SeparatorProps extends JSX.HTMLAttributes<HTMLDivElement> {
7
7
  orientation?: "horizontal" | "vertical";
8
8
  decorative?: boolean;
9
9
  }
10
- export declare function Separator(props: SeparatorProps): JSX.Element;
10
+ export declare const Separator: ((props: SeparatorProps) => JSX.Element) & {
11
+ Root: (props: SeparatorProps) => JSX.Element;
12
+ };
11
13
  //#endregion
@@ -1,9 +1,10 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
4
5
  //#region src/components/separator/index.tsx
5
6
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
- function Separator(props) {
7
+ const Separator = withSelfRoot(function Separator(props) {
7
8
  injectComponentStyle("separator");
8
9
  const [own, rest] = splitProps(props, ["orientation", "decorative"]);
9
10
  const orientation = () => own.orientation ?? "horizontal";
@@ -22,6 +23,6 @@ function Separator(props) {
22
23
  }
23
24
  }], false);
24
25
  return _el$;
25
- }
26
+ });
26
27
  //#endregion
27
28
  export { Separator };
@@ -1,8 +1,12 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
2
3
  //#region src/components/signature-pad/index.d.ts
3
4
  /** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
4
5
  * field with a guide hairline where ink — real ink strokes — is laid down.
5
6
  * The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
6
7
  * ClearTrigger, HiddenInput, Context. */
7
- export declare const SignaturePad: typeof SignaturePad$1;
8
+ declare function SignaturePadRoot(props: ComponentProps<typeof SignaturePad$1.Root>): import("solid-js").JSX.Element;
9
+ export declare const SignaturePad: typeof SignaturePadRoot & Omit<typeof SignaturePad$1, "Root"> & {
10
+ Root: typeof SignaturePadRoot;
11
+ };
8
12
  //#endregion
@@ -1,11 +1,23 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { SignaturePad as SignaturePad$1 } from "@ark-ui/solid/signature-pad";
3
6
  //#region src/components/signature-pad/index.ts
4
7
  /** Ark's SignaturePad, dressed in the paper-and-ink system: a quiet paper
5
8
  * field with a guide hairline where ink — real ink strokes — is laid down.
6
9
  * The API is Ark's own — Root, Label, Control, Segment, SegmentPath, Guide,
7
10
  * ClearTrigger, HiddenInput, Context. */
8
- const SignaturePad = SignaturePad$1;
11
+ function SignaturePadRoot(props) {
12
+ const id = useElementId("signature-pad", () => props.id);
13
+ return createComponent(SignaturePad$1.Root, mergeProps(props, { get id() {
14
+ return id();
15
+ } }));
16
+ }
17
+ const SignaturePad = defineFamily(SignaturePadRoot, {
18
+ ...SignaturePad$1,
19
+ Root: SignaturePadRoot
20
+ });
9
21
  injectComponentStyle("signature-pad");
10
22
  //#endregion
11
23
  export { SignaturePad };
@@ -3,5 +3,7 @@ import { JSX } from "solid-js";
3
3
  /** A waiting sheet of unset paper. Size it from the outside; the breath
4
4
  * is the component's own. */
5
5
  export type SkeletonProps = JSX.HTMLAttributes<HTMLDivElement>;
6
- export declare function Skeleton(props: SkeletonProps): JSX.Element;
6
+ export declare const Skeleton: ((props: SkeletonProps) => JSX.Element) & {
7
+ Root: (props: SkeletonProps) => JSX.Element;
8
+ };
7
9
  //#endregion
@@ -1,8 +1,9 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  //#region src/components/skeleton/index.tsx
4
5
  var _tmpl$ = /* @__PURE__ */ template(`<div>`);
5
- function Skeleton(props) {
6
+ const Skeleton = withSelfRoot(function Skeleton(props) {
6
7
  injectComponentStyle("skeleton");
7
8
  var _el$ = _tmpl$();
8
9
  spread(_el$, [props, {
@@ -10,6 +11,6 @@ function Skeleton(props) {
10
11
  "data-part": "root"
11
12
  }], false);
12
13
  return _el$;
13
- }
14
+ });
14
15
  //#endregion
15
16
  export { Skeleton };
@@ -9,7 +9,7 @@ type SliderOwnProps = {
9
9
  size?: "sm" | "md" | "lg";
10
10
  };
11
11
  declare function SliderRoot(props: SliderRootProps & SliderOwnProps): import("solid-js").JSX.Element;
12
- export declare const Slider: Omit<typeof Slider$1, "Root"> & {
12
+ export declare const Slider: typeof SliderRoot & Omit<typeof Slider$1, "Root"> & {
13
13
  Root: typeof SliderRoot;
14
14
  };
15
15
  //#endregion
@@ -1,3 +1,5 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
4
  import { createComponent, mergeProps } from "@solidjs/web";
3
5
  import { splitProps } from "solid-js";
@@ -5,14 +7,20 @@ import { Slider as Slider$1 } from "@ark-ui/solid/slider";
5
7
  //#region src/components/slider/index.tsx
6
8
  function SliderRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size"]);
8
- return createComponent(Slider$1.Root, mergeProps(rest, { get "data-size"() {
9
- return own.size ?? "md";
10
- } }));
10
+ const id = useElementId("slider", () => rest.id);
11
+ return createComponent(Slider$1.Root, mergeProps(rest, {
12
+ get id() {
13
+ return id();
14
+ },
15
+ get "data-size"() {
16
+ return own.size ?? "md";
17
+ }
18
+ }));
11
19
  }
12
- const Slider = {
20
+ const Slider = defineFamily(SliderRoot, {
13
21
  ...Slider$1,
14
22
  Root: SliderRoot
15
- };
23
+ });
16
24
  injectComponentStyle("slider");
17
25
  //#endregion
18
26
  export { Slider };
@@ -5,5 +5,7 @@ export interface SpinnerProps extends JSX.HTMLAttributes<HTMLElement> {
5
5
  }
6
6
  /** A wheel of waiting: one arc of ink turning about its center. Quiet by
7
7
  * default — it reports progress without claiming attention. */
8
- export declare function Spinner(props: SpinnerProps): JSX.Element;
8
+ export declare const Spinner: ((props: SpinnerProps) => JSX.Element) & {
9
+ Root: (props: SpinnerProps) => JSX.Element;
10
+ };
9
11
  //#endregion
@@ -1,3 +1,5 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
2
+ import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
4
  import { spread, template } from "@solidjs/web";
3
5
  import { splitProps } from "solid-js";
@@ -5,14 +7,15 @@ import { splitProps } from "solid-js";
5
7
  var _tmpl$ = /* @__PURE__ */ template(`<span><svg viewBox="0 0 24 24"fill=none aria-hidden=true><circle cx=12 cy=12 r=9 stroke=currentColor stroke-opacity=0.2 stroke-width=2.5></circle><path d="M21 12a9 9 0 0 0-9-9"stroke=currentColor stroke-width=2.5 stroke-linecap=round>`);
6
8
  /** A wheel of waiting: one arc of ink turning about its center. Quiet by
7
9
  * default — it reports progress without claiming attention. */
8
- function Spinner(props) {
10
+ const Spinner = withSelfRoot(function Spinner(props) {
9
11
  injectComponentStyle("spinner");
10
12
  const [own, rest] = splitProps(props, ["size"]);
13
+ const messages = useComponentMessages();
11
14
  var _el$ = _tmpl$();
12
15
  spread(_el$, [rest, {
13
16
  role: "status",
14
17
  get "aria-label"() {
15
- return rest["aria-label"] ?? "Loading";
18
+ return rest["aria-label"] ?? messages().spinner.loading;
16
19
  },
17
20
  "data-scope": "spinner",
18
21
  "data-part": "root",
@@ -21,6 +24,6 @@ function Spinner(props) {
21
24
  }
22
25
  }], true);
23
26
  return _el$;
24
- }
27
+ });
25
28
  //#endregion
26
29
  export { Spinner };
@@ -1,3 +1,4 @@
1
+ import { Menu } from "../menu/index.mjs";
1
2
  import { JSX } from "solid-js";
2
3
  //#region src/components/split-button/index.d.ts
3
4
  export interface SplitButtonEntry {
@@ -32,5 +33,6 @@ export interface SplitButtonProps extends Omit<JSX.HTMLAttributes<HTMLDivElement
32
33
  * button stylesheet's trigger register dresses it. The popup keeps the
33
34
  * menu parts untouched.
34
35
  */
35
- export declare function SplitButton(props: SplitButtonProps): JSX.Element;
36
+ declare function SplitButtonImpl(props: SplitButtonProps): JSX.Element;
37
+ export declare const SplitButton: typeof SplitButtonImpl & typeof Menu;
36
38
  //#endregion
@@ -1,4 +1,9 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { r as iconNode } from "../../icon-DTqmJCd5.mjs";
3
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
4
  import { Button } from "../button/index.mjs";
5
+ import { n as useComponentMessages } from "../../use-component-messages-C4SCVYjD.mjs";
6
+ import { Menu as Menu$1 } from "../menu/index.mjs";
2
7
  import { injectComponentStyle } from "@bysages/core";
3
8
  import { createComponent, insert, spread, template } from "@solidjs/web";
4
9
  import { For, splitProps } from "solid-js";
@@ -7,7 +12,6 @@ import { Menu } from "@ark-ui/solid/menu";
7
12
  //#region src/components/split-button/index.tsx
8
13
  var _tmpl$ = /* @__PURE__ */ template(`<div><!><!>`);
9
14
  var _tmpl$2 = /* @__PURE__ */ template(`<button>`);
10
- var _tmpl$3 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=1.75 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path d="m6 9 6 6 6-6">`);
11
15
  /**
12
16
  * A primary action with its alternatives one seam away: the main button
13
17
  * fires `onClick`, the fitted arrow opens a paper vessel of the same
@@ -17,7 +21,7 @@ var _tmpl$3 = /* @__PURE__ */ template(`<svg width=16 height=16 viewBox="0 0 24
17
21
  * button stylesheet's trigger register dresses it. The popup keeps the
18
22
  * menu parts untouched.
19
23
  */
20
- function SplitButton(props) {
24
+ function SplitButtonImpl(props) {
21
25
  injectComponentStyle("split-button");
22
26
  injectComponentStyle("menu");
23
27
  const [own, rest] = splitProps(props, [
@@ -34,6 +38,8 @@ function SplitButton(props) {
34
38
  const variant = () => own.variant ?? "solid";
35
39
  const tone = () => own.tone ?? "ink";
36
40
  const size = () => own.size ?? "md";
41
+ const id = useElementId("split-button-menu");
42
+ const messages = useComponentMessages();
37
43
  var _el$ = _tmpl$();
38
44
  var _el$2 = _el$.firstChild;
39
45
  var _el$3 = _el$2.nextSibling;
@@ -60,6 +66,9 @@ function SplitButton(props) {
60
66
  }
61
67
  }), _el$2);
62
68
  insert(_el$, createComponent(Menu.Root, {
69
+ get id() {
70
+ return id();
71
+ },
63
72
  positioning: { placement: "bottom-end" },
64
73
  get children() {
65
74
  return [createComponent(Menu.Trigger, { asChild: (propsFn) => (() => {
@@ -69,7 +78,9 @@ function SplitButton(props) {
69
78
  get disabled() {
70
79
  return own.disabled;
71
80
  },
72
- "aria-label": "More actions",
81
+ get "aria-label"() {
82
+ return messages().more.actions;
83
+ },
73
84
  get "data-variant"() {
74
85
  return variant();
75
86
  },
@@ -118,7 +129,11 @@ function SplitButton(props) {
118
129
  }
119
130
  /** One stroke pointing down: all a fitted dropdown arrow needs. */
120
131
  function chevronDown() {
121
- return _tmpl$3();
132
+ return iconNode("chevron-down", {
133
+ width: "16",
134
+ height: "16"
135
+ });
122
136
  }
137
+ const SplitButton = defineFamily(SplitButtonImpl, Menu$1);
123
138
  //#endregion
124
139
  export { SplitButton };
@@ -1,7 +1,11 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
2
3
  //#region src/components/splitter/index.d.ts
3
4
  /** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
4
5
  * a hairline and a small paper-seal thumb answers the hand. The API is
5
6
  * Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
6
- export declare const Splitter: typeof Splitter$1;
7
+ declare function SplitterRoot(props: ComponentProps<typeof Splitter$1.Root>): import("solid-js").JSX.Element;
8
+ export declare const Splitter: typeof SplitterRoot & Omit<typeof Splitter$1, "Root"> & {
9
+ Root: typeof SplitterRoot;
10
+ };
7
11
  //#endregion
@@ -1,10 +1,22 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Splitter as Splitter$1 } from "@ark-ui/solid/splitter";
3
6
  //#region src/components/splitter/index.ts
4
7
  /** Ark's Splitter, dressed in the paper-and-ink system: panels divide on
5
8
  * a hairline and a small paper-seal thumb answers the hand. The API is
6
9
  * Ark's own — Root, Panel, ResizeTrigger, ResizeTriggerIndicator. */
7
- const Splitter = Splitter$1;
10
+ function SplitterRoot(props) {
11
+ const id = useElementId("splitter", () => props.id);
12
+ return createComponent(Splitter$1.Root, mergeProps(props, { get id() {
13
+ return id();
14
+ } }));
15
+ }
16
+ const Splitter = defineFamily(SplitterRoot, {
17
+ ...Splitter$1,
18
+ Root: SplitterRoot
19
+ });
8
20
  injectComponentStyle("splitter");
9
21
  //#endregion
10
22
  export { Splitter };
@@ -7,5 +7,7 @@ export interface SpotlightProps extends JSX.HTMLAttributes<HTMLDivElement> {
7
7
  /** The ink-light card: a vessel whose rim and face take light from the
8
8
  * reader's hand. The wrapper only measures and writes the geometry —
9
9
  * the lamp itself is the two layers the stylesheet paints. */
10
- export declare function Spotlight(props: SpotlightProps): JSX.Element;
10
+ export declare const Spotlight: ((props: SpotlightProps) => JSX.Element) & {
11
+ Root: (props: SpotlightProps) => JSX.Element;
12
+ };
11
13
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { insert, spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
@@ -6,7 +7,7 @@ var _tmpl$ = /* @__PURE__ */ template(`<div>`);
6
7
  /** The ink-light card: a vessel whose rim and face take light from the
7
8
  * reader's hand. The wrapper only measures and writes the geometry —
8
9
  * the lamp itself is the two layers the stylesheet paints. */
9
- function Spotlight(props) {
10
+ const Spotlight = withSelfRoot(function Spotlight(props) {
10
11
  injectComponentStyle("spotlight");
11
12
  const [own, rest] = splitProps(props, ["radius"]);
12
13
  const track = (event) => {
@@ -33,6 +34,6 @@ function Spotlight(props) {
33
34
  return props.children;
34
35
  });
35
36
  return _el$;
36
- }
37
+ });
37
38
  //#endregion
38
39
  export { Spotlight };
@@ -7,5 +7,7 @@ export interface StackProps extends JSX.HTMLAttributes<HTMLDivElement> {
7
7
  align?: string;
8
8
  justify?: string;
9
9
  }
10
- export declare function Stack(props: StackProps): JSX.Element;
10
+ export declare const Stack: ((props: StackProps) => JSX.Element) & {
11
+ Root: (props: StackProps) => JSX.Element;
12
+ };
11
13
  //#endregion
@@ -1,3 +1,4 @@
1
+ import { n as withSelfRoot } from "../../family-Cmd8HEyK.mjs";
1
2
  import { injectComponentStyle } from "@bysages/core";
2
3
  import { spread, template } from "@solidjs/web";
3
4
  import { splitProps } from "solid-js";
@@ -13,7 +14,7 @@ const gapVars = {
13
14
  lg: "var(--bs-gap-lg)",
14
15
  xl: "var(--bs-gap-xl)"
15
16
  };
16
- function Stack(props) {
17
+ const Stack = withSelfRoot(function Stack(props) {
17
18
  injectComponentStyle("stack");
18
19
  const [own, rest] = splitProps(props, [
19
20
  "direction",
@@ -28,9 +29,9 @@ function Stack(props) {
28
29
  return {
29
30
  ...rest.style,
30
31
  "--bs-stack-gap": gapVars[own.gap ?? "md"] ?? gapVars.md,
31
- "align-items": own.align,
32
- "justify-content": own.justify,
33
- "flex-wrap": own.wrap ? "wrap" : void 0
32
+ "--bs-stack-align": own.align,
33
+ "--bs-stack-justify": own.justify,
34
+ "--bs-stack-wrap": own.wrap ? "wrap" : void 0
34
35
  };
35
36
  },
36
37
  "data-scope": "stack",
@@ -40,6 +41,6 @@ function Stack(props) {
40
41
  }
41
42
  }], false);
42
43
  return _el$;
43
- }
44
+ });
44
45
  //#endregion
45
46
  export { Stack };
@@ -1,3 +1,4 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Steps as Steps$1, StepsRootProps } from "@ark-ui/solid/steps";
2
3
  //#region src/components/steps/index.d.ts
3
4
  /**
@@ -7,12 +8,33 @@ import { Steps as Steps$1, StepsRootProps } from "@ark-ui/solid/steps";
7
8
  * PrevTrigger, NextTrigger, Progress. Indicator and Separator carry
8
9
  * data-complete / data-current / data-incomplete.
9
10
  */
11
+ type StepsRootProps$1 = StepsRootProps & StepsOwnProps;
10
12
  type StepsOwnProps = {
11
13
  /** One rung of the control-height ladder every indicator stands on. */
12
14
  size?: "sm" | "md" | "lg";
13
15
  };
14
- declare function StepsRoot(props: StepsRootProps & StepsOwnProps): import("solid-js").JSX.Element;
15
- export declare const Steps: Omit<typeof Steps$1, "Root"> & {
16
+ declare function StepsRoot(props: StepsRootProps$1): import("solid-js").JSX.Element;
17
+ type StepsItem = {
18
+ title: string;
19
+ };
20
+ export interface StepsFacadeProps {
21
+ items: StepsItem[];
22
+ step?: number;
23
+ defaultStep?: number;
24
+ linear?: boolean;
25
+ orientation?: "horizontal" | "vertical";
26
+ /** One rung of the control-height ladder every indicator stands on. */
27
+ size?: "sm" | "md" | "lg";
28
+ class?: string;
29
+ onStepChange?: (step: number) => void;
30
+ }
31
+ declare function StepsFacade(props: StepsFacadeProps): import("solid-js").JSX.Element;
32
+ /** The machine wraps each tab in an item div; presentation keeps the
33
+ * tablist owned children legal while the tab itself keeps its role. */
34
+ declare function StepsItem(props: ComponentProps<typeof Steps$1.Item>): import("solid-js").JSX.Element;
35
+ export declare const Steps: typeof StepsFacade & Omit<typeof Steps$1, "Root" | "Item"> & {
16
36
  Root: typeof StepsRoot;
37
+ Item: typeof StepsItem;
17
38
  };
18
- //#endregion
39
+ //#endregion
40
+ export { StepsItem };
@@ -1,18 +1,83 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
2
- import { createComponent, mergeProps } from "@solidjs/web";
3
- import { splitProps } from "solid-js";
4
+ import { createComponent, memo, mergeProps } from "@solidjs/web";
5
+ import { For, splitProps } from "solid-js";
4
6
  import { Steps as Steps$1 } from "@ark-ui/solid/steps";
5
7
  //#region src/components/steps/index.tsx
6
8
  function StepsRoot(props) {
7
9
  const [own, rest] = splitProps(props, ["size"]);
8
- return createComponent(Steps$1.Root, mergeProps(rest, { get "data-size"() {
9
- return own.size ?? "md";
10
- } }));
10
+ const id = useElementId("steps", () => rest.id);
11
+ return createComponent(Steps$1.Root, mergeProps(rest, {
12
+ get id() {
13
+ return id();
14
+ },
15
+ get "data-size"() {
16
+ return own.size ?? "md";
17
+ }
18
+ }));
11
19
  }
12
- const Steps = {
20
+ function StepsFacade(props) {
21
+ injectComponentStyle("steps");
22
+ return createComponent(StepsRoot, mergeProps({
23
+ get "class"() {
24
+ return props.class;
25
+ },
26
+ get size() {
27
+ return props.size ?? "md";
28
+ },
29
+ get count() {
30
+ return props.items.length;
31
+ },
32
+ get linear() {
33
+ return props.linear ?? false;
34
+ },
35
+ get orientation() {
36
+ return props.orientation ?? "horizontal";
37
+ },
38
+ get defaultStep() {
39
+ return props.defaultStep ?? 0;
40
+ }
41
+ }, () => {
42
+ return props.step === void 0 ? {} : { step: props.step };
43
+ }, {
44
+ onStepChange: (details) => props.onStepChange?.(details.step),
45
+ get children() {
46
+ return createComponent(Steps$1.List, { get children() {
47
+ return createComponent(For, {
48
+ get each() {
49
+ return props.items;
50
+ },
51
+ children: (item, index) => createComponent(Steps$1.Item, {
52
+ get index() {
53
+ return index();
54
+ },
55
+ role: "presentation",
56
+ get children() {
57
+ return [createComponent(Steps$1.Trigger, { get children() {
58
+ return [createComponent(Steps$1.Indicator, { get children() {
59
+ return String(index() + 1);
60
+ } }), memo(() => {
61
+ return item.title;
62
+ })];
63
+ } }), createComponent(Steps$1.Separator, {})];
64
+ }
65
+ })
66
+ });
67
+ } });
68
+ }
69
+ }));
70
+ }
71
+ /** The machine wraps each tab in an item div; presentation keeps the
72
+ * tablist owned children legal while the tab itself keeps its role. */
73
+ function StepsItem(props) {
74
+ return createComponent(Steps$1.Item, mergeProps(props, { role: "presentation" }));
75
+ }
76
+ const Steps = defineFamily(StepsFacade, {
13
77
  ...Steps$1,
14
- Root: StepsRoot
15
- };
78
+ Root: StepsRoot,
79
+ Item: StepsItem
80
+ });
16
81
  injectComponentStyle("steps");
17
82
  //#endregion
18
83
  export { Steps };
@@ -1,8 +1,12 @@
1
+ import { ComponentProps } from "solid-js";
1
2
  import { Swap as Swap$1 } from "@ark-ui/solid/swap";
2
3
  //#region src/components/swap/index.d.ts
3
4
  /** Ark's Swap, dressed in the paper-and-ink system: two impressions
4
5
  * occupying one seal, the arriving one growing into place on the spring
5
6
  * while the departing one shrinks away. The API is Ark's own — Root,
6
7
  * Indicator (type="on" | "off"), RootProvider. */
7
- export declare const Swap: typeof Swap$1;
8
+ declare function SwapRoot(props: ComponentProps<typeof Swap$1.Root>): import("solid-js").JSX.Element;
9
+ export declare const Swap: typeof SwapRoot & Omit<typeof Swap$1, "Root"> & {
10
+ Root: typeof SwapRoot;
11
+ };
8
12
  //#endregion
@@ -1,11 +1,23 @@
1
+ import { t as defineFamily } from "../../family-Cmd8HEyK.mjs";
2
+ import { t as useElementId } from "../../id-2ygNzPHF.mjs";
1
3
  import { injectComponentStyle } from "@bysages/core";
4
+ import { createComponent, mergeProps } from "solid-js";
2
5
  import { Swap as Swap$1 } from "@ark-ui/solid/swap";
3
6
  //#region src/components/swap/index.ts
4
7
  /** Ark's Swap, dressed in the paper-and-ink system: two impressions
5
8
  * occupying one seal, the arriving one growing into place on the spring
6
9
  * while the departing one shrinks away. The API is Ark's own — Root,
7
10
  * Indicator (type="on" | "off"), RootProvider. */
8
- const Swap = Swap$1;
11
+ function SwapRoot(props) {
12
+ const id = useElementId("swap", () => props.id);
13
+ return createComponent(Swap$1.Root, mergeProps(props, { get id() {
14
+ return id();
15
+ } }));
16
+ }
17
+ const Swap = defineFamily(SwapRoot, {
18
+ ...Swap$1,
19
+ Root: SwapRoot
20
+ });
9
21
  injectComponentStyle("swap");
10
22
  //#endregion
11
23
  export { Swap };
@@ -9,7 +9,7 @@ type SwitchOwnProps = {
9
9
  size?: "sm" | "md" | "lg";
10
10
  };
11
11
  declare function SwitchRoot(props: SwitchRootProps & SwitchOwnProps): import("solid-js").JSX.Element;
12
- export declare const Switch: Omit<typeof Switch$1, "Root"> & {
12
+ export declare const Switch: typeof SwitchRoot & Omit<typeof Switch$1, "Root"> & {
13
13
  Root: typeof SwitchRoot;
14
14
  };
15
15
  //#endregion