muffin-admin 2.1.0 → 2.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/dist/buildRA.d.ts CHANGED
@@ -1,2 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const UI: Record<string, JSX.ElementType>;
1
3
  export declare function buildRAComponent(name: any, props: any): import("react/jsx-runtime").JSX.Element;
2
4
  export declare function buildRA(items: any): any;
package/dist/buildRA.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { ArrayField, ArrayInput, AutocompleteArrayInput, AutocompleteInput, BooleanField, BooleanInput, CheckboxGroupInput, ChipField, DateField, DateInput, DateTimeInput, EmailField, FileField, FileInput, ImageField, ImageInput, NullableBooleanInput, NumberField, NumberInput, PasswordInput, RadioButtonGroupInput, ReferenceArrayField, ReferenceArrayInput, ReferenceField, ReferenceInput, ReferenceManyField, RichTextField, SelectField, SelectInput, TextField, TextInput, UrlField, required, } from "react-admin";
3
3
  import { AvatarField, EditableBooleanField, FKField, JsonField } from "./fields";
4
4
  import { FKInput, JsonInput } from "./inputs";
5
- const UI = {
5
+ export const UI = {
6
6
  // Fields
7
7
  BooleanField,
8
8
  ChipField,
@@ -12,6 +12,12 @@ var __rest = (this && this.__rest) || function (s, e) {
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { AutocompleteInput, ReferenceInput } from "react-admin";
14
14
  export function FKInput(_a) {
15
+ // Bind to AutoCompleteInput if we want to customize the search
16
+ // const filterToQuery = (search) => {
17
+ // const filters = {}
18
+ // filters[refKey] = search
19
+ // return filters
20
+ // }
15
21
  var { refKey, refSource, fullWidth, reference, source } = _a, props = __rest(_a, ["refKey", "refSource", "fullWidth", "reference", "source"]);
16
22
  refKey = refKey || "id";
17
23
  const renderText = (record) => {