@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@motor-hero/ui-kit",
3
- "version": "0.36.0",
3
+ "version": "0.36.1",
4
4
  "description": "Componentes React reutilizáveis para o ecossistema MotorHero — shadcn/ui + Tailwind CSS v4",
5
5
  "author": "MotorHero",
6
6
  "license": "UNLICENSED",
@@ -30,13 +30,18 @@ export function FilterToolbar({
30
30
  className,
31
31
  }: FilterToolbarProps) {
32
32
  return (
33
- <div className={cn("mb-6 flex flex-wrap items-center gap-2", className)}>
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
- "inline-flex h-9 shrink-0 cursor-pointer items-center 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",
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
  >