@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,159 @@
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 { forwardRef, useId } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ import * as pagination from "@wirekyt/dom/machines/pagination";
10
+ import { anatomy as paginationAnatomy } from "@wirekyt/dom/machines/pagination";
11
+ //#region src/components/pagination/use-context.ts
12
+ const [PaginationProvider, usePaginationContext] = createContext$1({
13
+ name: "PaginationContext",
14
+ hookName: "usePaginationContext",
15
+ providerName: "<PaginationProvider />"
16
+ });
17
+ //#endregion
18
+ //#region src/components/pagination/context.tsx
19
+ const PaginationContext = (props) => props.children(usePaginationContext());
20
+ //#endregion
21
+ //#region src/components/pagination/ellipsis.tsx
22
+ const splitEllipsisProps = createSplitProps();
23
+ const PaginationEllipsis = forwardRef((props, ref) => {
24
+ const [ellipsisProps, localProps] = splitEllipsisProps(props, ["index"]);
25
+ const mergedProps = mergeProps(usePaginationContext().getEllipsisProps(ellipsisProps), localProps);
26
+ return /* @__PURE__ */ jsx(wire.div, {
27
+ ...mergedProps,
28
+ ref
29
+ });
30
+ });
31
+ PaginationEllipsis.displayName = "PaginationEllipsis";
32
+ //#endregion
33
+ //#region src/components/pagination/first-trigger.tsx
34
+ const PaginationFirstTrigger = forwardRef((props, ref) => {
35
+ const mergedProps = mergeProps(usePaginationContext().getFirstTriggerProps(), props);
36
+ return /* @__PURE__ */ jsx(wire.button, {
37
+ ...mergedProps,
38
+ ref
39
+ });
40
+ });
41
+ PaginationFirstTrigger.displayName = "PaginationFirstTrigger";
42
+ //#endregion
43
+ //#region src/components/pagination/item.tsx
44
+ const splitItemProps = createSplitProps();
45
+ const PaginationItem = forwardRef((props, ref) => {
46
+ const [itemProps, localProps] = splitItemProps(props, ["value", "type"]);
47
+ const mergedProps = mergeProps(usePaginationContext().getItemProps(itemProps), localProps);
48
+ return /* @__PURE__ */ jsx(wire.button, {
49
+ ...mergedProps,
50
+ ref
51
+ });
52
+ });
53
+ PaginationItem.displayName = "PaginationItem";
54
+ //#endregion
55
+ //#region src/components/pagination/last-trigger.tsx
56
+ const PaginationLastTrigger = forwardRef((props, ref) => {
57
+ const mergedProps = mergeProps(usePaginationContext().getLastTriggerProps(), props);
58
+ return /* @__PURE__ */ jsx(wire.button, {
59
+ ...mergedProps,
60
+ ref
61
+ });
62
+ });
63
+ PaginationLastTrigger.displayName = "PaginationLastTrigger";
64
+ //#endregion
65
+ //#region src/components/pagination/next-trigger.tsx
66
+ const PaginationNextTrigger = forwardRef((props, ref) => {
67
+ const mergedProps = mergeProps(usePaginationContext().getNextTriggerProps(), props);
68
+ return /* @__PURE__ */ jsx(wire.button, {
69
+ ...mergedProps,
70
+ ref
71
+ });
72
+ });
73
+ PaginationNextTrigger.displayName = "PaginationNextTrigger";
74
+ //#endregion
75
+ //#region src/components/pagination/prev-trigger.tsx
76
+ const PaginationPrevTrigger = forwardRef((props, ref) => {
77
+ const mergedProps = mergeProps(usePaginationContext().getPrevTriggerProps(), props);
78
+ return /* @__PURE__ */ jsx(wire.button, {
79
+ ...mergedProps,
80
+ ref
81
+ });
82
+ });
83
+ PaginationPrevTrigger.displayName = "PaginationPrevTrigger";
84
+ //#endregion
85
+ //#region src/components/pagination/use.ts
86
+ const usePagination = (props) => {
87
+ const id = useId();
88
+ const { getRootNode } = useEnvironmentContext();
89
+ const { dir } = useLocaleContext();
90
+ const machineProps = {
91
+ id,
92
+ dir,
93
+ getRootNode,
94
+ ...props
95
+ };
96
+ const service = useMachine(pagination.machine, machineProps);
97
+ return pagination.connect(service, normalizeProps);
98
+ };
99
+ //#endregion
100
+ //#region src/components/pagination/root.tsx
101
+ const splitRootProps = createSplitProps();
102
+ const PaginationRoot = forwardRef((props, ref) => {
103
+ const [paginationProps, localProps] = splitRootProps(props, [
104
+ "boundaryCount",
105
+ "count",
106
+ "defaultPage",
107
+ "defaultPageSize",
108
+ "getPageUrl",
109
+ "id",
110
+ "ids",
111
+ "onPageChange",
112
+ "onPageSizeChange",
113
+ "page",
114
+ "pageSize",
115
+ "siblingCount",
116
+ "translations",
117
+ "type"
118
+ ]);
119
+ const pagination = usePagination(paginationProps);
120
+ const mergedProps = mergeProps(pagination.getRootProps(), localProps);
121
+ return /* @__PURE__ */ jsx(PaginationProvider, {
122
+ value: pagination,
123
+ children: /* @__PURE__ */ jsx(wire.nav, {
124
+ ...mergedProps,
125
+ ref
126
+ })
127
+ });
128
+ });
129
+ PaginationRoot.displayName = "PaginationRoot";
130
+ //#endregion
131
+ //#region src/components/pagination/root-provider.tsx
132
+ const splitRootProviderProps = createSplitProps();
133
+ const PaginationRootProvider = forwardRef((props, ref) => {
134
+ const [{ value: pagination }, localProps] = splitRootProviderProps(props, ["value"]);
135
+ const mergedProps = mergeProps(pagination.getRootProps(), localProps);
136
+ return /* @__PURE__ */ jsx(PaginationProvider, {
137
+ value: pagination,
138
+ children: /* @__PURE__ */ jsx(wire.nav, {
139
+ ...mergedProps,
140
+ ref
141
+ })
142
+ });
143
+ });
144
+ PaginationRootProvider.displayName = "PaginationRootProvider";
145
+ //#endregion
146
+ //#region src/components/pagination/pagination.ts
147
+ var pagination_exports = /* @__PURE__ */ __exportAll({
148
+ Context: () => PaginationContext,
149
+ Ellipsis: () => PaginationEllipsis,
150
+ FirstTrigger: () => PaginationFirstTrigger,
151
+ Item: () => PaginationItem,
152
+ LastTrigger: () => PaginationLastTrigger,
153
+ NextTrigger: () => PaginationNextTrigger,
154
+ PrevTrigger: () => PaginationPrevTrigger,
155
+ Root: () => PaginationRoot,
156
+ RootProvider: () => PaginationRootProvider
157
+ });
158
+ //#endregion
159
+ export { pagination_exports as Pagination, PaginationContext, PaginationEllipsis, PaginationFirstTrigger, PaginationItem, PaginationLastTrigger, PaginationNextTrigger, PaginationPrevTrigger, PaginationRoot, PaginationRootProvider, paginationAnatomy, usePagination, usePaginationContext };
@@ -0,0 +1,179 @@
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_field = require("./field-x8H5uXB9.cjs");
9
+ let react = require("react");
10
+ let react_jsx_runtime = require("react/jsx-runtime");
11
+ let _wirekyt_dom_machines_password_input = require("@wirekyt/dom/machines/password-input");
12
+ _wirekyt_dom_machines_password_input = require_rolldown_runtime.__toESM(_wirekyt_dom_machines_password_input, 1);
13
+ let _wirekyt_dom = require("@wirekyt/dom");
14
+ //#region src/components/password-input/use-context.ts
15
+ const [PasswordInputProvider, usePasswordInputContext] = require_utils.createContext({
16
+ name: "PasswordInputContext",
17
+ hookName: "usePasswordInputContext",
18
+ providerName: "<PasswordInputProvider />"
19
+ });
20
+ //#endregion
21
+ //#region src/components/password-input/context.tsx
22
+ const PasswordInputContext = (props) => {
23
+ return props.children(usePasswordInputContext());
24
+ };
25
+ //#endregion
26
+ //#region src/components/password-input/control.tsx
27
+ const PasswordInputControl = (0, react.forwardRef)((props, ref) => {
28
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(usePasswordInputContext().getControlProps(), props);
29
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
30
+ ...mergedProps,
31
+ ref
32
+ });
33
+ });
34
+ PasswordInputControl.displayName = "PasswordInputControl";
35
+ //#endregion
36
+ //#region src/components/password-input/indicator.tsx
37
+ const PasswordInputIndicator = (0, react.forwardRef)((props, ref) => {
38
+ const passwordInput = usePasswordInputContext();
39
+ const { fallback, children, ...rest } = props;
40
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(passwordInput.getIndicatorProps(), rest);
41
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.span, {
42
+ ...mergedProps,
43
+ ref,
44
+ children: passwordInput.visible ? children : fallback
45
+ });
46
+ });
47
+ PasswordInputIndicator.displayName = "PasswordInputIndicator";
48
+ //#endregion
49
+ //#region src/components/password-input/input.tsx
50
+ const PasswordInputInput = (0, react.forwardRef)((props, ref) => {
51
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(usePasswordInputContext().getInputProps(), props);
52
+ const field = require_field.useFieldContext();
53
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.input, {
54
+ "aria-describedby": field?.ariaDescribedby,
55
+ ...mergedProps,
56
+ ref
57
+ });
58
+ });
59
+ PasswordInputInput.displayName = "PasswordInputInput";
60
+ //#endregion
61
+ //#region src/components/password-input/label.tsx
62
+ const PasswordInputLabel = (0, react.forwardRef)((props, ref) => {
63
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(usePasswordInputContext().getLabelProps(), props);
64
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.label, {
65
+ ...mergedProps,
66
+ ref
67
+ });
68
+ });
69
+ PasswordInputLabel.displayName = "PasswordInputLabel";
70
+ //#endregion
71
+ //#region src/components/password-input/use.ts
72
+ const usePasswordInput = (props) => {
73
+ const id = (0, react.useId)();
74
+ const { getRootNode } = require_environment.useEnvironmentContext();
75
+ const { dir } = require_providers.useLocaleContext();
76
+ const field = require_field.useFieldContext();
77
+ const machineProps = {
78
+ id,
79
+ ids: { input: field?.ids.control },
80
+ disabled: field?.disabled,
81
+ readOnly: field?.readOnly,
82
+ required: field?.required,
83
+ invalid: field?.invalid,
84
+ dir,
85
+ getRootNode,
86
+ ...props
87
+ };
88
+ const service = require_core.useMachine(_wirekyt_dom_machines_password_input.machine, machineProps);
89
+ return _wirekyt_dom_machines_password_input.connect(service, require_core.normalizeProps);
90
+ };
91
+ //#endregion
92
+ //#region src/components/password-input/root.tsx
93
+ const splitRootProps = require_utils.createSplitProps();
94
+ const PasswordInputRoot = (0, react.forwardRef)((props, ref) => {
95
+ const [usePasswordInputProps, localProps] = splitRootProps(props, [
96
+ "autoComplete",
97
+ "defaultVisible",
98
+ "disabled",
99
+ "id",
100
+ "ids",
101
+ "ignorePasswordManagers",
102
+ "invalid",
103
+ "name",
104
+ "onVisibilityChange",
105
+ "readOnly",
106
+ "required",
107
+ "translations",
108
+ "visible"
109
+ ]);
110
+ const passwordInput = usePasswordInput(usePasswordInputProps);
111
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(passwordInput.getRootProps(), localProps);
112
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PasswordInputProvider, {
113
+ value: passwordInput,
114
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
115
+ ...mergedProps,
116
+ ref
117
+ })
118
+ });
119
+ });
120
+ PasswordInputRoot.displayName = "PasswordInputRoot";
121
+ //#endregion
122
+ //#region src/components/password-input/root-provider.tsx
123
+ const PasswordInputRootProvider = (0, react.forwardRef)((props, ref) => {
124
+ const { value: passwordInput, ...localProps } = props;
125
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(passwordInput.getRootProps(), localProps);
126
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(PasswordInputProvider, {
127
+ value: passwordInput,
128
+ children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.div, {
129
+ ...mergedProps,
130
+ ref
131
+ })
132
+ });
133
+ });
134
+ PasswordInputRootProvider.displayName = "PasswordInputRootProvider";
135
+ //#endregion
136
+ //#region src/components/password-input/visibility-trigger.tsx
137
+ const PasswordInputVisibilityTrigger = (0, react.forwardRef)((props, ref) => {
138
+ const mergedProps = (0, _wirekyt_dom.mergeProps)(usePasswordInputContext().getVisibilityTriggerProps(), props);
139
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_factory.wire.button, {
140
+ ...mergedProps,
141
+ ref
142
+ });
143
+ });
144
+ PasswordInputVisibilityTrigger.displayName = "PasswordInputVisibilityTrigger";
145
+ //#endregion
146
+ //#region src/components/password-input/password-input.ts
147
+ var password_input_exports = /* @__PURE__ */ require_rolldown_runtime.__exportAll({
148
+ Context: () => PasswordInputContext,
149
+ Control: () => PasswordInputControl,
150
+ Indicator: () => PasswordInputIndicator,
151
+ Input: () => PasswordInputInput,
152
+ Label: () => PasswordInputLabel,
153
+ Root: () => PasswordInputRoot,
154
+ RootProvider: () => PasswordInputRootProvider,
155
+ VisibilityTrigger: () => PasswordInputVisibilityTrigger
156
+ });
157
+ //#endregion
158
+ Object.defineProperty(exports, "PasswordInput", {
159
+ enumerable: true,
160
+ get: function() {
161
+ return password_input_exports;
162
+ }
163
+ });
164
+ exports.PasswordInputContext = PasswordInputContext;
165
+ exports.PasswordInputControl = PasswordInputControl;
166
+ exports.PasswordInputIndicator = PasswordInputIndicator;
167
+ exports.PasswordInputInput = PasswordInputInput;
168
+ exports.PasswordInputLabel = PasswordInputLabel;
169
+ exports.PasswordInputRoot = PasswordInputRoot;
170
+ exports.PasswordInputRootProvider = PasswordInputRootProvider;
171
+ exports.PasswordInputVisibilityTrigger = PasswordInputVisibilityTrigger;
172
+ Object.defineProperty(exports, "passwordInputAnatomy", {
173
+ enumerable: true,
174
+ get: function() {
175
+ return _wirekyt_dom_machines_password_input.anatomy;
176
+ }
177
+ });
178
+ exports.usePasswordInput = usePasswordInput;
179
+ exports.usePasswordInputContext = usePasswordInputContext;
@@ -0,0 +1,65 @@
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 passwordInput from "@wirekyt/dom/machines/password-input";
6
+ import { VisibilityChangeDetails, VisibilityChangeDetails as PasswordInputVisibilityChangeDetails, anatomy as passwordInputAnatomy } from "@wirekyt/dom/machines/password-input";
7
+ //#region src/components/password-input/use.d.ts
8
+ interface UsePasswordInputProps extends Optional<Omit<passwordInput.Props, "dir" | "getRootNode">, "id"> {}
9
+ interface UsePasswordInputReturn extends passwordInput.Api<PropTypes> {}
10
+ declare const usePasswordInput: (props?: UsePasswordInputProps) => UsePasswordInputReturn;
11
+ //#endregion
12
+ //#region src/components/password-input/context.d.ts
13
+ interface PasswordInputContextProps {
14
+ children: (context: UsePasswordInputReturn) => ReactNode;
15
+ }
16
+ declare const PasswordInputContext: (props: PasswordInputContextProps) => ReactNode;
17
+ //#endregion
18
+ //#region src/components/password-input/control.d.ts
19
+ interface PasswordInputControlBaseProps extends PolymorphicProps {}
20
+ interface PasswordInputControlProps extends HTMLProps<"div">, PasswordInputControlBaseProps {}
21
+ declare const PasswordInputControl: import("react").ForwardRefExoticComponent<PasswordInputControlProps & import("react").RefAttributes<HTMLDivElement>>;
22
+ //#endregion
23
+ //#region src/components/password-input/indicator.d.ts
24
+ interface PasswordInputIndicatorBaseProps extends PolymorphicProps {
25
+ fallback?: React.ReactNode;
26
+ }
27
+ interface PasswordInputIndicatorProps extends HTMLProps<"span">, PasswordInputIndicatorBaseProps {}
28
+ declare const PasswordInputIndicator: import("react").ForwardRefExoticComponent<PasswordInputIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
29
+ //#endregion
30
+ //#region src/components/password-input/input.d.ts
31
+ interface PasswordInputInputBaseProps extends PolymorphicProps {}
32
+ interface PasswordInputInputProps extends HTMLProps<"input">, PasswordInputInputBaseProps {}
33
+ declare const PasswordInputInput: import("react").ForwardRefExoticComponent<PasswordInputInputProps & import("react").RefAttributes<HTMLInputElement>>;
34
+ //#endregion
35
+ //#region src/components/password-input/label.d.ts
36
+ interface PasswordInputLabelBaseProps extends PolymorphicProps {}
37
+ interface PasswordInputLabelProps extends HTMLProps<"label">, PasswordInputLabelBaseProps {}
38
+ declare const PasswordInputLabel: import("react").ForwardRefExoticComponent<PasswordInputLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
39
+ //#endregion
40
+ //#region src/components/password-input/root.d.ts
41
+ interface PasswordInputRootBaseProps extends UsePasswordInputProps, PolymorphicProps {}
42
+ interface PasswordInputRootProps extends Assign<HTMLProps<"div">, PasswordInputRootBaseProps> {}
43
+ declare const PasswordInputRoot: import("react").ForwardRefExoticComponent<PasswordInputRootProps & import("react").RefAttributes<HTMLDivElement>>;
44
+ //#endregion
45
+ //#region src/components/password-input/root-provider.d.ts
46
+ interface RootProviderProps {
47
+ value: UsePasswordInputReturn;
48
+ }
49
+ interface PasswordInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
50
+ interface PasswordInputRootProviderProps extends HTMLProps<"div">, PasswordInputRootProviderBaseProps {}
51
+ declare const PasswordInputRootProvider: import("react").ForwardRefExoticComponent<PasswordInputRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
52
+ //#endregion
53
+ //#region src/components/password-input/visibility-trigger.d.ts
54
+ interface PasswordInputVisibilityTriggerBaseProps extends PolymorphicProps {}
55
+ interface PasswordInputVisibilityTriggerProps extends HTMLProps<"button">, PasswordInputVisibilityTriggerBaseProps {}
56
+ declare const PasswordInputVisibilityTrigger: import("react").ForwardRefExoticComponent<PasswordInputVisibilityTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
57
+ //#endregion
58
+ //#region src/components/password-input/use-context.d.ts
59
+ interface UsePasswordInputContext extends UsePasswordInputReturn {}
60
+ declare const PasswordInputProvider: import("react").Provider<UsePasswordInputContext>, usePasswordInputContext: () => UsePasswordInputContext;
61
+ declare namespace password_input_d_exports {
62
+ export { PasswordInputContext as Context, PasswordInputContextProps as ContextProps, PasswordInputControl as Control, PasswordInputControlBaseProps as ControlBaseProps, PasswordInputControlProps as ControlProps, PasswordInputIndicator as Indicator, PasswordInputIndicatorBaseProps as IndicatorBaseProps, PasswordInputIndicatorProps as IndicatorProps, PasswordInputInput as Input, PasswordInputInputBaseProps as InputBaseProps, PasswordInputInputProps as InputProps, PasswordInputLabel as Label, PasswordInputLabelBaseProps as LabelBaseProps, PasswordInputLabelProps as LabelProps, PasswordInputRoot as Root, PasswordInputRootBaseProps as RootBaseProps, PasswordInputRootProps as RootProps, PasswordInputRootProvider as RootProvider, PasswordInputRootProviderBaseProps as RootProviderBaseProps, PasswordInputRootProviderProps as RootProviderProps, VisibilityChangeDetails, PasswordInputVisibilityTrigger as VisibilityTrigger, PasswordInputVisibilityTriggerBaseProps as VisibilityTriggerBaseProps, PasswordInputVisibilityTriggerProps as VisibilityTriggerProps };
63
+ }
64
+ //#endregion
65
+ export { password_input_d_exports as PasswordInput, PasswordInputContext, type PasswordInputContextProps, PasswordInputControl, type PasswordInputControlBaseProps, type PasswordInputControlProps, PasswordInputIndicator, type PasswordInputIndicatorBaseProps, type PasswordInputIndicatorProps, PasswordInputInput, type PasswordInputInputBaseProps, type PasswordInputInputProps, PasswordInputLabel, type PasswordInputLabelBaseProps, type PasswordInputLabelProps, PasswordInputRoot, type PasswordInputRootBaseProps, type PasswordInputRootProps, PasswordInputRootProvider, type PasswordInputRootProviderBaseProps, type PasswordInputRootProviderProps, type PasswordInputVisibilityChangeDetails, PasswordInputVisibilityTrigger, type PasswordInputVisibilityTriggerBaseProps, type PasswordInputVisibilityTriggerProps, type UsePasswordInputContext, type UsePasswordInputProps, type UsePasswordInputReturn, passwordInputAnatomy, usePasswordInput, usePasswordInputContext };
@@ -0,0 +1,65 @@
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 passwordInput from "@wirekyt/dom/machines/password-input";
6
+ import { VisibilityChangeDetails, VisibilityChangeDetails as PasswordInputVisibilityChangeDetails, anatomy as passwordInputAnatomy } from "@wirekyt/dom/machines/password-input";
7
+ //#region src/components/password-input/use.d.ts
8
+ interface UsePasswordInputProps extends Optional<Omit<passwordInput.Props, "dir" | "getRootNode">, "id"> {}
9
+ interface UsePasswordInputReturn extends passwordInput.Api<PropTypes> {}
10
+ declare const usePasswordInput: (props?: UsePasswordInputProps) => UsePasswordInputReturn;
11
+ //#endregion
12
+ //#region src/components/password-input/context.d.ts
13
+ interface PasswordInputContextProps {
14
+ children: (context: UsePasswordInputReturn) => ReactNode;
15
+ }
16
+ declare const PasswordInputContext: (props: PasswordInputContextProps) => ReactNode;
17
+ //#endregion
18
+ //#region src/components/password-input/control.d.ts
19
+ interface PasswordInputControlBaseProps extends PolymorphicProps {}
20
+ interface PasswordInputControlProps extends HTMLProps<"div">, PasswordInputControlBaseProps {}
21
+ declare const PasswordInputControl: import("react").ForwardRefExoticComponent<PasswordInputControlProps & import("react").RefAttributes<HTMLDivElement>>;
22
+ //#endregion
23
+ //#region src/components/password-input/indicator.d.ts
24
+ interface PasswordInputIndicatorBaseProps extends PolymorphicProps {
25
+ fallback?: React.ReactNode;
26
+ }
27
+ interface PasswordInputIndicatorProps extends HTMLProps<"span">, PasswordInputIndicatorBaseProps {}
28
+ declare const PasswordInputIndicator: import("react").ForwardRefExoticComponent<PasswordInputIndicatorProps & import("react").RefAttributes<HTMLSpanElement>>;
29
+ //#endregion
30
+ //#region src/components/password-input/input.d.ts
31
+ interface PasswordInputInputBaseProps extends PolymorphicProps {}
32
+ interface PasswordInputInputProps extends HTMLProps<"input">, PasswordInputInputBaseProps {}
33
+ declare const PasswordInputInput: import("react").ForwardRefExoticComponent<PasswordInputInputProps & import("react").RefAttributes<HTMLInputElement>>;
34
+ //#endregion
35
+ //#region src/components/password-input/label.d.ts
36
+ interface PasswordInputLabelBaseProps extends PolymorphicProps {}
37
+ interface PasswordInputLabelProps extends HTMLProps<"label">, PasswordInputLabelBaseProps {}
38
+ declare const PasswordInputLabel: import("react").ForwardRefExoticComponent<PasswordInputLabelProps & import("react").RefAttributes<HTMLLabelElement>>;
39
+ //#endregion
40
+ //#region src/components/password-input/root.d.ts
41
+ interface PasswordInputRootBaseProps extends UsePasswordInputProps, PolymorphicProps {}
42
+ interface PasswordInputRootProps extends Assign<HTMLProps<"div">, PasswordInputRootBaseProps> {}
43
+ declare const PasswordInputRoot: import("react").ForwardRefExoticComponent<PasswordInputRootProps & import("react").RefAttributes<HTMLDivElement>>;
44
+ //#endregion
45
+ //#region src/components/password-input/root-provider.d.ts
46
+ interface RootProviderProps {
47
+ value: UsePasswordInputReturn;
48
+ }
49
+ interface PasswordInputRootProviderBaseProps extends RootProviderProps, PolymorphicProps {}
50
+ interface PasswordInputRootProviderProps extends HTMLProps<"div">, PasswordInputRootProviderBaseProps {}
51
+ declare const PasswordInputRootProvider: import("react").ForwardRefExoticComponent<PasswordInputRootProviderProps & import("react").RefAttributes<HTMLDivElement>>;
52
+ //#endregion
53
+ //#region src/components/password-input/visibility-trigger.d.ts
54
+ interface PasswordInputVisibilityTriggerBaseProps extends PolymorphicProps {}
55
+ interface PasswordInputVisibilityTriggerProps extends HTMLProps<"button">, PasswordInputVisibilityTriggerBaseProps {}
56
+ declare const PasswordInputVisibilityTrigger: import("react").ForwardRefExoticComponent<PasswordInputVisibilityTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
57
+ //#endregion
58
+ //#region src/components/password-input/use-context.d.ts
59
+ interface UsePasswordInputContext extends UsePasswordInputReturn {}
60
+ declare const PasswordInputProvider: import("react").Provider<UsePasswordInputContext>, usePasswordInputContext: () => UsePasswordInputContext;
61
+ declare namespace password_input_d_exports {
62
+ export { PasswordInputContext as Context, PasswordInputContextProps as ContextProps, PasswordInputControl as Control, PasswordInputControlBaseProps as ControlBaseProps, PasswordInputControlProps as ControlProps, PasswordInputIndicator as Indicator, PasswordInputIndicatorBaseProps as IndicatorBaseProps, PasswordInputIndicatorProps as IndicatorProps, PasswordInputInput as Input, PasswordInputInputBaseProps as InputBaseProps, PasswordInputInputProps as InputProps, PasswordInputLabel as Label, PasswordInputLabelBaseProps as LabelBaseProps, PasswordInputLabelProps as LabelProps, PasswordInputRoot as Root, PasswordInputRootBaseProps as RootBaseProps, PasswordInputRootProps as RootProps, PasswordInputRootProvider as RootProvider, PasswordInputRootProviderBaseProps as RootProviderBaseProps, PasswordInputRootProviderProps as RootProviderProps, VisibilityChangeDetails, PasswordInputVisibilityTrigger as VisibilityTrigger, PasswordInputVisibilityTriggerBaseProps as VisibilityTriggerBaseProps, PasswordInputVisibilityTriggerProps as VisibilityTriggerProps };
63
+ }
64
+ //#endregion
65
+ export { password_input_d_exports as PasswordInput, PasswordInputContext, type PasswordInputContextProps, PasswordInputControl, type PasswordInputControlBaseProps, type PasswordInputControlProps, PasswordInputIndicator, type PasswordInputIndicatorBaseProps, type PasswordInputIndicatorProps, PasswordInputInput, type PasswordInputInputBaseProps, type PasswordInputInputProps, PasswordInputLabel, type PasswordInputLabelBaseProps, type PasswordInputLabelProps, PasswordInputRoot, type PasswordInputRootBaseProps, type PasswordInputRootProps, PasswordInputRootProvider, type PasswordInputRootProviderBaseProps, type PasswordInputRootProviderProps, type PasswordInputVisibilityChangeDetails, PasswordInputVisibilityTrigger, type PasswordInputVisibilityTriggerBaseProps, type PasswordInputVisibilityTriggerProps, type UsePasswordInputContext, type UsePasswordInputProps, type UsePasswordInputReturn, passwordInputAnatomy, usePasswordInput, usePasswordInputContext };
@@ -0,0 +1,156 @@
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 { h as useFieldContext } from "./field-Cy1E02DH.js";
8
+ import { forwardRef, useId } from "react";
9
+ import { jsx } from "react/jsx-runtime";
10
+ import * as passwordInput from "@wirekyt/dom/machines/password-input";
11
+ import { anatomy as passwordInputAnatomy } from "@wirekyt/dom/machines/password-input";
12
+ //#region src/components/password-input/use-context.ts
13
+ const [PasswordInputProvider, usePasswordInputContext] = createContext$1({
14
+ name: "PasswordInputContext",
15
+ hookName: "usePasswordInputContext",
16
+ providerName: "<PasswordInputProvider />"
17
+ });
18
+ //#endregion
19
+ //#region src/components/password-input/context.tsx
20
+ const PasswordInputContext = (props) => {
21
+ return props.children(usePasswordInputContext());
22
+ };
23
+ //#endregion
24
+ //#region src/components/password-input/control.tsx
25
+ const PasswordInputControl = forwardRef((props, ref) => {
26
+ const mergedProps = mergeProps(usePasswordInputContext().getControlProps(), props);
27
+ return /* @__PURE__ */ jsx(wire.div, {
28
+ ...mergedProps,
29
+ ref
30
+ });
31
+ });
32
+ PasswordInputControl.displayName = "PasswordInputControl";
33
+ //#endregion
34
+ //#region src/components/password-input/indicator.tsx
35
+ const PasswordInputIndicator = forwardRef((props, ref) => {
36
+ const passwordInput = usePasswordInputContext();
37
+ const { fallback, children, ...rest } = props;
38
+ const mergedProps = mergeProps(passwordInput.getIndicatorProps(), rest);
39
+ return /* @__PURE__ */ jsx(wire.span, {
40
+ ...mergedProps,
41
+ ref,
42
+ children: passwordInput.visible ? children : fallback
43
+ });
44
+ });
45
+ PasswordInputIndicator.displayName = "PasswordInputIndicator";
46
+ //#endregion
47
+ //#region src/components/password-input/input.tsx
48
+ const PasswordInputInput = forwardRef((props, ref) => {
49
+ const mergedProps = mergeProps(usePasswordInputContext().getInputProps(), props);
50
+ const field = useFieldContext();
51
+ return /* @__PURE__ */ jsx(wire.input, {
52
+ "aria-describedby": field?.ariaDescribedby,
53
+ ...mergedProps,
54
+ ref
55
+ });
56
+ });
57
+ PasswordInputInput.displayName = "PasswordInputInput";
58
+ //#endregion
59
+ //#region src/components/password-input/label.tsx
60
+ const PasswordInputLabel = forwardRef((props, ref) => {
61
+ const mergedProps = mergeProps(usePasswordInputContext().getLabelProps(), props);
62
+ return /* @__PURE__ */ jsx(wire.label, {
63
+ ...mergedProps,
64
+ ref
65
+ });
66
+ });
67
+ PasswordInputLabel.displayName = "PasswordInputLabel";
68
+ //#endregion
69
+ //#region src/components/password-input/use.ts
70
+ const usePasswordInput = (props) => {
71
+ const id = useId();
72
+ const { getRootNode } = useEnvironmentContext();
73
+ const { dir } = useLocaleContext();
74
+ const field = useFieldContext();
75
+ const machineProps = {
76
+ id,
77
+ ids: { input: field?.ids.control },
78
+ disabled: field?.disabled,
79
+ readOnly: field?.readOnly,
80
+ required: field?.required,
81
+ invalid: field?.invalid,
82
+ dir,
83
+ getRootNode,
84
+ ...props
85
+ };
86
+ const service = useMachine(passwordInput.machine, machineProps);
87
+ return passwordInput.connect(service, normalizeProps);
88
+ };
89
+ //#endregion
90
+ //#region src/components/password-input/root.tsx
91
+ const splitRootProps = createSplitProps();
92
+ const PasswordInputRoot = forwardRef((props, ref) => {
93
+ const [usePasswordInputProps, localProps] = splitRootProps(props, [
94
+ "autoComplete",
95
+ "defaultVisible",
96
+ "disabled",
97
+ "id",
98
+ "ids",
99
+ "ignorePasswordManagers",
100
+ "invalid",
101
+ "name",
102
+ "onVisibilityChange",
103
+ "readOnly",
104
+ "required",
105
+ "translations",
106
+ "visible"
107
+ ]);
108
+ const passwordInput = usePasswordInput(usePasswordInputProps);
109
+ const mergedProps = mergeProps(passwordInput.getRootProps(), localProps);
110
+ return /* @__PURE__ */ jsx(PasswordInputProvider, {
111
+ value: passwordInput,
112
+ children: /* @__PURE__ */ jsx(wire.div, {
113
+ ...mergedProps,
114
+ ref
115
+ })
116
+ });
117
+ });
118
+ PasswordInputRoot.displayName = "PasswordInputRoot";
119
+ //#endregion
120
+ //#region src/components/password-input/root-provider.tsx
121
+ const PasswordInputRootProvider = forwardRef((props, ref) => {
122
+ const { value: passwordInput, ...localProps } = props;
123
+ const mergedProps = mergeProps(passwordInput.getRootProps(), localProps);
124
+ return /* @__PURE__ */ jsx(PasswordInputProvider, {
125
+ value: passwordInput,
126
+ children: /* @__PURE__ */ jsx(wire.div, {
127
+ ...mergedProps,
128
+ ref
129
+ })
130
+ });
131
+ });
132
+ PasswordInputRootProvider.displayName = "PasswordInputRootProvider";
133
+ //#endregion
134
+ //#region src/components/password-input/visibility-trigger.tsx
135
+ const PasswordInputVisibilityTrigger = forwardRef((props, ref) => {
136
+ const mergedProps = mergeProps(usePasswordInputContext().getVisibilityTriggerProps(), props);
137
+ return /* @__PURE__ */ jsx(wire.button, {
138
+ ...mergedProps,
139
+ ref
140
+ });
141
+ });
142
+ PasswordInputVisibilityTrigger.displayName = "PasswordInputVisibilityTrigger";
143
+ //#endregion
144
+ //#region src/components/password-input/password-input.ts
145
+ var password_input_exports = /* @__PURE__ */ __exportAll({
146
+ Context: () => PasswordInputContext,
147
+ Control: () => PasswordInputControl,
148
+ Indicator: () => PasswordInputIndicator,
149
+ Input: () => PasswordInputInput,
150
+ Label: () => PasswordInputLabel,
151
+ Root: () => PasswordInputRoot,
152
+ RootProvider: () => PasswordInputRootProvider,
153
+ VisibilityTrigger: () => PasswordInputVisibilityTrigger
154
+ });
155
+ //#endregion
156
+ export { password_input_exports as PasswordInput, PasswordInputContext, PasswordInputControl, PasswordInputIndicator, PasswordInputInput, PasswordInputLabel, PasswordInputRoot, PasswordInputRootProvider, PasswordInputVisibilityTrigger, passwordInputAnatomy, usePasswordInput, usePasswordInputContext };