mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 21:59:16 +03:00
* Add lucide-react to docs (to make the autocomplete work). * Migrate the docs app icons. * Migrate the ui-patterns. * Remove the old icons from ui package. * Migrate the www app from react-feather icons. * Migrate all of studio icons. * Migrate the only component in design-system. * Fix an old import in ui package. Revert an import in docs app. * Fix some pages in www. * Remove unneeded files used in generation of icons. * Fix a prettier error. * Fix more issues in www. * Fix an issue in Log Date picker. * Replace all string sizes with number sizes because the icons grew in some cases. * Fix more imports in security page. * Fix an extra import. * Remove the size prop from all icons if they're in a button and they match the button size. * Minor fixes for docs and www. --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
import ShimmeringLoader from 'components/ui/ShimmeringLoader'
|
|
import { ChevronUp } from 'lucide-react'
|
|
import { cn } from 'ui'
|
|
|
|
export interface RoleRowSkeletonProps {
|
|
index?: number
|
|
}
|
|
|
|
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 transition',
|
|
'first:rounded-tl first:rounded-tr',
|
|
'last:rounded-bl last:rounded-br',
|
|
])}
|
|
>
|
|
<div className="flex w-full items-center justify-between rounded 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>
|
|
)
|
|
}
|
|
|
|
export default RoleRowSkeleton
|