The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
fixes
Jonathan Summers-Muir9ac3b64b5e26
diff --git a/packages/ui/.storybook/preview.css b/packages/ui/.storybook/preview.cssindex 2850c368505..b7058ac54f6 100644--- a/packages/ui/.storybook/preview.css+++ b/packages/ui/.storybook/preview.css@@ -4,83 +4,74 @@@import './../build/css/themes/dark.css';@import './../build/css/themes/light.css';-/* @import './../build/css/themes/darker-dark.css'; */-/*-.dark,-.light,-.light .docs-story,-.dark .docs-story {- @apply bg-body;-} */++@tailwind base;+@tailwind components;+@tailwind utilities;+@layer base {:root {- --background: var(--theme-variables-background-body); /* --background: 0 0% 100%; */- --foreground: var(--text-color-body-default); /* --foreground: 222.2 47.4% 11.2%; */+ --background: 0 0% 100%;+ --foreground: 240 10% 3.9%;- --muted: 210 40% 96.1%;- --muted-foreground: 215.4 16.3% 46.9%;+ --muted: 240 4.8% 95.9%;+ --muted-foreground: 240 3.8% 46.1%;- --popover: var(--theme-variables-background); /* --popover: 0 0% 100%; */- --popover-foreground: var(- --text-color-body-default- ); /* --popover-foreground: 222.2 47.4% 11.2%; */+ --popover: 0 0% 100%;+ --popover-foreground: 240 10% 3.9%;--card: 0 0% 100%;- --card-foreground: 222.2 47.4% 11.2%;+ --card-foreground: 240 10% 3.9%;- --border: 214.3 31.8% 91.4%;- --input: 214.3 31.8% 91.4%;+ --border: 240 5.9% 90%;+ --input: 240 5.9% 90%;- --primary: 222.2 47.4% 11.2%;- --primary-foreground: 210 40% 98%;+ --primary: 240 5.9% 10%;+ --primary-foreground: 0 0% 98%;- --secondary: 210 40% 96.1%;- --secondary-foreground: 222.2 47.4% 11.2%;+ --secondary: 240 4.8% 95.9%;+ --secondary-foreground: 240 5.9% 10%;- --accent: 210 40% 96.1%;- --accent-foreground: 222.2 47.4% 11.2%;+ --accent: 240 4.8% 95.9%;+ --accent-foreground: ;- --destructive: 0 100% 50%;- --destructive-foreground: 210 40% 98%;+ --destructive: 0 84.2% 60.2%;+ --destructive-foreground: 0 0% 98%;- --ring: 215 20.2% 65.1%;+ --ring: 240 5% 64.9%;--radius: 0.5rem;}.dark {- --background: var(--theme-variables-background-body); /* --background: 224 71% 4%; */- --foreground: var(--text-color-body-default); /* --foreground: 213 31% 91%; */-- --muted: var(--background-color-body); /* --muted: 223 47% 11%; */- --muted-foreground: 215.4 16.3% 56.9%;+ --background: 240 10% 3.9%;+ --foreground: 0 0% 98%;- --popover: var(--theme-variables-background); /* --popover: 224 71% 4%; */- --popover-foreground: var(- --text-color-body-default- ); /* --popover-foreground: 215 20.2% 65.1%; */+ --muted: 240 3.7% 15.9%;+ --muted-foreground: 240 5% 64.9%;- --card: 224 71% 4%;- --card-foreground: 213 31% 91%;+ --popover: 240 10% 3.9%;+ --popover-foreground: 0 0% 98%;- --border: var(--border-color-default); /* --border: 216 34% 17%; */- --input: 216 34% 17%;+ --card: 240 10% 3.9%;+ --card-foreground: 0 0% 98%;- --primary: 210 40% 98%;- --primary-foreground: 222.2 47.4% 1.2%;+ --border: 240 3.7% 15.9%;+ --input: 240 3.7% 15.9%;- --secondary: 222.2 47.4% 11.2%;- --secondary-foreground: 210 40% 98%;+ --primary: 0 0% 98%;+ --primary-foreground: 240 5.9% 10%;- --accent: 216 34% 17%;- --accent-foreground: 210 40% 98%;+ --secondary: 240 3.7% 15.9%;+ --secondary-foreground: 0 0% 98%;- --destructive: 0 63% 31%;- --destructive-foreground: 210 40% 98%;+ --accent: 240 3.7% 15.9%;+ --accent-foreground: ;- --ring: 216 34% 17%;+ --destructive: 0 62.8% 30.6%;+ --destructive-foreground: 0 85.7% 97.3%;- --radius: 0.5rem;+ --ring: 240 3.7% 15.9%;}}@@ -89,12 +80,38 @@@apply border-border;}body {- /* @apply bg-background text-foreground;- font-feature-settings: 'rlig' 1, 'calt' 1; */+ @apply bg-background text-foreground;+ font-feature-settings: 'rlig' 1, 'calt' 1;+ }+}+@layer utilities {+ .step {+ counter-increment: step;+ }++ .step:before {+ @apply absolute w-9 h-9 bg-muted rounded-full font-mono font-medium text-center text-base inline-flex items-center justify-center -indent-px border-4 border-background;+ @apply ml-[-50px] mt-[-4px];+ content: counter(step);+ }+}++@media (max-width: 640px) {+ .container {+ @apply px-4;+ }+}++@layer base {+ * {+ @apply border-border;+ }+ body {+ @apply bg-background text-foreground;@apply bg-body text-body;- font-family: 'Circular std';font-feature-settings: 'rlig' 1, 'calt' 1;+ font-family: 'Circular std';}}@@ -102,6 +119,6 @@.light,.light .docs-story,.dark .docs-story {- /* @apply bg-background text;- font-family: 'Circular std'; */+ @apply bg-background;+ font-family: 'Circular std';}diff --git a/packages/ui/src/components/Icon/IconContext.tsx b/packages/ui/src/components/Icon/IconContext.tsxindex f5c080bc1da..8184753831a 100644--- a/packages/ui/src/components/Icon/IconContext.tsx+++ b/packages/ui/src/components/Icon/IconContext.tsx@@ -1,4 +1,3 @@-import { SizeVariantProps } from '@ui/lib/commonCva'import { createContext } from 'react'import { SizeVariantProps } from '../../lib/commonCva'diff --git a/packages/ui/src/components/shadcn/dropdown-menu.tsx b/packages/ui/src/components/shadcn/dropdown-menu.tsxindex 367f8272719..76384aa3695 100644--- a/packages/ui/src/components/shadcn/dropdown-menu.tsx+++ b/packages/ui/src/components/shadcn/dropdown-menu.tsx@@ -1,14 +1,10 @@'use client'-/**- * started to update classnames with custom ones- */-import * as React from 'react'import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu'import { Check, ChevronRight, Circle } from 'lucide-react'-import { cn } from '@ui/lib/utils'+import { cn } from './../../lib/utils'const DropdownMenu = DropdownMenuPrimitive.Root@@ -31,7 +27,6 @@ const DropdownMenuSubTrigger = React.forwardRef<<DropdownMenuPrimitive.SubTriggerref={ref}className={cn(- // 'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent', // original'flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent',inset && 'pl-8',className@@ -51,11 +46,7 @@ const DropdownMenuSubContent = React.forwardRef<<DropdownMenuPrimitive.SubContentref={ref}className={cn(- /**- * this is same as DropdownMenuContent styles...- */- // 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1', // original- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-body-light shadow-md animate-in data-[side=bottom]:slide-in-from-top-1 data-[side=left]:slide-in-from-right-1 data-[side=right]:slide-in-from-left-1 data-[side=top]:slide-in-from-bottom-1',+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className)}{...props}@@ -72,8 +63,7 @@ const DropdownMenuContent = React.forwardRef<ref={ref}sideOffset={sideOffset}className={cn(- // 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', // original- 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-body-light shadow-md animate-in data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',+ 'z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',className)}{...props}@@ -91,8 +81,7 @@ const DropdownMenuItem = React.forwardRef<<DropdownMenuPrimitive.Itemref={ref}className={cn(- // 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50', //original- 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-body data-[disabled]:pointer-events-none data-[disabled]:opacity-50',+ 'relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50',inset && 'pl-8',className)}@@ -154,7 +143,7 @@ const DropdownMenuLabel = React.forwardRef<>(({ className, inset, ...props }, ref) => (<DropdownMenuPrimitive.Labelref={ref}- className={cn('px-2 py-1.5 text-sm font-normal', inset && 'pl-8', className)}+ className={cn('px-2 py-1.5 text-sm font-semibold', inset && 'pl-8', className)}{...props}/>))@@ -166,7 +155,7 @@ const DropdownMenuSeparator = React.forwardRef<>(({ className, ...props }, ref) => (<DropdownMenuPrimitive.Separatorref={ref}- className={cn('-mx-1 my-1 h-px bg-body', className)}+ className={cn('-mx-1 my-1 h-px bg-muted', className)}{...props}/>))