muffin-admin 9.2.1 → 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.
@@ -25,10 +25,10 @@ export function SearchFilter(_a) {
25
25
  const resource = useResourceContext();
26
26
  const onBlur = () => field.onChange(searchValue);
27
27
  const label = translate(`resources.${resource}.fields.${source}`);
28
- return (_jsx(ResettableTextField, Object.assign({ resettable: true, ref: field.ref, value: searchValue, onBlur: debounce(onBlur, 500), onChange: (e) => { var _a; return setSearchValue(((_a = e.target) === null || _a === void 0 ? void 0 : _a.value) || e); }, onKeyUp: (e) => {
28
+ return (_jsx(ResettableTextField, Object.assign({ resettable: true, ref: field.ref, label: label, value: searchValue, onBlur: debounce(onBlur, 500), placeholder: translate("muffin.action.search"), onChange: (e) => { var _a, _b; return setSearchValue((_b = (_a = e.target) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : e); }, onKeyUp: (e) => {
29
29
  if (e.key === "Enter")
30
30
  field.onChange(searchValue);
31
- }, placeholder: label }, props, { className: clsx("ra-input", `ra-input-${source}`, className), InputProps: {
31
+ } }, props, { className: clsx("ra-input", `ra-input-${source}`, className), InputProps: {
32
32
  endAdornment: (_jsx(InputAdornment, { position: "end", children: _jsx(SearchIcon, { color: "disabled" }) })),
33
33
  } })));
34
34
  }
package/dist/i18n/en.js CHANGED
@@ -2,5 +2,8 @@ import raEnglishMessages from "ra-language-english";
2
2
  const muffinEnglishMessages = Object.assign(Object.assign({}, raEnglishMessages), { muffin: {
3
3
  instructions: "Instructions",
4
4
  how_to_use_admin: "How to use Admin?",
5
+ action: {
6
+ search: "Enter to search",
7
+ },
5
8
  } });
6
9
  export default muffinEnglishMessages;
package/dist/i18n/ru.js CHANGED
@@ -2,6 +2,9 @@ import raRussianMessages from "ra-language-russian";
2
2
  const muffinRussianMessages = Object.assign(Object.assign({}, raRussianMessages), { muffin: {
3
3
  instructions: "Инструкции",
4
4
  how_to_use_admin: "Как использовать админку?",
5
+ action: {
6
+ search: "Enter для поиска",
7
+ },
5
8
  } });
6
9
  muffinRussianMessages.ra.action.edit = "Изменить";
7
10
  export default muffinRussianMessages;
package/dist/index.d.ts CHANGED
@@ -18,4 +18,4 @@ export * from "./fields";
18
18
  export * from "./hooks";
19
19
  export * from "./types";
20
20
  export declare function initAdmin(prefix?: string, containerId?: string): Promise<void>;
21
- export declare const VERSION = "9.2.1";
21
+ export declare const VERSION = "9.2.3";
package/dist/index.js CHANGED
@@ -41,4 +41,4 @@ export function initAdmin() {
41
41
  root.render(_jsx(MuffinAdminContext.Provider, { value: adminOpts, children: _jsx(MuffinAdmin, {}) }));
42
42
  });
43
43
  }
44
- export const VERSION = "9.2.1";
44
+ export const VERSION = "9.2.3";