From 65ff8cb542bf819ceb3a3745ec3a657494a49c66 Mon Sep 17 00:00:00 2001 From: Miguel Romero Karam Date: Mon, 20 May 2024 01:01:30 +0200 Subject: [PATCH] 0.5.37 --- lib/cli/src/version.ts | 2 +- lib/components/combobox-virtualized.tsx | 4 ++-- lib/components/combobox.tsx | 14 +++++++------- lib/plugins/unocss/preset-shadcn/mod.ts | 3 ++- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/lib/cli/src/version.ts b/lib/cli/src/version.ts index 5e7dabc7..07e966a9 100644 --- a/lib/cli/src/version.ts +++ b/lib/cli/src/version.ts @@ -1,5 +1,5 @@ // latest version of netzo/cli (see https://github.com/netzo/netzo/releases) -export const VERSION = "0.5.36"; +export const VERSION = "0.5.37"; // minimum version of Deno required to run this CLI // (see https://github.com/denoland/deployctl/blob/main/src/version.ts) diff --git a/lib/components/combobox-virtualized.tsx b/lib/components/combobox-virtualized.tsx index 50cbc2e7..b413396e 100644 --- a/lib/components/combobox-virtualized.tsx +++ b/lib/components/combobox-virtualized.tsx @@ -151,9 +151,9 @@ export function ComboboxVirtualized({ variant="outline" aria-expanded={open} disabled={disabled} - className="w-full justify-between hover:bg-secondary/20 active:scale-100" + className="w-full justify-between hover:bg-secondary/20 active:scale-100 whitespace-normal" > - + {selectedOption ? selectedOptionLabel : searchPlaceholder} diff --git a/lib/components/combobox.tsx b/lib/components/combobox.tsx index 0734da8d..9f821537 100644 --- a/lib/components/combobox.tsx +++ b/lib/components/combobox.tsx @@ -4,11 +4,11 @@ import * as React from "react"; import { Button } from "./button.tsx"; import { - Command, - CommandEmpty, - CommandGroup, - CommandInput, - CommandItem, + Command, + CommandEmpty, + CommandGroup, + CommandInput, + CommandItem, } from "./command.tsx"; import { Popover, PopoverContent, PopoverTrigger } from "./popover.tsx"; import { ScrollArea } from "./scroll-area.tsx"; @@ -80,9 +80,9 @@ export const Combobox = React.forwardRef( variant="outline" aria-expanded={open} disabled={props.disabled} - className="w-full justify-between hover:bg-secondary/20 active:scale-100" + className="w-full justify-between hover:bg-secondary/20 active:scale-100 whitespace-normal" > - + {props.multiple && props.value && props.value.length === 1 && ( {props.value} )} diff --git a/lib/plugins/unocss/preset-shadcn/mod.ts b/lib/plugins/unocss/preset-shadcn/mod.ts index 068b5190..8a42659c 100644 --- a/lib/plugins/unocss/preset-shadcn/mod.ts +++ b/lib/plugins/unocss/preset-shadcn/mod.ts @@ -6,8 +6,8 @@ import type { } from "../../../deps/@unocss/core.ts"; import { h, - type Theme, variantGetParameter, + type Theme, } from "../../../deps/@unocss/preset-mini.ts"; import { generateCSSVars } from "./generate.ts"; import { PresetShadcnOptions } from "./types.ts"; @@ -245,6 +245,7 @@ export function presetShadcn(options: PresetShadcnOptions = {}): Preset { ], // combobox: ...[ + 'whitespace-normal', "w-full", "justify-between", "hover:bg-secondary/20",