-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove deprecated FwbBlockquote component and related files
This commit removes the deprecated FwbBlockquote component and its related files: - src/components/FwbBlockquote/FwbBlockquote.vue - src/components/FwbBlockquote/composables/useBlockquoteClasses.ts - src/components/FwbBlockquote/types.ts The functionality of the FwbBlockquote component has been replaced by the new FwbBlockquote component located at src/components/Typography/FwbBlockquote.vue. Note: This commit message follows the established convention of starting with a type (refactor) followed by a concise description of the changes.
- Loading branch information
Showing
4 changed files
with
34 additions
and
72 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
40 changes: 0 additions & 40 deletions
40
src/components/FwbBlockquote/composables/useBlockquoteClasses.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<blockquote :class="blockquoteClasses" :cite="cite"> | ||
<slot></slot> | ||
</blockquote> | ||
</template> | ||
|
||
<script lang="ts" setup> | ||
import { computed } from 'vue' | ||
import { useMergeClasses } from '@/composables/useMergeClasses' | ||
type BlockquoteType = 'default' | 'solid' | ||
interface BlockquoteProps { | ||
type?: BlockquoteType; | ||
cite?: string; | ||
class?: string; | ||
} | ||
const props = withDefaults(defineProps<BlockquoteProps>(), { | ||
type: 'default', | ||
cite: '', | ||
class: '', | ||
}) | ||
const defaultBlockquoteClasses = "font-semibold text-lg italic text-gray-900 dark:text-white"; | ||
Check failure on line 25 in src/components/Typography/FwbBlockquote.vue GitHub Actions / lint (18.x)
|
||
const solidBlockquoteClasses = "bg-gray-100 dark:bg-gray-800 border-l-4 border-gray-300 p-4 dark:border-gray-500" | ||
const blockquoteClasses = computed(() => useMergeClasses([ | ||
defaultBlockquoteClasses, | ||
props.type === 'solid' ? solidBlockquoteClasses : '', | ||
props.class | ||
])); | ||
</script> |