chore: generate
This commit is contained in:
@@ -143,7 +143,9 @@ export function DialogConnectProvider(props: { provider: string }) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Dialog title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />}>
|
<Dialog
|
||||||
|
title={<IconButton tabIndex={-1} icon="arrow-left" variant="ghost" onClick={goBack} aria-label="Go back" />}
|
||||||
|
>
|
||||||
<div class="flex flex-col gap-6 px-2.5 pb-3">
|
<div class="flex flex-col gap-6 px-2.5 pb-3">
|
||||||
<div class="px-2.5 flex gap-4 items-center">
|
<div class="px-2.5 flex gap-4 items-center">
|
||||||
<ProviderIcon id={props.provider as IconName} class="size-5 shrink-0 icon-strong-base" />
|
<ProviderIcon id={props.provider as IconName} class="size-5 shrink-0 icon-strong-base" />
|
||||||
|
|||||||
@@ -1653,10 +1653,7 @@ export const PromptInput: Component<PromptInputProps> = (props) => {
|
|||||||
title={language.t("command.model.choose")}
|
title={language.t("command.model.choose")}
|
||||||
keybind={command.keybind("model.choose")}
|
keybind={command.keybind("model.choose")}
|
||||||
>
|
>
|
||||||
<ModelSelectorPopover
|
<ModelSelectorPopover triggerAs={Button} triggerProps={{ variant: "ghost" }}>
|
||||||
triggerAs={Button}
|
|
||||||
triggerProps={{ variant: "ghost" }}
|
|
||||||
>
|
|
||||||
<Show when={local.model.current()?.provider?.id}>
|
<Show when={local.model.current()?.provider?.id}>
|
||||||
<ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" />
|
<ProviderIcon id={local.model.current()!.provider.id as IconName} class="size-4 shrink-0" />
|
||||||
</Show>
|
</Show>
|
||||||
|
|||||||
@@ -310,7 +310,9 @@ export function SessionHeader() {
|
|||||||
<Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}>
|
<Show when={shareUrl()} fallback={<div class="size-6" aria-hidden="true" />}>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
value={
|
value={
|
||||||
state.copied ? language.t("session.share.copy.copied") : language.t("session.share.copy.copyLink")
|
state.copied
|
||||||
|
? language.t("session.share.copy.copied")
|
||||||
|
: language.t("session.share.copy.copyLink")
|
||||||
}
|
}
|
||||||
placement="top"
|
placement="top"
|
||||||
gutter={8}
|
gutter={8}
|
||||||
|
|||||||
@@ -37,7 +37,12 @@ export function SortableTab(props: { tab: string; onTabClose: (tab: string) => v
|
|||||||
value={props.tab}
|
value={props.tab}
|
||||||
closeButton={
|
closeButton={
|
||||||
<Tooltip value={language.t("common.closeTab")} placement="bottom">
|
<Tooltip value={language.t("common.closeTab")} placement="bottom">
|
||||||
<IconButton icon="close" variant="ghost" onClick={() => props.onTabClose(props.tab)} aria-label="Close tab" />
|
<IconButton
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => props.onTabClose(props.tab)}
|
||||||
|
aria-label="Close tab"
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
hideCloseButton
|
hideCloseButton
|
||||||
|
|||||||
@@ -1553,7 +1553,11 @@ export default function Page() {
|
|||||||
|
|
||||||
{/* Desktop tabs panel (Review + Context + Files) - hidden on mobile */}
|
{/* Desktop tabs panel (Review + Context + Files) - hidden on mobile */}
|
||||||
<Show when={isDesktop() && showTabs()}>
|
<Show when={isDesktop() && showTabs()}>
|
||||||
<aside id="review-panel" aria-label="Review and files" class="relative flex-1 min-w-0 h-full border-l border-border-weak-base">
|
<aside
|
||||||
|
id="review-panel"
|
||||||
|
aria-label="Review and files"
|
||||||
|
class="relative flex-1 min-w-0 h-full border-l border-border-weak-base"
|
||||||
|
>
|
||||||
<DragDropProvider
|
<DragDropProvider
|
||||||
onDragStart={handleDragStart}
|
onDragStart={handleDragStart}
|
||||||
onDragEnd={handleDragEnd}
|
onDragEnd={handleDragEnd}
|
||||||
@@ -1587,7 +1591,12 @@ export default function Page() {
|
|||||||
value="context"
|
value="context"
|
||||||
closeButton={
|
closeButton={
|
||||||
<Tooltip value={language.t("common.closeTab")} placement="bottom">
|
<Tooltip value={language.t("common.closeTab")} placement="bottom">
|
||||||
<IconButton icon="close" variant="ghost" onClick={() => tabs().close("context")} aria-label="Close context tab" />
|
<IconButton
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => tabs().close("context")}
|
||||||
|
aria-label="Close context tab"
|
||||||
|
/>
|
||||||
</Tooltip>
|
</Tooltip>
|
||||||
}
|
}
|
||||||
hideCloseButton
|
hideCloseButton
|
||||||
@@ -1995,7 +2004,13 @@ export default function Page() {
|
|||||||
keybind={command.keybind("terminal.new")}
|
keybind={command.keybind("terminal.new")}
|
||||||
class="flex items-center"
|
class="flex items-center"
|
||||||
>
|
>
|
||||||
<IconButton icon="plus-small" variant="ghost" iconSize="large" onClick={terminal.new} aria-label="New terminal" />
|
<IconButton
|
||||||
|
icon="plus-small"
|
||||||
|
variant="ghost"
|
||||||
|
iconSize="large"
|
||||||
|
onClick={terminal.new}
|
||||||
|
aria-label="New terminal"
|
||||||
|
/>
|
||||||
</TooltipKeybind>
|
</TooltipKeybind>
|
||||||
</div>
|
</div>
|
||||||
</Tabs.List>
|
</Tabs.List>
|
||||||
|
|||||||
@@ -40,7 +40,13 @@ export function Dialog(props: DialogProps) {
|
|||||||
<Switch>
|
<Switch>
|
||||||
<Match when={props.action}>{props.action}</Match>
|
<Match when={props.action}>{props.action}</Match>
|
||||||
<Match when={true}>
|
<Match when={true}>
|
||||||
<Kobalte.CloseButton data-slot="dialog-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
|
<Kobalte.CloseButton
|
||||||
|
data-slot="dialog-close-button"
|
||||||
|
as={IconButton}
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
aria-label="Close"
|
||||||
|
/>
|
||||||
</Match>
|
</Match>
|
||||||
</Switch>
|
</Switch>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -14,7 +14,13 @@ export function ImagePreview(props: ImagePreviewProps) {
|
|||||||
<div data-slot="image-preview-container">
|
<div data-slot="image-preview-container">
|
||||||
<Kobalte.Content data-slot="image-preview-content">
|
<Kobalte.Content data-slot="image-preview-content">
|
||||||
<div data-slot="image-preview-header">
|
<div data-slot="image-preview-header">
|
||||||
<Kobalte.CloseButton data-slot="image-preview-close" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
|
<Kobalte.CloseButton
|
||||||
|
data-slot="image-preview-close"
|
||||||
|
as={IconButton}
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
aria-label="Close"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div data-slot="image-preview-body">
|
<div data-slot="image-preview-body">
|
||||||
<img src={props.src} alt={props.alt ?? i18n.t("ui.imagePreview.alt")} data-slot="image-preview-image" />
|
<img src={props.src} alt={props.alt ?? i18n.t("ui.imagePreview.alt")} data-slot="image-preview-image" />
|
||||||
|
|||||||
@@ -230,7 +230,12 @@ export function List<T>(props: ListProps<T> & { ref?: (ref: ListRef) => void })
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<Show when={internalFilter()}>
|
<Show when={internalFilter()}>
|
||||||
<IconButton icon="circle-x" variant="ghost" onClick={() => setInternalFilter("")} aria-label="Clear filter" />
|
<IconButton
|
||||||
|
icon="circle-x"
|
||||||
|
variant="ghost"
|
||||||
|
onClick={() => setInternalFilter("")}
|
||||||
|
aria-label="Clear filter"
|
||||||
|
/>
|
||||||
</Show>
|
</Show>
|
||||||
</div>
|
</div>
|
||||||
{searchAction()}
|
{searchAction()}
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ import { Popover as Kobalte } from "@kobalte/core/popover"
|
|||||||
import { ComponentProps, JSXElement, ParentProps, Show, splitProps, ValidComponent } from "solid-js"
|
import { ComponentProps, JSXElement, ParentProps, Show, splitProps, ValidComponent } from "solid-js"
|
||||||
import { IconButton } from "./icon-button"
|
import { IconButton } from "./icon-button"
|
||||||
|
|
||||||
export interface PopoverProps<T extends ValidComponent = "div"> extends ParentProps, Omit<ComponentProps<typeof Kobalte>, "children"> {
|
export interface PopoverProps<T extends ValidComponent = "div">
|
||||||
|
extends ParentProps,
|
||||||
|
Omit<ComponentProps<typeof Kobalte>, "children"> {
|
||||||
trigger?: JSXElement
|
trigger?: JSXElement
|
||||||
triggerAs?: T
|
triggerAs?: T
|
||||||
triggerProps?: ComponentProps<T>
|
triggerProps?: ComponentProps<T>
|
||||||
@@ -13,7 +15,16 @@ export interface PopoverProps<T extends ValidComponent = "div"> extends ParentPr
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>) {
|
export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>) {
|
||||||
const [local, rest] = splitProps(props, ["trigger", "triggerAs", "triggerProps", "title", "description", "class", "classList", "children"])
|
const [local, rest] = splitProps(props, [
|
||||||
|
"trigger",
|
||||||
|
"triggerAs",
|
||||||
|
"triggerProps",
|
||||||
|
"title",
|
||||||
|
"description",
|
||||||
|
"class",
|
||||||
|
"classList",
|
||||||
|
"children",
|
||||||
|
])
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Kobalte gutter={4} {...rest}>
|
<Kobalte gutter={4} {...rest}>
|
||||||
@@ -32,7 +43,13 @@ export function Popover<T extends ValidComponent = "div">(props: PopoverProps<T>
|
|||||||
<Show when={local.title}>
|
<Show when={local.title}>
|
||||||
<div data-slot="popover-header">
|
<div data-slot="popover-header">
|
||||||
<Kobalte.Title data-slot="popover-title">{local.title}</Kobalte.Title>
|
<Kobalte.Title data-slot="popover-title">{local.title}</Kobalte.Title>
|
||||||
<Kobalte.CloseButton data-slot="popover-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Close" />
|
<Kobalte.CloseButton
|
||||||
|
data-slot="popover-close-button"
|
||||||
|
as={IconButton}
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
aria-label="Close"
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</Show>
|
</Show>
|
||||||
<Show when={local.description}>
|
<Show when={local.description}>
|
||||||
|
|||||||
@@ -62,7 +62,16 @@ function ToastActions(props: ComponentProps<"div">) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function ToastCloseButton(props: ToastCloseButtonProps & ComponentProps<"button">) {
|
function ToastCloseButton(props: ToastCloseButtonProps & ComponentProps<"button">) {
|
||||||
return <Kobalte.CloseButton data-slot="toast-close-button" as={IconButton} icon="close" variant="ghost" aria-label="Dismiss" {...props} />
|
return (
|
||||||
|
<Kobalte.CloseButton
|
||||||
|
data-slot="toast-close-button"
|
||||||
|
as={IconButton}
|
||||||
|
icon="close"
|
||||||
|
variant="ghost"
|
||||||
|
aria-label="Dismiss"
|
||||||
|
{...props}
|
||||||
|
/>
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
function ToastProgressTrack(props: ComponentProps<typeof Kobalte.ProgressTrack>) {
|
function ToastProgressTrack(props: ComponentProps<typeof Kobalte.ProgressTrack>) {
|
||||||
|
|||||||
Reference in New Issue
Block a user