muffin-admin 9.2.2 → 9.2.3

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": "muffin-admin",
3
- "version": "9.2.2",
3
+ "version": "9.2.3",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -19,13 +19,14 @@ export function SearchFilter({ source, className, ...props }: SearchInputProps)
19
19
  <ResettableTextField
20
20
  resettable
21
21
  ref={field.ref}
22
+ label={label}
22
23
  value={searchValue}
23
24
  onBlur={debounce(onBlur, 500)}
25
+ placeholder={translate("muffin.action.search")}
24
26
  onChange={(e) => setSearchValue(e.target?.value ?? e)}
25
27
  onKeyUp={(e) => {
26
28
  if (e.key === "Enter") field.onChange(searchValue)
27
29
  }}
28
- placeholder={label}
29
30
  {...props}
30
31
  className={clsx("ra-input", `ra-input-${source}`, className)}
31
32
  InputProps={{
package/src/i18n/en.ts CHANGED
@@ -6,6 +6,9 @@ const muffinEnglishMessages: TranslationMessages = {
6
6
  muffin: {
7
7
  instructions: "Instructions",
8
8
  how_to_use_admin: "How to use Admin?",
9
+ action: {
10
+ search: "Enter to search",
11
+ },
9
12
  },
10
13
  }
11
14
 
package/src/i18n/ru.ts CHANGED
@@ -6,6 +6,9 @@ const muffinRussianMessages = {
6
6
  muffin: {
7
7
  instructions: "Инструкции",
8
8
  how_to_use_admin: "Как использовать админку?",
9
+ action: {
10
+ search: "Enter для поиска",
11
+ },
9
12
  },
10
13
  } as unknown as TranslationMessages
11
14
 
package/src/index.tsx CHANGED
@@ -36,4 +36,4 @@ export async function initAdmin(prefix = "", containerId: string = "root") {
36
36
  )
37
37
  }
38
38
 
39
- export const VERSION = "9.2.2"
39
+ export const VERSION = "9.2.3"