@rulab/adminjs-components 0.0.7 → 0.0.9
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/index.cjs +372 -241
- package/dist/index.d.cts +25 -13
- package/dist/index.d.ts +25 -13
- package/dist/index.js +365 -238
- package/package.json +4 -1
- package/src/components/ColorStatus/ColorStatusEdit.tsx +94 -0
- package/src/components/ColorStatus/ColorStatusList.tsx +20 -0
- package/src/components/ColorStatus/ColorStatusShow.tsx +23 -0
- package/src/components/ColorStatus/index.ts +3 -0
- package/src/components/ColorStatus/styles.ts +30 -0
- package/src/components/ColorStatus/types.ts +5 -0
- package/src/components/Editor/EditorList.jsx +23 -0
- package/src/components/Editor/EditorShow.jsx +1 -1
- package/src/components/Editor/index.ts +1 -0
- package/src/components/Editor/styles.ts +5 -3
- package/src/components/index.ts +6 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { EditPropertyProps, ShowPropertyProps } from 'adminjs';
|
|
2
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { EditPropertyProps, ShowPropertyProps } from 'adminjs';
|
|
3
3
|
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
4
|
+
type ColorStatusTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
5
|
+
declare const ColorStatus: FC<ColorStatusTypes>;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
interface StringListShowPropsType$1 extends StringListTypes {
|
|
9
|
-
stringListSeparator?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const StringList: FC<StringListShowPropsType$1>;
|
|
7
|
+
declare const ColorStatusShow: FC<ShowPropertyProps>;
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare const
|
|
9
|
+
declare const ColorStatusList: FC<ShowPropertyProps>;
|
|
10
|
+
|
|
11
|
+
type CustomSlugTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
12
|
+
declare const CustomSlug: FC<CustomSlugTypes>;
|
|
17
13
|
|
|
18
14
|
declare function Editor({ property, record, onChangeAdmin, editorId }: {
|
|
19
15
|
property: any;
|
|
@@ -22,9 +18,25 @@ declare function Editor({ property, record, onChangeAdmin, editorId }: {
|
|
|
22
18
|
editorId: any;
|
|
23
19
|
}): React.JSX.Element;
|
|
24
20
|
|
|
21
|
+
declare function EditorList({ property, record }: {
|
|
22
|
+
property: any;
|
|
23
|
+
record: any;
|
|
24
|
+
}): React.JSX.Element;
|
|
25
|
+
|
|
25
26
|
declare function EditorShow({ property, record }: {
|
|
26
27
|
property: any;
|
|
27
28
|
record: any;
|
|
28
29
|
}): React.JSX.Element;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
type StringListTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
32
|
+
interface StringListShowPropsType$1 extends StringListTypes {
|
|
33
|
+
stringListSeparator?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const StringList: FC<StringListShowPropsType$1>;
|
|
36
|
+
|
|
37
|
+
interface StringListShowPropsType extends ShowPropertyProps {
|
|
38
|
+
stringListSeparator?: string;
|
|
39
|
+
}
|
|
40
|
+
declare const StringListShow: FC<StringListShowPropsType>;
|
|
41
|
+
|
|
42
|
+
export { ColorStatus as ColorStatusEdit, ColorStatusList, ColorStatusShow, CustomSlug, Editor, EditorList, EditorShow, StringList, StringListShow };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import { EditPropertyProps, ShowPropertyProps } from 'adminjs';
|
|
2
1
|
import React, { FC } from 'react';
|
|
2
|
+
import { EditPropertyProps, ShowPropertyProps } from 'adminjs';
|
|
3
3
|
|
|
4
|
-
type
|
|
5
|
-
declare const
|
|
4
|
+
type ColorStatusTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
5
|
+
declare const ColorStatus: FC<ColorStatusTypes>;
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
interface StringListShowPropsType$1 extends StringListTypes {
|
|
9
|
-
stringListSeparator?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const StringList: FC<StringListShowPropsType$1>;
|
|
7
|
+
declare const ColorStatusShow: FC<ShowPropertyProps>;
|
|
12
8
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
declare const
|
|
9
|
+
declare const ColorStatusList: FC<ShowPropertyProps>;
|
|
10
|
+
|
|
11
|
+
type CustomSlugTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
12
|
+
declare const CustomSlug: FC<CustomSlugTypes>;
|
|
17
13
|
|
|
18
14
|
declare function Editor({ property, record, onChangeAdmin, editorId }: {
|
|
19
15
|
property: any;
|
|
@@ -22,9 +18,25 @@ declare function Editor({ property, record, onChangeAdmin, editorId }: {
|
|
|
22
18
|
editorId: any;
|
|
23
19
|
}): React.JSX.Element;
|
|
24
20
|
|
|
21
|
+
declare function EditorList({ property, record }: {
|
|
22
|
+
property: any;
|
|
23
|
+
record: any;
|
|
24
|
+
}): React.JSX.Element;
|
|
25
|
+
|
|
25
26
|
declare function EditorShow({ property, record }: {
|
|
26
27
|
property: any;
|
|
27
28
|
record: any;
|
|
28
29
|
}): React.JSX.Element;
|
|
29
30
|
|
|
30
|
-
|
|
31
|
+
type StringListTypes = Omit<EditPropertyProps, "where" | "resource">;
|
|
32
|
+
interface StringListShowPropsType$1 extends StringListTypes {
|
|
33
|
+
stringListSeparator?: string;
|
|
34
|
+
}
|
|
35
|
+
declare const StringList: FC<StringListShowPropsType$1>;
|
|
36
|
+
|
|
37
|
+
interface StringListShowPropsType extends ShowPropertyProps {
|
|
38
|
+
stringListSeparator?: string;
|
|
39
|
+
}
|
|
40
|
+
declare const StringListShow: FC<StringListShowPropsType>;
|
|
41
|
+
|
|
42
|
+
export { ColorStatus as ColorStatusEdit, ColorStatusList, ColorStatusShow, CustomSlug, Editor, EditorList, EditorShow, StringList, StringListShow };
|