* chore: add storybook * chore: unify FE codeabse * chore: update eslint rules * chore: harmonize the use of "subtle" color * chore: remove an extra sidebar rail * refactor: make panel items more consistent * chore: cleanups after merging new code from base * refactor: refine composables * fix: add lost import * chore: make icon style consistent * fix: don't show empty "supported" methods * refactor: solidify select items
40 lines
944 B
Vue
40 lines
944 B
Vue
<script setup lang="ts">
|
|
/**
|
|
* @component AppDialogDescription
|
|
* @description Supporting text for a dialog title.
|
|
*/
|
|
import { cn } from '@/utils/ui';
|
|
import { reactiveOmit } from '@vueuse/core';
|
|
import type { DialogDescriptionProps } from 'reka-ui';
|
|
import { DialogDescription, useForwardProps } from 'reka-ui';
|
|
import type { HTMLAttributes } from 'vue';
|
|
|
|
/*
|
|
* Types & Interfaces.
|
|
*/
|
|
|
|
export interface AppDialogDescriptionProps extends DialogDescriptionProps {
|
|
class?: HTMLAttributes['class'];
|
|
}
|
|
|
|
/*
|
|
* Component Setup.
|
|
*/
|
|
|
|
const props = defineProps<AppDialogDescriptionProps>();
|
|
|
|
const delegatedProps = reactiveOmit(props, 'class');
|
|
|
|
const forwardedProps = useForwardProps(delegatedProps);
|
|
</script>
|
|
|
|
<template>
|
|
<DialogDescription
|
|
data-slot="dialog-description"
|
|
v-bind="forwardedProps"
|
|
:class="cn('text-subtle-foreground text-sm', props.class)"
|
|
>
|
|
<slot />
|
|
</DialogDescription>
|
|
</template>
|