From b27f3e5312c364189691a3111bf4c8ef08d7dbcd Mon Sep 17 00:00:00 2001 From: yingpengsha Date: Mon, 9 Oct 2023 16:53:13 +0800 Subject: [PATCH 1/2] :bug: fix: rename folder name --- src/{StroyBook => StoryBook}/demos/index.tsx | 0 src/{StroyBook => StoryBook}/index.md | 0 src/{StroyBook => StoryBook}/index.tsx | 0 src/{StroyBook => StoryBook}/style.ts | 0 src/index.ts | 2 +- 5 files changed, 1 insertion(+), 1 deletion(-) rename src/{StroyBook => StoryBook}/demos/index.tsx (100%) rename src/{StroyBook => StoryBook}/index.md (100%) rename src/{StroyBook => StoryBook}/index.tsx (100%) rename src/{StroyBook => StoryBook}/style.ts (100%) diff --git a/src/StroyBook/demos/index.tsx b/src/StoryBook/demos/index.tsx similarity index 100% rename from src/StroyBook/demos/index.tsx rename to src/StoryBook/demos/index.tsx diff --git a/src/StroyBook/index.md b/src/StoryBook/index.md similarity index 100% rename from src/StroyBook/index.md rename to src/StoryBook/index.md diff --git a/src/StroyBook/index.tsx b/src/StoryBook/index.tsx similarity index 100% rename from src/StroyBook/index.tsx rename to src/StoryBook/index.tsx diff --git a/src/StroyBook/style.ts b/src/StoryBook/style.ts similarity index 100% rename from src/StroyBook/style.ts rename to src/StoryBook/style.ts diff --git a/src/index.ts b/src/index.ts index 40178135..d5e69f55 100644 --- a/src/index.ts +++ b/src/index.ts @@ -122,7 +122,7 @@ export { type StroyBookProps, useControls, useCreateStore, -} from './StroyBook'; +} from './StoryBook'; export * from './styles'; export { default as Swatches, type SwatchesProps } from './Swatches'; export { default as TabsNav, type TabsNavProps } from './TabsNav'; From 8dfba164eddf899e09d602babd3c22ad87e2587d Mon Sep 17 00:00:00 2001 From: yingpengsha Date: Mon, 9 Oct 2023 16:59:06 +0800 Subject: [PATCH 2/2] :bug: fix: rename StroyBook with StoryBook --- src/ActionIcon/demos/CustomSize.tsx | 6 +++--- src/ActionIcon/demos/index.tsx | 6 +++--- src/ActionIconGroup/demos/index.tsx | 6 +++--- src/Avatar/demos/index.tsx | 6 +++--- src/ChatHeader/demos/index.tsx | 6 +++--- src/ChatItem/demos/Alert.tsx | 6 +++--- src/ChatItem/demos/index.tsx | 6 +++--- src/ChatList/demos/Group.tsx | 6 +++--- src/ChatList/demos/index.tsx | 6 +++--- src/DraggablePanel/demos/index.tsx | 6 +++--- src/EditableMessage/demos/index.tsx | 6 +++--- src/FluentEmoji/demos/index.tsx | 6 +++--- src/GradientButton/demos/index.tsx | 6 +++--- src/GridBackground/demos/index.tsx | 6 +++--- src/Highlighter/demos/FullFeatured.tsx | 6 +++--- src/Highlighter/demos/index.tsx | 6 +++--- src/Icon/demos/CustomSize.tsx | 6 +++--- src/Icon/demos/index.tsx | 6 +++--- src/Input/demos/TextArea.tsx | 6 +++--- src/Input/demos/index.tsx | 6 +++--- src/Logo/demos/ExtraText.tsx | 6 +++--- src/Logo/demos/index.tsx | 6 +++--- src/LogoThree/demos/index.tsx | 6 +++--- src/Markdown/demos/index.tsx | 6 +++--- src/SearchBar/demos/index.tsx | 6 +++--- src/Snippet/demos/index.tsx | 6 +++--- src/Spotlight/demos/index.tsx | 6 +++--- src/StoryBook/demos/index.tsx | 6 +++--- src/StoryBook/index.tsx | 6 +++--- src/Toc/demos/index.tsx | 6 +++--- src/TokenTag/demos/index.tsx | 6 +++--- src/Tooltip/demos/index.tsx | 6 +++--- src/index.ts | 10 +++++++++- 33 files changed, 105 insertions(+), 97 deletions(-) diff --git a/src/ActionIcon/demos/CustomSize.tsx b/src/ActionIcon/demos/CustomSize.tsx index 2ecd6b5d..3ff9d7c9 100644 --- a/src/ActionIcon/demos/CustomSize.tsx +++ b/src/ActionIcon/demos/CustomSize.tsx @@ -1,4 +1,4 @@ -import { ActionIcon, ActionIconProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ActionIcon, ActionIconProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { Settings } from 'lucide-react'; export default () => { @@ -34,8 +34,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/ActionIcon/demos/index.tsx b/src/ActionIcon/demos/index.tsx index e437ed09..810a4dc5 100644 --- a/src/ActionIcon/demos/index.tsx +++ b/src/ActionIcon/demos/index.tsx @@ -1,4 +1,4 @@ -import { ActionIcon, ActionIconProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ActionIcon, ActionIconProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { folder } from 'leva'; import * as LucideIcon from 'lucide-react'; @@ -44,8 +44,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/ActionIconGroup/demos/index.tsx b/src/ActionIconGroup/demos/index.tsx index 9e438c1e..2f147b8f 100644 --- a/src/ActionIconGroup/demos/index.tsx +++ b/src/ActionIconGroup/demos/index.tsx @@ -1,7 +1,7 @@ import { ActionIconGroup, ActionIconGroupProps, - StroyBook, + StoryBook, useControls, useCreateStore, } from '@lobehub/ui'; @@ -26,13 +26,13 @@ export default () => { ); return ( - + console.log(key)} {...control} /> - + ); }; diff --git a/src/Avatar/demos/index.tsx b/src/Avatar/demos/index.tsx index 3fcaf38b..3f4615fa 100644 --- a/src/Avatar/demos/index.tsx +++ b/src/Avatar/demos/index.tsx @@ -1,4 +1,4 @@ -import { ActionIconProps, Avatar, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ActionIconProps, Avatar, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { useCdnFn } from '@/ConfigProvider'; @@ -30,8 +30,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/ChatHeader/demos/index.tsx b/src/ChatHeader/demos/index.tsx index 656da345..a1922895 100644 --- a/src/ChatHeader/demos/index.tsx +++ b/src/ChatHeader/demos/index.tsx @@ -1,4 +1,4 @@ -import { ChatHeader, ChatHeaderProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ChatHeader, ChatHeaderProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; export default () => { const store = useCreateStore(); @@ -10,9 +10,9 @@ export default () => { ); return ( - + Left} right={
Right
} />
- + ); }; diff --git a/src/ChatItem/demos/Alert.tsx b/src/ChatItem/demos/Alert.tsx index 7601953b..8645f752 100644 --- a/src/ChatItem/demos/Alert.tsx +++ b/src/ChatItem/demos/Alert.tsx @@ -1,4 +1,4 @@ -import { ChatItem, ChatItemProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ChatItem, ChatItemProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { avatar } from './data'; @@ -17,8 +17,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/ChatItem/demos/index.tsx b/src/ChatItem/demos/index.tsx index 6ba2fd58..eef1010a 100644 --- a/src/ChatItem/demos/index.tsx +++ b/src/ChatItem/demos/index.tsx @@ -2,7 +2,7 @@ import { ActionIconGroup, ChatItem, ChatItemProps, - StroyBook, + StoryBook, useControls, useCreateStore, } from '@lobehub/ui'; @@ -37,7 +37,7 @@ export default () => { ); return ( - + { editing={edit} onEditingChange={setEdit} /> - + ); }; diff --git a/src/ChatList/demos/Group.tsx b/src/ChatList/demos/Group.tsx index 38c31e02..b650371e 100644 --- a/src/ChatList/demos/Group.tsx +++ b/src/ChatList/demos/Group.tsx @@ -1,4 +1,4 @@ -import { ChatList, ChatListProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ChatList, ChatListProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { groupData } from './data'; @@ -16,13 +16,13 @@ export default () => { ); return ( - + console.log(key)} style={{ width: '100%' }} /> - + ); }; diff --git a/src/ChatList/demos/index.tsx b/src/ChatList/demos/index.tsx index a8fe5dd9..92e930db 100644 --- a/src/ChatList/demos/index.tsx +++ b/src/ChatList/demos/index.tsx @@ -1,4 +1,4 @@ -import { ChatList, ChatListProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { ChatList, ChatListProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { data } from './data'; @@ -16,13 +16,13 @@ export default () => { ); return ( - + console.log(key)} /> - + ); }; diff --git a/src/DraggablePanel/demos/index.tsx b/src/DraggablePanel/demos/index.tsx index 29e9d1fe..bb544349 100644 --- a/src/DraggablePanel/demos/index.tsx +++ b/src/DraggablePanel/demos/index.tsx @@ -1,7 +1,7 @@ import { DraggablePanel, DraggablePanelProps, - StroyBook, + StoryBook, useControls, useCreateStore, } from '@lobehub/ui'; @@ -48,7 +48,7 @@ export default () => { ); return ( - + @@ -68,6 +68,6 @@ export default () => { )} - + ); }; diff --git a/src/EditableMessage/demos/index.tsx b/src/EditableMessage/demos/index.tsx index 14ca2ea7..ea11af99 100644 --- a/src/EditableMessage/demos/index.tsx +++ b/src/EditableMessage/demos/index.tsx @@ -1,4 +1,4 @@ -import { EditableMessage, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { EditableMessage, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { button } from 'leva'; import { useState } from 'react'; @@ -22,7 +22,7 @@ export default () => { ); return ( - + { openModal={openModal} value={content} /> - + ); }; diff --git a/src/FluentEmoji/demos/index.tsx b/src/FluentEmoji/demos/index.tsx index 498c0ea8..f6a9cba9 100644 --- a/src/FluentEmoji/demos/index.tsx +++ b/src/FluentEmoji/demos/index.tsx @@ -1,7 +1,7 @@ import { FluentEmoji, type FluentEmojiProps, - StroyBook, + StoryBook, getEmoji, getEmojiNameByCharacter, useControls, @@ -26,7 +26,7 @@ export default () => { ); return ( - + @@ -38,6 +38,6 @@ export default () => { - + ); }; diff --git a/src/GradientButton/demos/index.tsx b/src/GradientButton/demos/index.tsx index 82d4fa3f..04ee6e5c 100644 --- a/src/GradientButton/demos/index.tsx +++ b/src/GradientButton/demos/index.tsx @@ -1,7 +1,7 @@ import { GradientButton, GradientButtonProps, - StroyBook, + StoryBook, useControls, useCreateStore, } from '@lobehub/ui'; @@ -21,8 +21,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/GridBackground/demos/index.tsx b/src/GridBackground/demos/index.tsx index b0f68418..d075ad82 100644 --- a/src/GridBackground/demos/index.tsx +++ b/src/GridBackground/demos/index.tsx @@ -1,7 +1,7 @@ import { GridBackground, GridBackgroundProps, - StroyBook, + StoryBook, useControls, useCreateStore, } from '@lobehub/ui'; @@ -38,8 +38,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/Highlighter/demos/FullFeatured.tsx b/src/Highlighter/demos/FullFeatured.tsx index d852ee52..5244ae3d 100644 --- a/src/Highlighter/demos/FullFeatured.tsx +++ b/src/Highlighter/demos/FullFeatured.tsx @@ -1,4 +1,4 @@ -import { Highlighter, HighlighterProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { Highlighter, HighlighterProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; const code = `export default ({ children, className }: MarkdownProps) => { const { styles } = useStyles(); @@ -32,8 +32,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/Highlighter/demos/index.tsx b/src/Highlighter/demos/index.tsx index 543996fb..04ea0f38 100644 --- a/src/Highlighter/demos/index.tsx +++ b/src/Highlighter/demos/index.tsx @@ -1,4 +1,4 @@ -import { Highlighter, HighlighterProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { Highlighter, HighlighterProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; const code = `export default ({ children, className }: MarkdownProps) => { const { styles } = useStyles(); @@ -32,8 +32,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/Icon/demos/CustomSize.tsx b/src/Icon/demos/CustomSize.tsx index bb2b4fa3..46342c73 100644 --- a/src/Icon/demos/CustomSize.tsx +++ b/src/Icon/demos/CustomSize.tsx @@ -1,4 +1,4 @@ -import { Icon, IconProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { Icon, IconProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import { Settings } from 'lucide-react'; export default () => { @@ -22,8 +22,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/Icon/demos/index.tsx b/src/Icon/demos/index.tsx index f12d67a6..16bed798 100644 --- a/src/Icon/demos/index.tsx +++ b/src/Icon/demos/index.tsx @@ -1,4 +1,4 @@ -import { Icon, IconProps, StroyBook, useControls, useCreateStore } from '@lobehub/ui'; +import { Icon, IconProps, StoryBook, useControls, useCreateStore } from '@lobehub/ui'; import * as LucideIcon from 'lucide-react'; export default () => { @@ -19,8 +19,8 @@ export default () => { ); return ( - + - + ); }; diff --git a/src/Input/demos/TextArea.tsx b/src/Input/demos/TextArea.tsx index 3350e319..396d81f4 100644 --- a/src/Input/demos/TextArea.tsx +++ b/src/Input/demos/TextArea.tsx @@ -1,4 +1,4 @@ -import { StroyBook, TextArea, TextAreaProps, useControls, useCreateStore } from '@lobehub/ui'; +import { StoryBook, TextArea, TextAreaProps, useControls, useCreateStore } from '@lobehub/ui'; export default () => { const store = useCreateStore(); @@ -14,8 +14,8 @@ export default () => { ); return ( - +