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.
89 lines (88 loc) • 4.96 kB
JavaScript
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
import { DialogContent, DialogOverlay, DialogPortal, useForwardPropsEmits, } from "radix-vue";
import { computed } from "vue";
import { cn } from "../../utils/cn";
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
let __VLS_typeProps;
const props = defineProps();
const restProps = computed(() => {
const { class: _, ...rest } = props;
return rest;
});
const emits = defineEmits();
const forwardPropsAndEmit = useForwardPropsEmits(restProps, emits);
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;
const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.DialogPortal;
/** @type { [typeof __VLS_components.DialogPortal, typeof __VLS_components.DialogPortal, ] } */
// @ts-ignore
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({}));
const __VLS_2 = __VLS_1({}, ...__VLS_functionalComponentArgsRest(__VLS_1));
const __VLS_6 = __VLS_resolvedLocalAndGlobalComponents.DialogOverlay;
/** @type { [typeof __VLS_components.DialogOverlay, typeof __VLS_components.DialogOverlay, ] } */
// @ts-ignore
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({ ...{ class: ((__VLS_ctx.cn('fixed inset-0 z-50 flex items-center justify-center overflow-auto bg-black bg-opacity-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0'))) }, }));
const __VLS_8 = __VLS_7({ ...{ class: ((__VLS_ctx.cn('fixed inset-0 z-50 flex items-center justify-center overflow-auto bg-black bg-opacity-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0'))) }, }, ...__VLS_functionalComponentArgsRest(__VLS_7));
const __VLS_12 = __VLS_resolvedLocalAndGlobalComponents.DialogContent;
/** @type { [typeof __VLS_components.DialogContent, typeof __VLS_components.DialogContent, ] } */
// @ts-ignore
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({ ...(__VLS_ctx.forwardPropsAndEmit), ...{ class: ((__VLS_ctx.cn('fixed left-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-y-5 border bg-white p-5 shadow-xLarge duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-xl dark:border-metal-900 dark:bg-metal-900', props.class))) }, }));
const __VLS_14 = __VLS_13({ ...(__VLS_ctx.forwardPropsAndEmit), ...{ class: ((__VLS_ctx.cn('fixed left-1/2 top-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-y-5 border bg-white p-5 shadow-xLarge duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-xl dark:border-metal-900 dark:bg-metal-900', props.class))) }, }, ...__VLS_functionalComponentArgsRest(__VLS_13));
var __VLS_18 = {};
__VLS_nonNullable(__VLS_17.slots).default;
const __VLS_17 = __VLS_pickFunctionalComponentCtx(__VLS_12, __VLS_14);
__VLS_nonNullable(__VLS_11.slots).default;
const __VLS_11 = __VLS_pickFunctionalComponentCtx(__VLS_6, __VLS_8);
__VLS_nonNullable(__VLS_5.slots).default;
const __VLS_5 = __VLS_pickFunctionalComponentCtx(__VLS_0, __VLS_2);
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 {
DialogContent: DialogContent,
DialogOverlay: DialogOverlay,
DialogPortal: DialogPortal,
cn: cn,
forwardPropsAndEmit: forwardPropsAndEmit,
};
},
__typeEmits: {},
__typeProps: {},
});
const __VLS_component = (await import('vue')).defineComponent({
setup() {
return {};
},
__typeEmits: {},
__typeProps: {},
});
export default {};
;