mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
chore: Clean the ui package from next imports (#44278)
This PR moves several components which rely on `next` out of the `ui` package to the `ui-patterns` package. `ui-patterns` package is intented to be imported with specific imports so it's ok if there are components reliant on `next` in there. The `SonnerToaster` component has removed its dependency by requiring a prop for `theme`.
This commit is contained in:
1 parent
e01fa312fb
commit
ee8eae7309
187 files changed
+912
-912
No files matched your search
+6
-6
@@ -1,22 +1,22 @@
|
||||
import { Loader2 } from 'lucide-react'
|
||||
import { MouseEvent, useState } from 'react'
|
||||
|
||||
import { GetIndexAdvisorResultResponse } from 'data/database/retrieve-index-advisor-result-query'
|
||||
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
|
||||
import { Loader2 } from 'lucide-react'
|
||||
import { MouseEvent, useState } from 'react'
|
||||
import {
|
||||
Button,
|
||||
cn,
|
||||
CodeBlock,
|
||||
HoverCard,
|
||||
HoverCardContent,
|
||||
HoverCardTrigger,
|
||||
Separator,
|
||||
WarningIcon,
|
||||
} from 'ui'
|
||||
import { IndexImprovementText } from './IndexImprovementText'
|
||||
import { QueryPanelScoreSection } from '../QueryPanel'
|
||||
import { CodeBlock } from 'ui-patterns/CodeBlock'
|
||||
|
||||
import { useIndexInvalidation } from '../hooks/useIndexInvalidation'
|
||||
import { QueryPanelScoreSection } from '../QueryPanel'
|
||||
import { createIndexes } from './index-advisor.utils'
|
||||
import { IndexImprovementText } from './IndexImprovementText'
|
||||
|
||||
interface IndexSuggestionIconProps {
|
||||
indexAdvisorResult: GetIndexAdvisorResultResponse
|
||||
|
||||
@@ -22,12 +22,12 @@ import {
|
||||
AlertTitle_Shadcn_,
|
||||
Button,
|
||||
cn,
|
||||
CodeBlock,
|
||||
Collapsible_Shadcn_,
|
||||
CollapsibleContent_Shadcn_,
|
||||
CollapsibleTrigger_Shadcn_,
|
||||
} from 'ui'
|
||||
import { Admonition } from 'ui-patterns'
|
||||
import { CodeBlock } from 'ui-patterns/CodeBlock'
|
||||
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
|
||||
|
||||
import { useIndexInvalidation } from './hooks/useIndexInvalidation'
|
||||
|
||||
@@ -8,7 +8,6 @@ import DataGrid, { Column, DataGridHandle, Row } from 'react-data-grid'
|
||||
import {
|
||||
Button,
|
||||
cn,
|
||||
CodeBlock,
|
||||
DropdownMenu,
|
||||
DropdownMenuContent,
|
||||
DropdownMenuItem,
|
||||
@@ -23,6 +22,7 @@ import {
|
||||
TabsTrigger_Shadcn_,
|
||||
} from 'ui'
|
||||
import { Admonition } from 'ui-patterns'
|
||||
import { CodeBlock } from 'ui-patterns/CodeBlock'
|
||||
import { InfoTooltip } from 'ui-patterns/info-tooltip'
|
||||
import { GenericSkeletonLoader } from 'ui-patterns/ShimmeringLoader'
|
||||
|
||||
|
||||
Reference in new issue
Block a user