@wirekyt/react 0.0.1 → 0.0.2

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 (285) hide show
  1. package/dist/accordion.cjs +209 -0
  2. package/dist/accordion.d.cts +69 -0
  3. package/dist/accordion.d.ts +69 -0
  4. package/dist/accordion.js +184 -0
  5. package/dist/angle-slider.cjs +193 -0
  6. package/dist/angle-slider.d.cts +73 -0
  7. package/dist/angle-slider.d.ts +73 -0
  8. package/dist/angle-slider.js +168 -0
  9. package/dist/avatar.cjs +120 -0
  10. package/dist/avatar.d.cts +48 -0
  11. package/dist/avatar.d.ts +48 -0
  12. package/dist/avatar.js +100 -0
  13. package/dist/carousel.cjs +246 -0
  14. package/dist/carousel.d.cts +94 -0
  15. package/dist/carousel.d.ts +94 -0
  16. package/dist/carousel.js +223 -0
  17. package/dist/checkbox.cjs +284 -0
  18. package/dist/checkbox.d.cts +115 -0
  19. package/dist/checkbox.d.ts +115 -0
  20. package/dist/checkbox.js +263 -0
  21. package/dist/client-only.cjs +12 -0
  22. package/dist/client-only.d.cts +8 -0
  23. package/dist/client-only.d.ts +8 -0
  24. package/dist/client-only.js +11 -0
  25. package/dist/clipboard.cjs +174 -0
  26. package/dist/clipboard.d.cts +70 -0
  27. package/dist/clipboard.d.ts +70 -0
  28. package/dist/clipboard.js +150 -0
  29. package/dist/collapsible-B62i_oPJ.cjs +185 -0
  30. package/dist/collapsible-CiTNjCNf.js +131 -0
  31. package/dist/collapsible.cjs +23 -0
  32. package/dist/collapsible.d.cts +56 -0
  33. package/dist/collapsible.d.ts +56 -0
  34. package/dist/collapsible.js +2 -0
  35. package/dist/collection-BFjWNdUS.cjs +223 -0
  36. package/dist/collection-BJOl6a4H.js +180 -0
  37. package/dist/collection.cjs +9 -0
  38. package/dist/collection.d.cts +2 -0
  39. package/dist/collection.d.ts +2 -0
  40. package/dist/collection.js +2 -0
  41. package/dist/color-picker.cjs +575 -0
  42. package/dist/color-picker.d.cts +179 -0
  43. package/dist/color-picker.d.ts +179 -0
  44. package/dist/color-picker.js +530 -0
  45. package/dist/combobox.cjs +390 -0
  46. package/dist/combobox.d.cts +128 -0
  47. package/dist/combobox.d.ts +128 -0
  48. package/dist/combobox.js +359 -0
  49. package/dist/core-CBFAnVIP.cjs +375 -0
  50. package/dist/core-CEYOEcVI.js +357 -0
  51. package/dist/date-input.cjs +217 -0
  52. package/dist/date-input.d.cts +69 -0
  53. package/dist/date-input.d.ts +69 -0
  54. package/dist/date-input.js +193 -0
  55. package/dist/date-picker.cjs +588 -0
  56. package/dist/date-picker.d.cts +190 -0
  57. package/dist/date-picker.d.ts +190 -0
  58. package/dist/date-picker.js +543 -0
  59. package/dist/dialog.cjs +199 -0
  60. package/dist/dialog.d.cts +78 -0
  61. package/dist/dialog.d.ts +78 -0
  62. package/dist/dialog.js +174 -0
  63. package/dist/download-trigger.cjs +53 -0
  64. package/dist/download-trigger.d.cts +22 -0
  65. package/dist/download-trigger.d.ts +22 -0
  66. package/dist/download-trigger.js +51 -0
  67. package/dist/drawer.cjs +296 -0
  68. package/dist/drawer.d.cts +115 -0
  69. package/dist/drawer.d.ts +115 -0
  70. package/dist/drawer.js +264 -0
  71. package/dist/editable.cjs +228 -0
  72. package/dist/editable.d.cts +79 -0
  73. package/dist/editable.d.ts +79 -0
  74. package/dist/editable.js +202 -0
  75. package/dist/environment-B6IaCAuQ.cjs +59 -0
  76. package/dist/environment-BTgKwk5E.js +42 -0
  77. package/dist/factory--dkoVnFK.d.cts +14 -0
  78. package/dist/factory--dkoVnFK.d.ts +14 -0
  79. package/dist/factory-CFFufs5e.cjs +59 -0
  80. package/dist/factory-Nm__-4xn.js +48 -0
  81. package/dist/field-Cy1E02DH.js +349 -0
  82. package/dist/field-x8H5uXB9.cjs +438 -0
  83. package/dist/field.cjs +22 -0
  84. package/dist/field.d.cts +129 -0
  85. package/dist/field.d.ts +129 -0
  86. package/dist/field.js +2 -0
  87. package/dist/fieldset-DWZXj1t5.cjs +232 -0
  88. package/dist/fieldset-fx44GCtM.js +178 -0
  89. package/dist/fieldset.cjs +18 -0
  90. package/dist/fieldset.d.cts +71 -0
  91. package/dist/fieldset.d.ts +71 -0
  92. package/dist/fieldset.js +3 -0
  93. package/dist/file-upload.cjs +328 -0
  94. package/dist/file-upload.d.cts +101 -0
  95. package/dist/file-upload.d.ts +101 -0
  96. package/dist/file-upload.js +298 -0
  97. package/dist/floating-panel.cjs +271 -0
  98. package/dist/floating-panel.d.cts +98 -0
  99. package/dist/floating-panel.d.ts +98 -0
  100. package/dist/floating-panel.js +242 -0
  101. package/dist/format.cjs +64 -0
  102. package/dist/format.d.cts +44 -0
  103. package/dist/format.d.ts +44 -0
  104. package/dist/format.js +54 -0
  105. package/dist/frame.cjs +85 -0
  106. package/dist/frame.d.cts +12 -0
  107. package/dist/frame.d.ts +12 -0
  108. package/dist/frame.js +84 -0
  109. package/dist/highlight.cjs +29 -0
  110. package/dist/highlight.d.cts +13 -0
  111. package/dist/highlight.d.ts +13 -0
  112. package/dist/highlight.js +27 -0
  113. package/dist/hover-card.cjs +154 -0
  114. package/dist/hover-card.d.cts +68 -0
  115. package/dist/hover-card.d.ts +68 -0
  116. package/dist/hover-card.js +131 -0
  117. package/dist/image-cropper.cjs +0 -0
  118. package/dist/image-cropper.d.cts +1 -0
  119. package/dist/image-cropper.d.ts +1 -0
  120. package/dist/image-cropper.js +0 -0
  121. package/dist/index-3Al0R5bH.d.cts +73 -0
  122. package/dist/index-B7wAg5Wf.d.ts +146 -0
  123. package/dist/index-BAn8qiCM.d.ts +73 -0
  124. package/dist/index-BSX88T_g.d.cts +146 -0
  125. package/dist/index-CQAbOgb7.d.cts +23 -0
  126. package/dist/index-CUyHBXOI.d.cts +33 -0
  127. package/dist/index-CW-Aj6aT.d.ts +95 -0
  128. package/dist/index-CxWYgVJk.d.ts +23 -0
  129. package/dist/index-D7JH9e9E.d.ts +33 -0
  130. package/dist/index-DTLK6Fuh.d.cts +95 -0
  131. package/dist/index-srZfUQNt.d.cts +20 -0
  132. package/dist/index-srZfUQNt.d.ts +20 -0
  133. package/dist/index.cjs +45 -0
  134. package/dist/index.d.cts +6 -0
  135. package/dist/index.d.ts +6 -0
  136. package/dist/index.js +6 -0
  137. package/dist/json-tree-view.cjs +244 -0
  138. package/dist/json-tree-view.d.cts +45 -0
  139. package/dist/json-tree-view.d.ts +45 -0
  140. package/dist/json-tree-view.js +234 -0
  141. package/dist/listbox.cjs +290 -0
  142. package/dist/listbox.d.cts +109 -0
  143. package/dist/listbox.d.ts +109 -0
  144. package/dist/listbox.js +264 -0
  145. package/dist/marquee.cjs +164 -0
  146. package/dist/marquee.d.cts +60 -0
  147. package/dist/marquee.d.ts +60 -0
  148. package/dist/marquee.js +142 -0
  149. package/dist/menu.cjs +506 -0
  150. package/dist/menu.d.cts +162 -0
  151. package/dist/menu.d.ts +162 -0
  152. package/dist/menu.js +469 -0
  153. package/dist/navigation-menu.cjs +331 -0
  154. package/dist/navigation-menu.d.cts +89 -0
  155. package/dist/navigation-menu.d.ts +89 -0
  156. package/dist/navigation-menu.js +303 -0
  157. package/dist/number-input.cjs +222 -0
  158. package/dist/number-input.d.cts +73 -0
  159. package/dist/number-input.d.ts +73 -0
  160. package/dist/number-input.js +197 -0
  161. package/dist/pagination.cjs +183 -0
  162. package/dist/pagination.d.cts +68 -0
  163. package/dist/pagination.d.ts +68 -0
  164. package/dist/pagination.js +159 -0
  165. package/dist/password-input.cjs +179 -0
  166. package/dist/password-input.d.cts +65 -0
  167. package/dist/password-input.d.ts +65 -0
  168. package/dist/password-input.js +156 -0
  169. package/dist/pin-input.cjs +180 -0
  170. package/dist/pin-input.d.cts +58 -0
  171. package/dist/pin-input.d.ts +58 -0
  172. package/dist/pin-input.js +158 -0
  173. package/dist/popover.cjs +222 -0
  174. package/dist/popover.d.cts +93 -0
  175. package/dist/popover.d.ts +93 -0
  176. package/dist/popover.js +194 -0
  177. package/dist/portal-6_XzBXiA.cjs +33 -0
  178. package/dist/portal-QYL_2wB0.js +28 -0
  179. package/dist/portal.cjs +3 -0
  180. package/dist/portal.d.cts +9 -0
  181. package/dist/portal.d.ts +9 -0
  182. package/dist/portal.js +2 -0
  183. package/dist/presence-BOs-D6Cv.cjs +96 -0
  184. package/dist/presence-I8Rceflw.js +65 -0
  185. package/dist/presence.cjs +7 -0
  186. package/dist/presence.d.cts +2 -0
  187. package/dist/presence.d.ts +2 -0
  188. package/dist/presence.js +2 -0
  189. package/dist/progress.cjs +206 -0
  190. package/dist/progress.d.cts +78 -0
  191. package/dist/progress.d.ts +78 -0
  192. package/dist/progress.js +180 -0
  193. package/dist/providers-DrJEJcrE.cjs +128 -0
  194. package/dist/providers-FEHnDTvb.js +87 -0
  195. package/dist/qr-code.cjs +154 -0
  196. package/dist/qr-code.d.cts +58 -0
  197. package/dist/qr-code.d.ts +58 -0
  198. package/dist/qr-code.js +132 -0
  199. package/dist/radio-group.cjs +222 -0
  200. package/dist/radio-group.d.cts +78 -0
  201. package/dist/radio-group.d.ts +78 -0
  202. package/dist/radio-group.js +196 -0
  203. package/dist/rating-group.cjs +186 -0
  204. package/dist/rating-group.d.cts +68 -0
  205. package/dist/rating-group.d.ts +68 -0
  206. package/dist/rating-group.js +162 -0
  207. package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
  208. package/dist/rolldown-runtime-DakpK96I.cjs +43 -0
  209. package/dist/scroll-area.cjs +166 -0
  210. package/dist/scroll-area.d.cts +67 -0
  211. package/dist/scroll-area.d.ts +67 -0
  212. package/dist/scroll-area.js +143 -0
  213. package/dist/segment-group.cjs +215 -0
  214. package/dist/segment-group.d.cts +81 -0
  215. package/dist/segment-group.d.ts +81 -0
  216. package/dist/segment-group.js +194 -0
  217. package/dist/select.cjs +395 -0
  218. package/dist/select.d.cts +132 -0
  219. package/dist/select.d.ts +132 -0
  220. package/dist/select.js +358 -0
  221. package/dist/signature-pad.cjs +197 -0
  222. package/dist/signature-pad.d.cts +68 -0
  223. package/dist/signature-pad.d.ts +68 -0
  224. package/dist/signature-pad.js +173 -0
  225. package/dist/slider.cjs +260 -0
  226. package/dist/slider.d.cts +88 -0
  227. package/dist/slider.d.ts +88 -0
  228. package/dist/slider.js +232 -0
  229. package/dist/steps.cjs +271 -0
  230. package/dist/steps.d.cts +104 -0
  231. package/dist/steps.d.ts +104 -0
  232. package/dist/steps.js +241 -0
  233. package/dist/swap.cjs +134 -0
  234. package/dist/swap.d.cts +49 -0
  235. package/dist/swap.d.ts +49 -0
  236. package/dist/swap.js +121 -0
  237. package/dist/switch.cjs +166 -0
  238. package/dist/switch.d.cts +58 -0
  239. package/dist/switch.d.ts +58 -0
  240. package/dist/switch.js +144 -0
  241. package/dist/tabs.cjs +177 -0
  242. package/dist/tabs.d.cts +59 -0
  243. package/dist/tabs.d.ts +59 -0
  244. package/dist/tabs.js +155 -0
  245. package/dist/tags-input.cjs +298 -0
  246. package/dist/tags-input.d.cts +98 -0
  247. package/dist/tags-input.d.ts +98 -0
  248. package/dist/tags-input.js +268 -0
  249. package/dist/timer.cjs +167 -0
  250. package/dist/timer.d.cts +63 -0
  251. package/dist/timer.d.ts +63 -0
  252. package/dist/timer.js +144 -0
  253. package/dist/toast.cjs +154 -0
  254. package/dist/toast.d.cts +59 -0
  255. package/dist/toast.d.ts +59 -0
  256. package/dist/toast.js +132 -0
  257. package/dist/toggle-group.cjs +118 -0
  258. package/dist/toggle-group.d.cts +43 -0
  259. package/dist/toggle-group.d.ts +43 -0
  260. package/dist/toggle-group.js +99 -0
  261. package/dist/toggle.cjs +85 -0
  262. package/dist/toggle.d.cts +38 -0
  263. package/dist/toggle.d.ts +38 -0
  264. package/dist/toggle.js +71 -0
  265. package/dist/tooltip.cjs +154 -0
  266. package/dist/tooltip.d.cts +68 -0
  267. package/dist/tooltip.d.ts +68 -0
  268. package/dist/tooltip.js +131 -0
  269. package/dist/tour.cjs +290 -0
  270. package/dist/tour.d.cts +112 -0
  271. package/dist/tour.d.ts +112 -0
  272. package/dist/tour.js +246 -0
  273. package/dist/tree-view-CNTEWXlu.js +339 -0
  274. package/dist/tree-view-CU4Hl5X1.cjs +484 -0
  275. package/dist/tree-view.cjs +41 -0
  276. package/dist/tree-view.d.cts +3 -0
  277. package/dist/tree-view.d.ts +3 -0
  278. package/dist/tree-view.js +3 -0
  279. package/dist/types-BQQfrr86.d.cts +6 -0
  280. package/dist/types-BQQfrr86.d.ts +6 -0
  281. package/dist/use-context-38DKWHsx.cjs +20 -0
  282. package/dist/use-context-CITa6pn9.js +10 -0
  283. package/dist/utils-Cfwm9WW1.cjs +166 -0
  284. package/dist/utils-CqLmqrgj.js +107 -0
  285. package/package.json +274 -6
@@ -0,0 +1,115 @@
1
+ import { a as PropTypes } from "./index-CxWYgVJk.js";
2
+ import { r as Optional, t as Assign } from "./types-BQQfrr86.js";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.js";
4
+ import { ReactNode } from "react";
5
+ import * as checkbox from "@wirekyt/dom/machines/checkbox";
6
+ import { CheckedChangeDetails, CheckedChangeDetails as CheckboxCheckedChangeDetails, CheckedState, CheckedState as CheckboxCheckedState } from "@wirekyt/dom/machines/checkbox";
7
+ //#region src/components/checkbox/use-checkbox.d.ts
8
+ interface UseCheckboxProps extends Optional<Omit<checkbox.Props, "dir" | "getRootNode">, "id"> {}
9
+ interface UseCheckboxReturn extends checkbox.Api<PropTypes> {}
10
+ declare const useCheckbox: (ownProps?: UseCheckboxProps) => UseCheckboxReturn;
11
+ //#endregion
12
+ //#region src/components/checkbox/use-context.d.ts
13
+ interface UseCheckboxContext extends UseCheckboxReturn {}
14
+ declare const CheckboxProvider: import("react").Provider<UseCheckboxContext>, useCheckboxContext: () => UseCheckboxContext;
15
+ //#endregion
16
+ //#region src/components/checkbox/context.d.ts
17
+ interface CheckboxContextProps {
18
+ children: (context: UseCheckboxContext) => ReactNode;
19
+ }
20
+ declare const CheckboxContext: (props: CheckboxContextProps) => ReactNode;
21
+ //#endregion
22
+ //#region src/components/checkbox/control.d.ts
23
+ interface CheckboxControlBaseProps extends PolymorphicProps {}
24
+ interface CheckboxControlProps extends HTMLProps<"div">, CheckboxControlBaseProps {}
25
+ declare const CheckboxControl: import("react").ForwardRefExoticComponent<CheckboxControlProps & import("react").RefAttributes<HTMLDivElement>>;
26
+ //#endregion
27
+ //#region src/components/checkbox/use-group.d.ts
28
+ interface UseCheckboxGroupProps {
29
+ defaultValue?: string[] | undefined;
30
+ value?: string[] | undefined;
31
+ name?: string | undefined;
32
+ onValueChange?: ((value: string[]) => void) | undefined;
33
+ disabled?: boolean | undefined;
34
+ readOnly?: boolean | undefined;
35
+ invalid?: boolean | undefined;
36
+ maxSelectedValues?: number | undefined;
37
+ }
38
+ interface CheckboxGroupItemProps {
39
+ value: string | undefined;
40
+ }
41
+ declare function useCheckboxGroup(props?: UseCheckboxGroupProps): {
42
+ isChecked: (val: string | undefined) => boolean;
43
+ value: string[];
44
+ name: string | undefined;
45
+ disabled: boolean;
46
+ readOnly: boolean;
47
+ invalid: boolean;
48
+ setValue: (value: string[]) => void | undefined;
49
+ addValue: (val: string) => void;
50
+ toggleValue: (val: string) => void;
51
+ getItemProps: (props: CheckboxGroupItemProps) => {
52
+ checked: boolean | undefined;
53
+ onCheckedChange(): void;
54
+ name: string | undefined;
55
+ disabled: boolean;
56
+ readOnly: boolean | undefined;
57
+ invalid: boolean;
58
+ };
59
+ };
60
+ type UseCheckboxGroupReturn = ReturnType<typeof useCheckboxGroup>;
61
+ //#endregion
62
+ //#region src/components/checkbox/group.d.ts
63
+ interface CheckboxGroupBaseProps extends UseCheckboxGroupProps, PolymorphicProps {}
64
+ interface CheckboxGroupProps extends Assign<HTMLProps<"div">, CheckboxGroupBaseProps> {}
65
+ declare const CheckboxGroup: import("react").ForwardRefExoticComponent<CheckboxGroupProps & import("react").RefAttributes<HTMLDivElement>>;
66
+ //#endregion
67
+ //#region src/components/checkbox/use-group-context.d.ts
68
+ interface UseCheckboxGroupContext extends UseCheckboxGroupReturn {}
69
+ declare const CheckboxGroupContextProvider: import("react").Provider<UseCheckboxGroupContext | undefined>, useCheckboxGroupContext: () => UseCheckboxGroupContext | undefined;
70
+ //#endregion
71
+ //#region src/components/checkbox/group-provider.d.ts
72
+ interface ProviderProps {
73
+ value: UseCheckboxGroupContext;
74
+ }
75
+ interface CheckboxGroupProviderBaseProps extends ProviderProps, PolymorphicProps {}
76
+ interface CheckboxGroupProviderProps extends Assign<HTMLProps<"div">, CheckboxGroupProviderBaseProps> {}
77
+ declare const CheckboxGroupProvider: import("react").ForwardRefExoticComponent<CheckboxGroupProviderProps & import("react").RefAttributes<HTMLDivElement>>;
78
+ //#endregion
79
+ //#region src/components/checkbox/hidden-input.d.ts
80
+ interface CheckboxHiddenInputBaseProps extends PolymorphicProps {}
81
+ interface CheckboxHiddenInputProps extends HTMLProps<"input">, CheckboxHiddenInputBaseProps {}
82
+ declare const CheckboxHiddenInput: import("react").ForwardRefExoticComponent<CheckboxHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
83
+ //#endregion
84
+ //#region src/components/checkbox/indicator.d.ts
85
+ interface CheckboxIndicatorBaseProps extends PolymorphicProps {
86
+ indeterminate?: boolean | undefined;
87
+ }
88
+ interface CheckboxIndicatorProps extends HTMLProps<"div">, CheckboxIndicatorBaseProps {}
89
+ declare const CheckboxIndicator: import("react").ForwardRefExoticComponent<CheckboxIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
90
+ //#endregion
91
+ //#region src/components/checkbox/label.d.ts
92
+ interface CheckboxLabelBaseProps extends PolymorphicProps {}
93
+ interface CheckboxLabelProps extends HTMLProps<"span">, CheckboxLabelBaseProps {}
94
+ declare const CheckboxLabel: import("react").ForwardRefExoticComponent<CheckboxLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
95
+ //#endregion
96
+ //#region src/components/checkbox/root.d.ts
97
+ interface CheckboxRootBaseProps extends UseCheckboxProps, PolymorphicProps {}
98
+ interface CheckboxRootProps extends Assign<HTMLProps<"label">, CheckboxRootBaseProps> {}
99
+ declare const CheckboxRoot: import("react").ForwardRefExoticComponent<CheckboxRootProps & import("react").RefAttributes<HTMLLabelElement>>;
100
+ //#endregion
101
+ //#region src/components/checkbox/root-provider.d.ts
102
+ interface RootProviderProps {
103
+ value: UseCheckboxReturn;
104
+ }
105
+ interface CheckboxRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
106
+ interface CheckboxRootProviderProps extends HTMLProps<"label">, CheckboxRootProviderBaseProps {}
107
+ declare const CheckboxRootProvider: import("react").ForwardRefExoticComponent<CheckboxRootProviderProps & import("react").RefAttributes<HTMLLabelElement>>;
108
+ //#endregion
109
+ //#region src/components/checkbox/anatomy.d.ts
110
+ declare const checkboxAnatomy: import("@wirekyt/dom/anatomy").AnatomyInstance<"label" | "root" | "indicator" | "group" | "control">;
111
+ declare namespace checkbox_d_exports {
112
+ export { CheckedChangeDetails, CheckedState, CheckboxContext as Context, CheckboxContextProps as ContextProps, CheckboxControl as Control, CheckboxControlBaseProps as ControlBaseProps, CheckboxControlProps as ControlProps, CheckboxGroup as Group, CheckboxGroupBaseProps as GroupBaseProps, CheckboxGroupProps as GroupProps, CheckboxGroupProvider as GroupProvider, CheckboxGroupProviderBaseProps as GroupProviderBaseProps, CheckboxGroupProviderProps as GroupProviderProps, CheckboxHiddenInput as HiddenInput, CheckboxHiddenInputBaseProps as HiddenInputBaseProps, CheckboxHiddenInputProps as HiddenInputProps, CheckboxIndicator as Indicator, CheckboxIndicatorBaseProps as IndicatorBaseProps, CheckboxIndicatorProps as IndicatorProps, CheckboxLabel as Label, CheckboxLabelBaseProps as LabelBaseProps, CheckboxLabelProps as LabelProps, CheckboxRoot as Root, CheckboxRootBaseProps as RootBaseProps, CheckboxRootProps as RootProps, CheckboxRootProvider as RootProvider, CheckboxRootProviderBaseProps as RootProviderBaseProps, CheckboxRootProviderProps as RootProviderProps };
113
+ }
114
+ //#endregion
115
+ export { checkbox_d_exports as Checkbox, type CheckboxCheckedChangeDetails, type CheckboxCheckedState, CheckboxContext, type CheckboxContextProps, CheckboxControl, type CheckboxControlBaseProps, type CheckboxControlProps, CheckboxGroup, type CheckboxGroupBaseProps, type CheckboxGroupProps, CheckboxGroupProvider, type CheckboxGroupProviderBaseProps, type CheckboxGroupProviderProps, CheckboxHiddenInput, type CheckboxHiddenInputBaseProps, type CheckboxHiddenInputProps, CheckboxIndicator, type CheckboxIndicatorBaseProps, type CheckboxIndicatorProps, CheckboxLabel, type CheckboxLabelBaseProps, type CheckboxLabelProps, CheckboxRoot, type CheckboxRootBaseProps, type CheckboxRootProps, CheckboxRootProvider, type CheckboxRootProviderBaseProps, type CheckboxRootProviderProps, type UseCheckboxContext, type UseCheckboxGroupContext, type UseCheckboxGroupProps, type UseCheckboxGroupReturn, type UseCheckboxProps, type UseCheckboxReturn, checkboxAnatomy, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext };
@@ -0,0 +1,263 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
+ import { c as createSplitProps, i as useControllableState, r as useEvent, u as createContext$1 } from "./utils-CqLmqrgj.js";
3
+ import { n as useEnvironmentContext } from "./environment-BTgKwk5E.js";
4
+ import { a as useMachine, i as normalizeProps, t as mergeProps } from "./core-CEYOEcVI.js";
5
+ import { n as wire } from "./factory-Nm__-4xn.js";
6
+ import { a as useLocaleContext } from "./providers-FEHnDTvb.js";
7
+ import { n as useFieldsetContext } from "./use-context-CITa6pn9.js";
8
+ import "./fieldset-fx44GCtM.js";
9
+ import { h as useFieldContext } from "./field-Cy1E02DH.js";
10
+ import { forwardRef, useId, useMemo } from "react";
11
+ import { jsx } from "react/jsx-runtime";
12
+ import * as checkbox from "@wirekyt/dom/machines/checkbox";
13
+ import { anatomy } from "@wirekyt/dom/machines/checkbox";
14
+ //#region src/components/checkbox/use-context.ts
15
+ const [CheckboxProvider, useCheckboxContext] = createContext$1({
16
+ name: "CheckboxContext",
17
+ hookName: "useCheckboxContext",
18
+ providerName: "<CheckboxProvider />"
19
+ });
20
+ //#endregion
21
+ //#region src/components/checkbox/context.tsx
22
+ const CheckboxContext = (props) => props.children(useCheckboxContext());
23
+ //#endregion
24
+ //#region src/components/checkbox/control.tsx
25
+ const CheckboxControl = forwardRef((props, ref) => {
26
+ const mergedProps = mergeProps(useCheckboxContext().getControlProps(), props);
27
+ return /* @__PURE__ */ jsx(wire.div, {
28
+ ...mergedProps,
29
+ ref
30
+ });
31
+ });
32
+ CheckboxControl.displayName = "CheckboxControl";
33
+ //#endregion
34
+ //#region src/components/checkbox/anatomy.ts
35
+ const checkboxAnatomy = anatomy.extendWith("group");
36
+ //#endregion
37
+ //#region src/components/checkbox/use-group.ts
38
+ function useCheckboxGroup(props = {}) {
39
+ const fieldset = useFieldsetContext();
40
+ const { defaultValue, value: controlledValue, onValueChange, disabled = fieldset?.disabled, readOnly, name, invalid = fieldset?.invalid, maxSelectedValues } = props;
41
+ const interactive = !(disabled || readOnly);
42
+ const onChangeProp = useEvent(onValueChange, { sync: true });
43
+ const [value, setValue] = useControllableState({
44
+ value: controlledValue,
45
+ defaultValue: defaultValue || [],
46
+ onChange: onChangeProp
47
+ });
48
+ const isChecked = (val) => {
49
+ return value.some((v) => String(v) === String(val));
50
+ };
51
+ const toggleValue = (val) => {
52
+ if (isChecked(val)) removeValue(val);
53
+ else addValue(val);
54
+ };
55
+ const isAtMax = maxSelectedValues != null && value.length >= maxSelectedValues;
56
+ const addValue = (val) => {
57
+ if (!interactive) return;
58
+ if (isChecked(val)) return;
59
+ if (isAtMax) return;
60
+ setValue(value.concat(val));
61
+ };
62
+ const removeValue = (val) => {
63
+ if (!interactive) return;
64
+ setValue(value.filter((v) => String(v) !== String(val)));
65
+ };
66
+ const getItemProps = (props) => {
67
+ const checked = props.value != null ? isChecked(props.value) : void 0;
68
+ return {
69
+ checked,
70
+ onCheckedChange() {
71
+ if (props.value != null) toggleValue(props.value);
72
+ },
73
+ name,
74
+ disabled: disabled || isAtMax && !checked,
75
+ readOnly,
76
+ invalid
77
+ };
78
+ };
79
+ return {
80
+ isChecked,
81
+ value,
82
+ name,
83
+ disabled: !!disabled,
84
+ readOnly: !!readOnly,
85
+ invalid: !!invalid,
86
+ setValue,
87
+ addValue,
88
+ toggleValue,
89
+ getItemProps
90
+ };
91
+ }
92
+ //#endregion
93
+ //#region src/components/checkbox/use-group-context.tsx
94
+ const [CheckboxGroupContextProvider, useCheckboxGroupContext] = createContext$1({
95
+ name: "CheckboxGroupContext",
96
+ hookName: "useCheckboxGroupContext",
97
+ providerName: "<CheckboxGroupProvider />",
98
+ strict: false
99
+ });
100
+ //#endregion
101
+ //#region src/components/checkbox/group.tsx
102
+ const splitGroupProps = createSplitProps();
103
+ const CheckboxGroup = forwardRef((props, ref) => {
104
+ const [checkboxGroupProps, localProps] = splitGroupProps(props, [
105
+ "defaultValue",
106
+ "value",
107
+ "onValueChange",
108
+ "disabled",
109
+ "invalid",
110
+ "readOnly",
111
+ "name",
112
+ "maxSelectedValues"
113
+ ]);
114
+ return /* @__PURE__ */ jsx(CheckboxGroupContextProvider, {
115
+ value: useCheckboxGroup(checkboxGroupProps),
116
+ children: /* @__PURE__ */ jsx(wire.div, {
117
+ ref,
118
+ role: "group",
119
+ ...localProps,
120
+ ...checkboxAnatomy.build().group.attrs
121
+ })
122
+ });
123
+ });
124
+ CheckboxGroup.displayName = "CheckboxGroup";
125
+ //#endregion
126
+ //#region src/components/checkbox/group-provider.tsx
127
+ const splitProviderProps = createSplitProps();
128
+ const CheckboxGroupProvider = forwardRef((props, ref) => {
129
+ const [localProps, restProps] = splitProviderProps(props, ["value"]);
130
+ return /* @__PURE__ */ jsx(CheckboxGroupContextProvider, {
131
+ value: localProps.value,
132
+ children: /* @__PURE__ */ jsx(wire.div, {
133
+ ref,
134
+ role: "group",
135
+ ...restProps,
136
+ ...checkboxAnatomy.build().group.attrs
137
+ })
138
+ });
139
+ });
140
+ CheckboxGroupProvider.displayName = "CheckboxGroupProvider";
141
+ //#endregion
142
+ //#region src/components/checkbox/hidden-input.tsx
143
+ const CheckboxHiddenInput = forwardRef((props, ref) => {
144
+ const mergedProps = mergeProps(useCheckboxContext().getHiddenInputProps(), props);
145
+ const field = useFieldContext();
146
+ return /* @__PURE__ */ jsx(wire.input, {
147
+ "aria-describedby": field?.ariaDescribedby,
148
+ ...mergedProps,
149
+ ref
150
+ });
151
+ });
152
+ CheckboxHiddenInput.displayName = "CheckboxHiddenInput";
153
+ //#endregion
154
+ //#region src/components/checkbox/indicator.tsx
155
+ const CheckboxIndicator = forwardRef((props, ref) => {
156
+ const { indeterminate, ...rest } = props;
157
+ const checkbox = useCheckboxContext();
158
+ const mergedProps = mergeProps(checkbox.getIndicatorProps(), rest);
159
+ const isVisible = indeterminate ? checkbox.indeterminate : checkbox.checked;
160
+ return /* @__PURE__ */ jsx(wire.div, {
161
+ ...mergedProps,
162
+ hidden: !isVisible,
163
+ ref
164
+ });
165
+ });
166
+ CheckboxIndicator.displayName = "CheckboxIndicator";
167
+ //#endregion
168
+ //#region src/components/checkbox/label.tsx
169
+ const CheckboxLabel = forwardRef((props, ref) => {
170
+ const mergedProps = mergeProps(useCheckboxContext().getLabelProps(), props);
171
+ return /* @__PURE__ */ jsx(wire.span, {
172
+ ...mergedProps,
173
+ ref
174
+ });
175
+ });
176
+ CheckboxLabel.displayName = "CheckboxLabel";
177
+ //#endregion
178
+ //#region src/components/checkbox/use-checkbox.ts
179
+ const useCheckbox = (ownProps = {}) => {
180
+ const checkboxGroup = useCheckboxGroupContext();
181
+ const field = useFieldContext();
182
+ const props = useMemo(() => {
183
+ return mergeProps(checkboxGroup?.getItemProps({ value: ownProps.value }) ?? {}, ownProps);
184
+ }, [ownProps, checkboxGroup]);
185
+ const id = useId();
186
+ const { getRootNode } = useEnvironmentContext();
187
+ const { dir } = useLocaleContext();
188
+ const machineProps = {
189
+ id,
190
+ ids: {
191
+ label: field?.ids.label,
192
+ hiddenInput: field?.ids.control
193
+ },
194
+ dir,
195
+ disabled: field?.disabled,
196
+ readOnly: field?.readOnly,
197
+ invalid: field?.invalid,
198
+ required: field?.required,
199
+ getRootNode,
200
+ ...props
201
+ };
202
+ const service = useMachine(checkbox.machine, machineProps);
203
+ return checkbox.connect(service, normalizeProps);
204
+ };
205
+ //#endregion
206
+ //#region src/components/checkbox/root.tsx
207
+ const splitRootProps = createSplitProps();
208
+ const CheckboxRoot = forwardRef((props, ref) => {
209
+ const [useCheckboxProps, localProps] = splitRootProps(props, [
210
+ "checked",
211
+ "defaultChecked",
212
+ "disabled",
213
+ "form",
214
+ "id",
215
+ "ids",
216
+ "invalid",
217
+ "name",
218
+ "onCheckedChange",
219
+ "readOnly",
220
+ "required",
221
+ "value"
222
+ ]);
223
+ const checkbox = useCheckbox(useCheckboxProps);
224
+ const mergedProps = mergeProps(checkbox.getRootProps(), localProps);
225
+ return /* @__PURE__ */ jsx(CheckboxProvider, {
226
+ value: checkbox,
227
+ children: /* @__PURE__ */ jsx(wire.label, {
228
+ ...mergedProps,
229
+ ref
230
+ })
231
+ });
232
+ });
233
+ CheckboxRoot.displayName = "CheckboxRoot";
234
+ //#endregion
235
+ //#region src/components/checkbox/root-provider.tsx
236
+ const splitRootProviderProps = createSplitProps();
237
+ const CheckboxRootProvider = forwardRef((props, ref) => {
238
+ const [{ value: checkbox }, localProps] = splitRootProviderProps(props, ["value"]);
239
+ const mergedProps = mergeProps(checkbox.getRootProps(), localProps);
240
+ return /* @__PURE__ */ jsx(CheckboxProvider, {
241
+ value: checkbox,
242
+ children: /* @__PURE__ */ jsx(wire.label, {
243
+ ...mergedProps,
244
+ ref
245
+ })
246
+ });
247
+ });
248
+ CheckboxRootProvider.displayName = "CheckboxRootProvider";
249
+ //#endregion
250
+ //#region src/components/checkbox/checkbox.ts
251
+ var checkbox_exports = /* @__PURE__ */ __exportAll({
252
+ Context: () => CheckboxContext,
253
+ Control: () => CheckboxControl,
254
+ Group: () => CheckboxGroup,
255
+ GroupProvider: () => CheckboxGroupProvider,
256
+ HiddenInput: () => CheckboxHiddenInput,
257
+ Indicator: () => CheckboxIndicator,
258
+ Label: () => CheckboxLabel,
259
+ Root: () => CheckboxRoot,
260
+ RootProvider: () => CheckboxRootProvider
261
+ });
262
+ //#endregion
263
+ export { checkbox_exports as Checkbox, CheckboxContext, CheckboxControl, CheckboxGroup, CheckboxGroupProvider, CheckboxHiddenInput, CheckboxIndicator, CheckboxLabel, CheckboxRoot, CheckboxRootProvider, checkboxAnatomy, useCheckbox, useCheckboxContext, useCheckboxGroup, useCheckboxGroupContext };
@@ -0,0 +1,12 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let react = require("react");
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+ //#region src/components/client-only/client-only.tsx
5
+ const noop = () => void 0;
6
+ const ClientOnly = (props) => {
7
+ const { children, fallback } = props;
8
+ if (!(0, react.useSyncExternalStore)(() => noop, () => true, () => false)) return fallback;
9
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(react_jsx_runtime.Fragment, { children: typeof children === "function" ? children() : children });
10
+ };
11
+ //#endregion
12
+ exports.ClientOnly = ClientOnly;
@@ -0,0 +1,8 @@
1
+ //#region src/components/client-only/client-only.d.ts
2
+ interface ClientOnlyProps {
3
+ children: React.ReactNode | (() => React.ReactNode);
4
+ fallback?: React.ReactNode | undefined;
5
+ }
6
+ declare const ClientOnly: (props: ClientOnlyProps) => React.ReactNode;
7
+ //#endregion
8
+ export { ClientOnly, type ClientOnlyProps };
@@ -0,0 +1,8 @@
1
+ //#region src/components/client-only/client-only.d.ts
2
+ interface ClientOnlyProps {
3
+ children: React.ReactNode | (() => React.ReactNode);
4
+ fallback?: React.ReactNode | undefined;
5
+ }
6
+ declare const ClientOnly: (props: ClientOnlyProps) => React.ReactNode;
7
+ //#endregion
8
+ export { ClientOnly, type ClientOnlyProps };
@@ -0,0 +1,11 @@
1
+ import { useSyncExternalStore } from "react";
2
+ import { Fragment as Fragment$1, jsx } from "react/jsx-runtime";
3
+ //#region src/components/client-only/client-only.tsx
4
+ const noop = () => void 0;
5
+ const ClientOnly = (props) => {
6
+ const { children, fallback } = props;
7
+ if (!useSyncExternalStore(() => noop, () => true, () => false)) return fallback;
8
+ return /* @__PURE__ */ jsx(Fragment$1, { children: typeof children === "function" ? children() : children });
9
+ };
10
+ //#endregion
11
+ export { ClientOnly };
@@ -0,0 +1,174 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_rolldown_runtime = require("./rolldown-runtime-DakpK96I.cjs");
3
+ const require_utils = require("./utils-Cfwm9WW1.cjs");
4
+ const require_environment = require("./environment-B6IaCAuQ.cjs");
5
+ const require_core = require("./core-CBFAnVIP.cjs");
6
+ const require_factory = require("./factory-CFFufs5e.cjs");
7
+ let react = require("react");
8
+ let react_jsx_runtime = require("react/jsx-runtime");
9
+ let _wirekyt_dom_machines_clipboard = require("@wirekyt/dom/machines/clipboard");
10
+ _wirekyt_dom_machines_clipboard = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_clipboard, 1);
11
+ let _wirekyt_dom = require("@wirekyt/dom");
12
+ //#region src/components/clipboard/use-context.ts
13
+ const [ClipboardProvider, useClipboardContext] = require_utils.createContext({
14
+ name: "ClipboardContext",
15
+ hookName: "useClipboardContext",
16
+ providerName: "<ClipboardProvider />"
17
+ });
18
+ //#endregion
19
+ //#region src/components/clipboard/context.tsx
20
+ const ClipboardContext = (props) => props.children(useClipboardContext());
21
+ //#endregion
22
+ //#region src/components/clipboard/control.tsx
23
+ const ClipboardControl = (0, react.forwardRef)((props, ref) => {
24
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useClipboardContext().getControlProps(), props);
25
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
26
+ ...mergedProps,
27
+ ref
28
+ });
29
+ });
30
+ ClipboardControl.displayName = "ClipboardControl";
31
+ //#endregion
32
+ //#region src/components/clipboard/indicator.tsx
33
+ const ClipboardIndicator = (0, react.forwardRef)((props, ref) => {
34
+ const { children, copied, ...localProps } = props;
35
+ const clipboard = useClipboardContext();
36
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(clipboard.getIndicatorProps({ copied: clipboard.copied }), localProps);
37
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
38
+ ...mergedProps,
39
+ ref,
40
+ children: clipboard.copied ? copied : children
41
+ });
42
+ });
43
+ ClipboardIndicator.displayName = "ClipboardIndicator";
44
+ //#endregion
45
+ //#region src/components/clipboard/input.tsx
46
+ const ClipboardInput = (0, react.forwardRef)((props, ref) => {
47
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useClipboardContext().getInputProps(), props);
48
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
49
+ ...mergedProps,
50
+ ref
51
+ });
52
+ });
53
+ ClipboardInput.displayName = "ClipboardInput";
54
+ //#endregion
55
+ //#region src/components/clipboard/label.tsx
56
+ const ClipboardLabel = (0, react.forwardRef)((props, ref) => {
57
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useClipboardContext().getLabelProps(), props);
58
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.label, {
59
+ ...mergedProps,
60
+ ref
61
+ });
62
+ });
63
+ ClipboardLabel.displayName = "ClipboardLabel";
64
+ //#endregion
65
+ //#region src/components/clipboard/use.ts
66
+ const useClipboard = (props) => {
67
+ const id = (0, react.useId)();
68
+ const { getRootNode } = require_environment.useEnvironmentContext();
69
+ const machineProps = {
70
+ id,
71
+ getRootNode,
72
+ ...props
73
+ };
74
+ const service = require_core.useMachine(_wirekyt_dom_machines_clipboard.machine, machineProps);
75
+ return _wirekyt_dom_machines_clipboard.connect(service, require_core.normalizeProps);
76
+ };
77
+ //#endregion
78
+ //#region src/components/clipboard/root.tsx
79
+ const splitRootProps = require_utils.createSplitProps();
80
+ const ClipboardRoot = (0, react.forwardRef)((props, ref) => {
81
+ const [useClipboardProps, localProps] = splitRootProps(props, [
82
+ "defaultValue",
83
+ "id",
84
+ "ids",
85
+ "onStatusChange",
86
+ "onValueChange",
87
+ "timeout",
88
+ "translations",
89
+ "value"
90
+ ]);
91
+ const clipboard = useClipboard(useClipboardProps);
92
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(clipboard.getRootProps(), localProps);
93
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClipboardProvider, {
94
+ value: clipboard,
95
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
96
+ ref,
97
+ ...mergedProps
98
+ })
99
+ });
100
+ });
101
+ ClipboardRoot.displayName = "ClipboardRoot";
102
+ //#endregion
103
+ //#region src/components/clipboard/root-provider.tsx
104
+ const splitRootProviderProps = require_utils.createSplitProps();
105
+ const ClipboardRootProvider = (0, react.forwardRef)((props, ref) => {
106
+ const [{ value: clipboard }, localProps] = splitRootProviderProps(props, ["value"]);
107
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(clipboard.getRootProps(), localProps);
108
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ClipboardProvider, {
109
+ value: clipboard,
110
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
111
+ ref,
112
+ ...mergedProps
113
+ })
114
+ });
115
+ });
116
+ ClipboardRootProvider.displayName = "ClipboardRootProvider";
117
+ //#endregion
118
+ //#region src/components/clipboard/trigger.tsx
119
+ const ClipboardTrigger = (0, react.forwardRef)((props, ref) => {
120
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useClipboardContext().getTriggerProps(), props);
121
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
122
+ ...mergedProps,
123
+ ref
124
+ });
125
+ });
126
+ ClipboardTrigger.displayName = "ClipboardTrigger";
127
+ //#endregion
128
+ //#region src/components/clipboard/value-text.tsx
129
+ const ClipboardValueText = (0, react.forwardRef)((props, ref) => {
130
+ const clipboard = useClipboardContext();
131
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
132
+ ...props,
133
+ ref,
134
+ children: props.children || clipboard.value
135
+ });
136
+ });
137
+ ClipboardValueText.displayName = "ClipboardValueText";
138
+ //#endregion
139
+ //#region src/components/clipboard/clipboard.ts
140
+ var clipboard_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
141
+ Context: () => ClipboardContext,
142
+ Control: () => ClipboardControl,
143
+ Indicator: () => ClipboardIndicator,
144
+ Input: () => ClipboardInput,
145
+ Label: () => ClipboardLabel,
146
+ Root: () => ClipboardRoot,
147
+ RootProvider: () => ClipboardRootProvider,
148
+ Trigger: () => ClipboardTrigger,
149
+ ValueText: () => ClipboardValueText
150
+ });
151
+ //#endregion
152
+ Object.defineProperty(exports, "Clipboard", {
153
+ enumerable: true,
154
+ get: function() {
155
+ return clipboard_exports;
156
+ }
157
+ });
158
+ exports.ClipboardContext = ClipboardContext;
159
+ exports.ClipboardControl = ClipboardControl;
160
+ exports.ClipboardIndicator = ClipboardIndicator;
161
+ exports.ClipboardInput = ClipboardInput;
162
+ exports.ClipboardLabel = ClipboardLabel;
163
+ exports.ClipboardRoot = ClipboardRoot;
164
+ exports.ClipboardRootProvider = ClipboardRootProvider;
165
+ exports.ClipboardTrigger = ClipboardTrigger;
166
+ exports.ClipboardValueText = ClipboardValueText;
167
+ Object.defineProperty(exports, "clipboardAnatomy", {
168
+ enumerable: true,
169
+ get: function() {
170
+ return _wirekyt_dom_machines_clipboard.anatomy;
171
+ }
172
+ });
173
+ exports.useClipboard = useClipboard;
174
+ exports.useClipboardContext = useClipboardContext;
@@ -0,0 +1,70 @@
1
+ import { a as PropTypes } from "./index-CQAbOgb7.cjs";
2
+ import { r as Optional, t as Assign } from "./types-BQQfrr86.cjs";
3
+ import { r as PolymorphicProps, t as HTMLProps } from "./factory--dkoVnFK.cjs";
4
+ import { ReactNode } from "react";
5
+ import * as clipboard from "@wirekyt/dom/machines/clipboard";
6
+ import { CopyStatusDetails, CopyStatusDetails as ClipboardCopyStatusDetails, anatomy as clipboardAnatomy } from "@wirekyt/dom/machines/clipboard";
7
+ //#region src/components/clipboard/use.d.ts
8
+ interface UseClipboardProps extends Optional<Omit<clipboard.Props, "getRootNode">, "id"> {}
9
+ interface UseClipboardReturn extends clipboard.Api<PropTypes> {}
10
+ declare const useClipboard: (props?: UseClipboardProps) => UseClipboardReturn;
11
+ //#endregion
12
+ //#region src/components/clipboard/use-context.d.ts
13
+ interface UseClipboardContext extends UseClipboardReturn {}
14
+ declare const ClipboardProvider: import("react").Provider<UseClipboardContext>, useClipboardContext: () => UseClipboardContext;
15
+ //#endregion
16
+ //#region src/components/clipboard/context.d.ts
17
+ interface ClipboardContextProps {
18
+ children: (context: UseClipboardContext) => ReactNode;
19
+ }
20
+ declare const ClipboardContext: (props: ClipboardContextProps) => ReactNode;
21
+ //#endregion
22
+ //#region src/components/clipboard/control.d.ts
23
+ interface ClipboardControlBaseProps extends PolymorphicProps {}
24
+ interface ClipboardControlProps extends HTMLProps<"div">, ClipboardControlBaseProps {}
25
+ declare const ClipboardControl: import("react").ForwardRefExoticComponent<ClipboardControlProps & import("react").RefAttributes<HTMLDivElement>>;
26
+ //#endregion
27
+ //#region src/components/clipboard/indicator.d.ts
28
+ interface ClipboardIndicatorBaseProps extends PolymorphicProps {
29
+ copied?: ReactNode | undefined;
30
+ }
31
+ interface ClipboardIndicatorProps extends HTMLProps<"div">, ClipboardIndicatorBaseProps {}
32
+ declare const ClipboardIndicator: import("react").ForwardRefExoticComponent<ClipboardIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
33
+ //#endregion
34
+ //#region src/components/clipboard/input.d.ts
35
+ interface ClipboardInputBaseProps extends PolymorphicProps {}
36
+ interface ClipboardInputProps extends HTMLProps<"input">, ClipboardInputBaseProps {}
37
+ declare const ClipboardInput: import("react").ForwardRefExoticComponent<ClipboardInputProps & import("react").RefAttributes<HTMLInputElement>>;
38
+ //#endregion
39
+ //#region src/components/clipboard/label.d.ts
40
+ interface ClipboardLabelBaseProps extends PolymorphicProps {}
41
+ interface ClipboardLabelProps extends HTMLProps<"label">, ClipboardLabelBaseProps {}
42
+ declare const ClipboardLabel: import("react").ForwardRefExoticComponent<ClipboardLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
43
+ //#endregion
44
+ //#region src/components/clipboard/root.d.ts
45
+ interface ClipboardRootBaseProps extends UseClipboardProps, PolymorphicProps {}
46
+ interface ClipboardRootProps extends Assign<HTMLProps<"div">, ClipboardRootBaseProps> {}
47
+ declare const ClipboardRoot: import("react").ForwardRefExoticComponent<ClipboardRootProps & import("react").RefAttributes<HTMLDivElement>>;
48
+ //#endregion
49
+ //#region src/components/clipboard/root-provider.d.ts
50
+ interface RootProviderProps {
51
+ value: UseClipboardReturn;
52
+ }
53
+ interface ClipboardRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
54
+ interface ClipboardRootProviderProps extends HTMLProps<"div">, ClipboardRootProviderBaseProps {}
55
+ declare const ClipboardRootProvider: import("react").ForwardRefExoticComponent<ClipboardRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
56
+ //#endregion
57
+ //#region src/components/clipboard/trigger.d.ts
58
+ interface ClipboardTriggerBaseProps extends PolymorphicProps {}
59
+ interface ClipboardTriggerProps extends HTMLProps<"button">, ClipboardTriggerBaseProps {}
60
+ declare const ClipboardTrigger: import("react").ForwardRefExoticComponent<ClipboardTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
61
+ //#endregion
62
+ //#region src/components/clipboard/value-text.d.ts
63
+ interface ClipboardValueTextBaseProps extends PolymorphicProps {}
64
+ interface ClipboardValueTextProps extends HTMLProps<"span">, ClipboardValueTextBaseProps {}
65
+ declare const ClipboardValueText: import("react").ForwardRefExoticComponent<ClipboardValueTextProps & import("react").RefAttributes<HTMLDivElement>>;
66
+ declare namespace clipboard_d_exports {
67
+ export { ClipboardContext as Context, ClipboardContextProps as ContextProps, ClipboardControl as Control, ClipboardControlBaseProps as ControlBaseProps, ClipboardControlProps as ControlProps, CopyStatusDetails, ClipboardIndicator as Indicator, ClipboardIndicatorBaseProps as IndicatorBaseProps, ClipboardIndicatorProps as IndicatorProps, ClipboardInput as Input, ClipboardInputBaseProps as InputBaseProps, ClipboardInputProps as InputProps, ClipboardLabel as Label, ClipboardLabelBaseProps as LabelBaseProps, ClipboardLabelProps as LabelProps, ClipboardRoot as Root, ClipboardRootBaseProps as RootBaseProps, ClipboardRootProps as RootProps, ClipboardRootProvider as RootProvider, ClipboardRootProviderBaseProps as RootProviderBaseProps, ClipboardRootProviderProps as RootProviderProps, ClipboardTrigger as Trigger, ClipboardTriggerBaseProps as TriggerBaseProps, ClipboardTriggerProps as TriggerProps, ClipboardValueText as ValueText, ClipboardValueTextBaseProps as ValueTextBaseProps, ClipboardValueTextProps as ValueTextProps };
68
+ }
69
+ //#endregion
70
+ export { clipboard_d_exports as Clipboard, ClipboardContext, type ClipboardContextProps, ClipboardControl, type ClipboardControlBaseProps, type ClipboardControlProps, type ClipboardCopyStatusDetails, ClipboardIndicator, type ClipboardIndicatorBaseProps, type ClipboardIndicatorProps, ClipboardInput, type ClipboardInputBaseProps, type ClipboardInputProps, ClipboardLabel, type ClipboardLabelBaseProps, type ClipboardLabelProps, ClipboardRoot, type ClipboardRootBaseProps, type ClipboardRootProps, ClipboardRootProvider, type ClipboardRootProviderBaseProps, type ClipboardRootProviderProps, ClipboardTrigger, type ClipboardTriggerBaseProps, type ClipboardTriggerProps, ClipboardValueText, type ClipboardValueTextBaseProps, type ClipboardValueTextProps, type UseClipboardContext, type UseClipboardProps, type UseClipboardReturn, clipboardAnatomy, useClipboard, useClipboardContext };