@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.
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/react/index.cjs +89 -0
- package/dist/react/index.d.cts +20 -0
- package/dist/react/index.d.ts +20 -0
- package/dist/react/index.js +53 -0
- package/dist/react/use-wheel-picker-context.cjs +37 -0
- package/dist/react/use-wheel-picker-context.d.cts +12 -0
- package/dist/react/use-wheel-picker-context.d.ts +12 -0
- package/dist/react/use-wheel-picker-context.js +11 -0
- package/dist/react/use-wheel-picker.cjs +57 -0
- package/dist/react/use-wheel-picker.d.cts +11 -0
- package/dist/react/use-wheel-picker.d.ts +11 -0
- package/dist/react/use-wheel-picker.js +22 -0
- package/dist/react/wheel-picker-context.cjs +31 -0
- package/dist/react/wheel-picker-context.d.cts +13 -0
- package/dist/react/wheel-picker-context.d.ts +13 -0
- package/dist/react/wheel-picker-context.js +6 -0
- package/dist/react/wheel-picker-control.cjs +40 -0
- package/dist/react/wheel-picker-control.d.cts +10 -0
- package/dist/react/wheel-picker-control.d.ts +10 -0
- package/dist/react/wheel-picker-control.js +15 -0
- package/dist/react/wheel-picker-hidden-select.cjs +44 -0
- package/dist/react/wheel-picker-hidden-select.d.cts +10 -0
- package/dist/react/wheel-picker-hidden-select.d.ts +10 -0
- package/dist/react/wheel-picker-hidden-select.js +19 -0
- package/dist/react/wheel-picker-highlight-item-group.cjs +42 -0
- package/dist/react/wheel-picker-highlight-item-group.d.cts +10 -0
- package/dist/react/wheel-picker-highlight-item-group.d.ts +10 -0
- package/dist/react/wheel-picker-highlight-item-group.js +17 -0
- package/dist/react/wheel-picker-highlight-item.cjs +52 -0
- package/dist/react/wheel-picker-highlight-item.d.cts +11 -0
- package/dist/react/wheel-picker-highlight-item.d.ts +11 -0
- package/dist/react/wheel-picker-highlight-item.js +17 -0
- package/dist/react/wheel-picker-highlight.cjs +40 -0
- package/dist/react/wheel-picker-highlight.d.cts +10 -0
- package/dist/react/wheel-picker-highlight.d.ts +10 -0
- package/dist/react/wheel-picker-highlight.js +15 -0
- package/dist/react/wheel-picker-item-group.cjs +40 -0
- package/dist/react/wheel-picker-item-group.d.cts +10 -0
- package/dist/react/wheel-picker-item-group.d.ts +10 -0
- package/dist/react/wheel-picker-item-group.js +15 -0
- package/dist/react/wheel-picker-item.cjs +52 -0
- package/dist/react/wheel-picker-item.d.cts +11 -0
- package/dist/react/wheel-picker-item.d.ts +11 -0
- package/dist/react/wheel-picker-item.js +17 -0
- package/dist/react/wheel-picker-label.cjs +40 -0
- package/dist/react/wheel-picker-label.d.cts +10 -0
- package/dist/react/wheel-picker-label.d.ts +10 -0
- package/dist/react/wheel-picker-label.js +15 -0
- package/dist/react/wheel-picker-root-provider.cjs +40 -0
- package/dist/react/wheel-picker-root-provider.d.cts +17 -0
- package/dist/react/wheel-picker-root-provider.d.ts +17 -0
- package/dist/react/wheel-picker-root-provider.js +15 -0
- package/dist/react/wheel-picker-root.cjs +56 -0
- package/dist/react/wheel-picker-root.d.cts +15 -0
- package/dist/react/wheel-picker-root.d.ts +15 -0
- package/dist/react/wheel-picker-root.js +21 -0
- package/dist/react/wheel-picker-viewport.cjs +40 -0
- package/dist/react/wheel-picker-viewport.d.cts +10 -0
- package/dist/react/wheel-picker-viewport.d.ts +10 -0
- package/dist/react/wheel-picker-viewport.js +15 -0
- package/dist/react/wheel-picker.cjs +63 -0
- package/dist/react/wheel-picker.d.cts +29 -0
- package/dist/react/wheel-picker.d.ts +29 -0
- package/dist/react/wheel-picker.js +49 -0
- package/dist/solid/index.d.ts +19 -0
- package/dist/solid/index.js +53 -0
- package/dist/solid/index.jsx +53 -0
- package/dist/solid/use-wheel-picker-context.d.ts +11 -0
- package/dist/solid/use-wheel-picker-context.js +10 -0
- package/dist/solid/use-wheel-picker-context.jsx +10 -0
- package/dist/solid/use-wheel-picker-pwg6J5oj.d.ts +15 -0
- package/dist/solid/use-wheel-picker.d.ts +4 -0
- package/dist/solid/use-wheel-picker.js +22 -0
- package/dist/solid/use-wheel-picker.jsx +22 -0
- package/dist/solid/wheel-picker-context.d.ts +12 -0
- package/dist/solid/wheel-picker-context.js +6 -0
- package/dist/solid/wheel-picker-context.jsx +6 -0
- package/dist/solid/wheel-picker-control.d.ts +10 -0
- package/dist/solid/wheel-picker-control.js +13 -0
- package/dist/solid/wheel-picker-control.jsx +12 -0
- package/dist/solid/wheel-picker-hidden-select.d.ts +10 -0
- package/dist/solid/wheel-picker-hidden-select.js +34 -0
- package/dist/solid/wheel-picker-hidden-select.jsx +22 -0
- package/dist/solid/wheel-picker-highlight-item-group.d.ts +10 -0
- package/dist/solid/wheel-picker-highlight-item-group.js +13 -0
- package/dist/solid/wheel-picker-highlight-item-group.jsx +12 -0
- package/dist/solid/wheel-picker-highlight-item.d.ts +11 -0
- package/dist/solid/wheel-picker-highlight-item.js +15 -0
- package/dist/solid/wheel-picker-highlight-item.jsx +15 -0
- package/dist/solid/wheel-picker-highlight.d.ts +10 -0
- package/dist/solid/wheel-picker-highlight.js +13 -0
- package/dist/solid/wheel-picker-highlight.jsx +12 -0
- package/dist/solid/wheel-picker-item-group.d.ts +10 -0
- package/dist/solid/wheel-picker-item-group.js +13 -0
- package/dist/solid/wheel-picker-item-group.jsx +12 -0
- package/dist/solid/wheel-picker-item.d.ts +11 -0
- package/dist/solid/wheel-picker-item.js +15 -0
- package/dist/solid/wheel-picker-item.jsx +15 -0
- package/dist/solid/wheel-picker-label.d.ts +10 -0
- package/dist/solid/wheel-picker-label.js +13 -0
- package/dist/solid/wheel-picker-label.jsx +12 -0
- package/dist/solid/wheel-picker-root-provider.d.ts +16 -0
- package/dist/solid/wheel-picker-root-provider.js +21 -0
- package/dist/solid/wheel-picker-root-provider.jsx +15 -0
- package/dist/solid/wheel-picker-root.d.ts +13 -0
- package/dist/solid/wheel-picker-root.js +22 -0
- package/dist/solid/wheel-picker-root.jsx +18 -0
- package/dist/solid/wheel-picker-viewport.d.ts +10 -0
- package/dist/solid/wheel-picker-viewport.js +13 -0
- package/dist/solid/wheel-picker-viewport.jsx +12 -0
- package/dist/solid/wheel-picker.d.ts +28 -0
- package/dist/solid/wheel-picker.js +49 -0
- package/dist/solid/wheel-picker.jsx +49 -0
- package/dist/svelte/index.d.ts +5 -0
- package/dist/svelte/index.js +4 -0
- package/dist/svelte/types.d.ts +12 -0
- package/dist/svelte/types.js +1 -0
- package/dist/svelte/use-wheel-picker-context.d.ts +4 -0
- package/dist/svelte/use-wheel-picker-context.js +4 -0
- package/dist/svelte/use-wheel-picker.svelte.d.ts +8 -0
- package/dist/svelte/use-wheel-picker.svelte.js +15 -0
- package/dist/svelte/wheel-picker-context.svelte +17 -0
- package/dist/svelte/wheel-picker-context.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-control.svelte +18 -0
- package/dist/svelte/wheel-picker-control.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-hidden-select.svelte +25 -0
- package/dist/svelte/wheel-picker-hidden-select.svelte.d.ts +9 -0
- package/dist/svelte/wheel-picker-highlight-item-group.svelte +18 -0
- package/dist/svelte/wheel-picker-highlight-item-group.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-highlight-item.svelte +22 -0
- package/dist/svelte/wheel-picker-highlight-item.svelte.d.ts +10 -0
- package/dist/svelte/wheel-picker-highlight.svelte +18 -0
- package/dist/svelte/wheel-picker-highlight.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-item-group.svelte +18 -0
- package/dist/svelte/wheel-picker-item-group.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-item.svelte +22 -0
- package/dist/svelte/wheel-picker-item.svelte.d.ts +10 -0
- package/dist/svelte/wheel-picker-label.svelte +18 -0
- package/dist/svelte/wheel-picker-label.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker-root-provider.svelte +25 -0
- package/dist/svelte/wheel-picker-root-provider.svelte.d.ts +13 -0
- package/dist/svelte/wheel-picker-root.svelte +43 -0
- package/dist/svelte/wheel-picker-root.svelte.d.ts +32 -0
- package/dist/svelte/wheel-picker-viewport.svelte +18 -0
- package/dist/svelte/wheel-picker-viewport.svelte.d.ts +8 -0
- package/dist/svelte/wheel-picker.d.ts +13 -0
- package/dist/svelte/wheel-picker.js +12 -0
- package/dist/types.cjs +18 -0
- package/dist/types.d.cts +4 -0
- package/dist/types.d.ts +4 -0
- package/dist/types.js +0 -0
- package/dist/vue/index.cjs +89 -0
- package/dist/vue/index.d.cts +19 -0
- package/dist/vue/index.d.ts +19 -0
- package/dist/vue/index.js +39 -0
- package/dist/vue/use-wheel-picker-context.cjs +33 -0
- package/dist/vue/use-wheel-picker-context.d.cts +12 -0
- package/dist/vue/use-wheel-picker-context.d.ts +12 -0
- package/dist/vue/use-wheel-picker-context.js +7 -0
- package/dist/vue/use-wheel-picker.cjs +75 -0
- package/dist/vue/use-wheel-picker.d.cts +19 -0
- package/dist/vue/use-wheel-picker.d.ts +19 -0
- package/dist/vue/use-wheel-picker.js +40 -0
- package/dist/vue/wheel-picker-context.cjs +39 -0
- package/dist/vue/wheel-picker-context.d.cts +15 -0
- package/dist/vue/wheel-picker-context.d.ts +15 -0
- package/dist/vue/wheel-picker-context.js +14 -0
- package/dist/vue/wheel-picker-control.cjs +42 -0
- package/dist/vue/wheel-picker-control.d.cts +13 -0
- package/dist/vue/wheel-picker-control.d.ts +13 -0
- package/dist/vue/wheel-picker-control.js +17 -0
- package/dist/vue/wheel-picker-hidden-select.cjs +53 -0
- package/dist/vue/wheel-picker-hidden-select.d.cts +7 -0
- package/dist/vue/wheel-picker-hidden-select.d.ts +7 -0
- package/dist/vue/wheel-picker-hidden-select.js +28 -0
- package/dist/vue/wheel-picker-highlight-item-group.cjs +42 -0
- package/dist/vue/wheel-picker-highlight-item-group.d.cts +13 -0
- package/dist/vue/wheel-picker-highlight-item-group.d.ts +13 -0
- package/dist/vue/wheel-picker-highlight-item-group.js +17 -0
- package/dist/vue/wheel-picker-highlight-item.cjs +48 -0
- package/dist/vue/wheel-picker-highlight-item.d.cts +31 -0
- package/dist/vue/wheel-picker-highlight-item.d.ts +31 -0
- package/dist/vue/wheel-picker-highlight-item.js +23 -0
- package/dist/vue/wheel-picker-highlight.cjs +42 -0
- package/dist/vue/wheel-picker-highlight.d.cts +13 -0
- package/dist/vue/wheel-picker-highlight.d.ts +13 -0
- package/dist/vue/wheel-picker-highlight.js +17 -0
- package/dist/vue/wheel-picker-item-group.cjs +42 -0
- package/dist/vue/wheel-picker-item-group.d.cts +13 -0
- package/dist/vue/wheel-picker-item-group.d.ts +13 -0
- package/dist/vue/wheel-picker-item-group.js +17 -0
- package/dist/vue/wheel-picker-item.cjs +48 -0
- package/dist/vue/wheel-picker-item.d.cts +31 -0
- package/dist/vue/wheel-picker-item.d.ts +31 -0
- package/dist/vue/wheel-picker-item.js +23 -0
- package/dist/vue/wheel-picker-label.cjs +42 -0
- package/dist/vue/wheel-picker-label.d.cts +13 -0
- package/dist/vue/wheel-picker-label.d.ts +13 -0
- package/dist/vue/wheel-picker-label.js +17 -0
- package/dist/vue/wheel-picker-root-provider.cjs +43 -0
- package/dist/vue/wheel-picker-root-provider.d.cts +26 -0
- package/dist/vue/wheel-picker-root-provider.d.ts +26 -0
- package/dist/vue/wheel-picker-root-provider.js +18 -0
- package/dist/vue/wheel-picker-root.cjs +72 -0
- package/dist/vue/wheel-picker-root.d.cts +116 -0
- package/dist/vue/wheel-picker-root.d.ts +116 -0
- package/dist/vue/wheel-picker-root.js +47 -0
- package/dist/vue/wheel-picker-viewport.cjs +42 -0
- package/dist/vue/wheel-picker-viewport.d.cts +13 -0
- package/dist/vue/wheel-picker-viewport.d.ts +13 -0
- package/dist/vue/wheel-picker-viewport.js +17 -0
- package/dist/vue/wheel-picker.cjs +63 -0
- package/dist/vue/wheel-picker.d.cts +28 -0
- package/dist/vue/wheel-picker.d.ts +28 -0
- package/dist/vue/wheel-picker.js +27 -0
- package/package.json +143 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/vue/wheel-picker-hidden-select.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 WheelPickerHiddenSelect = defineComponent({
|
|
6
|
+
name: "WheelPickerHiddenSelect",
|
|
7
|
+
setup() {
|
|
8
|
+
const api = useWheelPickerContext();
|
|
9
|
+
return () => {
|
|
10
|
+
const { collection } = api.value;
|
|
11
|
+
return h(
|
|
12
|
+
ark.select,
|
|
13
|
+
api.value.getHiddenSelectProps(),
|
|
14
|
+
() => collection.items.map((item) => {
|
|
15
|
+
const value = collection.getItemValue(item) ?? "";
|
|
16
|
+
return h(
|
|
17
|
+
"option",
|
|
18
|
+
{ key: value, value, disabled: collection.getItemDisabled(item) },
|
|
19
|
+
collection.stringifyItem(item) ?? ""
|
|
20
|
+
);
|
|
21
|
+
})
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
export {
|
|
27
|
+
WheelPickerHiddenSelect
|
|
28
|
+
};
|
|
@@ -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-highlight-item-group.ts
|
|
21
|
+
var wheel_picker_highlight_item_group_exports = {};
|
|
22
|
+
__export(wheel_picker_highlight_item_group_exports, {
|
|
23
|
+
WheelPickerHighlightItemGroup: () => WheelPickerHighlightItemGroup
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_highlight_item_group_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 WheelPickerHighlightItemGroup = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerHighlightItemGroup",
|
|
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.ul, { ...api.value.getHighlightItemGroupProps(), asChild: props.asChild }, slots);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
WheelPickerHighlightItemGroup
|
|
42
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerHighlightItemGroup: 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 { WheelPickerHighlightItemGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerHighlightItemGroup: 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 { WheelPickerHighlightItemGroup };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/vue/wheel-picker-highlight-item-group.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 WheelPickerHighlightItemGroup = defineComponent({
|
|
6
|
+
name: "WheelPickerHighlightItemGroup",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean
|
|
9
|
+
},
|
|
10
|
+
setup(props, { slots }) {
|
|
11
|
+
const api = useWheelPickerContext();
|
|
12
|
+
return () => h(ark.ul, { ...api.value.getHighlightItemGroupProps(), asChild: props.asChild }, slots);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
WheelPickerHighlightItemGroup
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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-highlight-item.ts
|
|
21
|
+
var wheel_picker_highlight_item_exports = {};
|
|
22
|
+
__export(wheel_picker_highlight_item_exports, {
|
|
23
|
+
WheelPickerHighlightItem: () => WheelPickerHighlightItem
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_highlight_item_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 WheelPickerHighlightItem = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerHighlightItem",
|
|
31
|
+
props: {
|
|
32
|
+
asChild: Boolean,
|
|
33
|
+
index: { type: Number, required: true },
|
|
34
|
+
item: { type: null, required: true }
|
|
35
|
+
},
|
|
36
|
+
setup(props, { slots }) {
|
|
37
|
+
const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
|
|
38
|
+
return () => (0, import_vue.h)(
|
|
39
|
+
import_factory.ark.li,
|
|
40
|
+
{ ...api.value.getHighlightItemProps({ item: props.item, index: props.index }), asChild: props.asChild },
|
|
41
|
+
slots
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
WheelPickerHighlightItem
|
|
48
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import * as wheelPicker from '@isbatak/zag-wheel-picker';
|
|
4
|
+
|
|
5
|
+
declare const WheelPickerHighlightItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
asChild: BooleanConstructor;
|
|
7
|
+
index: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
item: {
|
|
12
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
18
|
+
asChild: BooleanConstructor;
|
|
19
|
+
index: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
item: {
|
|
24
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
asChild: boolean;
|
|
29
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
|
|
31
|
+
export { WheelPickerHighlightItem };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import * as wheelPicker from '@isbatak/zag-wheel-picker';
|
|
4
|
+
|
|
5
|
+
declare const WheelPickerHighlightItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
asChild: BooleanConstructor;
|
|
7
|
+
index: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
item: {
|
|
12
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
18
|
+
asChild: BooleanConstructor;
|
|
19
|
+
index: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
item: {
|
|
24
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
asChild: boolean;
|
|
29
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
|
|
31
|
+
export { WheelPickerHighlightItem };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/vue/wheel-picker-highlight-item.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 WheelPickerHighlightItem = defineComponent({
|
|
6
|
+
name: "WheelPickerHighlightItem",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean,
|
|
9
|
+
index: { type: Number, required: true },
|
|
10
|
+
item: { type: null, required: true }
|
|
11
|
+
},
|
|
12
|
+
setup(props, { slots }) {
|
|
13
|
+
const api = useWheelPickerContext();
|
|
14
|
+
return () => h(
|
|
15
|
+
ark.li,
|
|
16
|
+
{ ...api.value.getHighlightItemProps({ item: props.item, index: props.index }), asChild: props.asChild },
|
|
17
|
+
slots
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
WheelPickerHighlightItem
|
|
23
|
+
};
|
|
@@ -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-highlight.ts
|
|
21
|
+
var wheel_picker_highlight_exports = {};
|
|
22
|
+
__export(wheel_picker_highlight_exports, {
|
|
23
|
+
WheelPickerHighlight: () => WheelPickerHighlight
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_highlight_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 WheelPickerHighlight = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerHighlight",
|
|
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.getHighlightProps(), asChild: props.asChild }, slots);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
WheelPickerHighlight
|
|
42
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerHighlight: 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 { WheelPickerHighlight };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerHighlight: 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 { WheelPickerHighlight };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/vue/wheel-picker-highlight.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 WheelPickerHighlight = defineComponent({
|
|
6
|
+
name: "WheelPickerHighlight",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean
|
|
9
|
+
},
|
|
10
|
+
setup(props, { slots }) {
|
|
11
|
+
const api = useWheelPickerContext();
|
|
12
|
+
return () => h(ark.div, { ...api.value.getHighlightProps(), asChild: props.asChild }, slots);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
WheelPickerHighlight
|
|
17
|
+
};
|
|
@@ -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-item-group.ts
|
|
21
|
+
var wheel_picker_item_group_exports = {};
|
|
22
|
+
__export(wheel_picker_item_group_exports, {
|
|
23
|
+
WheelPickerItemGroup: () => WheelPickerItemGroup
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_item_group_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 WheelPickerItemGroup = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerItemGroup",
|
|
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.ul, { ...api.value.getItemGroupProps(), asChild: props.asChild }, slots);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
WheelPickerItemGroup
|
|
42
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerItemGroup: 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 { WheelPickerItemGroup };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerItemGroup: 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 { WheelPickerItemGroup };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/vue/wheel-picker-item-group.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 WheelPickerItemGroup = defineComponent({
|
|
6
|
+
name: "WheelPickerItemGroup",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean
|
|
9
|
+
},
|
|
10
|
+
setup(props, { slots }) {
|
|
11
|
+
const api = useWheelPickerContext();
|
|
12
|
+
return () => h(ark.ul, { ...api.value.getItemGroupProps(), asChild: props.asChild }, slots);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
WheelPickerItemGroup
|
|
17
|
+
};
|
|
@@ -0,0 +1,48 @@
|
|
|
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-item.ts
|
|
21
|
+
var wheel_picker_item_exports = {};
|
|
22
|
+
__export(wheel_picker_item_exports, {
|
|
23
|
+
WheelPickerItem: () => WheelPickerItem
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_item_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 WheelPickerItem = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerItem",
|
|
31
|
+
props: {
|
|
32
|
+
asChild: Boolean,
|
|
33
|
+
index: { type: Number, required: true },
|
|
34
|
+
item: { type: null, required: true }
|
|
35
|
+
},
|
|
36
|
+
setup(props, { slots }) {
|
|
37
|
+
const api = (0, import_use_wheel_picker_context.useWheelPickerContext)();
|
|
38
|
+
return () => (0, import_vue.h)(
|
|
39
|
+
import_factory.ark.li,
|
|
40
|
+
{ ...api.value.getItemProps({ item: props.item, index: props.index }), asChild: props.asChild },
|
|
41
|
+
slots
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
46
|
+
0 && (module.exports = {
|
|
47
|
+
WheelPickerItem
|
|
48
|
+
});
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import * as wheelPicker from '@isbatak/zag-wheel-picker';
|
|
4
|
+
|
|
5
|
+
declare const WheelPickerItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
asChild: BooleanConstructor;
|
|
7
|
+
index: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
item: {
|
|
12
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
18
|
+
asChild: BooleanConstructor;
|
|
19
|
+
index: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
item: {
|
|
24
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
asChild: boolean;
|
|
29
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
|
|
31
|
+
export { WheelPickerItem };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
import * as wheelPicker from '@isbatak/zag-wheel-picker';
|
|
4
|
+
|
|
5
|
+
declare const WheelPickerItem: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
6
|
+
asChild: BooleanConstructor;
|
|
7
|
+
index: {
|
|
8
|
+
type: NumberConstructor;
|
|
9
|
+
required: true;
|
|
10
|
+
};
|
|
11
|
+
item: {
|
|
12
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
18
|
+
asChild: BooleanConstructor;
|
|
19
|
+
index: {
|
|
20
|
+
type: NumberConstructor;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
item: {
|
|
24
|
+
type: PropType<wheelPicker.CollectionItem>;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {
|
|
28
|
+
asChild: boolean;
|
|
29
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
30
|
+
|
|
31
|
+
export { WheelPickerItem };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// src/vue/wheel-picker-item.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 WheelPickerItem = defineComponent({
|
|
6
|
+
name: "WheelPickerItem",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean,
|
|
9
|
+
index: { type: Number, required: true },
|
|
10
|
+
item: { type: null, required: true }
|
|
11
|
+
},
|
|
12
|
+
setup(props, { slots }) {
|
|
13
|
+
const api = useWheelPickerContext();
|
|
14
|
+
return () => h(
|
|
15
|
+
ark.li,
|
|
16
|
+
{ ...api.value.getItemProps({ item: props.item, index: props.index }), asChild: props.asChild },
|
|
17
|
+
slots
|
|
18
|
+
);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
export {
|
|
22
|
+
WheelPickerItem
|
|
23
|
+
};
|
|
@@ -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-label.ts
|
|
21
|
+
var wheel_picker_label_exports = {};
|
|
22
|
+
__export(wheel_picker_label_exports, {
|
|
23
|
+
WheelPickerLabel: () => WheelPickerLabel
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(wheel_picker_label_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 WheelPickerLabel = (0, import_vue.defineComponent)({
|
|
30
|
+
name: "WheelPickerLabel",
|
|
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.label, { ...api.value.getLabelProps(), asChild: props.asChild }, slots);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
+
0 && (module.exports = {
|
|
41
|
+
WheelPickerLabel
|
|
42
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerLabel: 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 { WheelPickerLabel };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
|
|
3
|
+
declare const WheelPickerLabel: 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 { WheelPickerLabel };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/vue/wheel-picker-label.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 WheelPickerLabel = defineComponent({
|
|
6
|
+
name: "WheelPickerLabel",
|
|
7
|
+
props: {
|
|
8
|
+
asChild: Boolean
|
|
9
|
+
},
|
|
10
|
+
setup(props, { slots }) {
|
|
11
|
+
const api = useWheelPickerContext();
|
|
12
|
+
return () => h(ark.label, { ...api.value.getLabelProps(), asChild: props.asChild }, slots);
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
WheelPickerLabel
|
|
17
|
+
};
|