@isbatak/ark-wheel-picker 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (218) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -0
  3. package/dist/react/index.cjs +89 -0
  4. package/dist/react/index.d.cts +20 -0
  5. package/dist/react/index.d.ts +20 -0
  6. package/dist/react/index.js +53 -0
  7. package/dist/react/use-wheel-picker-context.cjs +37 -0
  8. package/dist/react/use-wheel-picker-context.d.cts +12 -0
  9. package/dist/react/use-wheel-picker-context.d.ts +12 -0
  10. package/dist/react/use-wheel-picker-context.js +11 -0
  11. package/dist/react/use-wheel-picker.cjs +57 -0
  12. package/dist/react/use-wheel-picker.d.cts +11 -0
  13. package/dist/react/use-wheel-picker.d.ts +11 -0
  14. package/dist/react/use-wheel-picker.js +22 -0
  15. package/dist/react/wheel-picker-context.cjs +31 -0
  16. package/dist/react/wheel-picker-context.d.cts +13 -0
  17. package/dist/react/wheel-picker-context.d.ts +13 -0
  18. package/dist/react/wheel-picker-context.js +6 -0
  19. package/dist/react/wheel-picker-control.cjs +40 -0
  20. package/dist/react/wheel-picker-control.d.cts +10 -0
  21. package/dist/react/wheel-picker-control.d.ts +10 -0
  22. package/dist/react/wheel-picker-control.js +15 -0
  23. package/dist/react/wheel-picker-hidden-select.cjs +44 -0
  24. package/dist/react/wheel-picker-hidden-select.d.cts +10 -0
  25. package/dist/react/wheel-picker-hidden-select.d.ts +10 -0
  26. package/dist/react/wheel-picker-hidden-select.js +19 -0
  27. package/dist/react/wheel-picker-highlight-item-group.cjs +42 -0
  28. package/dist/react/wheel-picker-highlight-item-group.d.cts +10 -0
  29. package/dist/react/wheel-picker-highlight-item-group.d.ts +10 -0
  30. package/dist/react/wheel-picker-highlight-item-group.js +17 -0
  31. package/dist/react/wheel-picker-highlight-item.cjs +52 -0
  32. package/dist/react/wheel-picker-highlight-item.d.cts +11 -0
  33. package/dist/react/wheel-picker-highlight-item.d.ts +11 -0
  34. package/dist/react/wheel-picker-highlight-item.js +17 -0
  35. package/dist/react/wheel-picker-highlight.cjs +40 -0
  36. package/dist/react/wheel-picker-highlight.d.cts +10 -0
  37. package/dist/react/wheel-picker-highlight.d.ts +10 -0
  38. package/dist/react/wheel-picker-highlight.js +15 -0
  39. package/dist/react/wheel-picker-item-group.cjs +40 -0
  40. package/dist/react/wheel-picker-item-group.d.cts +10 -0
  41. package/dist/react/wheel-picker-item-group.d.ts +10 -0
  42. package/dist/react/wheel-picker-item-group.js +15 -0
  43. package/dist/react/wheel-picker-item.cjs +52 -0
  44. package/dist/react/wheel-picker-item.d.cts +11 -0
  45. package/dist/react/wheel-picker-item.d.ts +11 -0
  46. package/dist/react/wheel-picker-item.js +17 -0
  47. package/dist/react/wheel-picker-label.cjs +40 -0
  48. package/dist/react/wheel-picker-label.d.cts +10 -0
  49. package/dist/react/wheel-picker-label.d.ts +10 -0
  50. package/dist/react/wheel-picker-label.js +15 -0
  51. package/dist/react/wheel-picker-root-provider.cjs +40 -0
  52. package/dist/react/wheel-picker-root-provider.d.cts +17 -0
  53. package/dist/react/wheel-picker-root-provider.d.ts +17 -0
  54. package/dist/react/wheel-picker-root-provider.js +15 -0
  55. package/dist/react/wheel-picker-root.cjs +56 -0
  56. package/dist/react/wheel-picker-root.d.cts +15 -0
  57. package/dist/react/wheel-picker-root.d.ts +15 -0
  58. package/dist/react/wheel-picker-root.js +21 -0
  59. package/dist/react/wheel-picker-viewport.cjs +40 -0
  60. package/dist/react/wheel-picker-viewport.d.cts +10 -0
  61. package/dist/react/wheel-picker-viewport.d.ts +10 -0
  62. package/dist/react/wheel-picker-viewport.js +15 -0
  63. package/dist/react/wheel-picker.cjs +63 -0
  64. package/dist/react/wheel-picker.d.cts +29 -0
  65. package/dist/react/wheel-picker.d.ts +29 -0
  66. package/dist/react/wheel-picker.js +49 -0
  67. package/dist/solid/index.d.ts +19 -0
  68. package/dist/solid/index.js +53 -0
  69. package/dist/solid/index.jsx +53 -0
  70. package/dist/solid/use-wheel-picker-context.d.ts +11 -0
  71. package/dist/solid/use-wheel-picker-context.js +10 -0
  72. package/dist/solid/use-wheel-picker-context.jsx +10 -0
  73. package/dist/solid/use-wheel-picker-pwg6J5oj.d.ts +15 -0
  74. package/dist/solid/use-wheel-picker.d.ts +4 -0
  75. package/dist/solid/use-wheel-picker.js +22 -0
  76. package/dist/solid/use-wheel-picker.jsx +22 -0
  77. package/dist/solid/wheel-picker-context.d.ts +12 -0
  78. package/dist/solid/wheel-picker-context.js +6 -0
  79. package/dist/solid/wheel-picker-context.jsx +6 -0
  80. package/dist/solid/wheel-picker-control.d.ts +10 -0
  81. package/dist/solid/wheel-picker-control.js +13 -0
  82. package/dist/solid/wheel-picker-control.jsx +12 -0
  83. package/dist/solid/wheel-picker-hidden-select.d.ts +10 -0
  84. package/dist/solid/wheel-picker-hidden-select.js +34 -0
  85. package/dist/solid/wheel-picker-hidden-select.jsx +22 -0
  86. package/dist/solid/wheel-picker-highlight-item-group.d.ts +10 -0
  87. package/dist/solid/wheel-picker-highlight-item-group.js +13 -0
  88. package/dist/solid/wheel-picker-highlight-item-group.jsx +12 -0
  89. package/dist/solid/wheel-picker-highlight-item.d.ts +11 -0
  90. package/dist/solid/wheel-picker-highlight-item.js +15 -0
  91. package/dist/solid/wheel-picker-highlight-item.jsx +15 -0
  92. package/dist/solid/wheel-picker-highlight.d.ts +10 -0
  93. package/dist/solid/wheel-picker-highlight.js +13 -0
  94. package/dist/solid/wheel-picker-highlight.jsx +12 -0
  95. package/dist/solid/wheel-picker-item-group.d.ts +10 -0
  96. package/dist/solid/wheel-picker-item-group.js +13 -0
  97. package/dist/solid/wheel-picker-item-group.jsx +12 -0
  98. package/dist/solid/wheel-picker-item.d.ts +11 -0
  99. package/dist/solid/wheel-picker-item.js +15 -0
  100. package/dist/solid/wheel-picker-item.jsx +15 -0
  101. package/dist/solid/wheel-picker-label.d.ts +10 -0
  102. package/dist/solid/wheel-picker-label.js +13 -0
  103. package/dist/solid/wheel-picker-label.jsx +12 -0
  104. package/dist/solid/wheel-picker-root-provider.d.ts +16 -0
  105. package/dist/solid/wheel-picker-root-provider.js +21 -0
  106. package/dist/solid/wheel-picker-root-provider.jsx +15 -0
  107. package/dist/solid/wheel-picker-root.d.ts +13 -0
  108. package/dist/solid/wheel-picker-root.js +22 -0
  109. package/dist/solid/wheel-picker-root.jsx +18 -0
  110. package/dist/solid/wheel-picker-viewport.d.ts +10 -0
  111. package/dist/solid/wheel-picker-viewport.js +13 -0
  112. package/dist/solid/wheel-picker-viewport.jsx +12 -0
  113. package/dist/solid/wheel-picker.d.ts +28 -0
  114. package/dist/solid/wheel-picker.js +49 -0
  115. package/dist/solid/wheel-picker.jsx +49 -0
  116. package/dist/svelte/index.d.ts +5 -0
  117. package/dist/svelte/index.js +4 -0
  118. package/dist/svelte/types.d.ts +12 -0
  119. package/dist/svelte/types.js +1 -0
  120. package/dist/svelte/use-wheel-picker-context.d.ts +4 -0
  121. package/dist/svelte/use-wheel-picker-context.js +4 -0
  122. package/dist/svelte/use-wheel-picker.svelte.d.ts +8 -0
  123. package/dist/svelte/use-wheel-picker.svelte.js +15 -0
  124. package/dist/svelte/wheel-picker-context.svelte +17 -0
  125. package/dist/svelte/wheel-picker-context.svelte.d.ts +8 -0
  126. package/dist/svelte/wheel-picker-control.svelte +18 -0
  127. package/dist/svelte/wheel-picker-control.svelte.d.ts +8 -0
  128. package/dist/svelte/wheel-picker-hidden-select.svelte +25 -0
  129. package/dist/svelte/wheel-picker-hidden-select.svelte.d.ts +9 -0
  130. package/dist/svelte/wheel-picker-highlight-item-group.svelte +18 -0
  131. package/dist/svelte/wheel-picker-highlight-item-group.svelte.d.ts +8 -0
  132. package/dist/svelte/wheel-picker-highlight-item.svelte +22 -0
  133. package/dist/svelte/wheel-picker-highlight-item.svelte.d.ts +10 -0
  134. package/dist/svelte/wheel-picker-highlight.svelte +18 -0
  135. package/dist/svelte/wheel-picker-highlight.svelte.d.ts +8 -0
  136. package/dist/svelte/wheel-picker-item-group.svelte +18 -0
  137. package/dist/svelte/wheel-picker-item-group.svelte.d.ts +8 -0
  138. package/dist/svelte/wheel-picker-item.svelte +22 -0
  139. package/dist/svelte/wheel-picker-item.svelte.d.ts +10 -0
  140. package/dist/svelte/wheel-picker-label.svelte +18 -0
  141. package/dist/svelte/wheel-picker-label.svelte.d.ts +8 -0
  142. package/dist/svelte/wheel-picker-root-provider.svelte +25 -0
  143. package/dist/svelte/wheel-picker-root-provider.svelte.d.ts +13 -0
  144. package/dist/svelte/wheel-picker-root.svelte +43 -0
  145. package/dist/svelte/wheel-picker-root.svelte.d.ts +32 -0
  146. package/dist/svelte/wheel-picker-viewport.svelte +18 -0
  147. package/dist/svelte/wheel-picker-viewport.svelte.d.ts +8 -0
  148. package/dist/svelte/wheel-picker.d.ts +13 -0
  149. package/dist/svelte/wheel-picker.js +12 -0
  150. package/dist/types.cjs +18 -0
  151. package/dist/types.d.cts +4 -0
  152. package/dist/types.d.ts +4 -0
  153. package/dist/types.js +0 -0
  154. package/dist/vue/index.cjs +89 -0
  155. package/dist/vue/index.d.cts +19 -0
  156. package/dist/vue/index.d.ts +19 -0
  157. package/dist/vue/index.js +39 -0
  158. package/dist/vue/use-wheel-picker-context.cjs +33 -0
  159. package/dist/vue/use-wheel-picker-context.d.cts +12 -0
  160. package/dist/vue/use-wheel-picker-context.d.ts +12 -0
  161. package/dist/vue/use-wheel-picker-context.js +7 -0
  162. package/dist/vue/use-wheel-picker.cjs +75 -0
  163. package/dist/vue/use-wheel-picker.d.cts +19 -0
  164. package/dist/vue/use-wheel-picker.d.ts +19 -0
  165. package/dist/vue/use-wheel-picker.js +40 -0
  166. package/dist/vue/wheel-picker-context.cjs +39 -0
  167. package/dist/vue/wheel-picker-context.d.cts +15 -0
  168. package/dist/vue/wheel-picker-context.d.ts +15 -0
  169. package/dist/vue/wheel-picker-context.js +14 -0
  170. package/dist/vue/wheel-picker-control.cjs +42 -0
  171. package/dist/vue/wheel-picker-control.d.cts +13 -0
  172. package/dist/vue/wheel-picker-control.d.ts +13 -0
  173. package/dist/vue/wheel-picker-control.js +17 -0
  174. package/dist/vue/wheel-picker-hidden-select.cjs +53 -0
  175. package/dist/vue/wheel-picker-hidden-select.d.cts +7 -0
  176. package/dist/vue/wheel-picker-hidden-select.d.ts +7 -0
  177. package/dist/vue/wheel-picker-hidden-select.js +28 -0
  178. package/dist/vue/wheel-picker-highlight-item-group.cjs +42 -0
  179. package/dist/vue/wheel-picker-highlight-item-group.d.cts +13 -0
  180. package/dist/vue/wheel-picker-highlight-item-group.d.ts +13 -0
  181. package/dist/vue/wheel-picker-highlight-item-group.js +17 -0
  182. package/dist/vue/wheel-picker-highlight-item.cjs +48 -0
  183. package/dist/vue/wheel-picker-highlight-item.d.cts +31 -0
  184. package/dist/vue/wheel-picker-highlight-item.d.ts +31 -0
  185. package/dist/vue/wheel-picker-highlight-item.js +23 -0
  186. package/dist/vue/wheel-picker-highlight.cjs +42 -0
  187. package/dist/vue/wheel-picker-highlight.d.cts +13 -0
  188. package/dist/vue/wheel-picker-highlight.d.ts +13 -0
  189. package/dist/vue/wheel-picker-highlight.js +17 -0
  190. package/dist/vue/wheel-picker-item-group.cjs +42 -0
  191. package/dist/vue/wheel-picker-item-group.d.cts +13 -0
  192. package/dist/vue/wheel-picker-item-group.d.ts +13 -0
  193. package/dist/vue/wheel-picker-item-group.js +17 -0
  194. package/dist/vue/wheel-picker-item.cjs +48 -0
  195. package/dist/vue/wheel-picker-item.d.cts +31 -0
  196. package/dist/vue/wheel-picker-item.d.ts +31 -0
  197. package/dist/vue/wheel-picker-item.js +23 -0
  198. package/dist/vue/wheel-picker-label.cjs +42 -0
  199. package/dist/vue/wheel-picker-label.d.cts +13 -0
  200. package/dist/vue/wheel-picker-label.d.ts +13 -0
  201. package/dist/vue/wheel-picker-label.js +17 -0
  202. package/dist/vue/wheel-picker-root-provider.cjs +43 -0
  203. package/dist/vue/wheel-picker-root-provider.d.cts +26 -0
  204. package/dist/vue/wheel-picker-root-provider.d.ts +26 -0
  205. package/dist/vue/wheel-picker-root-provider.js +18 -0
  206. package/dist/vue/wheel-picker-root.cjs +72 -0
  207. package/dist/vue/wheel-picker-root.d.cts +116 -0
  208. package/dist/vue/wheel-picker-root.d.ts +116 -0
  209. package/dist/vue/wheel-picker-root.js +47 -0
  210. package/dist/vue/wheel-picker-viewport.cjs +42 -0
  211. package/dist/vue/wheel-picker-viewport.d.cts +13 -0
  212. package/dist/vue/wheel-picker-viewport.d.ts +13 -0
  213. package/dist/vue/wheel-picker-viewport.js +17 -0
  214. package/dist/vue/wheel-picker.cjs +63 -0
  215. package/dist/vue/wheel-picker.d.cts +28 -0
  216. package/dist/vue/wheel-picker.d.ts +28 -0
  217. package/dist/vue/wheel-picker.js +27 -0
  218. package/package.json +143 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ivica Batinic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,16 @@
1
+ # @isbatak/ark-wheel-picker
2
+
3
+ [Ark UI](https://ark-ui.com) style wheel-picker components for React, Solid, Vue and Svelte, built on
4
+ `@isbatak/zag-wheel-picker`.
5
+
6
+ ```tsx
7
+ import { createWheelPickerCollection, WheelPicker } from "@isbatak/ark-wheel-picker/react"
8
+ ```
9
+
10
+ Also available from `/solid`, `/vue` and `/svelte`. Parts: `Root`, `RootProvider`, `Label`, `Control`, `Viewport`,
11
+ `ItemGroup`, `Item`, `Highlight`, `HighlightItemGroup`, `HighlightItem`, `HiddenSelect` and `Context`, plus
12
+ `useWheelPicker` and `useWheelPickerContext`.
13
+
14
+ ## License
15
+
16
+ MIT © Ivica Batinic
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/react/index.ts
31
+ var react_exports = {};
32
+ __export(react_exports, {
33
+ WheelPicker: () => WheelPicker,
34
+ WheelPickerContext: () => import_wheel_picker_context.WheelPickerContext,
35
+ WheelPickerControl: () => import_wheel_picker_control.WheelPickerControl,
36
+ WheelPickerHiddenSelect: () => import_wheel_picker_hidden_select.WheelPickerHiddenSelect,
37
+ WheelPickerHighlight: () => import_wheel_picker_highlight.WheelPickerHighlight,
38
+ WheelPickerHighlightItem: () => import_wheel_picker_highlight_item.WheelPickerHighlightItem,
39
+ WheelPickerHighlightItemGroup: () => import_wheel_picker_highlight_item_group.WheelPickerHighlightItemGroup,
40
+ WheelPickerItem: () => import_wheel_picker_item.WheelPickerItem,
41
+ WheelPickerItemGroup: () => import_wheel_picker_item_group.WheelPickerItemGroup,
42
+ WheelPickerLabel: () => import_wheel_picker_label.WheelPickerLabel,
43
+ WheelPickerProvider: () => import_use_wheel_picker_context.WheelPickerProvider,
44
+ WheelPickerRoot: () => import_wheel_picker_root.WheelPickerRoot,
45
+ WheelPickerRootProvider: () => import_wheel_picker_root_provider.WheelPickerRootProvider,
46
+ WheelPickerViewport: () => import_wheel_picker_viewport.WheelPickerViewport,
47
+ createWheelPickerCollection: () => import_zag_wheel_picker.collection,
48
+ useWheelPicker: () => import_use_wheel_picker.useWheelPicker,
49
+ useWheelPickerContext: () => import_use_wheel_picker_context.useWheelPickerContext,
50
+ wheelPickerAnatomy: () => import_zag_wheel_picker.anatomy
51
+ });
52
+ module.exports = __toCommonJS(react_exports);
53
+ var import_zag_wheel_picker = require("@isbatak/zag-wheel-picker");
54
+ var import_use_wheel_picker = require("./use-wheel-picker.cjs");
55
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
56
+ var import_wheel_picker_context = require("./wheel-picker-context.cjs");
57
+ var import_wheel_picker_control = require("./wheel-picker-control.cjs");
58
+ var import_wheel_picker_hidden_select = require("./wheel-picker-hidden-select.cjs");
59
+ var import_wheel_picker_highlight = require("./wheel-picker-highlight.cjs");
60
+ var import_wheel_picker_highlight_item = require("./wheel-picker-highlight-item.cjs");
61
+ var import_wheel_picker_highlight_item_group = require("./wheel-picker-highlight-item-group.cjs");
62
+ var import_wheel_picker_item = require("./wheel-picker-item.cjs");
63
+ var import_wheel_picker_item_group = require("./wheel-picker-item-group.cjs");
64
+ var import_wheel_picker_label = require("./wheel-picker-label.cjs");
65
+ var import_wheel_picker_root = require("./wheel-picker-root.cjs");
66
+ var import_wheel_picker_root_provider = require("./wheel-picker-root-provider.cjs");
67
+ var import_wheel_picker_viewport = require("./wheel-picker-viewport.cjs");
68
+ var WheelPicker = __toESM(require("./wheel-picker.cjs"), 1);
69
+ // Annotate the CommonJS export names for ESM import in node:
70
+ 0 && (module.exports = {
71
+ WheelPicker,
72
+ WheelPickerContext,
73
+ WheelPickerControl,
74
+ WheelPickerHiddenSelect,
75
+ WheelPickerHighlight,
76
+ WheelPickerHighlightItem,
77
+ WheelPickerHighlightItemGroup,
78
+ WheelPickerItem,
79
+ WheelPickerItemGroup,
80
+ WheelPickerLabel,
81
+ WheelPickerProvider,
82
+ WheelPickerRoot,
83
+ WheelPickerRootProvider,
84
+ WheelPickerViewport,
85
+ createWheelPickerCollection,
86
+ useWheelPicker,
87
+ useWheelPickerContext,
88
+ wheelPickerAnatomy
89
+ });
@@ -0,0 +1,20 @@
1
+ export { CollectionItem as WheelPickerCollectionItem, ScrollChangeDetails as WheelPickerScrollChangeDetails, ValueChangeDetails as WheelPickerValueChangeDetails, collection as createWheelPickerCollection, anatomy as wheelPickerAnatomy } from '@isbatak/zag-wheel-picker';
2
+ export { UseWheelPickerProps, UseWheelPickerReturn, useWheelPicker } from './use-wheel-picker.cjs';
3
+ export { UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext } from './use-wheel-picker-context.cjs';
4
+ export { WheelPickerContext, WheelPickerContextProps } from './wheel-picker-context.cjs';
5
+ export { WheelPickerControl, WheelPickerControlBaseProps, WheelPickerControlProps } from './wheel-picker-control.cjs';
6
+ export { WheelPickerHiddenSelect, WheelPickerHiddenSelectBaseProps, WheelPickerHiddenSelectProps } from './wheel-picker-hidden-select.cjs';
7
+ export { WheelPickerHighlight, WheelPickerHighlightBaseProps, WheelPickerHighlightProps } from './wheel-picker-highlight.cjs';
8
+ export { WheelPickerHighlightItem, WheelPickerHighlightItemBaseProps, WheelPickerHighlightItemProps } from './wheel-picker-highlight-item.cjs';
9
+ export { WheelPickerHighlightItemGroup, WheelPickerHighlightItemGroupBaseProps, WheelPickerHighlightItemGroupProps } from './wheel-picker-highlight-item-group.cjs';
10
+ export { WheelPickerItem, WheelPickerItemBaseProps, WheelPickerItemProps } from './wheel-picker-item.cjs';
11
+ export { WheelPickerItemGroup, WheelPickerItemGroupBaseProps, WheelPickerItemGroupProps } from './wheel-picker-item-group.cjs';
12
+ export { WheelPickerLabel, WheelPickerLabelBaseProps, WheelPickerLabelProps } from './wheel-picker-label.cjs';
13
+ export { WheelPickerRoot, WheelPickerRootBaseProps, WheelPickerRootProps } from './wheel-picker-root.cjs';
14
+ export { WheelPickerRootProvider, WheelPickerRootProviderBaseProps, WheelPickerRootProviderProps } from './wheel-picker-root-provider.cjs';
15
+ export { WheelPickerViewport, WheelPickerViewportBaseProps, WheelPickerViewportProps } from './wheel-picker-viewport.cjs';
16
+ export { w as WheelPicker } from './wheel-picker.cjs';
17
+ import '@zag-js/react';
18
+ import '../types.cjs';
19
+ import 'react';
20
+ import '@ark-ui/react/factory';
@@ -0,0 +1,20 @@
1
+ export { CollectionItem as WheelPickerCollectionItem, ScrollChangeDetails as WheelPickerScrollChangeDetails, ValueChangeDetails as WheelPickerValueChangeDetails, collection as createWheelPickerCollection, anatomy as wheelPickerAnatomy } from '@isbatak/zag-wheel-picker';
2
+ export { UseWheelPickerProps, UseWheelPickerReturn, useWheelPicker } from './use-wheel-picker.js';
3
+ export { UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext } from './use-wheel-picker-context.js';
4
+ export { WheelPickerContext, WheelPickerContextProps } from './wheel-picker-context.js';
5
+ export { WheelPickerControl, WheelPickerControlBaseProps, WheelPickerControlProps } from './wheel-picker-control.js';
6
+ export { WheelPickerHiddenSelect, WheelPickerHiddenSelectBaseProps, WheelPickerHiddenSelectProps } from './wheel-picker-hidden-select.js';
7
+ export { WheelPickerHighlight, WheelPickerHighlightBaseProps, WheelPickerHighlightProps } from './wheel-picker-highlight.js';
8
+ export { WheelPickerHighlightItem, WheelPickerHighlightItemBaseProps, WheelPickerHighlightItemProps } from './wheel-picker-highlight-item.js';
9
+ export { WheelPickerHighlightItemGroup, WheelPickerHighlightItemGroupBaseProps, WheelPickerHighlightItemGroupProps } from './wheel-picker-highlight-item-group.js';
10
+ export { WheelPickerItem, WheelPickerItemBaseProps, WheelPickerItemProps } from './wheel-picker-item.js';
11
+ export { WheelPickerItemGroup, WheelPickerItemGroupBaseProps, WheelPickerItemGroupProps } from './wheel-picker-item-group.js';
12
+ export { WheelPickerLabel, WheelPickerLabelBaseProps, WheelPickerLabelProps } from './wheel-picker-label.js';
13
+ export { WheelPickerRoot, WheelPickerRootBaseProps, WheelPickerRootProps } from './wheel-picker-root.js';
14
+ export { WheelPickerRootProvider, WheelPickerRootProviderBaseProps, WheelPickerRootProviderProps } from './wheel-picker-root-provider.js';
15
+ export { WheelPickerViewport, WheelPickerViewportBaseProps, WheelPickerViewportProps } from './wheel-picker-viewport.js';
16
+ export { w as WheelPicker } from './wheel-picker.js';
17
+ import '@zag-js/react';
18
+ import '../types.js';
19
+ import 'react';
20
+ import '@ark-ui/react/factory';
@@ -0,0 +1,53 @@
1
+ // src/react/index.ts
2
+ import { anatomy, collection } from "@isbatak/zag-wheel-picker";
3
+ import { useWheelPicker } from "./use-wheel-picker.js";
4
+ import { useWheelPickerContext, WheelPickerProvider } from "./use-wheel-picker-context.js";
5
+ import { WheelPickerContext } from "./wheel-picker-context.js";
6
+ import {
7
+ WheelPickerControl
8
+ } from "./wheel-picker-control.js";
9
+ import {
10
+ WheelPickerHiddenSelect
11
+ } from "./wheel-picker-hidden-select.js";
12
+ import {
13
+ WheelPickerHighlight
14
+ } from "./wheel-picker-highlight.js";
15
+ import {
16
+ WheelPickerHighlightItem
17
+ } from "./wheel-picker-highlight-item.js";
18
+ import {
19
+ WheelPickerHighlightItemGroup
20
+ } from "./wheel-picker-highlight-item-group.js";
21
+ import { WheelPickerItem } from "./wheel-picker-item.js";
22
+ import {
23
+ WheelPickerItemGroup
24
+ } from "./wheel-picker-item-group.js";
25
+ import { WheelPickerLabel } from "./wheel-picker-label.js";
26
+ import { WheelPickerRoot } from "./wheel-picker-root.js";
27
+ import {
28
+ WheelPickerRootProvider
29
+ } from "./wheel-picker-root-provider.js";
30
+ import {
31
+ WheelPickerViewport
32
+ } from "./wheel-picker-viewport.js";
33
+ import * as WheelPicker from "./wheel-picker.js";
34
+ export {
35
+ WheelPicker,
36
+ WheelPickerContext,
37
+ WheelPickerControl,
38
+ WheelPickerHiddenSelect,
39
+ WheelPickerHighlight,
40
+ WheelPickerHighlightItem,
41
+ WheelPickerHighlightItemGroup,
42
+ WheelPickerItem,
43
+ WheelPickerItemGroup,
44
+ WheelPickerLabel,
45
+ WheelPickerProvider,
46
+ WheelPickerRoot,
47
+ WheelPickerRootProvider,
48
+ WheelPickerViewport,
49
+ collection as createWheelPickerCollection,
50
+ useWheelPicker,
51
+ useWheelPickerContext,
52
+ anatomy as wheelPickerAnatomy
53
+ };
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/react/use-wheel-picker-context.ts
21
+ var use_wheel_picker_context_exports = {};
22
+ __export(use_wheel_picker_context_exports, {
23
+ WheelPickerProvider: () => WheelPickerProvider,
24
+ useWheelPickerContext: () => useWheelPickerContext
25
+ });
26
+ module.exports = __toCommonJS(use_wheel_picker_context_exports);
27
+ var import_utils = require("@ark-ui/react/utils");
28
+ var [WheelPickerProvider, useWheelPickerContext] = (0, import_utils.createContext)({
29
+ name: "WheelPickerContext",
30
+ hookName: "useWheelPickerContext",
31
+ providerName: "<WheelPickerProvider />"
32
+ });
33
+ // Annotate the CommonJS export names for ESM import in node:
34
+ 0 && (module.exports = {
35
+ WheelPickerProvider,
36
+ useWheelPickerContext
37
+ });
@@ -0,0 +1,12 @@
1
+ import * as react from 'react';
2
+ import { UseWheelPickerReturn } from './use-wheel-picker.cjs';
3
+ import '@isbatak/zag-wheel-picker';
4
+ import '@zag-js/react';
5
+ import '../types.cjs';
6
+
7
+ interface UseWheelPickerContext extends UseWheelPickerReturn {
8
+ }
9
+ declare const WheelPickerProvider: react.Provider<UseWheelPickerContext>;
10
+ declare const useWheelPickerContext: () => UseWheelPickerContext;
11
+
12
+ export { type UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext };
@@ -0,0 +1,12 @@
1
+ import * as react from 'react';
2
+ import { UseWheelPickerReturn } from './use-wheel-picker.js';
3
+ import '@isbatak/zag-wheel-picker';
4
+ import '@zag-js/react';
5
+ import '../types.js';
6
+
7
+ interface UseWheelPickerContext extends UseWheelPickerReturn {
8
+ }
9
+ declare const WheelPickerProvider: react.Provider<UseWheelPickerContext>;
10
+ declare const useWheelPickerContext: () => UseWheelPickerContext;
11
+
12
+ export { type UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext };
@@ -0,0 +1,11 @@
1
+ // src/react/use-wheel-picker-context.ts
2
+ import { createContext } from "@ark-ui/react/utils";
3
+ var [WheelPickerProvider, useWheelPickerContext] = createContext({
4
+ name: "WheelPickerContext",
5
+ hookName: "useWheelPickerContext",
6
+ providerName: "<WheelPickerProvider />"
7
+ });
8
+ export {
9
+ WheelPickerProvider,
10
+ useWheelPickerContext
11
+ };
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+
30
+ // src/react/use-wheel-picker.ts
31
+ var use_wheel_picker_exports = {};
32
+ __export(use_wheel_picker_exports, {
33
+ useWheelPicker: () => useWheelPicker
34
+ });
35
+ module.exports = __toCommonJS(use_wheel_picker_exports);
36
+ var import_environment = require("@ark-ui/react/environment");
37
+ var import_locale = require("@ark-ui/react/locale");
38
+ var wheelPicker = __toESM(require("@isbatak/zag-wheel-picker"), 1);
39
+ var import_react = require("@zag-js/react");
40
+ var import_react2 = require("react");
41
+ var useWheelPicker = (props) => {
42
+ const id = (0, import_react2.useId)();
43
+ const { getRootNode } = (0, import_environment.useEnvironmentContext)();
44
+ const { dir } = (0, import_locale.useLocaleContext)();
45
+ const machineProps = {
46
+ id,
47
+ dir,
48
+ getRootNode,
49
+ ...props
50
+ };
51
+ const service = (0, import_react.useMachine)(wheelPicker.machine, machineProps);
52
+ return wheelPicker.connect(service, import_react.normalizeProps);
53
+ };
54
+ // Annotate the CommonJS export names for ESM import in node:
55
+ 0 && (module.exports = {
56
+ useWheelPicker
57
+ });
@@ -0,0 +1,11 @@
1
+ import * as wheelPicker from '@isbatak/zag-wheel-picker';
2
+ import { PropTypes } from '@zag-js/react';
3
+ import { Optional } from '../types.cjs';
4
+
5
+ interface UseWheelPickerProps<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends Optional<Omit<wheelPicker.Props<T>, "dir" | "getRootNode">, "id"> {
6
+ }
7
+ interface UseWheelPickerReturn<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends wheelPicker.Api<PropTypes, T> {
8
+ }
9
+ declare const useWheelPicker: <T extends wheelPicker.CollectionItem>(props: UseWheelPickerProps<T>) => UseWheelPickerReturn<T>;
10
+
11
+ export { type UseWheelPickerProps, type UseWheelPickerReturn, useWheelPicker };
@@ -0,0 +1,11 @@
1
+ import * as wheelPicker from '@isbatak/zag-wheel-picker';
2
+ import { PropTypes } from '@zag-js/react';
3
+ import { Optional } from '../types.js';
4
+
5
+ interface UseWheelPickerProps<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends Optional<Omit<wheelPicker.Props<T>, "dir" | "getRootNode">, "id"> {
6
+ }
7
+ interface UseWheelPickerReturn<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends wheelPicker.Api<PropTypes, T> {
8
+ }
9
+ declare const useWheelPicker: <T extends wheelPicker.CollectionItem>(props: UseWheelPickerProps<T>) => UseWheelPickerReturn<T>;
10
+
11
+ export { type UseWheelPickerProps, type UseWheelPickerReturn, useWheelPicker };
@@ -0,0 +1,22 @@
1
+ // src/react/use-wheel-picker.ts
2
+ import { useEnvironmentContext } from "@ark-ui/react/environment";
3
+ import { useLocaleContext } from "@ark-ui/react/locale";
4
+ import * as wheelPicker from "@isbatak/zag-wheel-picker";
5
+ import { normalizeProps, useMachine } from "@zag-js/react";
6
+ import { useId } from "react";
7
+ var useWheelPicker = (props) => {
8
+ const id = useId();
9
+ const { getRootNode } = useEnvironmentContext();
10
+ const { dir } = useLocaleContext();
11
+ const machineProps = {
12
+ id,
13
+ dir,
14
+ getRootNode,
15
+ ...props
16
+ };
17
+ const service = useMachine(wheelPicker.machine, machineProps);
18
+ return wheelPicker.connect(service, normalizeProps);
19
+ };
20
+ export {
21
+ useWheelPicker
22
+ };
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/react/wheel-picker-context.tsx
21
+ var wheel_picker_context_exports = {};
22
+ __export(wheel_picker_context_exports, {
23
+ WheelPickerContext: () => WheelPickerContext
24
+ });
25
+ module.exports = __toCommonJS(wheel_picker_context_exports);
26
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
27
+ var WheelPickerContext = (props) => props.children((0, import_use_wheel_picker_context.useWheelPickerContext)());
28
+ // Annotate the CommonJS export names for ESM import in node:
29
+ 0 && (module.exports = {
30
+ WheelPickerContext
31
+ });
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { UseWheelPickerContext } from './use-wheel-picker-context.cjs';
3
+ import './use-wheel-picker.cjs';
4
+ import '@isbatak/zag-wheel-picker';
5
+ import '@zag-js/react';
6
+ import '../types.cjs';
7
+
8
+ interface WheelPickerContextProps {
9
+ children: (context: UseWheelPickerContext) => ReactNode;
10
+ }
11
+ declare const WheelPickerContext: (props: WheelPickerContextProps) => ReactNode;
12
+
13
+ export { WheelPickerContext, type WheelPickerContextProps };
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { UseWheelPickerContext } from './use-wheel-picker-context.js';
3
+ import './use-wheel-picker.js';
4
+ import '@isbatak/zag-wheel-picker';
5
+ import '@zag-js/react';
6
+ import '../types.js';
7
+
8
+ interface WheelPickerContextProps {
9
+ children: (context: UseWheelPickerContext) => ReactNode;
10
+ }
11
+ declare const WheelPickerContext: (props: WheelPickerContextProps) => ReactNode;
12
+
13
+ export { WheelPickerContext, type WheelPickerContextProps };
@@ -0,0 +1,6 @@
1
+ // src/react/wheel-picker-context.tsx
2
+ import { useWheelPickerContext } from "./use-wheel-picker-context.js";
3
+ var WheelPickerContext = (props) => props.children(useWheelPickerContext());
4
+ export {
5
+ WheelPickerContext
6
+ };
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/react/wheel-picker-control.tsx
21
+ var wheel_picker_control_exports = {};
22
+ __export(wheel_picker_control_exports, {
23
+ WheelPickerControl: () => WheelPickerControl
24
+ });
25
+ module.exports = __toCommonJS(wheel_picker_control_exports);
26
+ var import_factory = require("@ark-ui/react/factory");
27
+ var import_react = require("@zag-js/react");
28
+ var import_react2 = require("react");
29
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var WheelPickerControl = (0, import_react2.forwardRef)((props, ref) => {
32
+ const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
33
+ const mergedProps = (0, import_react.mergeProps)(api.getControlProps(), props);
34
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_factory.ark.div, { ...mergedProps, ref });
35
+ });
36
+ WheelPickerControl.displayName = "WheelPickerControl";
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ WheelPickerControl
40
+ });
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { HTMLProps, PolymorphicProps } from '@ark-ui/react/factory';
3
+
4
+ interface WheelPickerControlBaseProps extends PolymorphicProps {
5
+ }
6
+ interface WheelPickerControlProps extends HTMLProps<"div">, WheelPickerControlBaseProps {
7
+ }
8
+ declare const WheelPickerControl: react.ForwardRefExoticComponent<WheelPickerControlProps & react.RefAttributes<HTMLDivElement>>;
9
+
10
+ export { WheelPickerControl, type WheelPickerControlBaseProps, type WheelPickerControlProps };
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { HTMLProps, PolymorphicProps } from '@ark-ui/react/factory';
3
+
4
+ interface WheelPickerControlBaseProps extends PolymorphicProps {
5
+ }
6
+ interface WheelPickerControlProps extends HTMLProps<"div">, WheelPickerControlBaseProps {
7
+ }
8
+ declare const WheelPickerControl: react.ForwardRefExoticComponent<WheelPickerControlProps & react.RefAttributes<HTMLDivElement>>;
9
+
10
+ export { WheelPickerControl, type WheelPickerControlBaseProps, type WheelPickerControlProps };
@@ -0,0 +1,15 @@
1
+ // src/react/wheel-picker-control.tsx
2
+ import { ark } from "@ark-ui/react/factory";
3
+ import { mergeProps } from "@zag-js/react";
4
+ import { forwardRef } from "react";
5
+ import { useWheelPickerContext } from "./use-wheel-picker-context.js";
6
+ import { jsx } from "react/jsx-runtime";
7
+ var WheelPickerControl = forwardRef((props, ref) => {
8
+ const api = useWheelPickerContext();
9
+ const mergedProps = mergeProps(api.getControlProps(), props);
10
+ return /* @__PURE__ */ jsx(ark.div, { ...mergedProps, ref });
11
+ });
12
+ WheelPickerControl.displayName = "WheelPickerControl";
13
+ export {
14
+ WheelPickerControl
15
+ };
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/react/wheel-picker-hidden-select.tsx
21
+ var wheel_picker_hidden_select_exports = {};
22
+ __export(wheel_picker_hidden_select_exports, {
23
+ WheelPickerHiddenSelect: () => WheelPickerHiddenSelect
24
+ });
25
+ module.exports = __toCommonJS(wheel_picker_hidden_select_exports);
26
+ var import_factory = require("@ark-ui/react/factory");
27
+ var import_react = require("@zag-js/react");
28
+ var import_react2 = require("react");
29
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
30
+ var import_jsx_runtime = require("react/jsx-runtime");
31
+ var WheelPickerHiddenSelect = (0, import_react2.forwardRef)((props, ref) => {
32
+ const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
33
+ const mergedProps = (0, import_react.mergeProps)(api.getHiddenSelectProps(), props);
34
+ const { collection } = api;
35
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_factory.ark.select, { ...mergedProps, ref, children: collection.items.map((item) => {
36
+ const value = collection.getItemValue(item) ?? "";
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("option", { value, disabled: collection.getItemDisabled(item), children: collection.stringifyItem(item) }, value);
38
+ }) });
39
+ });
40
+ WheelPickerHiddenSelect.displayName = "WheelPickerHiddenSelect";
41
+ // Annotate the CommonJS export names for ESM import in node:
42
+ 0 && (module.exports = {
43
+ WheelPickerHiddenSelect
44
+ });
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { HTMLProps, PolymorphicProps } from '@ark-ui/react/factory';
3
+
4
+ interface WheelPickerHiddenSelectBaseProps extends PolymorphicProps {
5
+ }
6
+ interface WheelPickerHiddenSelectProps extends HTMLProps<"select">, WheelPickerHiddenSelectBaseProps {
7
+ }
8
+ declare const WheelPickerHiddenSelect: react.ForwardRefExoticComponent<WheelPickerHiddenSelectProps & react.RefAttributes<HTMLSelectElement>>;
9
+
10
+ export { WheelPickerHiddenSelect, type WheelPickerHiddenSelectBaseProps, type WheelPickerHiddenSelectProps };
@@ -0,0 +1,10 @@
1
+ import * as react from 'react';
2
+ import { HTMLProps, PolymorphicProps } from '@ark-ui/react/factory';
3
+
4
+ interface WheelPickerHiddenSelectBaseProps extends PolymorphicProps {
5
+ }
6
+ interface WheelPickerHiddenSelectProps extends HTMLProps<"select">, WheelPickerHiddenSelectBaseProps {
7
+ }
8
+ declare const WheelPickerHiddenSelect: react.ForwardRefExoticComponent<WheelPickerHiddenSelectProps & react.RefAttributes<HTMLSelectElement>>;
9
+
10
+ export { WheelPickerHiddenSelect, type WheelPickerHiddenSelectBaseProps, type WheelPickerHiddenSelectProps };