@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
@@ -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/vue/index.ts
31
+ var vue_exports = {};
32
+ __export(vue_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(vue_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,19 @@
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, WheelPickerRootEmits, useWheelPicker } from './use-wheel-picker.cjs';
3
+ export { UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext } from './use-wheel-picker-context.cjs';
4
+ export { WheelPickerContext } from './wheel-picker-context.cjs';
5
+ export { WheelPickerControl } from './wheel-picker-control.cjs';
6
+ export { WheelPickerHiddenSelect } from './wheel-picker-hidden-select.cjs';
7
+ export { WheelPickerHighlight } from './wheel-picker-highlight.cjs';
8
+ export { WheelPickerHighlightItem } from './wheel-picker-highlight-item.cjs';
9
+ export { WheelPickerHighlightItemGroup } from './wheel-picker-highlight-item-group.cjs';
10
+ export { WheelPickerItem } from './wheel-picker-item.cjs';
11
+ export { WheelPickerItemGroup } from './wheel-picker-item-group.cjs';
12
+ export { WheelPickerLabel } from './wheel-picker-label.cjs';
13
+ export { WheelPickerRoot } from './wheel-picker-root.cjs';
14
+ export { WheelPickerRootProvider } from './wheel-picker-root-provider.cjs';
15
+ export { WheelPickerViewport } from './wheel-picker-viewport.cjs';
16
+ export { w as WheelPicker } from './wheel-picker.cjs';
17
+ import '@zag-js/vue';
18
+ import 'vue';
19
+ import '../types.cjs';
@@ -0,0 +1,19 @@
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, WheelPickerRootEmits, useWheelPicker } from './use-wheel-picker.js';
3
+ export { UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext } from './use-wheel-picker-context.js';
4
+ export { WheelPickerContext } from './wheel-picker-context.js';
5
+ export { WheelPickerControl } from './wheel-picker-control.js';
6
+ export { WheelPickerHiddenSelect } from './wheel-picker-hidden-select.js';
7
+ export { WheelPickerHighlight } from './wheel-picker-highlight.js';
8
+ export { WheelPickerHighlightItem } from './wheel-picker-highlight-item.js';
9
+ export { WheelPickerHighlightItemGroup } from './wheel-picker-highlight-item-group.js';
10
+ export { WheelPickerItem } from './wheel-picker-item.js';
11
+ export { WheelPickerItemGroup } from './wheel-picker-item-group.js';
12
+ export { WheelPickerLabel } from './wheel-picker-label.js';
13
+ export { WheelPickerRoot } from './wheel-picker-root.js';
14
+ export { WheelPickerRootProvider } from './wheel-picker-root-provider.js';
15
+ export { WheelPickerViewport } from './wheel-picker-viewport.js';
16
+ export { w as WheelPicker } from './wheel-picker.js';
17
+ import '@zag-js/vue';
18
+ import 'vue';
19
+ import '../types.js';
@@ -0,0 +1,39 @@
1
+ // src/vue/index.ts
2
+ import { anatomy, collection } from "@isbatak/zag-wheel-picker";
3
+ import {
4
+ useWheelPicker
5
+ } from "./use-wheel-picker.js";
6
+ import { useWheelPickerContext, WheelPickerProvider } from "./use-wheel-picker-context.js";
7
+ import { WheelPickerContext } from "./wheel-picker-context.js";
8
+ import { WheelPickerControl } from "./wheel-picker-control.js";
9
+ import { WheelPickerHiddenSelect } from "./wheel-picker-hidden-select.js";
10
+ import { WheelPickerHighlight } from "./wheel-picker-highlight.js";
11
+ import { WheelPickerHighlightItem } from "./wheel-picker-highlight-item.js";
12
+ import { WheelPickerHighlightItemGroup } from "./wheel-picker-highlight-item-group.js";
13
+ import { WheelPickerItem } from "./wheel-picker-item.js";
14
+ import { WheelPickerItemGroup } from "./wheel-picker-item-group.js";
15
+ import { WheelPickerLabel } from "./wheel-picker-label.js";
16
+ import { WheelPickerRoot } from "./wheel-picker-root.js";
17
+ import { WheelPickerRootProvider } from "./wheel-picker-root-provider.js";
18
+ import { WheelPickerViewport } from "./wheel-picker-viewport.js";
19
+ import * as WheelPicker from "./wheel-picker.js";
20
+ export {
21
+ WheelPicker,
22
+ WheelPickerContext,
23
+ WheelPickerControl,
24
+ WheelPickerHiddenSelect,
25
+ WheelPickerHighlight,
26
+ WheelPickerHighlightItem,
27
+ WheelPickerHighlightItemGroup,
28
+ WheelPickerItem,
29
+ WheelPickerItemGroup,
30
+ WheelPickerLabel,
31
+ WheelPickerProvider,
32
+ WheelPickerRoot,
33
+ WheelPickerRootProvider,
34
+ WheelPickerViewport,
35
+ collection as createWheelPickerCollection,
36
+ useWheelPicker,
37
+ useWheelPickerContext,
38
+ anatomy as wheelPickerAnatomy
39
+ };
@@ -0,0 +1,33 @@
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/vue/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/vue/utils");
28
+ var [WheelPickerProvider, useWheelPickerContext] = (0, import_utils.createContext)("WheelPickerContext");
29
+ // Annotate the CommonJS export names for ESM import in node:
30
+ 0 && (module.exports = {
31
+ WheelPickerProvider,
32
+ useWheelPickerContext
33
+ });
@@ -0,0 +1,12 @@
1
+ import { UseWheelPickerReturn } from './use-wheel-picker.cjs';
2
+ import '@isbatak/zag-wheel-picker';
3
+ import '@zag-js/vue';
4
+ import 'vue';
5
+ import '../types.cjs';
6
+
7
+ interface UseWheelPickerContext extends UseWheelPickerReturn {
8
+ }
9
+ declare const WheelPickerProvider: (opts: UseWheelPickerContext) => void;
10
+ declare const useWheelPickerContext: (fallback?: UseWheelPickerContext | undefined) => UseWheelPickerContext;
11
+
12
+ export { type UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext };
@@ -0,0 +1,12 @@
1
+ import { UseWheelPickerReturn } from './use-wheel-picker.js';
2
+ import '@isbatak/zag-wheel-picker';
3
+ import '@zag-js/vue';
4
+ import 'vue';
5
+ import '../types.js';
6
+
7
+ interface UseWheelPickerContext extends UseWheelPickerReturn {
8
+ }
9
+ declare const WheelPickerProvider: (opts: UseWheelPickerContext) => void;
10
+ declare const useWheelPickerContext: (fallback?: UseWheelPickerContext | undefined) => UseWheelPickerContext;
11
+
12
+ export { type UseWheelPickerContext, WheelPickerProvider, useWheelPickerContext };
@@ -0,0 +1,7 @@
1
+ // src/vue/use-wheel-picker-context.ts
2
+ import { createContext } from "@ark-ui/vue/utils";
3
+ var [WheelPickerProvider, useWheelPickerContext] = createContext("WheelPickerContext");
4
+ export {
5
+ WheelPickerProvider,
6
+ useWheelPickerContext
7
+ };
@@ -0,0 +1,75 @@
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/vue/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/vue/environment");
37
+ var import_locale = require("@ark-ui/vue/locale");
38
+ var wheelPicker = __toESM(require("@isbatak/zag-wheel-picker"), 1);
39
+ var import_vue = require("@zag-js/vue");
40
+ var import_vue2 = require("vue");
41
+ var cleanProps = (props) => Object.fromEntries(Object.entries(props).filter(([, value]) => value !== void 0));
42
+ var useWheelPicker = (props, emit) => {
43
+ const id = (0, import_vue2.useId)();
44
+ const env = (0, import_environment.useEnvironmentContext)(import_environment.DEFAULT_ENVIRONMENT);
45
+ const locale = (0, import_locale.useLocaleContext)(import_locale.DEFAULT_LOCALE);
46
+ const context = (0, import_vue2.computed)(() => {
47
+ const { modelValue, ...localProps } = (0, import_vue2.toValue)(props);
48
+ return {
49
+ id,
50
+ dir: locale.value.dir,
51
+ getRootNode: env.value.getRootNode,
52
+ value: modelValue,
53
+ ...cleanProps(localProps),
54
+ onValueChange(details) {
55
+ emit?.("valueChange", details);
56
+ emit?.("update:modelValue", details.value);
57
+ localProps.onValueChange?.(details);
58
+ },
59
+ onValueChangeEnd(details) {
60
+ emit?.("valueChangeEnd", details);
61
+ localProps.onValueChangeEnd?.(details);
62
+ },
63
+ onScrollChange(details) {
64
+ emit?.("scrollChange", details);
65
+ localProps.onScrollChange?.(details);
66
+ }
67
+ };
68
+ });
69
+ const service = (0, import_vue.useMachine)(wheelPicker.machine, context);
70
+ return (0, import_vue2.computed)(() => wheelPicker.connect(service, import_vue.normalizeProps));
71
+ };
72
+ // Annotate the CommonJS export names for ESM import in node:
73
+ 0 && (module.exports = {
74
+ useWheelPicker
75
+ });
@@ -0,0 +1,19 @@
1
+ import * as wheelPicker from '@isbatak/zag-wheel-picker';
2
+ import { PropTypes } from '@zag-js/vue';
3
+ import { ComputedRef, MaybeRefOrGetter } from 'vue';
4
+ import { Optional } from '../types.cjs';
5
+
6
+ interface UseWheelPickerProps<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends Optional<Omit<wheelPicker.Props<T>, "dir" | "getRootNode" | "value">, "id"> {
7
+ modelValue?: string | null | undefined;
8
+ }
9
+ interface UseWheelPickerReturn<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends ComputedRef<wheelPicker.Api<PropTypes, T>> {
10
+ }
11
+ interface WheelPickerRootEmits<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> {
12
+ (event: "valueChange", details: wheelPicker.ValueChangeDetails<T>): void;
13
+ (event: "valueChangeEnd", details: wheelPicker.ValueChangeDetails<T>): void;
14
+ (event: "scrollChange", details: wheelPicker.ScrollChangeDetails<T>): void;
15
+ (event: "update:modelValue", value: string | null): void;
16
+ }
17
+ declare const useWheelPicker: <T extends wheelPicker.CollectionItem>(props: MaybeRefOrGetter<UseWheelPickerProps<T>>, emit?: WheelPickerRootEmits<T>) => UseWheelPickerReturn<T>;
18
+
19
+ export { type UseWheelPickerProps, type UseWheelPickerReturn, type WheelPickerRootEmits, useWheelPicker };
@@ -0,0 +1,19 @@
1
+ import * as wheelPicker from '@isbatak/zag-wheel-picker';
2
+ import { PropTypes } from '@zag-js/vue';
3
+ import { ComputedRef, MaybeRefOrGetter } from 'vue';
4
+ import { Optional } from '../types.js';
5
+
6
+ interface UseWheelPickerProps<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends Optional<Omit<wheelPicker.Props<T>, "dir" | "getRootNode" | "value">, "id"> {
7
+ modelValue?: string | null | undefined;
8
+ }
9
+ interface UseWheelPickerReturn<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> extends ComputedRef<wheelPicker.Api<PropTypes, T>> {
10
+ }
11
+ interface WheelPickerRootEmits<T extends wheelPicker.CollectionItem = wheelPicker.CollectionItem> {
12
+ (event: "valueChange", details: wheelPicker.ValueChangeDetails<T>): void;
13
+ (event: "valueChangeEnd", details: wheelPicker.ValueChangeDetails<T>): void;
14
+ (event: "scrollChange", details: wheelPicker.ScrollChangeDetails<T>): void;
15
+ (event: "update:modelValue", value: string | null): void;
16
+ }
17
+ declare const useWheelPicker: <T extends wheelPicker.CollectionItem>(props: MaybeRefOrGetter<UseWheelPickerProps<T>>, emit?: WheelPickerRootEmits<T>) => UseWheelPickerReturn<T>;
18
+
19
+ export { type UseWheelPickerProps, type UseWheelPickerReturn, type WheelPickerRootEmits, useWheelPicker };
@@ -0,0 +1,40 @@
1
+ // src/vue/use-wheel-picker.ts
2
+ import { DEFAULT_ENVIRONMENT, useEnvironmentContext } from "@ark-ui/vue/environment";
3
+ import { DEFAULT_LOCALE, useLocaleContext } from "@ark-ui/vue/locale";
4
+ import * as wheelPicker from "@isbatak/zag-wheel-picker";
5
+ import { normalizeProps, useMachine } from "@zag-js/vue";
6
+ import { computed, toValue, useId } from "vue";
7
+ var cleanProps = (props) => Object.fromEntries(Object.entries(props).filter(([, value]) => value !== void 0));
8
+ var useWheelPicker = (props, emit) => {
9
+ const id = useId();
10
+ const env = useEnvironmentContext(DEFAULT_ENVIRONMENT);
11
+ const locale = useLocaleContext(DEFAULT_LOCALE);
12
+ const context = computed(() => {
13
+ const { modelValue, ...localProps } = toValue(props);
14
+ return {
15
+ id,
16
+ dir: locale.value.dir,
17
+ getRootNode: env.value.getRootNode,
18
+ value: modelValue,
19
+ ...cleanProps(localProps),
20
+ onValueChange(details) {
21
+ emit?.("valueChange", details);
22
+ emit?.("update:modelValue", details.value);
23
+ localProps.onValueChange?.(details);
24
+ },
25
+ onValueChangeEnd(details) {
26
+ emit?.("valueChangeEnd", details);
27
+ localProps.onValueChangeEnd?.(details);
28
+ },
29
+ onScrollChange(details) {
30
+ emit?.("scrollChange", details);
31
+ localProps.onScrollChange?.(details);
32
+ }
33
+ };
34
+ });
35
+ const service = useMachine(wheelPicker.machine, context);
36
+ return computed(() => wheelPicker.connect(service, normalizeProps));
37
+ };
38
+ export {
39
+ useWheelPicker
40
+ };
@@ -0,0 +1,39 @@
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/vue/wheel-picker-context.ts
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_vue = require("vue");
27
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
28
+ var WheelPickerContext = (0, import_vue.defineComponent)({
29
+ name: "WheelPickerContext",
30
+ slots: Object,
31
+ setup(_, { slots }) {
32
+ const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
33
+ return () => slots.default?.(api.value);
34
+ }
35
+ });
36
+ // Annotate the CommonJS export names for ESM import in node:
37
+ 0 && (module.exports = {
38
+ WheelPickerContext
39
+ });
@@ -0,0 +1,15 @@
1
+ import * as vue from 'vue';
2
+ import { SlotsType } from 'vue';
3
+ import { UseWheelPickerContext } from './use-wheel-picker-context.cjs';
4
+ import './use-wheel-picker.cjs';
5
+ import '@isbatak/zag-wheel-picker';
6
+ import '@zag-js/vue';
7
+ import '../types.cjs';
8
+
9
+ declare const WheelPickerContext: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
10
+ [key: string]: any;
11
+ }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
12
+ default: UseWheelPickerContext["value"];
13
+ }>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
14
+
15
+ export { WheelPickerContext };
@@ -0,0 +1,15 @@
1
+ import * as vue from 'vue';
2
+ import { SlotsType } from 'vue';
3
+ import { UseWheelPickerContext } from './use-wheel-picker-context.js';
4
+ import './use-wheel-picker.js';
5
+ import '@isbatak/zag-wheel-picker';
6
+ import '@zag-js/vue';
7
+ import '../types.js';
8
+
9
+ declare const WheelPickerContext: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
10
+ [key: string]: any;
11
+ }>[], {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, SlotsType<{
12
+ default: UseWheelPickerContext["value"];
13
+ }>, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
14
+
15
+ export { WheelPickerContext };
@@ -0,0 +1,14 @@
1
+ // src/vue/wheel-picker-context.ts
2
+ import { defineComponent } from "vue";
3
+ import { useWheelPickerContext } from "./use-wheel-picker-context.js";
4
+ var WheelPickerContext = defineComponent({
5
+ name: "WheelPickerContext",
6
+ slots: Object,
7
+ setup(_, { slots }) {
8
+ const api = useWheelPickerContext();
9
+ return () => slots.default?.(api.value);
10
+ }
11
+ });
12
+ export {
13
+ WheelPickerContext
14
+ };
@@ -0,0 +1,42 @@
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/vue/wheel-picker-control.ts
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/vue/factory");
27
+ var import_vue = require("vue");
28
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
29
+ var WheelPickerControl = (0, import_vue.defineComponent)({
30
+ name: "WheelPickerControl",
31
+ props: {
32
+ asChild: Boolean
33
+ },
34
+ setup(props, { slots }) {
35
+ const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
36
+ return () => (0, import_vue.h)(import_factory.ark.div, { ...api.value.getControlProps(), asChild: props.asChild }, slots);
37
+ }
38
+ });
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ WheelPickerControl
42
+ });
@@ -0,0 +1,13 @@
1
+ import * as vue from 'vue';
2
+
3
+ declare const WheelPickerControl: vue.DefineComponent<vue.ExtractPropTypes<{
4
+ asChild: BooleanConstructor;
5
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
6
+ [key: string]: any;
7
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
8
+ asChild: BooleanConstructor;
9
+ }>> & Readonly<{}>, {
10
+ asChild: boolean;
11
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
12
+
13
+ export { WheelPickerControl };
@@ -0,0 +1,13 @@
1
+ import * as vue from 'vue';
2
+
3
+ declare const WheelPickerControl: vue.DefineComponent<vue.ExtractPropTypes<{
4
+ asChild: BooleanConstructor;
5
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
6
+ [key: string]: any;
7
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
8
+ asChild: BooleanConstructor;
9
+ }>> & Readonly<{}>, {
10
+ asChild: boolean;
11
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
12
+
13
+ export { WheelPickerControl };
@@ -0,0 +1,17 @@
1
+ // src/vue/wheel-picker-control.ts
2
+ import { ark } from "@ark-ui/vue/factory";
3
+ import { defineComponent, h } from "vue";
4
+ import { useWheelPickerContext } from "./use-wheel-picker-context.js";
5
+ var WheelPickerControl = defineComponent({
6
+ name: "WheelPickerControl",
7
+ props: {
8
+ asChild: Boolean
9
+ },
10
+ setup(props, { slots }) {
11
+ const api = useWheelPickerContext();
12
+ return () => h(ark.div, { ...api.value.getControlProps(), asChild: props.asChild }, slots);
13
+ }
14
+ });
15
+ export {
16
+ WheelPickerControl
17
+ };
@@ -0,0 +1,53 @@
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/vue/wheel-picker-hidden-select.ts
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/vue/factory");
27
+ var import_vue = require("vue");
28
+ var import_use_wheel_picker_context = require("./use-wheel-picker-context.cjs");
29
+ var WheelPickerHiddenSelect = (0, import_vue.defineComponent)({
30
+ name: "WheelPickerHiddenSelect",
31
+ setup() {
32
+ const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
33
+ return () => {
34
+ const { collection } = api.value;
35
+ return (0, import_vue.h)(
36
+ import_factory.ark.select,
37
+ api.value.getHiddenSelectProps(),
38
+ () => collection.items.map((item) => {
39
+ const value = collection.getItemValue(item) ?? "";
40
+ return (0, import_vue.h)(
41
+ "option",
42
+ { key: value, value, disabled: collection.getItemDisabled(item) },
43
+ collection.stringifyItem(item) ?? ""
44
+ );
45
+ })
46
+ );
47
+ };
48
+ }
49
+ });
50
+ // Annotate the CommonJS export names for ESM import in node:
51
+ 0 && (module.exports = {
52
+ WheelPickerHiddenSelect
53
+ });
@@ -0,0 +1,7 @@
1
+ import * as vue from 'vue';
2
+
3
+ declare const WheelPickerHiddenSelect: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
4
+ [key: string]: any;
5
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6
+
7
+ export { WheelPickerHiddenSelect };
@@ -0,0 +1,7 @@
1
+ import * as vue from 'vue';
2
+
3
+ declare const WheelPickerHiddenSelect: vue.DefineComponent<{}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
4
+ [key: string]: any;
5
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
6
+
7
+ export { WheelPickerHiddenSelect };