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.

74 lines (73 loc) 2.87 kB
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" /> import { computed } from "vue"; import { cn } from "../../utils/cn"; import { carouselTheme } from "./carouselTheme"; import { useCarousel } from "./useCarousel"; const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue'); let __VLS_typeProps; const props = defineProps(); const restProps = computed(() => { const { asChild, class: _, ...rest } = props; return rest; }); const { canScrollPrev, scrollPrev } = useCarousel(); const __VLS_fnComponent = (await import('vue')).defineComponent({}); ; 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; if (__VLS_ctx.asChild) { var __VLS_0 = { canScrollPrev: (__VLS_ctx.canScrollPrev), scrollPrev: (__VLS_ctx.scrollPrev), ...(__VLS_ctx.restProps), }; } else { __VLS_elementAsFunction(__VLS_intrinsicElements.button, __VLS_intrinsicElements.button)({ ...{ onClick: (__VLS_ctx.scrollPrev) }, ...(__VLS_ctx.restProps), ...{ class: ((__VLS_ctx.cn(__VLS_ctx.carouselTheme.controls.button.wrapper, props.class))) }, type: ("button"), disabled: ((!__VLS_ctx.canScrollPrev)), }); var __VLS_1 = {}; __VLS_elementAsFunction(__VLS_intrinsicElements.svg, __VLS_intrinsicElements.svg)({ ...{ class: ((__VLS_ctx.cn(__VLS_ctx.carouselTheme.controls.button.svg))) }, viewBox: ("0 0 532 532"), }); __VLS_elementAsFunction(__VLS_intrinsicElements.path)({ fill: ("currentColor"), d: ("M355.66 11.354c13.793-13.805 36.208-13.805 50.001 0 13.785 13.804 13.785 36.238 0 50.034L201.22 266l204.442 204.61c13.785 13.805 13.785 36.239 0 50.044-13.793 13.796-36.208 13.796-50.002 0a5994246.277 5994246.277 0 0 0-229.332-229.454 35.065 35.065 0 0 1-10.326-25.126c0-9.2 3.393-18.26 10.326-25.2C172.192 194.973 332.731 34.31 355.66 11.354Z"), }); } 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, carouselTheme: carouselTheme, restProps: restProps, canScrollPrev: canScrollPrev, scrollPrev: scrollPrev, }; }, __typeProps: {}, }); const __VLS_component = (await import('vue')).defineComponent({ setup() { return {}; }, __typeProps: {}, }); export default {}; ;