diff --git a/playgrounds/app/src/components/Editor.tsx b/playgrounds/app/src/components/Editor.tsx index 6780a18..0709f3f 100644 --- a/playgrounds/app/src/components/Editor.tsx +++ b/playgrounds/app/src/components/Editor.tsx @@ -264,9 +264,9 @@ export default function Editor(props: EditorProps) { Step 2: Output -
+
-
Enter the code snippets you would like to diff
+
Enter the code snippets you would like to diff
-
- +
+ Start Code - + End Code
-
+
( - {props.item.rawValue} + + {props.item.rawValue} + )} @@ -530,7 +535,7 @@ export default function Editor(props: EditorProps) {
{ @@ -27,7 +28,7 @@ export default function Nav() {
) diff --git a/playgrounds/app/src/components/ui/combobox.tsx b/playgrounds/app/src/components/ui/combobox.tsx index c8014ae..8f9facd 100644 --- a/playgrounds/app/src/components/ui/combobox.tsx +++ b/playgrounds/app/src/components/ui/combobox.tsx @@ -1,43 +1,43 @@ -import type { JSX, ValidComponent } from "solid-js" -import { splitProps } from "solid-js" +import type { JSX, ValidComponent } from 'solid-js' +import { splitProps } from 'solid-js' -import * as ComboboxPrimitive from "@kobalte/core/combobox" -import type { PolymorphicProps } from "@kobalte/core/polymorphic" +import * as ComboboxPrimitive from '@kobalte/core/combobox' +import type { PolymorphicProps } from '@kobalte/core/polymorphic' -import { cn } from "~/lib/utils" +import { cn } from '~/lib/utils' const Combobox = ComboboxPrimitive.Root const ComboboxItemLabel = ComboboxPrimitive.ItemLabel const ComboboxHiddenSelect = ComboboxPrimitive.HiddenSelect -type ComboboxItemProps = ComboboxPrimitive.ComboboxItemProps & { +type ComboboxItemProps = ComboboxPrimitive.ComboboxItemProps & { class?: string | undefined } -const ComboboxItem = ( - props: PolymorphicProps> +const ComboboxItem = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxItemProps, ["class"]) + const [local, others] = splitProps(props as ComboboxItemProps, ['class']) return ( ) } -type ComboboxItemIndicatorProps = +type ComboboxItemIndicatorProps = ComboboxPrimitive.ComboboxItemIndicatorProps & { children?: JSX.Element } -const ComboboxItemIndicator = ( - props: PolymorphicProps> +const ComboboxItemIndicator = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxItemIndicatorProps, ["children"]) + const [local, others] = splitProps(props as ComboboxItemIndicatorProps, ['children']) return ( {local.children ?? ( @@ -49,7 +49,7 @@ const ComboboxItemIndicator = ( stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - class="size-4" + class="size-4 dark:text-black" > @@ -58,18 +58,18 @@ const ComboboxItemIndicator = ( ) } -type ComboboxSectionProps = +type ComboboxSectionProps = ComboboxPrimitive.ComboboxSectionProps & { class?: string | undefined } -const ComboboxSection = ( - props: PolymorphicProps> +const ComboboxSection = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxSectionProps, ["class"]) + const [local, others] = splitProps(props as ComboboxSectionProps, ['class']) return ( @@ -78,53 +78,53 @@ const ComboboxSection = ( type ComboboxControlProps< U, - T extends ValidComponent = "div" + T extends ValidComponent = 'div', > = ComboboxPrimitive.ComboboxControlProps & { class?: string | undefined } -const ComboboxControl = ( - props: PolymorphicProps> +const ComboboxControl = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxControlProps, ["class"]) + const [local, others] = splitProps(props as ComboboxControlProps, ['class']) return ( ) } -type ComboboxInputProps = +type ComboboxInputProps = ComboboxPrimitive.ComboboxInputProps & { class?: string | undefined } -const ComboboxInput = ( - props: PolymorphicProps> +const ComboboxInput = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxInputProps, ["class"]) + const [local, others] = splitProps(props as ComboboxInputProps, ['class']) return ( ) } -type ComboboxTriggerProps = +type ComboboxTriggerProps = ComboboxPrimitive.ComboboxTriggerProps & { class?: string | undefined children?: JSX.Element } -const ComboboxTrigger = ( - props: PolymorphicProps> +const ComboboxTrigger = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxTriggerProps, ["class", "children"]) + const [local, others] = splitProps(props as ComboboxTriggerProps, ['class', 'children']) return ( - + {local.children ?? ( ( stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - class="size-4" + class="size-4 dark:text-black" > @@ -146,19 +146,19 @@ const ComboboxTrigger = ( ) } -type ComboboxContentProps = +type ComboboxContentProps = ComboboxPrimitive.ComboboxContentProps & { class?: string | undefined } -const ComboboxContent = ( - props: PolymorphicProps> +const ComboboxContent = ( + props: PolymorphicProps>, ) => { - const [local, others] = splitProps(props as ComboboxContentProps, ["class"]) + const [local, others] = splitProps(props as ComboboxContentProps, ['class']) return ( @@ -178,5 +178,5 @@ export { ComboboxTrigger, ComboboxInput, ComboboxHiddenSelect, - ComboboxContent + ComboboxContent, }