The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
imports fixed
Jonathan Summers-Muir703a71046898
diff --git a/packages/ui/src/components/Command/AiCommand.tsx b/packages/ui/src/components/Command/AiCommand.tsxindex 48a35a8c788..e0a1cb73caf 100644--- a/packages/ui/src/components/Command/AiCommand.tsx+++ b/packages/ui/src/components/Command/AiCommand.tsx@@ -30,7 +30,7 @@ import { AiWarning } from './Command.alerts'import { useCommandMenu } from './CommandMenuProvider'import ReactMarkdown from 'react-markdown'-import { cn } from './../../utils/cn'+import { cn } from './../../lib/utils'import remarkGfm from 'remark-gfm'const questions = [diff --git a/packages/ui/src/components/Command/Command.utils.tsx b/packages/ui/src/components/Command/Command.utils.tsxindex f7796e4a9b1..ee020395eb9 100644--- a/packages/ui/src/components/Command/Command.utils.tsx+++ b/packages/ui/src/components/Command/Command.utils.tsx@@ -1,7 +1,7 @@import { Command as CommandPrimitive } from 'cmdk-supabase'import * as React from 'react'-import { cn } from './../../utils/cn'+import { cn } from './../../lib/utils'import { DetailedHTMLProps, HTMLAttributes, KeyboardEventHandler } from 'react'import { Modal } from '../Modal'diff --git a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsxindex f25aec4fcbb..d4945fde0ce 100644--- a/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx+++ b/packages/ui/src/components/Command/GenerateSQL/GenerateSQL.tsx@@ -16,7 +16,7 @@ import {UseAiChatOptions,} from 'ui'-import { cn } from '../../../utils/cn'+import { cn } from './../../../lib/utils'import { AiIcon, AiIconChat } from '../Command.icons'import { CommandItem, useAutoInputFocus, useHistoryKeys } from '../Command.utils'import { useCommandMenu } from '../CommandMenuProvider'diff --git a/packages/ui/src/components/Command/LoadingLine.tsx b/packages/ui/src/components/Command/LoadingLine.tsxindex 6e2c172c579..1e590e092b1 100644--- a/packages/ui/src/components/Command/LoadingLine.tsx+++ b/packages/ui/src/components/Command/LoadingLine.tsx@@ -1,5 +1,5 @@import React from 'react'-import { cn } from '../../utils/cn'+import { cn } from './../../lib/utils'export const LoadingLine = ({ loading }: { loading: boolean }) => {return (diff --git a/packages/ui/src/components/Dropdown/Dropdown.tsx b/packages/ui/src/components/Dropdown/Dropdown.tsxindex 760197c5919..9e9d688f687 100644--- a/packages/ui/src/components/Dropdown/Dropdown.tsx+++ b/packages/ui/src/components/Dropdown/Dropdown.tsx@@ -7,7 +7,7 @@ import type * as RadixDropdownTypes from '@radix-ui/react-dropdown-menu/'import styleHandler from '../../lib/theme/styleHandler'import { IconTarget } from '../Icon/icons/IconTarget'-import { cn } from '../../utils/cn'+import { cn } from './../../lib/utils'interface RootProps extends RadixDropdownTypes.DropdownMenuProps {open?: booleandiff --git a/packages/ui/src/components/Icon/IconContext.tsx b/packages/ui/src/components/Icon/IconContext.tsxindex 4d2198bdfe7..8184753831a 100644--- a/packages/ui/src/components/Icon/IconContext.tsx+++ b/packages/ui/src/components/Icon/IconContext.tsx@@ -1,10 +1,11 @@import { createContext } from 'react'+import { SizeVariantProps } from '../../lib/commonCva'-type ContextValue = { contextSize?: string; className?: string }+type ContextValue = { contextSize?: SizeVariantProps; className?: string }// Make sure the shape of the default value passed to// createContext matches the shape that the consumers expect!export const IconContext = createContext<ContextValue>({- contextSize: '',+ contextSize: 'small',className: '',})diff --git a/packages/ui/src/components/Radio/Radio.tsx b/packages/ui/src/components/Radio/Radio.tsxindex 091465b32e1..abdef38a752 100644--- a/packages/ui/src/components/Radio/Radio.tsx+++ b/packages/ui/src/components/Radio/Radio.tsx@@ -7,7 +7,7 @@ import { useFormContext } from '../Form/FormContext'import defaultTheme from '../../lib/theme/defaultTheme'import styleHandler from '../../lib/theme/styleHandler'-import randomIdGenerator from './../../utils/randomIdGenerator'+import randomIdGenerator from './../../lib/utils/randomIdGenerator'interface GroupProps {allowedValues?: anydiff --git a/packages/ui/src/components/ThemeProvider/ThemeProvider.tsx b/packages/ui/src/components/ThemeProvider/ThemeProvider.tsxindex 334587987f1..8d52b41f088 100644--- a/packages/ui/src/components/ThemeProvider/ThemeProvider.tsx+++ b/packages/ui/src/components/ThemeProvider/ThemeProvider.tsx@@ -3,7 +3,7 @@ import { createContext } from 'react'import defaultTheme from '../../lib/theme/defaultTheme'-import { mergeDeep } from '../../utils/mergeDeep'+import { mergeDeep } from './../../lib/utils'// import useDarkMode from './utils/useDarkMode'interface ThemeContextInterface {diff --git a/packages/ui/src/lib/theme/themeContext.tsx b/packages/ui/src/lib/theme/themeContext.tsxindex 3e0fbcfc011..ff7ec212672 100644--- a/packages/ui/src/lib/theme/themeContext.tsx+++ b/packages/ui/src/lib/theme/themeContext.tsx@@ -2,7 +2,7 @@ import React, { useLayoutEffect, useMemo } from 'react'import { createContext } from 'react'import defaultTheme from './defaultTheme'-import { mergeDeep } from '../../utils/mergeDeep'+import { mergeDeep } from './../../lib/utils'// import useDarkMode from './utils/useDarkMode'interface ThemeContextInterface {diff --git a/studio/components/interfaces/SignIn/SignInWithSSO.tsx b/studio/components/interfaces/SignIn/SignInWithSSO.tsxindex 913aafb6500..6bfc8535163 100644--- a/studio/components/interfaces/SignIn/SignInWithSSO.tsx+++ b/studio/components/interfaces/SignIn/SignInWithSSO.tsx@@ -3,12 +3,10 @@ import { Button, IconLock } from 'ui'const SignInWithSSO = () => {return (- <Link href="/sign-in-sso">- <a>- <Button block size="large" type="outline" icon={<IconLock width={18} height={18} />}>- Continue with SSO- </Button>- </a>+ <Link href={'/sign-in-sso'} passHref>+ <Button block size="large" type="outline" icon={<IconLock width={18} height={18} />} asChild>+ <a>Continue with SSO</a>+ </Button></Link>)}