@motor-hero/ui-kit 0.36.0 → 0.36.1
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/dist/components/filter-toolbar.d.ts.map +1 -1
- package/dist/index.cjs +25 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -16
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/filter-toolbar.tsx +8 -3
package/package.json
CHANGED
|
@@ -30,13 +30,18 @@ export function FilterToolbar({
|
|
|
30
30
|
className,
|
|
31
31
|
}: FilterToolbarProps) {
|
|
32
32
|
return (
|
|
33
|
-
<div
|
|
33
|
+
<div
|
|
34
|
+
className={cn(
|
|
35
|
+
"mb-6 flex flex-col gap-2 sm:flex-row sm:flex-wrap sm:items-center",
|
|
36
|
+
className,
|
|
37
|
+
)}
|
|
38
|
+
>
|
|
34
39
|
{children}
|
|
35
40
|
{isFilterActive && onClear && (
|
|
36
41
|
<button
|
|
37
42
|
type="button"
|
|
38
43
|
onClick={onClear}
|
|
39
|
-
className="inline-flex h-9 shrink-0 items-center gap-1.5 rounded-md px-2.5 text-sm text-muted-foreground transition-colors hover:text-foreground"
|
|
44
|
+
className="inline-flex h-9 shrink-0 items-center justify-center gap-1.5 self-start rounded-md px-2.5 text-sm text-muted-foreground transition-colors hover:text-foreground sm:self-auto"
|
|
40
45
|
>
|
|
41
46
|
<X className="h-4 w-4" />
|
|
42
47
|
{clearLabel}
|
|
@@ -93,7 +98,7 @@ export function FilterPopover({
|
|
|
93
98
|
type="button"
|
|
94
99
|
aria-expanded={open}
|
|
95
100
|
className={cn(
|
|
96
|
-
"
|
|
101
|
+
"flex h-9 w-full shrink-0 cursor-pointer items-center justify-between gap-1.5 rounded-md border border-input bg-transparent px-3 text-sm shadow-sm transition-colors hover:border-ring/60 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring sm:w-auto sm:justify-start",
|
|
97
102
|
active ? "border-ring/60 text-foreground" : "text-muted-foreground",
|
|
98
103
|
)}
|
|
99
104
|
>
|