mirror of
https://github.com/supabase/supabase.git
synced 2026-06-17 05:08:49 +08: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>
43 lines
1.4 KiB
TypeScript
43 lines
1.4 KiB
TypeScript
import { ChevronUp } from 'lucide-react'
|
|
import { cn } from 'ui'
|
|
import { ShimmeringLoader } from 'ui-patterns/ShimmeringLoader'
|
|
|
|
export interface RoleRowSkeletonProps {
|
|
index?: number
|
|
}
|
|
|
|
export const RoleRowSkeleton = ({ index }: RoleRowSkeletonProps) => {
|
|
return (
|
|
<div
|
|
className={cn([
|
|
'bg-surface-100',
|
|
'data-open:bg-selection',
|
|
'border-default',
|
|
'data-open:border-strong',
|
|
'data-open:pb-px col-span-12 mx-auto',
|
|
'-space-y-px overflow-hidden',
|
|
'border border-t-0 first:border-t first:mt-0! shadow-sm transition',
|
|
'first:rounded-tl first:rounded-tr',
|
|
'last:rounded-bl last:rounded-br',
|
|
])}
|
|
>
|
|
<div className="flex w-full items-center justify-between rounded-sm py-3 px-6 text-foreground">
|
|
<div className="flex items-start space-x-3">
|
|
<ChevronUp
|
|
id="collapsible-trigger"
|
|
className="text-border-stronger rotate-180"
|
|
strokeWidth={2}
|
|
width={14}
|
|
/>
|
|
<div className="space-x-2 flex items-center">
|
|
<ShimmeringLoader className="h-4 w-20 py-0 my-0.5" delayIndex={index} />
|
|
<ShimmeringLoader className="h-4 w-16 py-0 my-0.5" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
|
|
<ShimmeringLoader className="h-4 w-[90px] py-0 my-0.5" delayIndex={index} />
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|