@izumisy-tailor/tailor-data-viewer 0.1.38 → 0.1.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -12,7 +12,6 @@ import type { VariationFilter } from "./types";
|
|
|
12
12
|
import { useDataViewer } from "./contexts";
|
|
13
13
|
import { useLabels } from "./hooks/use-labels";
|
|
14
14
|
import { QueryBuilder } from "raku-ql";
|
|
15
|
-
import { cn } from "./lib/utils";
|
|
16
15
|
|
|
17
16
|
/**
|
|
18
17
|
* Convert camelCase to PascalCase
|
|
@@ -216,33 +215,27 @@ export function VariationFilterForm({
|
|
|
216
215
|
|
|
217
216
|
return (
|
|
218
217
|
<DropdownMenu open={open} onOpenChange={setOpen}>
|
|
219
|
-
<
|
|
220
|
-
<
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
className={cn("gap-1.5", currentFilter && "rounded-r-none")}
|
|
225
|
-
>
|
|
226
|
-
{buttonLabel}
|
|
227
|
-
{currentFilter ? (
|
|
218
|
+
<DropdownMenuTrigger asChild>
|
|
219
|
+
<Button variant="outline" size="sm" className="gap-1.5">
|
|
220
|
+
{buttonLabel}
|
|
221
|
+
{currentFilter ? (
|
|
222
|
+
<>
|
|
228
223
|
<Badge variant="secondary" className="ml-0.5 px-1.5 py-0 text-xs">
|
|
229
224
|
{currentFilter.value}
|
|
230
225
|
</Badge>
|
|
231
|
-
|
|
226
|
+
<span
|
|
227
|
+
role="button"
|
|
228
|
+
className="hover:bg-muted -mr-1 ml-0.5 rounded p-0.5"
|
|
229
|
+
onClick={handleClearFilter}
|
|
230
|
+
>
|
|
231
|
+
<X className="size-3" />
|
|
232
|
+
</span>
|
|
233
|
+
</>
|
|
234
|
+
) : (
|
|
232
235
|
<ChevronDown className="size-3 opacity-50" />
|
|
233
|
-
|
|
234
|
-
</
|
|
235
|
-
|
|
236
|
-
<Button
|
|
237
|
-
variant="outline"
|
|
238
|
-
size="sm"
|
|
239
|
-
className="rounded-l-none border-l-0 px-1.5"
|
|
240
|
-
onClick={handleClearFilter}
|
|
241
|
-
>
|
|
242
|
-
<X className="size-3" />
|
|
243
|
-
</Button>
|
|
244
|
-
)}
|
|
245
|
-
</div>
|
|
236
|
+
)}
|
|
237
|
+
</Button>
|
|
238
|
+
</DropdownMenuTrigger>
|
|
246
239
|
|
|
247
240
|
<DropdownMenuContent
|
|
248
241
|
align="start"
|