From edfd1cd365741c65e7001401a58e344bae84d2b6 Mon Sep 17 00:00:00 2001 From: Zeno Kapitein Date: Tue, 9 Dec 2025 15:33:34 +0100 Subject: [PATCH 01/17] Initial --- .../src/components/AIChat/AIChatInput.tsx | 180 ++++++++++++------ .../src/components/primitives/Input.tsx | 148 ++++++++++++++ .../primitives/KeyboardShortcut.tsx | 8 +- 3 files changed, 273 insertions(+), 63 deletions(-) create mode 100644 packages/gitbook/src/components/primitives/Input.tsx diff --git a/packages/gitbook/src/components/AIChat/AIChatInput.tsx b/packages/gitbook/src/components/AIChat/AIChatInput.tsx index edee25d8e3..191c664ee3 100644 --- a/packages/gitbook/src/components/AIChat/AIChatInput.tsx +++ b/packages/gitbook/src/components/AIChat/AIChatInput.tsx @@ -1,10 +1,10 @@ import { t, tString, useLanguage } from '@/intl/client'; -import { tcls } from '@/lib/tailwind'; import { Icon } from '@gitbook/icons'; import { useEffect, useRef } from 'react'; import { useHotkeys } from 'react-hotkeys-hook'; import { useAIChatState } from '../AI/useAIChat'; -import { Button, HoverCard, HoverCardRoot, HoverCardTrigger } from '../primitives'; +import { HoverCard, HoverCardRoot, HoverCardTrigger } from '../primitives'; +import { Input } from '../primitives/Input'; import { KeyboardShortcut } from '../primitives/KeyboardShortcut'; export function AIChatInput(props: { @@ -57,57 +57,24 @@ export function AIChatInput(props: { ); return ( -
-