Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Unify Vue components (#3593)
Olga Bulat6b8c52a82072
diff --git a/frontend/src/components/VButton.vue b/frontend/src/components/VButton.vueindex a2f45a63a..e04311964 100644--- a/frontend/src/components/VButton.vue+++ b/frontend/src/components/VButton.vue@@ -1,32 +1,24 @@<template><Component:is="as"- :type="typeRef"- class="group/button flex appearance-none items-center justify-center rounded-sm no-underline"+ :type="typeAttribute"+ class="group/button button flex appearance-none items-center justify-center rounded-sm no-underline":class="[- $style.button,- $style[variant],- $style[`size-${size}${iconOnly ? '-icon-only' : ''}`],+ variantClass,connectionStyles,+ size,{- [$style[`${variant}-pressed`]]: isActive,- [$style[`icon-start-${size}`]]: hasIconStart,- [$style[`icon-end-${size}`]]: hasIconEnd,- [$style[`icon-only`]]: iconOnly,- 'gap-x-2':- (hasIconEnd || hasIconStart) && (size == 'medium' || size == 'large'),- 'gap-x-1': (hasIconEnd || hasIconStart) && size == 'small',- // Custom tailwind classes don't work with CSS modules in Vue, so they are- // written here explicitly instead of accessed off of `$style`.+ 'icon-only': iconOnly,+ 'icon-start': hasIconStart,+ 'icon-end': hasIconEnd,+ border: !isPlainDangerous,'focus-slim-filled': isFocusSlimFilled,'focus-slim-tx': isFocusSlimTx,- 'focus-bold-filled ': variant === 'dropdown-label-pressed',- border: !isPlainDangerous,},]":aria-pressed="pressed"- :aria-disabled="ariaDisabledRef"- :disabled="disabledAttributeRef"+ :aria-disabled="ariaDisabled"+ :disabled="disabledAttribute"v-bind="$attrs"v-on="$listeners">@@ -38,7 +30,7 @@</template><script lang="ts">-import { defineComponent, ref, watch, toRefs, computed, PropType } from "vue"+import { defineComponent, watch, computed, PropType } from "vue"import { warn } from "~/utils/console"@@ -193,14 +185,9 @@ const VButton = defineComponent({},},setup(props, { attrs }) {- const propsRef = toRefs(props)- const disabledAttributeRef = ref<boolean | undefined>(- propsRef.disabled.value+ const typeAttribute = computed<ButtonType | undefined>(() =>+ props.as === "VLink" ? undefined : props.type)- const ariaDisabledRef = ref<boolean>()- const trulyDisabledRef = ref<boolean>()- const typeRef = ref<ButtonType | undefined>(propsRef.type.value)- const supportsDisabledAttributeRef = ref(true)const connectionStyles = computed(() =>props.connections@@ -209,15 +196,20 @@ const VButton = defineComponent({)const isActive = computed(() => {- return (- propsRef.pressed.value ||- attrs["aria-pressed"] ||- attrs["aria-expanded"]- )+ return props.pressed || attrs["aria-pressed"] || attrs["aria-expanded"]+ })+ const variantClass = computed(() => {+ if (+ isActive.value &&+ ["bordered-white", "transparent-dark"].includes(props.variant)+ ) {+ return `${props.variant}-pressed`+ }+ return props.variant})const isPlainDangerous = computed(() => {- return propsRef.variant.value === "plain--avoid"+ return props.variant === "plain--avoid"})const isFocusSlimFilled = computed(() => {return props.variant.startsWith("filled-")@@ -226,33 +218,29 @@ const VButton = defineComponent({return (props.variant.startsWith("bordered-") ||props.variant.startsWith("transparent-") ||- ["dropdown-label", "plain"].includes(props.variant)+ props.variant === "plain")})- watch(- [propsRef.disabled, propsRef.focusableWhenDisabled],- ([disabled, focusableWhenDisabled]) => {- trulyDisabledRef.value = disabled && !focusableWhenDisabled+ const supportsDisabledAttribute = computed(() => props.as !== "VLink")+ const ariaDisabled = computed<true | undefined>(+ () =>// If disabled and focusable then use `aria-disabled` instead of the `disabled` attribute to allow// the button to still be tabbed into by screen reader users- if (disabled && focusableWhenDisabled) {- ariaDisabledRef.value = true- } else {- ariaDisabledRef.value = undefined- }- },- { immediate: true }+ (props.disabled && props.focusableWhenDisabled) || undefined)+ const disabledAttribute = computed<true | undefined>(() => {+ const trulyDisabled = props.disabled && !props.focusableWhenDisabled++ return (trulyDisabled && supportsDisabledAttribute.value) || undefined+ })+watch(- propsRef.as,+ () => props.as,(as) => {- if (["VLink"].includes(as)) {- typeRef.value = undefined- supportsDisabledAttributeRef.value = false- } else if (["a", "NuxtLink"].includes(as)) {+ if (["a", "NuxtLink"].includes(as)) {warn(`Please use \`VLink\` with an \`href\` prop instead of ${as} for the button component`)@@ -261,21 +249,14 @@ const VButton = defineComponent({{ immediate: true })- watch(- [trulyDisabledRef, supportsDisabledAttributeRef],- ([trulyDisabled, supportsDisabled]) => {- disabledAttributeRef.value =- trulyDisabled && supportsDisabled ? true : undefined- },- { immediate: true }- )-return {- disabledAttributeRef,- ariaDisabledRef,- typeRef,- isActive,+ variantClass,connectionStyles,+ disabledAttribute,+ ariaDisabled,+ typeAttribute,+ isActive,+isPlainDangerous,isFocusSlimFilled,isFocusSlimTx,@@ -286,90 +267,50 @@ const VButton = defineComponent({export default VButton</script>-<style module>+<style scoped>.button[disabled="disabled"],.button[aria-disabled="true"] {@apply cursor-not-allowed;}-.size-small {- @apply h-8 px-2 py-0;-}-.size-small-icon-only {- @apply h-8 w-8;-}-.icon-start-small {- @apply ps-1;-}-.icon-end-small {- @apply pe-1;-}--.size-medium {- @apply h-10 px-3 py-0;-}-.size-medium-icon-only {- @apply h-10 w-10;-}-.icon-start-medium {- @apply ps-2;-}-.icon-end-medium {- @apply pe-2;+a.button {+ @apply no-underline hover:no-underline;}-.size-large {- @apply h-12 px-5 py-0;-}-.size-large-icon-only {- @apply h-12 w-12;-}-.icon-start-large {- @apply ps-4;-}-.icon-end-large {- @apply pe-4;+.connection-start {+ @apply rounded-s-none;}--.size-larger-icon-only {- @apply h-16 w-16;+.connection-end {+ @apply rounded-e-none;}--.icon-only {- @apply flex-none;+.connection-top {+ @apply rounded-se-none rounded-ss-none;}--a.button {- @apply no-underline hover:no-underline;+.connection-bottom {+ @apply rounded-ee-none rounded-es-none;}.filled-pink {@apply border-tx bg-pink text-white hover:bg-dark-pink hover:text-white;}-.filled-dark {@apply border-tx bg-dark-charcoal text-white hover:bg-dark-charcoal-90 hover:text-white disabled:opacity-70;}-.filled-gray {@apply border-tx bg-dark-charcoal-10 text-dark-charcoal hover:bg-dark-charcoal hover:text-white;}-.filled-white {@apply border-tx bg-white text-dark-charcoal hover:bg-dark-charcoal hover:text-white;}-.bordered-white {@apply border-white bg-white text-dark-charcoal hover:border-dark-charcoal-20;}.bordered-white-pressed {- @apply border border-tx bg-dark-charcoal text-white hover:border-dark-charcoal-90 hover:bg-dark-charcoal-90;+ @apply border-tx bg-dark-charcoal text-white hover:border-dark-charcoal-90 hover:bg-dark-charcoal-90 hover:focus-visible:border-tx;}-.bordered-gray {- @apply border-dark-charcoal-20 bg-white text-dark-charcoal hover:border-dark-charcoal;+ @apply border-dark-charcoal-20 bg-white text-dark-charcoal hover:border-dark-charcoal hover:focus-visible:border-tx;}-.transparent-tx {@apply border-tx;}@@ -383,25 +324,52 @@ a.button {@apply border-tx bg-dark-charcoal text-white hover:border-dark-charcoal-90;}-.dropdown-label {- @apply border-dark-charcoal-20 bg-white text-dark-charcoal hover:border-tx hover:bg-dark-charcoal hover:text-white;+.icon-only {+ @apply flex-none;}-.dropdown-label-pressed {- @apply border-tx bg-dark-charcoal text-white active:hover:border-white;+.small {+ @apply h-8 px-2 py-0;+}+.small.icon-only {+ @apply w-8 p-0;+}+.small.icon-start {+ @apply gap-x-1 ps-1;+}+.small.icon-end {+ @apply gap-x-1 pe-1;}-</style>-<style scoped>-.connection-start {- @apply rounded-s-none;+.medium {+ @apply h-10 px-3 py-0;}-.connection-end {- @apply rounded-e-none;+.medium.icon-only {+ @apply w-10 p-0;}-.connection-top {- @apply rounded-se-none rounded-ss-none;+.medium.icon-start {+ @apply gap-x-2 ps-2;}-.connection-bottom {- @apply rounded-ee-none rounded-es-none;+.medium.icon-end {+ @apply gap-x-2 pe-2;+}++.large {+ @apply h-12 px-5 py-0;+}+.large.icon-only {+ @apply w-12 p-0;+}+.large.icon-start {+ @apply gap-x-2 ps-4;+}+.large.icon-end {+ @apply gap-x-2 pe-4;+}++.larger {+ @apply h-16;+}+.larger.icon-only {+ @apply w-16;}</style>diff --git a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vueindex 7d91feb19..a053aac6b 100644--- a/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue+++ b/frontend/src/components/VHeader/VHeaderMobile/VContentSettingsModalContent.vue@@ -4,7 +4,7 @@:hide-on-click-outside="true":hide="close":visible="visible"- :variant="showFilters ? 'two-thirds' : 'fit-content'"+ :variant="variant"class="flex items-center"><VTabs@@ -121,6 +121,10 @@ export default defineComponent({VTabs,},props: {+ variant: {+ type: String as PropType<"fit-content" | "two-thirds">,+ default: "fit-content",+ },isFetching: {type: Boolean,default: false,diff --git a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vueindex 7d09ff887..09632421b 100644--- a/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue+++ b/frontend/src/components/VHeader/VHeaderMobile/VHeaderMobile.vue@@ -85,6 +85,7 @@/><VContentSettingsModalContentv-show="!searchBarIsActive"+ variant="two-thirds":visible="contentSettingsOpen":is-fetching="isFetching":close="closeContentSettings"diff --git a/frontend/src/components/VHomepageContent.vue b/frontend/src/components/VHomepageContent.vueindex 3fe007fd1..c68caf20d 100644--- a/frontend/src/components/VHomepageContent.vue+++ b/frontend/src/components/VHomepageContent.vue@@ -49,6 +49,7 @@:visible="isContentSwitcherVisible":use-links="false":show-filters="false"+ variant="fit-content"@open="openContentSwitcher"@select="handleSelect"/>diff --git a/frontend/src/components/VItemGroup/VItem.vue b/frontend/src/components/VItemGroup/VItem.vueindex 7124d77cb..489908f6f 100644--- a/frontend/src/components/VItemGroup/VItem.vue+++ b/frontend/src/components/VItemGroup/VItem.vue@@ -1,33 +1,33 @@<template><divclass="flex"- :class="{- [$style[contextProps.direction]]: true,- [`border border-dark-charcoal-20 ${- $style[`${contextProps.direction}-bordered`]- }`]: contextProps.bordered,- 'bg-dark-charcoal-10':- selected && contextProps.bordered && contextProps.showCheck,- 'px-2': isInPopover,- 'hover:bg-dark-charcoal-10': !isInPopover,- [$style[`${contextProps.direction}-popover-item`]]: isInPopover,- 'has-check': contextProps.showCheck,- 'font-semibold': selected && !contextProps.showCheck,- }"+ :class="[+ contextProps.direction,+ {+ [`${contextProps.direction}-bordered`]: contextProps.bordered,+ [`${contextProps.direction}-popover-item`]: isInPopover,+ 'border border-dark-charcoal-20': contextProps.bordered,+ 'has-check': contextProps.showCheck,+ 'font-semibold': selected && !contextProps.showCheck,+ 'bg-dark-charcoal-10':+ selected && contextProps.bordered && contextProps.showCheck,+ },+ isInPopover ? 'px-2' : 'hover:bg-dark-charcoal-10',+ ]"><VButtondata-item-group-item:as="as"- class="group relative flex min-w-full justify-between border-0 py-2 hover:bg-dark-charcoal-10 focus:z-10"- :class="[- $style[`${contextProps.direction}-button`],- $style[`${contextProps.size}-button`],- selected &&- contextProps.showCheck &&- 'bg-dark-charcoal-10 ring-offset-dark-charcoal-10',- as === 'VLink' && 'text-dark-charcoal',- !contextProps.showCheck && 'px-2',- ]"+ class="group relative flex min-w-full justify-between border-0 hover:bg-dark-charcoal-10 focus:z-10"+ :class="{+ 'w-max': contextProps.direction === 'horizontal',+ 'p-3': contextProps.size === 'small',+ 'p-5 ps-6': contextProps.size === 'medium',+ 'bg-dark-charcoal-10 ring-offset-dark-charcoal-10':+ selected && contextProps.showCheck,+ 'text-dark-charcoal': as === 'VLink',+ 'px-2': !contextProps.showCheck,+ }"variant="transparent-tx"size="disabled":pressed="selected"@@ -44,7 +44,7 @@><divclass="flex w-full flex-grow gap-x-2 whitespace-nowrap rounded-sm"- :class="[$style[`${contextProps.direction}-content`]]"+ :class="[`${contextProps.direction}-content`]"><slot name="default" /></div>@@ -173,11 +173,8 @@ export default defineComponent({},})</script>-<style module>-.button:focus {- @apply z-10;-}+<style scoped>.vertical {@apply min-w-max;}@@ -206,10 +203,6 @@ export default defineComponent({@apply pb-0;}-.horizontal-button {- @apply w-max;-}-.horizontal-bordered {@apply border-e border-s-0 border-dark-charcoal-20;}@@ -237,10 +230,4 @@ export default defineComponent({.horizontal-popover-item:last-of-type {@apply pe-2;}-.small-button {- @apply p-3;-}-.medium-button {- @apply p-5 ps-6;-}</style>diff --git a/frontend/src/components/VLogoLoader/VLogoLoader.vue b/frontend/src/components/VLogoLoader/VLogoLoader.vueindex 83de5ffca..e77cbeb28 100644--- a/frontend/src/components/VLogoLoader/VLogoLoader.vue+++ b/frontend/src/components/VLogoLoader/VLogoLoader.vue@@ -3,7 +3,7 @@viewBox="0 0 34 32"xmlns="http://www.w3.org/2000/svg":class="{- [$style.loading]: status === 'loading' && !prefersReducedMotion,+ loading: status === 'loading' && !prefersReducedMotion,'h-10 w-10': autoResize,'h-12 w-12': !autoResize,}"@@ -65,7 +65,7 @@ export default defineComponent({})</script>-<style module>+<style scoped>/**Openverse Logo Loaderdiff --git a/frontend/src/components/VMediaInfo/VByLine/VSourceCreatorButton.vue b/frontend/src/components/VMediaInfo/VByLine/VSourceCreatorButton.vueindex 723cde5f0..ea197a87e 100644--- a/frontend/src/components/VMediaInfo/VByLine/VSourceCreatorButton.vue+++ b/frontend/src/components/VMediaInfo/VByLine/VSourceCreatorButton.vue@@ -3,7 +3,7 @@as="VLink"size="small"has-icon-start- class="label-bold !bg-dark-charcoal-10 hover:!bg-dark-charcoal hover:text-white sm:!bg-tx"+ class="label-bold !bg-dark-charcoal-10 hover:!bg-dark-charcoal hover:!text-white sm:!bg-tx"variant="transparent-gray":href="href">diff --git a/frontend/src/components/VModal/VModalContent.vue b/frontend/src/components/VModal/VModalContent.vueindex 37e38ad1f..995c5e82e 100644--- a/frontend/src/components/VModal/VModalContent.vue+++ b/frontend/src/components/VModal/VModalContent.vue@@ -1,11 +1,13 @@<template><VTeleport v-if="visible" to="modal"><div- class="fixed inset-0 z-40 flex justify-center overflow-y-auto bg-dark-charcoal bg-opacity-75"+ class="fixed inset-0 z-40 flex h-[100dvh] max-h-[100dvh] justify-center overflow-y-auto bg-dark-charcoal bg-opacity-75":class="[- $style['modal-backdrop'],- $style[`modal-backdrop-${variant}`],- $style[`modal-backdrop-${mode}`],+ {+ 'bg-dark-charcoal bg-opacity-75':+ variant === 'fit-content' || variant === 'two-thirds',+ 'flex-col items-center': variant === 'centered',+ },contentClasses,]">@@ -15,7 +17,21 @@ref="dialogRef"v-bind="$attrs"class="flex flex-col"- :class="[$style[`modal-${variant}`], $style[`modal-${mode}`]]"+ :class="[+ mode === 'dark'+ ? 'bg-black text-white'+ : 'bg-white text-dark-charcoal',+ {+ 'w-full md:max-w-[768px] lg:w-[768px] xl:w-[1024px] xl:max-w-[1024px]':+ variant === 'default',+ 'w-full': variant === 'full',+ 'mt-auto h-2/3 w-full rounded-se-lg rounded-ss-lg bg-white':+ variant === 'two-thirds',+ 'mt-auto w-full rounded-se-lg rounded-ss-lg bg-white':+ variant === 'fit-content',+ 'm-6 rounded sm:m-0': variant === 'centered',+ },+ ]"role="dialog"aria-modal="true"v-on="$listeners"@@ -31,8 +47,7 @@--><divv-if="variant === 'default'"- class="flex w-full shrink-0 justify-between py-4 pe-3 ps-4 md:justify-end md:bg-tx md:px-0 md:py-3"- :class="[$style[`top-bar-${variant}`], $style[`top-bar-${mode}`]]"+ class="flex w-full shrink-0 justify-between bg-white py-4 pe-3 ps-4 md:justify-end md:bg-tx md:px-0 md:py-3"><VIconButtonref="closeButton"@@ -45,11 +60,22 @@</slot><div- class="flex w-full flex-grow flex-col"- :class="[- $style[`modal-content-${variant}`],- $style[`modal-content-${mode}`],- ]"+ class="modal-content flex w-full flex-grow flex-col"+ :class="{+ 'text-left align-bottom md:rounded-se-lg md:rounded-ss-lg':+ variant === 'default',+ 'w-auto rounded': variant === 'centered',+ 'mt-auto w-full rounded-se-lg rounded-ss-lg bg-white':+ variant === 'fit-content',+ 'flex w-full flex-col justify-between px-6 pb-10':+ variant === 'full',+ 'overflow-y-hidden rounded-se-lg rounded-ss-lg':+ variant === 'two-thirds',+ 'bg-black text-white': mode === 'dark',+ 'bg-white text-dark-charcoal': mode === 'light',+ 'fallback-padding':+ variant === 'fit-content' || variant === 'two-thirds',+ }"><slot /></div>@@ -167,79 +193,14 @@ export default defineComponent({})</script>-<style module>-.top-bar-default {- @apply flex w-full shrink-0 justify-between bg-white py-4 pe-3 ps-4 md:justify-end md:bg-tx md:px-0 md:py-3;-}-.top-bar-full {- @apply flex h-20 w-full shrink-0 justify-between bg-dark-charcoal px-4 py-3 md:items-stretch md:justify-start md:px-7 md:py-4;-}-.top-bar-two-thirds {- @apply bg-tx;-}-.modal-backdrop {- @apply h-[100dvh] max-h-[100dvh];-}-.modal-backdrop-fit-content,-.modal-backdrop-two-thirds {- @apply bg-dark-charcoal bg-opacity-75;-}-.modal-backdrop-centered {- @apply flex-col items-center;-}--.modal-default {- @apply w-full md:max-w-[768px] lg:w-[768px] xl:w-[1024px] xl:max-w-[1024px];-}-.modal-full {- @apply w-full;-}-.modal-two-thirds {- @apply mt-auto h-2/3 w-full rounded-se-lg rounded-ss-lg bg-white;-}-.modal-centered {- @apply m-6 rounded sm:m-0;-}--.modal-dark {- @apply bg-black text-white;-}-.modal-light {- @apply bg-white text-dark-charcoal;-}--.modal-content-default {- @apply text-left align-bottom md:rounded-se-lg md:rounded-ss-lg;-}-.modal-content-centered {- @apply w-auto rounded;-}-.modal-fit-content {- @apply mt-auto w-full rounded-se-lg rounded-ss-lg bg-white;-}-.modal-content-full {- @apply flex w-full flex-col justify-between px-6 pb-10;-}-.modal-content-two-thirds {- @apply overflow-y-hidden rounded-se-lg rounded-ss-lg;-}-.modal-content-fit-content {- @apply rounded-se-lg rounded-ss-lg;-}-.modal-content-dark {- @apply bg-black text-white;-}-.modal-content-light {- @apply bg-white text-dark-charcoal;-}+<style scoped>/*For mobiles that do not support dvh units, we add a fallback paddingto the modal content to make sure that no clickable elements are hiddenby the address bar.*/@supports not (height: 100dvh) {- .modal-content-fit-content,- .modal-content-two-thirds {+ .modal-content.fallback-padding {@apply pb-10;}}diff --git a/frontend/src/components/VSnackbar.vue b/frontend/src/components/VSnackbar.vueindex 168bb5aef..6851c312b 100644--- a/frontend/src/components/VSnackbar.vue+++ b/frontend/src/components/VSnackbar.vue@@ -1,9 +1,11 @@<template><div:role="isVisible ? 'alert' : undefined"+ class="snackbar fixed bottom-4 z-snackbar rounded-sm bg-black text-white transition-[opacity,transform] duration-500 ltr:left-4 rtl:right-4 motion-reduce:transition-opacity":class="[- $style.snackbar,- $style[size],+ size === 'large'+ ? 'w-max max-w-[calc(100%_-_2_*_theme(spacing.4))] flex-row items-center px-6 py-4 text-sm'+ : 'w-2/3 flex-col items-start px-4 py-3 text-sr sm:w-2/5',isVisible? 'translate-y-0 opacity-100': 'translate-y-[4rem] opacity-0 motion-reduce:translate-y-0',@@ -35,17 +37,8 @@ export default defineComponent({})</script>-<style module>+<style scoped>.snackbar {- box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.3);- @apply fixed bottom-4 z-snackbar rounded-sm bg-black text-white transition-[opacity,transform] duration-500 ltr:left-4 rtl:right-4 motion-reduce:transition-opacity;-}--.large {- @apply w-max max-w-[calc(100%_-_2_*_theme(spacing.4))] flex-row items-center px-6 py-4 text-sm;-}--.small {- @apply w-2/3 flex-col items-start px-4 py-3 text-sr sm:w-2/5;+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);}</style>diff --git a/frontend/src/components/VTabs/VTab.vue b/frontend/src/components/VTabs/VTab.vueindex 9b80969d9..c947dcfd4 100644--- a/frontend/src/components/VTabs/VTab.vue+++ b/frontend/src/components/VTabs/VTab.vue@@ -8,11 +8,7 @@variant="plain--avoid"v-bind="tabProps"class="rounded-none bg-white focus-slim-tx"- :class="[- $style[variant],- $style[`size-${size}`],- isSelected && $style[`${variant}-selected`],- ]"+ :class="[variant, `size-${size}`, { [`${variant}-selected`]: isSelected }]"@click="handleSelection"@focus="handleFocus"@mousedown="handleMouseDown"@@ -204,7 +200,7 @@ export default defineComponent({})</script>-<style module>+<style scoped>.bordered {@apply rounded-se-sm rounded-ss-sm border-x border-t border-tx text-sm font-semibold md:text-base md:font-semibold md:leading-snug;}diff --git a/frontend/src/types/button.ts b/frontend/src/types/button.tsindex d5d7985be..e21e7e7d5 100644--- a/frontend/src/types/button.ts+++ b/frontend/src/types/button.ts@@ -19,8 +19,6 @@ export const buttonVariants = [...baseButtonVariants,"plain","plain--avoid",- "dropdown-label",- "dropdown-label-pressed",] as constexport type ButtonVariant = (typeof buttonVariants)[number]