@wirekyt/react 0.0.1 → 0.0.3

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-CW-Aj6aT.d.ts +95 -0
  127. package/dist/index-CxWYgVJk.d.ts +23 -0
  128. package/dist/index-DRnET7mJ.d.ts +33 -0
  129. package/dist/index-DTLK6Fuh.d.cts +95 -0
  130. package/dist/index-DyTY8HEb.d.cts +33 -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,222 @@
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
+ const require_providers = require("./providers-DrJEJcrE.cjs");
8
+ const require_use_context = require("./use-context-38DKWHsx.cjs");
9
+ require("./fieldset-DWZXj1t5.cjs");
10
+ let react = require("react");
11
+ let react_jsx_runtime = require("react/jsx-runtime");
12
+ let _wirekyt_dom_machines_radio_group = require("@wirekyt/dom/machines/radio-group");
13
+ _wirekyt_dom_machines_radio_group = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_radio_group, 1);
14
+ let _wirekyt_dom = require("@wirekyt/dom");
15
+ //#region src/components/radio-group/use-context.ts
16
+ const [RadioGroupProvider, useRadioGroupContext] = require_utils.createContext({
17
+ name: "RadioGroupContext",
18
+ hookName: "useRadioGroupContext",
19
+ providerName: "<RadioGroupProvider />"
20
+ });
21
+ //#endregion
22
+ //#region src/components/radio-group/context.tsx
23
+ const RadioGroupContext = (props) => props.children(useRadioGroupContext());
24
+ //#endregion
25
+ //#region src/components/radio-group/indicator.tsx
26
+ const RadioGroupIndicator = (0, react.forwardRef)((props, ref) => {
27
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useRadioGroupContext().getIndicatorProps(), props);
28
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
29
+ ...mergedProps,
30
+ ref
31
+ });
32
+ });
33
+ RadioGroupIndicator.displayName = "RadioGroupIndicator";
34
+ //#endregion
35
+ //#region src/components/radio-group/use-item-context.ts
36
+ const [RadioGroupItemProvider, useRadioGroupItemContext] = require_utils.createContext({
37
+ name: "RadioGroupItemContext",
38
+ hookName: "useRadioGroupItemContext",
39
+ providerName: "<RadioGroupItemProvider />"
40
+ });
41
+ //#endregion
42
+ //#region src/components/radio-group/use-item-props-context.ts
43
+ const [RadioGroupItemPropsProvider, useRadioGroupItemPropsContext] = require_utils.createContext({
44
+ name: "RadioGroupItemPropsContext",
45
+ hookName: "useRadioGroupItemPropsContext",
46
+ providerName: "<RadioGroupItemPropsProvider />"
47
+ });
48
+ //#endregion
49
+ //#region src/components/radio-group/item.tsx
50
+ const splitItemProps = require_utils.createSplitProps();
51
+ const RadioGroupItem = (0, react.forwardRef)((props, ref) => {
52
+ const [itemProps, localProps] = splitItemProps(props, [
53
+ "value",
54
+ "disabled",
55
+ "invalid"
56
+ ]);
57
+ const radioGroup = useRadioGroupContext();
58
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getItemProps(itemProps), localProps);
59
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioGroupItemProvider, {
60
+ value: radioGroup.getItemState(itemProps),
61
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioGroupItemPropsProvider, {
62
+ value: itemProps,
63
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.label, {
64
+ ...mergedProps,
65
+ ref
66
+ })
67
+ })
68
+ });
69
+ });
70
+ RadioGroupItem.displayName = "RadioGroupItem";
71
+ //#endregion
72
+ //#region src/components/radio-group/item-context.tsx
73
+ const RadioGroupItemContext = (props) => props.children(useRadioGroupItemContext());
74
+ //#endregion
75
+ //#region src/components/radio-group/item-control.tsx
76
+ const RadioGroupItemControl = (0, react.forwardRef)((props, ref) => {
77
+ const radioGroup = useRadioGroupContext();
78
+ const itemProps = useRadioGroupItemPropsContext();
79
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getItemControlProps(itemProps), props);
80
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
81
+ ...mergedProps,
82
+ ref
83
+ });
84
+ });
85
+ RadioGroupItemControl.displayName = "RadioGroupItemControl";
86
+ //#endregion
87
+ //#region src/components/radio-group/item-hidden-input.tsx
88
+ const RadioGroupItemHiddenInput = (0, react.forwardRef)((props, ref) => {
89
+ const radioGroup = useRadioGroupContext();
90
+ const itemProps = useRadioGroupItemPropsContext();
91
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getItemHiddenInputProps(itemProps), props);
92
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
93
+ ...mergedProps,
94
+ ref
95
+ });
96
+ });
97
+ RadioGroupItemHiddenInput.displayName = "RadioGroupItemHiddenInput";
98
+ //#endregion
99
+ //#region src/components/radio-group/item-text.tsx
100
+ const RadioGroupItemText = (0, react.forwardRef)((props, ref) => {
101
+ const radioGroup = useRadioGroupContext();
102
+ const itemProps = useRadioGroupItemPropsContext();
103
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getItemTextProps(itemProps), props);
104
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
105
+ ...mergedProps,
106
+ ref
107
+ });
108
+ });
109
+ RadioGroupItemText.displayName = "RadioGroupItemText";
110
+ //#endregion
111
+ //#region src/components/radio-group/label.tsx
112
+ const RadioGroupLabel = (0, react.forwardRef)((props, ref) => {
113
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(useRadioGroupContext().getLabelProps(), props);
114
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
115
+ ...mergedProps,
116
+ ref
117
+ });
118
+ });
119
+ RadioGroupLabel.displayName = "RadioGroupLabel";
120
+ //#endregion
121
+ //#region src/components/radio-group/use.ts
122
+ const useRadioGroup = (props) => {
123
+ const fieldset = require_use_context.useFieldsetContext();
124
+ const id = (0, react.useId)();
125
+ const { getRootNode } = require_environment.useEnvironmentContext();
126
+ const { dir } = require_providers.useLocaleContext();
127
+ const machineProps = {
128
+ id,
129
+ ids: { label: fieldset?.ids?.legend },
130
+ dir,
131
+ disabled: fieldset?.disabled,
132
+ invalid: fieldset?.invalid,
133
+ getRootNode,
134
+ ...props
135
+ };
136
+ const service = require_core.useMachine(_wirekyt_dom_machines_radio_group.machine, machineProps);
137
+ return _wirekyt_dom_machines_radio_group.connect(service, require_core.normalizeProps);
138
+ };
139
+ //#endregion
140
+ //#region src/components/radio-group/root.tsx
141
+ const splitRootProps = require_utils.createSplitProps();
142
+ const RadioGroupRoot = (0, react.forwardRef)((props, ref) => {
143
+ const [useRadioGroupProps, localProps] = splitRootProps(props, [
144
+ "defaultValue",
145
+ "disabled",
146
+ "form",
147
+ "id",
148
+ "ids",
149
+ "invalid",
150
+ "name",
151
+ "onValueChange",
152
+ "orientation",
153
+ "readOnly",
154
+ "required",
155
+ "value"
156
+ ]);
157
+ const radioGroup = useRadioGroup(useRadioGroupProps);
158
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getRootProps(), localProps);
159
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioGroupProvider, {
160
+ value: radioGroup,
161
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
162
+ ...mergedProps,
163
+ ref
164
+ })
165
+ });
166
+ });
167
+ RadioGroupRoot.displayName = "RadioGroupRoot";
168
+ //#endregion
169
+ //#region src/components/radio-group/root-provider.tsx
170
+ const splitRootProviderProps = require_utils.createSplitProps();
171
+ const RadioGroupRootProvider = (0, react.forwardRef)((props, ref) => {
172
+ const [{ value: radioGroup }, localProps] = splitRootProviderProps(props, ["value"]);
173
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(radioGroup.getRootProps(), localProps);
174
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RadioGroupProvider, {
175
+ value: radioGroup,
176
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
177
+ ...mergedProps,
178
+ ref
179
+ })
180
+ });
181
+ });
182
+ RadioGroupRootProvider.displayName = "RadioGroupRootProvider";
183
+ //#endregion
184
+ //#region src/components/radio-group/radio-group.ts
185
+ var radio_group_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
186
+ Context: () => RadioGroupContext,
187
+ Indicator: () => RadioGroupIndicator,
188
+ Item: () => RadioGroupItem,
189
+ ItemContext: () => RadioGroupItemContext,
190
+ ItemControl: () => RadioGroupItemControl,
191
+ ItemHiddenInput: () => RadioGroupItemHiddenInput,
192
+ ItemText: () => RadioGroupItemText,
193
+ Label: () => RadioGroupLabel,
194
+ Root: () => RadioGroupRoot,
195
+ RootProvider: () => RadioGroupRootProvider
196
+ });
197
+ //#endregion
198
+ Object.defineProperty(exports, "RadioGroup", {
199
+ enumerable: true,
200
+ get: function() {
201
+ return radio_group_exports;
202
+ }
203
+ });
204
+ exports.RadioGroupContext = RadioGroupContext;
205
+ exports.RadioGroupIndicator = RadioGroupIndicator;
206
+ exports.RadioGroupItem = RadioGroupItem;
207
+ exports.RadioGroupItemContext = RadioGroupItemContext;
208
+ exports.RadioGroupItemControl = RadioGroupItemControl;
209
+ exports.RadioGroupItemHiddenInput = RadioGroupItemHiddenInput;
210
+ exports.RadioGroupItemText = RadioGroupItemText;
211
+ exports.RadioGroupLabel = RadioGroupLabel;
212
+ exports.RadioGroupRoot = RadioGroupRoot;
213
+ exports.RadioGroupRootProvider = RadioGroupRootProvider;
214
+ Object.defineProperty(exports, "radioGroupAnatomy", {
215
+ enumerable: true,
216
+ get: function() {
217
+ return _wirekyt_dom_machines_radio_group.anatomy;
218
+ }
219
+ });
220
+ exports.useRadioGroup = useRadioGroup;
221
+ exports.useRadioGroupContext = useRadioGroupContext;
222
+ exports.useRadioGroupItemContext = useRadioGroupItemContext;
@@ -0,0 +1,78 @@
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 radio from "@wirekyt/dom/machines/radio-group";
6
+ import { ItemProps, ItemState, ValueChangeDetails, ValueChangeDetails as RadioGroupValueChangeDetails, anatomy as radioGroupAnatomy } from "@wirekyt/dom/machines/radio-group";
7
+ //#region src/components/radio-group/use.d.ts
8
+ interface UseRadioGroupProps extends Optional<Omit<radio.Props, "dir" | "getRootNode">, "id"> {}
9
+ interface UseRadioGroupReturn extends radio.Api<PropTypes> {}
10
+ declare const useRadioGroup: (props?: UseRadioGroupProps) => UseRadioGroupReturn;
11
+ //#endregion
12
+ //#region src/components/radio-group/use-context.d.ts
13
+ interface UseRadioGroupContext extends UseRadioGroupReturn {}
14
+ declare const RadioGroupProvider: import("react").Provider<UseRadioGroupContext>, useRadioGroupContext: () => UseRadioGroupContext;
15
+ //#endregion
16
+ //#region src/components/radio-group/context.d.ts
17
+ interface RadioGroupContextProps {
18
+ children: (context: UseRadioGroupContext) => ReactNode;
19
+ }
20
+ declare const RadioGroupContext: (props: RadioGroupContextProps) => ReactNode;
21
+ //#endregion
22
+ //#region src/components/radio-group/indicator.d.ts
23
+ interface RadioGroupIndicatorBaseProps extends PolymorphicProps {}
24
+ interface RadioGroupIndicatorProps extends HTMLProps<"div">, RadioGroupIndicatorBaseProps {}
25
+ declare const RadioGroupIndicator: import("react").ForwardRefExoticComponent<RadioGroupIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
26
+ //#endregion
27
+ //#region src/components/radio-group/item.d.ts
28
+ interface RadioGroupItemBaseProps extends ItemProps, PolymorphicProps {}
29
+ interface RadioGroupItemProps extends HTMLProps<"label">, RadioGroupItemBaseProps {}
30
+ declare const RadioGroupItem: import("react").ForwardRefExoticComponent<RadioGroupItemProps & import("react").RefAttributes<HTMLLabelElement>>;
31
+ //#endregion
32
+ //#region src/components/radio-group/use-item-context.d.ts
33
+ interface UseRadioGroupItemContext extends ItemState {}
34
+ declare const RadioGroupItemProvider: import("react").Provider<UseRadioGroupItemContext>, useRadioGroupItemContext: () => UseRadioGroupItemContext;
35
+ //#endregion
36
+ //#region src/components/radio-group/item-context.d.ts
37
+ interface RadioGroupItemContextProps {
38
+ children: (context: UseRadioGroupItemContext) => ReactNode;
39
+ }
40
+ declare const RadioGroupItemContext: (props: RadioGroupItemContextProps) => ReactNode;
41
+ //#endregion
42
+ //#region src/components/radio-group/item-control.d.ts
43
+ interface RadioGroupItemControlBaseProps extends PolymorphicProps {}
44
+ interface RadioGroupItemControlProps extends HTMLProps<"div">, RadioGroupItemControlBaseProps {}
45
+ declare const RadioGroupItemControl: import("react").ForwardRefExoticComponent<RadioGroupItemControlProps & import("react").RefAttributes<HTMLDivElement>>;
46
+ //#endregion
47
+ //#region src/components/radio-group/item-hidden-input.d.ts
48
+ interface RadioGroupItemHiddenInputBaseProps extends PolymorphicProps {}
49
+ interface RadioGroupItemHiddenInputProps extends HTMLProps<"input">, RadioGroupItemHiddenInputBaseProps {}
50
+ declare const RadioGroupItemHiddenInput: import("react").ForwardRefExoticComponent<RadioGroupItemHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
51
+ //#endregion
52
+ //#region src/components/radio-group/item-text.d.ts
53
+ interface RadioGroupItemTextBaseProps extends PolymorphicProps {}
54
+ interface RadioGroupItemTextProps extends HTMLProps<"span">, RadioGroupItemTextBaseProps {}
55
+ declare const RadioGroupItemText: import("react").ForwardRefExoticComponent<RadioGroupItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
56
+ //#endregion
57
+ //#region src/components/radio-group/label.d.ts
58
+ interface RadioGroupLabelBaseProps extends PolymorphicProps {}
59
+ interface RadioGroupLabelProps extends HTMLProps<"span">, RadioGroupLabelBaseProps {}
60
+ declare const RadioGroupLabel: import("react").ForwardRefExoticComponent<RadioGroupLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
61
+ //#endregion
62
+ //#region src/components/radio-group/root.d.ts
63
+ interface RadioGroupRootBaseProps extends UseRadioGroupProps, PolymorphicProps {}
64
+ interface RadioGroupRootProps extends Assign<HTMLProps<"div">, RadioGroupRootBaseProps> {}
65
+ declare const RadioGroupRoot: import("react").ForwardRefExoticComponent<RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>;
66
+ //#endregion
67
+ //#region src/components/radio-group/root-provider.d.ts
68
+ interface RootProviderProps {
69
+ value: UseRadioGroupReturn;
70
+ }
71
+ interface RadioGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
72
+ interface RadioGroupRootProviderProps extends HTMLProps<"div">, RadioGroupRootProviderBaseProps {}
73
+ declare const RadioGroupRootProvider: import("react").ForwardRefExoticComponent<RadioGroupRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
74
+ declare namespace radio_group_d_exports {
75
+ export { RadioGroupContext as Context, RadioGroupContext as ContextProps, RadioGroupIndicator as Indicator, RadioGroupIndicatorBaseProps as IndicatorBaseProps, RadioGroupIndicatorProps as IndicatorProps, RadioGroupItem as Item, RadioGroupItemBaseProps as ItemBaseProps, RadioGroupItemContext as ItemContext, RadioGroupItemContext as ItemContextProps, RadioGroupItemControl as ItemControl, RadioGroupItemControlBaseProps as ItemControlBaseProps, RadioGroupItemControlProps as ItemControlProps, RadioGroupItemHiddenInput as ItemHiddenInput, RadioGroupItemHiddenInputBaseProps as ItemHiddenInputBaseProps, RadioGroupItemHiddenInputProps as ItemHiddenInputProps, RadioGroupItemProps as ItemProps, RadioGroupItemText as ItemText, RadioGroupItemTextBaseProps as ItemTextBaseProps, RadioGroupItemTextProps as ItemTextProps, RadioGroupLabel as Label, RadioGroupLabelBaseProps as LabelBaseProps, RadioGroupLabelProps as LabelProps, RadioGroupRoot as Root, RadioGroupRootBaseProps as RootBaseProps, RadioGroupRootProps as RootProps, RadioGroupRootProvider as RootProvider, RadioGroupRootProviderBaseProps as RootProviderBaseProps, RadioGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
76
+ }
77
+ //#endregion
78
+ export { radio_group_d_exports as RadioGroup, RadioGroupContext, type RadioGroupContextProps, RadioGroupIndicator, type RadioGroupIndicatorBaseProps, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemBaseProps, RadioGroupItemContext, type RadioGroupItemContextProps, RadioGroupItemControl, type RadioGroupItemControlBaseProps, type RadioGroupItemControlProps, RadioGroupItemHiddenInput, type RadioGroupItemHiddenInputBaseProps, type RadioGroupItemHiddenInputProps, type RadioGroupItemProps, RadioGroupItemText, type RadioGroupItemTextBaseProps, type RadioGroupItemTextProps, RadioGroupLabel, type RadioGroupLabelBaseProps, type RadioGroupLabelProps, RadioGroupRoot, type RadioGroupRootBaseProps, type RadioGroupRootProps, RadioGroupRootProvider, type RadioGroupRootProviderBaseProps, type RadioGroupRootProviderProps, type RadioGroupValueChangeDetails, type UseRadioGroupContext, type UseRadioGroupItemContext, type UseRadioGroupProps, type UseRadioGroupReturn, radioGroupAnatomy, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext };
@@ -0,0 +1,78 @@
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 radio from "@wirekyt/dom/machines/radio-group";
6
+ import { ItemProps, ItemState, ValueChangeDetails, ValueChangeDetails as RadioGroupValueChangeDetails, anatomy as radioGroupAnatomy } from "@wirekyt/dom/machines/radio-group";
7
+ //#region src/components/radio-group/use.d.ts
8
+ interface UseRadioGroupProps extends Optional<Omit<radio.Props, "dir" | "getRootNode">, "id"> {}
9
+ interface UseRadioGroupReturn extends radio.Api<PropTypes> {}
10
+ declare const useRadioGroup: (props?: UseRadioGroupProps) => UseRadioGroupReturn;
11
+ //#endregion
12
+ //#region src/components/radio-group/use-context.d.ts
13
+ interface UseRadioGroupContext extends UseRadioGroupReturn {}
14
+ declare const RadioGroupProvider: import("react").Provider<UseRadioGroupContext>, useRadioGroupContext: () => UseRadioGroupContext;
15
+ //#endregion
16
+ //#region src/components/radio-group/context.d.ts
17
+ interface RadioGroupContextProps {
18
+ children: (context: UseRadioGroupContext) => ReactNode;
19
+ }
20
+ declare const RadioGroupContext: (props: RadioGroupContextProps) => ReactNode;
21
+ //#endregion
22
+ //#region src/components/radio-group/indicator.d.ts
23
+ interface RadioGroupIndicatorBaseProps extends PolymorphicProps {}
24
+ interface RadioGroupIndicatorProps extends HTMLProps<"div">, RadioGroupIndicatorBaseProps {}
25
+ declare const RadioGroupIndicator: import("react").ForwardRefExoticComponent<RadioGroupIndicatorProps & import("react").RefAttributes<HTMLDivElement>>;
26
+ //#endregion
27
+ //#region src/components/radio-group/item.d.ts
28
+ interface RadioGroupItemBaseProps extends ItemProps, PolymorphicProps {}
29
+ interface RadioGroupItemProps extends HTMLProps<"label">, RadioGroupItemBaseProps {}
30
+ declare const RadioGroupItem: import("react").ForwardRefExoticComponent<RadioGroupItemProps & import("react").RefAttributes<HTMLLabelElement>>;
31
+ //#endregion
32
+ //#region src/components/radio-group/use-item-context.d.ts
33
+ interface UseRadioGroupItemContext extends ItemState {}
34
+ declare const RadioGroupItemProvider: import("react").Provider<UseRadioGroupItemContext>, useRadioGroupItemContext: () => UseRadioGroupItemContext;
35
+ //#endregion
36
+ //#region src/components/radio-group/item-context.d.ts
37
+ interface RadioGroupItemContextProps {
38
+ children: (context: UseRadioGroupItemContext) => ReactNode;
39
+ }
40
+ declare const RadioGroupItemContext: (props: RadioGroupItemContextProps) => ReactNode;
41
+ //#endregion
42
+ //#region src/components/radio-group/item-control.d.ts
43
+ interface RadioGroupItemControlBaseProps extends PolymorphicProps {}
44
+ interface RadioGroupItemControlProps extends HTMLProps<"div">, RadioGroupItemControlBaseProps {}
45
+ declare const RadioGroupItemControl: import("react").ForwardRefExoticComponent<RadioGroupItemControlProps & import("react").RefAttributes<HTMLDivElement>>;
46
+ //#endregion
47
+ //#region src/components/radio-group/item-hidden-input.d.ts
48
+ interface RadioGroupItemHiddenInputBaseProps extends PolymorphicProps {}
49
+ interface RadioGroupItemHiddenInputProps extends HTMLProps<"input">, RadioGroupItemHiddenInputBaseProps {}
50
+ declare const RadioGroupItemHiddenInput: import("react").ForwardRefExoticComponent<RadioGroupItemHiddenInputProps & import("react").RefAttributes<HTMLInputElement>>;
51
+ //#endregion
52
+ //#region src/components/radio-group/item-text.d.ts
53
+ interface RadioGroupItemTextBaseProps extends PolymorphicProps {}
54
+ interface RadioGroupItemTextProps extends HTMLProps<"span">, RadioGroupItemTextBaseProps {}
55
+ declare const RadioGroupItemText: import("react").ForwardRefExoticComponent<RadioGroupItemTextProps & import("react").RefAttributes<HTMLSpanElement>>;
56
+ //#endregion
57
+ //#region src/components/radio-group/label.d.ts
58
+ interface RadioGroupLabelBaseProps extends PolymorphicProps {}
59
+ interface RadioGroupLabelProps extends HTMLProps<"span">, RadioGroupLabelBaseProps {}
60
+ declare const RadioGroupLabel: import("react").ForwardRefExoticComponent<RadioGroupLabelProps & import("react").RefAttributes<HTMLSpanElement>>;
61
+ //#endregion
62
+ //#region src/components/radio-group/root.d.ts
63
+ interface RadioGroupRootBaseProps extends UseRadioGroupProps, PolymorphicProps {}
64
+ interface RadioGroupRootProps extends Assign<HTMLProps<"div">, RadioGroupRootBaseProps> {}
65
+ declare const RadioGroupRoot: import("react").ForwardRefExoticComponent<RadioGroupRootProps & import("react").RefAttributes<HTMLDivElement>>;
66
+ //#endregion
67
+ //#region src/components/radio-group/root-provider.d.ts
68
+ interface RootProviderProps {
69
+ value: UseRadioGroupReturn;
70
+ }
71
+ interface RadioGroupRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
72
+ interface RadioGroupRootProviderProps extends HTMLProps<"div">, RadioGroupRootProviderBaseProps {}
73
+ declare const RadioGroupRootProvider: import("react").ForwardRefExoticComponent<RadioGroupRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
74
+ declare namespace radio_group_d_exports {
75
+ export { RadioGroupContext as Context, RadioGroupContext as ContextProps, RadioGroupIndicator as Indicator, RadioGroupIndicatorBaseProps as IndicatorBaseProps, RadioGroupIndicatorProps as IndicatorProps, RadioGroupItem as Item, RadioGroupItemBaseProps as ItemBaseProps, RadioGroupItemContext as ItemContext, RadioGroupItemContext as ItemContextProps, RadioGroupItemControl as ItemControl, RadioGroupItemControlBaseProps as ItemControlBaseProps, RadioGroupItemControlProps as ItemControlProps, RadioGroupItemHiddenInput as ItemHiddenInput, RadioGroupItemHiddenInputBaseProps as ItemHiddenInputBaseProps, RadioGroupItemHiddenInputProps as ItemHiddenInputProps, RadioGroupItemProps as ItemProps, RadioGroupItemText as ItemText, RadioGroupItemTextBaseProps as ItemTextBaseProps, RadioGroupItemTextProps as ItemTextProps, RadioGroupLabel as Label, RadioGroupLabelBaseProps as LabelBaseProps, RadioGroupLabelProps as LabelProps, RadioGroupRoot as Root, RadioGroupRootBaseProps as RootBaseProps, RadioGroupRootProps as RootProps, RadioGroupRootProvider as RootProvider, RadioGroupRootProviderBaseProps as RootProviderBaseProps, RadioGroupRootProviderProps as RootProviderProps, ValueChangeDetails };
76
+ }
77
+ //#endregion
78
+ export { radio_group_d_exports as RadioGroup, RadioGroupContext, type RadioGroupContextProps, RadioGroupIndicator, type RadioGroupIndicatorBaseProps, type RadioGroupIndicatorProps, RadioGroupItem, type RadioGroupItemBaseProps, RadioGroupItemContext, type RadioGroupItemContextProps, RadioGroupItemControl, type RadioGroupItemControlBaseProps, type RadioGroupItemControlProps, RadioGroupItemHiddenInput, type RadioGroupItemHiddenInputBaseProps, type RadioGroupItemHiddenInputProps, type RadioGroupItemProps, RadioGroupItemText, type RadioGroupItemTextBaseProps, type RadioGroupItemTextProps, RadioGroupLabel, type RadioGroupLabelBaseProps, type RadioGroupLabelProps, RadioGroupRoot, type RadioGroupRootBaseProps, type RadioGroupRootProps, RadioGroupRootProvider, type RadioGroupRootProviderBaseProps, type RadioGroupRootProviderProps, type RadioGroupValueChangeDetails, type UseRadioGroupContext, type UseRadioGroupItemContext, type UseRadioGroupProps, type UseRadioGroupReturn, radioGroupAnatomy, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext };
@@ -0,0 +1,196 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-D7D4PA-g.js";
2
+ import { c as createSplitProps, 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 { forwardRef, useId } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ import * as radio from "@wirekyt/dom/machines/radio-group";
12
+ import { anatomy as radioGroupAnatomy } from "@wirekyt/dom/machines/radio-group";
13
+ //#region src/components/radio-group/use-context.ts
14
+ const [RadioGroupProvider, useRadioGroupContext] = createContext$1({
15
+ name: "RadioGroupContext",
16
+ hookName: "useRadioGroupContext",
17
+ providerName: "<RadioGroupProvider />"
18
+ });
19
+ //#endregion
20
+ //#region src/components/radio-group/context.tsx
21
+ const RadioGroupContext = (props) => props.children(useRadioGroupContext());
22
+ //#endregion
23
+ //#region src/components/radio-group/indicator.tsx
24
+ const RadioGroupIndicator = forwardRef((props, ref) => {
25
+ const mergedProps = mergeProps(useRadioGroupContext().getIndicatorProps(), props);
26
+ return /* @__PURE__ */ jsx(wire.div, {
27
+ ...mergedProps,
28
+ ref
29
+ });
30
+ });
31
+ RadioGroupIndicator.displayName = "RadioGroupIndicator";
32
+ //#endregion
33
+ //#region src/components/radio-group/use-item-context.ts
34
+ const [RadioGroupItemProvider, useRadioGroupItemContext] = createContext$1({
35
+ name: "RadioGroupItemContext",
36
+ hookName: "useRadioGroupItemContext",
37
+ providerName: "<RadioGroupItemProvider />"
38
+ });
39
+ //#endregion
40
+ //#region src/components/radio-group/use-item-props-context.ts
41
+ const [RadioGroupItemPropsProvider, useRadioGroupItemPropsContext] = createContext$1({
42
+ name: "RadioGroupItemPropsContext",
43
+ hookName: "useRadioGroupItemPropsContext",
44
+ providerName: "<RadioGroupItemPropsProvider />"
45
+ });
46
+ //#endregion
47
+ //#region src/components/radio-group/item.tsx
48
+ const splitItemProps = createSplitProps();
49
+ const RadioGroupItem = forwardRef((props, ref) => {
50
+ const [itemProps, localProps] = splitItemProps(props, [
51
+ "value",
52
+ "disabled",
53
+ "invalid"
54
+ ]);
55
+ const radioGroup = useRadioGroupContext();
56
+ const mergedProps = mergeProps(radioGroup.getItemProps(itemProps), localProps);
57
+ return /* @__PURE__ */ jsx(RadioGroupItemProvider, {
58
+ value: radioGroup.getItemState(itemProps),
59
+ children: /* @__PURE__ */ jsx(RadioGroupItemPropsProvider, {
60
+ value: itemProps,
61
+ children: /* @__PURE__ */ jsx(wire.label, {
62
+ ...mergedProps,
63
+ ref
64
+ })
65
+ })
66
+ });
67
+ });
68
+ RadioGroupItem.displayName = "RadioGroupItem";
69
+ //#endregion
70
+ //#region src/components/radio-group/item-context.tsx
71
+ const RadioGroupItemContext = (props) => props.children(useRadioGroupItemContext());
72
+ //#endregion
73
+ //#region src/components/radio-group/item-control.tsx
74
+ const RadioGroupItemControl = forwardRef((props, ref) => {
75
+ const radioGroup = useRadioGroupContext();
76
+ const itemProps = useRadioGroupItemPropsContext();
77
+ const mergedProps = mergeProps(radioGroup.getItemControlProps(itemProps), props);
78
+ return /* @__PURE__ */ jsx(wire.div, {
79
+ ...mergedProps,
80
+ ref
81
+ });
82
+ });
83
+ RadioGroupItemControl.displayName = "RadioGroupItemControl";
84
+ //#endregion
85
+ //#region src/components/radio-group/item-hidden-input.tsx
86
+ const RadioGroupItemHiddenInput = forwardRef((props, ref) => {
87
+ const radioGroup = useRadioGroupContext();
88
+ const itemProps = useRadioGroupItemPropsContext();
89
+ const mergedProps = mergeProps(radioGroup.getItemHiddenInputProps(itemProps), props);
90
+ return /* @__PURE__ */ jsx(wire.input, {
91
+ ...mergedProps,
92
+ ref
93
+ });
94
+ });
95
+ RadioGroupItemHiddenInput.displayName = "RadioGroupItemHiddenInput";
96
+ //#endregion
97
+ //#region src/components/radio-group/item-text.tsx
98
+ const RadioGroupItemText = forwardRef((props, ref) => {
99
+ const radioGroup = useRadioGroupContext();
100
+ const itemProps = useRadioGroupItemPropsContext();
101
+ const mergedProps = mergeProps(radioGroup.getItemTextProps(itemProps), props);
102
+ return /* @__PURE__ */ jsx(wire.span, {
103
+ ...mergedProps,
104
+ ref
105
+ });
106
+ });
107
+ RadioGroupItemText.displayName = "RadioGroupItemText";
108
+ //#endregion
109
+ //#region src/components/radio-group/label.tsx
110
+ const RadioGroupLabel = forwardRef((props, ref) => {
111
+ const mergedProps = mergeProps(useRadioGroupContext().getLabelProps(), props);
112
+ return /* @__PURE__ */ jsx(wire.span, {
113
+ ...mergedProps,
114
+ ref
115
+ });
116
+ });
117
+ RadioGroupLabel.displayName = "RadioGroupLabel";
118
+ //#endregion
119
+ //#region src/components/radio-group/use.ts
120
+ const useRadioGroup = (props) => {
121
+ const fieldset = useFieldsetContext();
122
+ const id = useId();
123
+ const { getRootNode } = useEnvironmentContext();
124
+ const { dir } = useLocaleContext();
125
+ const machineProps = {
126
+ id,
127
+ ids: { label: fieldset?.ids?.legend },
128
+ dir,
129
+ disabled: fieldset?.disabled,
130
+ invalid: fieldset?.invalid,
131
+ getRootNode,
132
+ ...props
133
+ };
134
+ const service = useMachine(radio.machine, machineProps);
135
+ return radio.connect(service, normalizeProps);
136
+ };
137
+ //#endregion
138
+ //#region src/components/radio-group/root.tsx
139
+ const splitRootProps = createSplitProps();
140
+ const RadioGroupRoot = forwardRef((props, ref) => {
141
+ const [useRadioGroupProps, localProps] = splitRootProps(props, [
142
+ "defaultValue",
143
+ "disabled",
144
+ "form",
145
+ "id",
146
+ "ids",
147
+ "invalid",
148
+ "name",
149
+ "onValueChange",
150
+ "orientation",
151
+ "readOnly",
152
+ "required",
153
+ "value"
154
+ ]);
155
+ const radioGroup = useRadioGroup(useRadioGroupProps);
156
+ const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);
157
+ return /* @__PURE__ */ jsx(RadioGroupProvider, {
158
+ value: radioGroup,
159
+ children: /* @__PURE__ */ jsx(wire.div, {
160
+ ...mergedProps,
161
+ ref
162
+ })
163
+ });
164
+ });
165
+ RadioGroupRoot.displayName = "RadioGroupRoot";
166
+ //#endregion
167
+ //#region src/components/radio-group/root-provider.tsx
168
+ const splitRootProviderProps = createSplitProps();
169
+ const RadioGroupRootProvider = forwardRef((props, ref) => {
170
+ const [{ value: radioGroup }, localProps] = splitRootProviderProps(props, ["value"]);
171
+ const mergedProps = mergeProps(radioGroup.getRootProps(), localProps);
172
+ return /* @__PURE__ */ jsx(RadioGroupProvider, {
173
+ value: radioGroup,
174
+ children: /* @__PURE__ */ jsx(wire.div, {
175
+ ...mergedProps,
176
+ ref
177
+ })
178
+ });
179
+ });
180
+ RadioGroupRootProvider.displayName = "RadioGroupRootProvider";
181
+ //#endregion
182
+ //#region src/components/radio-group/radio-group.ts
183
+ var radio_group_exports = /* @__PURE__ */ __exportAll({
184
+ Context: () => RadioGroupContext,
185
+ Indicator: () => RadioGroupIndicator,
186
+ Item: () => RadioGroupItem,
187
+ ItemContext: () => RadioGroupItemContext,
188
+ ItemControl: () => RadioGroupItemControl,
189
+ ItemHiddenInput: () => RadioGroupItemHiddenInput,
190
+ ItemText: () => RadioGroupItemText,
191
+ Label: () => RadioGroupLabel,
192
+ Root: () => RadioGroupRoot,
193
+ RootProvider: () => RadioGroupRootProvider
194
+ });
195
+ //#endregion
196
+ export { radio_group_exports as RadioGroup, RadioGroupContext, RadioGroupIndicator, RadioGroupItem, RadioGroupItemContext, RadioGroupItemControl, RadioGroupItemHiddenInput, RadioGroupItemText, RadioGroupLabel, RadioGroupRoot, RadioGroupRootProvider, radioGroupAnatomy, useRadioGroup, useRadioGroupContext, useRadioGroupItemContext };