minka-ds 0.2.0 → 0.2.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": "minka-ds",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Minka product design system — tokenized component library",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -53,6 +53,7 @@ interface SearchBarProps {
53
53
  onClearFilters?: () => void
54
54
  filterValueLabel?: (categoryId: string, value: CategoryValue) => string
55
55
  alwaysShowFilterBar?: boolean
56
+ size?: "default" | "sm"
56
57
 
57
58
  children?: React.ReactNode
58
59
  className?: string
@@ -75,6 +76,7 @@ function SearchBar({
75
76
  onClearFilters,
76
77
  filterValueLabel = defaultFilterValueLabel,
77
78
  alwaysShowFilterBar = false,
79
+ size = "default",
78
80
  children,
79
81
  className,
80
82
  }: SearchBarProps) {
@@ -88,7 +90,7 @@ function SearchBar({
88
90
  {/* Search input row */}
89
91
  <InputGroup
90
92
  className={cn(
91
- "h-12",
93
+ size === "sm" ? "h-9" : "h-12",
92
94
  showFilterBar && "[border-bottom-left-radius:0] [border-bottom-right-radius:0]"
93
95
  )}
94
96
  >