UNPKG

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.

82 lines (81 loc) 2.24 kB
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" /> import { useVModel } from "@vueuse/core"; import { cn } from "../../utils/cn"; import { inputTheme } from "./inputTheme"; const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue'); let __VLS_typeProps; const props = withDefaults(defineProps(), { class: "", type: "text", modelValue: "", }); const emits = defineEmits(); const modelValue = useVModel(props, "modelValue", emits, { passive: true, defaultValue: props.defaultValue, }); const handleInput = (event) => { const target = event.target; const value = target.value; emits("update:modelValue", value); }; const __VLS_withDefaultsArg = (function (t) { return t; })({ class: "", type: "text", modelValue: "", }); const __VLS_fnComponent = (await import('vue')).defineComponent({ __typeEmits: {}, }); ; let __VLS_functionalComponentProps; 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)({ ...{ onInput: (__VLS_ctx.handleInput) }, type: ((props.type)), placeholder: ((props.placeholder)), ...{ class: ((__VLS_ctx.cn(__VLS_ctx.inputTheme.input, props.class))) }, }); (__VLS_ctx.modelValue); var __VLS_slots; var __VLS_inheritedAttrs; const __VLS_refs = {}; var $refs; return { slots: __VLS_slots, refs: $refs, attrs: {}, }; } ; const __VLS_self = (await import('vue')).defineComponent({ setup() { return { cn: cn, inputTheme: inputTheme, modelValue: modelValue, handleInput: handleInput, }; }, __typeEmits: {}, __typeProps: {}, props: {}, }); export default (await import('vue')).defineComponent({ setup() { return {}; }, __typeEmits: {}, __typeProps: {}, props: {}, }); ;