@vulcanjs/react-ui 0.5.2 → 0.5.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/dist/components/LoadingButton.d.ts +10 -8
- package/dist/components/LoadingButton.d.ts.map +1 -1
- package/dist/components/MutationButton.d.ts +13 -8
- package/dist/components/MutationButton.d.ts.map +1 -1
- package/dist/components/VulcanComponents/defaultVulcanComponents.d.ts +2 -2
- package/dist/components/VulcanComponents/typings.d.ts +4 -2
- package/dist/components/VulcanComponents/typings.d.ts.map +1 -1
- package/dist/components/form/core/Button.d.ts +1 -0
- package/dist/components/form/core/Button.d.ts.map +1 -1
- package/dist/index.js +5 -5
- package/package.json +10 -10
@@ -1,9 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
import React from "react";
|
2
|
+
import type { ButtonProps } from "./form/core/Button";
|
3
|
+
export interface LoadingButtonProps extends ButtonProps {
|
4
|
+
loading?: boolean;
|
5
|
+
label?: string | React.ReactNode;
|
6
|
+
onClick?: any;
|
7
|
+
children?: React.ReactNode;
|
8
|
+
className?: string;
|
9
|
+
}
|
10
|
+
export declare const LoadingButton: ({ loading, label, onClick, children, className, ...rest }: LoadingButtonProps & any) => JSX.Element;
|
9
11
|
//# sourceMappingURL=LoadingButton.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../components/LoadingButton.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../components/LoadingButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGtD,MAAM,WAAW,kBAAmB,SAAQ,WAAW;IACrD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACjC,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AACD,eAAO,MAAM,aAAa,8DAOvB,kBAAkB,GAAG,GAAG,gBAsC1B,CAAC"}
|
@@ -1,15 +1,20 @@
|
|
1
|
+
import React from "react";
|
1
2
|
import { DocumentNode } from "graphql";
|
2
3
|
import { MutationHookOptions } from "@apollo/client";
|
4
|
+
import { LoadingButtonProps } from "./LoadingButton";
|
3
5
|
export interface MutationButtonProps {
|
4
|
-
mutationOptions
|
6
|
+
mutationOptions?: MutationHookOptions;
|
5
7
|
mutation: string | DocumentNode;
|
6
|
-
mutationArguments
|
7
|
-
submitCallback:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
mutationArguments?: MutationHookOptions<any>["variables"];
|
9
|
+
submitCallback?: (mutationArgumentsFromProps: MutationHookOptions<any>["variables"]) => void | {
|
10
|
+
mutationArguments: MutationHookOptions<any>["variables"];
|
11
|
+
} | Promise<void | {
|
12
|
+
mutationArguments: MutationHookOptions<any>["variables"];
|
13
|
+
}>;
|
14
|
+
successCallback?: (res: any) => void | Promise<void>;
|
15
|
+
errorCallback?: (err: any) => void | Promise<void>;
|
16
|
+
loadingButtonProps?: LoadingButtonProps;
|
17
|
+
label?: string | React.ReactNode;
|
13
18
|
}
|
14
19
|
export declare const MutationButton: (props: MutationButtonProps) => JSX.Element;
|
15
20
|
//# sourceMappingURL=MutationButton.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"MutationButton.d.ts","sourceRoot":"","sources":["../../components/MutationButton.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"MutationButton.d.ts","sourceRoot":"","sources":["../../components/MutationButton.tsx"],"names":[],"mappings":"AAkBA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAO,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAEvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAsBrD,MAAM,WAAW,mBAAmB;IASlC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IAStC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAAC;IAEhC,iBAAiB,CAAC,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IAE1D,cAAc,CAAC,EAAE,CACf,0BAA0B,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,KAE/D,IAAI,GACJ;QAAE,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAA;KAAE,GAC5D,OAAO,CAAC,IAAI,GAAG;QACb,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;KAC1D,CAAC,CAAC;IACP,eAAe,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD,aAAa,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnD,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAExC,KAAK,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;CAClC;AACD,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBAwFxD,CAAC"}
|
@@ -50,9 +50,9 @@ export declare const defaultVulcanComponents: {
|
|
50
50
|
Loading: any;
|
51
51
|
FormattedMessage: any;
|
52
52
|
Alert: any;
|
53
|
-
Button: any
|
53
|
+
Button: import("react").ComponentType<any>;
|
54
54
|
Icon: any;
|
55
|
-
MutationButton: import("react").ComponentType<
|
55
|
+
MutationButton: import("react").ComponentType<import("../MutationButton").MutationButtonProps>;
|
56
56
|
LoadingButton: import("react").ComponentType<any>;
|
57
57
|
HeadTags: import("react").ComponentType<any>;
|
58
58
|
TooltipTrigger: import("react").ComponentType<any>;
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import type { FormSubmitProps } from "../form/FormSubmit";
|
3
|
+
import type { ButtonProps } from "../form/core/Button";
|
4
|
+
import type { MutationButtonProps } from "../MutationButton";
|
3
5
|
export interface PossibleCoreComponents {
|
4
6
|
Loading: any;
|
5
7
|
FormattedMessage: any;
|
6
8
|
Alert: any;
|
7
|
-
Button:
|
9
|
+
Button: React.ComponentType<ButtonProps>;
|
8
10
|
Icon: any;
|
9
|
-
MutationButton: React.ComponentType<
|
11
|
+
MutationButton: React.ComponentType<MutationButtonProps>;
|
10
12
|
LoadingButton: React.ComponentType<any>;
|
11
13
|
HeadTags: React.ComponentType<any>;
|
12
14
|
TooltipTrigger: React.ComponentType<any>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;
|
1
|
+
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAE7D,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,GAAG,CAAC;IACb,gBAAgB,EAAE,GAAG,CAAC;IACtB,KAAK,EAAE,GAAG,CA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AG,CAAC;IACrB,eAAe,EAAE,GAAG,CAAC;IAErB,cAAc,EAAE,GAAG,CAAC;IACpB,kBAAkB,EAAE,GAAG,CAAC;IACxB,QAAQ,EAAE,GAAG,CAAC;IAEd,UAAU,EAAE,GAAG,CAAC;IAChB,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IACjD,UAAU,EAAE,GAAG,CAAC;IAGhB,eAAe,EAAE,GAAG,CAAC;IACrB,0BAA0B,EAAE,GAAG,CAAC;IAChC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,cAAc,EAAE,GAAG,CAAC;IACpB,OAAO,EAAE,GAAG,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,WAAW,EAAE,GAAG,CAAC;IACjB,iBAAiB,EAAE,GAAG,CAAC;IAEvB,oBAAoB,EAAE,GAAG,CAAC;IAC1B,sBAAsB,EAAE,GAAG,CAAC;IAC5B,gBAAgB,EAAE,GAAG,CAAC;IACtB,eAAe,EAAE,GAAG,CAAC;IAErB,IAAI,EAAE,GAAG,CAAC;IAEV,QAAQ,MAAC;IAET,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B;AACD,oBAAY,wBAAwB,GAAG,sBAAsB,GAC3D,sBAAsB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../components/form/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAE1B,CAAC"}
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../components/form/core/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,oBAAY,WAAW,GAAG,KAAK,CAAC,iBAAiB,CAC/C,KAAK,CAAC,cAAc,CAAC,iBAAiB,CAAC,EACvC,iBAAiB,CAClB,GAGC,GAAG,CAAC;AAGN,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAE1B,CAAC"}
|