keep-vue
Version:
Keep Vue is an open-source component library built on top of Vue3 and Tailwind CSS. It offers a collection of pre-designed UI components and styles that you can easily integrate into your web applications.
80 lines (79 loc) • 2.37 kB
JavaScript
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
import { computed, ref } from "vue";
import { cn } from "../../utils/cn";
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
let __VLS_typeProps;
const props = withDefaults(defineProps(), {
min: 0,
max: 100,
});
const restProps = computed(() => {
const { class: _, ...rest } = props;
return rest;
});
const numberInputRef = ref();
const proxyValue = defineModel();
const __VLS_withDefaultsArg = (function (t) { return t; })({
min: 0,
max: 100,
});
const __VLS_fnComponent = (await import('vue')).defineComponent({
__typeEmits: {},
});
;
let __VLS_functionalComponentProps;
const __VLS_defaults = {};
function __VLS_template() {
const __VLS_ctx = {};
const __VLS_localComponents = {
...{},
...{},
...__VLS_ctx,
};
let __VLS_components;
const __VLS_localDirectives = {
...{},
...__VLS_ctx,
};
let __VLS_directives;
let __VLS_styleScopedClasses;
let __VLS_resolvedLocalAndGlobalComponents;
__VLS_elementAsFunction(__VLS_intrinsicElements.input)({ ref: ("numberInputRef"), ...(__VLS_ctx.restProps), min: ((props.min)), max: ((props.max)), type: ("number"), ...{ class: ((__VLS_ctx.cn('flex-auto bg-transparent px-3 py-2.5 text-center text-body-3 font-medium text-metal-900 outline-none dark:text-white dark:placeholder:text-metal-300 dark:focus-visible:ring-metal-900', props.class))) }, });
(__VLS_ctx.proxyValue);
// @ts-ignore navigation for `const numberInputRef = ref()`
__VLS_ctx.numberInputRef;
var __VLS_slots;
var __VLS_inheritedAttrs;
const __VLS_refs = {
"numberInputRef": __VLS_nativeElements['input'],
};
var $refs;
return {
slots: __VLS_slots,
refs: $refs,
attrs: {},
};
}
;
const __VLS_self = (await import('vue')).defineComponent({
setup() {
return {
cn: cn,
restProps: restProps,
numberInputRef: numberInputRef,
proxyValue: proxyValue,
};
},
__typeEmits: {},
__typeProps: {},
props: {},
});
export default (await import('vue')).defineComponent({
setup() {
return {};
},
__typeEmits: {},
__typeProps: {},
props: {},
});
;