diff --git a/.changeset/five-pillows-fail.md b/.changeset/five-pillows-fail.md index 9bb1677681e..8fda40b2884 100644 --- a/.changeset/five-pillows-fail.md +++ b/.changeset/five-pillows-fail.md @@ -3,7 +3,7 @@ --- Add new components: -- UI components (`Button`, `Dropdown`, `Spinner`, `UnStyledButton` and lots of icon components) +- UI components (`Button`, `Dropdown`, `Spinner`, `Tab`, `TabAddButton`, `Tabs`, `UnStyledButton` and lots of icon components) - Editor components (`QueryEditor`, `VariableEditor`, `HeaderEditor` and `ResponseEditor`) - Toolbar components (`ExecuteButton` and `ToolbarButton`) - Docs components (`Argument`, `DefaultValue`, `DeprecationReason`, `Directive`, `DocExplorer`, `ExplorerSection`, `FieldDocumentation`, `FieldLink`, `SchemaDocumentation`, `Search`, `TypeDocumentation` and `TypeLink`) diff --git a/packages/graphiql-react/src/ui/index.ts b/packages/graphiql-react/src/ui/index.ts index 1051888c6f5..075e0c433a0 100644 --- a/packages/graphiql-react/src/ui/index.ts +++ b/packages/graphiql-react/src/ui/index.ts @@ -2,3 +2,4 @@ export * from './button'; export * from './dropdown'; export * from './markdown'; export * from './spinner'; +export * from './tabs'; diff --git a/packages/graphiql/src/components/Tabs.tsx b/packages/graphiql-react/src/ui/tabs.tsx similarity index 90% rename from packages/graphiql/src/components/Tabs.tsx rename to packages/graphiql-react/src/ui/tabs.tsx index 59eb23bcde0..e7628337740 100644 --- a/packages/graphiql/src/components/Tabs.tsx +++ b/packages/graphiql-react/src/ui/tabs.tsx @@ -1,9 +1,3 @@ -import React from 'react'; - -/** - * TODO: extract with other components to @graphiql/react - */ - function TabCloseButton(props: { onClick: () => void }) { return (