@campxdev/shared 1.10.82 → 1.10.83

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": "@campxdev/shared",
3
- "version": "1.10.82",
3
+ "version": "1.10.83",
4
4
  "main": "./exports.ts",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
@@ -9,11 +9,13 @@ interface SearchBarProps {
9
9
  onSearch: (v: string) => void
10
10
  label?: ReactNode
11
11
  textFieldProps?: ITextFieldProps
12
+ placeholder?: string
12
13
  }
13
14
 
14
15
  export default function SearchBar({
15
16
  onSearch,
16
17
  label,
18
+ placeholder = 'Search',
17
19
  ...restProps
18
20
  }: SearchBarProps) {
19
21
  const [, setSearch] = useState('')
@@ -30,7 +32,7 @@ export default function SearchBar({
30
32
  return (
31
33
  <TextField
32
34
  label={label}
33
- placeholder="Search"
35
+ placeholder={placeholder}
34
36
  onChange={debouncedChangeHandler}
35
37
  InputProps={{
36
38
  endAdornment: (