feat(core): remove all imports from design/component (#5078)

feat(core): remove all imports from design/component

feat(plugin): remove imports from design-components

feat(storybook): remove design-components imoprts

feat(core): remove

fix(component): remove design/component import in local-demo-tip
This commit is contained in:
Cats Juice
2023-12-04 08:32:16 +00:00
parent 0abadbe7bb
commit 9c50dbc362
122 changed files with 203 additions and 263 deletions

View File

@@ -17,7 +17,6 @@
"@affine/component": "workspace:*",
"@affine/sdk": "workspace:*",
"@blocksuite/icons": "2.1.36",
"@toeverything/components": "^0.0.46",
"@vanilla-extract/css": "^1.13.0",
"clsx": "^2.0.0",
"idb": "^7.1.1",

View File

@@ -1,5 +1,5 @@
import { FlexWrapper, Input } from '@affine/component';
import { Button } from '@toeverything/components/button';
import { Button } from '@affine/component/ui/button';
import { useAtom } from 'jotai';
import { type ReactElement, useCallback } from 'react';

View File

@@ -1,5 +1,5 @@
import { IconButton } from '@affine/component/ui/button';
import { SendIcon } from '@blocksuite/icons';
import { IconButton } from '@toeverything/components/button';
import { useAtomValue, useSetAtom } from 'jotai';
import type { ReactElement } from 'react';
import { Suspense, useCallback, useState } from 'react';

View File

@@ -1,7 +1,7 @@
import { IconButton } from '@affine/component/ui/button';
import { Tooltip } from '@affine/component/ui/tooltip';
import { deleteLayoutAtom, pushLayoutAtom } from '@affine/sdk/entry';
import { AiIcon } from '@blocksuite/icons';
import { IconButton } from '@toeverything/components/button';
import { Tooltip } from '@toeverything/components/tooltip';
import { useSetAtom } from 'jotai';
import type { ComponentType, PropsWithChildren, ReactElement } from 'react';
import { useCallback, useState } from 'react';

View File

@@ -1,5 +1,5 @@
import { Button } from '@affine/component/ui/button';
import { PlusIcon, ResetIcon } from '@blocksuite/icons';
import { Button } from '@toeverything/components/button';
import { clsx } from 'clsx';
import type { MessageType } from 'langchain/schema';
import { marked } from 'marked';