From fb7b2f6b4d66d14177b5c0168049863842665925 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Thu, 12 Feb 2026 20:19:14 -0600 Subject: feat(app): toggle all provider models --- packages/ui/src/components/list.tsx | 7 ++++--- packages/ui/src/components/switch.tsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'packages/ui/src') diff --git a/packages/ui/src/components/list.tsx b/packages/ui/src/components/list.tsx index abd557220..aa2347037 100644 --- a/packages/ui/src/components/list.tsx +++ b/packages/ui/src/components/list.tsx @@ -45,6 +45,7 @@ export interface ListProps extends FilteredListProps { itemWrapper?: (item: T, node: JSX.Element) => JSX.Element divider?: boolean add?: ListAddProps + groupHeader?: (group: { category: string; items: T[] }) => JSX.Element } export interface ListRef { @@ -206,7 +207,7 @@ export function List(props: ListProps & { ref?: (ref: ListRef) => void }) ) } - function GroupHeader(groupProps: { category: string }): JSX.Element { + function GroupHeader(groupProps: { group: { category: string; items: T[] } }): JSX.Element { const [stuck, setStuck] = createSignal(false) const [header, setHeader] = createSignal(undefined) @@ -228,7 +229,7 @@ export function List(props: ListProps & { ref?: (ref: ListRef) => void }) return (
- {groupProps.category} + {props.groupHeader?.(groupProps.group) ?? groupProps.group.category}
) } @@ -323,7 +324,7 @@ export function List(props: ListProps & { ref?: (ref: ListRef) => void }) return (
- +
diff --git a/packages/ui/src/components/switch.tsx b/packages/ui/src/components/switch.tsx index a8600aef4..f4f95baf5 100644 --- a/packages/ui/src/components/switch.tsx +++ b/packages/ui/src/components/switch.tsx @@ -10,7 +10,7 @@ export interface SwitchProps extends ParentProps> export function Switch(props: SwitchProps) { const [local, others] = splitProps(props, ["children", "class", "hideLabel", "description"]) return ( - + -- cgit v1.2.3