mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
This PR migrates the whole monorepo to use Tailwind v4: - Removed `@tailwindcss/container-queries` plugin since it's included by default in v4, - Bump all instances of Tailwind to v4. Made minimal changes to the shared config to remove non-supported features (`alpha` mentions), - Migrate all apps to be compatible with v4 configs, - Fix the `typography.css` import in 3 apps, - Add missing rules which were included by default in v3, - Run `pnpm dlx @tailwindcss/upgrade` on all apps, which renames a lot of classes - Rename all misnamed classes according to https://tailwindcss.com/docs/upgrade-guide#renamed-utilities in all apps. --------- Co-authored-by: Jordi Enric <jordi.err@gmail.com>
26 lines
778 B
TypeScript
26 lines
778 B
TypeScript
import { motion } from 'framer-motion'
|
|
|
|
import { EntityTypeIcon } from '@/components/ui/EntityTypeIcon'
|
|
import { useTabsStateSnapshot } from '@/state/tabs'
|
|
|
|
export const TabPreview = ({ tab }: { tab: string }) => {
|
|
const tabs = useTabsStateSnapshot()
|
|
|
|
const tabData = tabs.tabsMap[tab]
|
|
|
|
if (!tabData) return null
|
|
|
|
return (
|
|
<motion.div
|
|
layoutId={tab}
|
|
transition={{ duration: 0.045 }}
|
|
animate={{ opacity: 0.7 }}
|
|
className="flex relative items-center gap-2 px-3 text-xs bg-dash-sidebar dark:bg-surface-100 shadow-lg rounded-xs h-10"
|
|
>
|
|
<EntityTypeIcon type={tabData.type} />
|
|
<span>{tabData.label || 'Untitled'}</span>
|
|
<div className="absolute w-full top-0 left-0 right-0 h-px bg-foreground-muted" />
|
|
</motion.div>
|
|
)
|
|
}
|