@vulcanjs/react-ui 0.4.3 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.md +21 -0
- package/dist/components/HeadTags.d.ts +13 -0
- package/dist/components/HeadTags.d.ts.map +1 -0
- package/dist/components/LoadingButton.d.ts +9 -0
- package/dist/components/LoadingButton.d.ts.map +1 -0
- package/dist/components/MutationButton.d.ts +15 -0
- package/dist/components/MutationButton.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/Consumer.d.ts +0 -0
- package/dist/components/VulcanComponents/Consumer.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/Context.d.ts +0 -0
- package/dist/components/VulcanComponents/Context.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/Dummy.d.ts +0 -0
- package/dist/components/VulcanComponents/Dummy.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/Provider.d.ts +0 -0
- package/dist/components/VulcanComponents/Provider.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/defaultVulcanComponents.d.ts +7 -0
- package/dist/components/VulcanComponents/defaultVulcanComponents.d.ts.map +1 -0
- package/dist/components/VulcanComponents/index.d.ts +5 -0
- package/dist/components/VulcanComponents/index.d.ts.map +1 -0
- package/dist/components/{form/VulcanComponents → VulcanComponents}/typings.d.ts +7 -0
- package/dist/components/VulcanComponents/typings.d.ts.map +1 -0
- package/dist/components/bootstrap/Dropdown.d.ts +24 -0
- package/dist/components/bootstrap/Dropdown.d.ts.map +1 -0
- package/dist/components/bootstrap/TooltipTrigger.d.ts +5 -0
- package/dist/components/bootstrap/TooltipTrigger.d.ts.map +1 -0
- package/dist/components/form/FormComponent.d.ts +1 -1
- package/dist/components/form/FormComponent.d.ts.map +1 -1
- package/dist/components/form/FormComponentInner.d.ts +1 -1
- package/dist/components/form/FormComponentInner.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +0 -4
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/AutocompleteMultiple.d.ts +5 -0
- package/dist/components/form/inputs/AutocompleteMultiple.d.ts.map +1 -0
- package/dist/components/form/inputs/BasicInputs.d.ts +1 -1
- package/dist/components/form/inputs/BasicInputs.d.ts.map +1 -1
- package/dist/components/form/modules/formFragments.d.ts +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -3
- package/package.json +12 -10
- package/dist/components/form/VulcanComponents/Consumer.d.ts.map +0 -1
- package/dist/components/form/VulcanComponents/Context.d.ts.map +0 -1
- package/dist/components/form/VulcanComponents/Dummy.d.ts.map +0 -1
- package/dist/components/form/VulcanComponents/Provider.d.ts.map +0 -1
- package/dist/components/form/VulcanComponents/defaultVulcanComponents.d.ts.map +0 -1
- package/dist/components/form/VulcanComponents/typings.d.ts.map +0 -1
package/LICENSE.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2021 VulcanJS
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { PureComponent } from "react";
|
2
|
+
export interface HeadTagsProps {
|
3
|
+
url: string;
|
4
|
+
title: string;
|
5
|
+
description?: string;
|
6
|
+
image: string;
|
7
|
+
siteUrl: string;
|
8
|
+
faviconUrl?: string;
|
9
|
+
}
|
10
|
+
export declare class HeadTags extends PureComponent<HeadTagsProps> {
|
11
|
+
render(): JSX.Element;
|
12
|
+
}
|
13
|
+
//# sourceMappingURL=HeadTags.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"HeadTags.d.ts","sourceRoot":"","sources":["../../components/HeadTags.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAa7C,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAYD,qBAAa,QAAS,SAAQ,aAAa,CAAC,aAAa,CAAC;IACxD,MAAM;CAsFP"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const LoadingButton: ({ loading, label, onClick, children, className, ...rest }: {
|
2
|
+
[x: string]: any;
|
3
|
+
loading: any;
|
4
|
+
label: any;
|
5
|
+
onClick: any;
|
6
|
+
children: any;
|
7
|
+
className?: string | undefined;
|
8
|
+
}) => JSX.Element;
|
9
|
+
//# sourceMappingURL=LoadingButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"LoadingButton.d.ts","sourceRoot":"","sources":["../../components/LoadingButton.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;iBA6CzB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DocumentNode } from "graphql";
|
2
|
+
import { MutationHookOptions } from "@apollo/client";
|
3
|
+
export interface MutationButtonProps {
|
4
|
+
mutationOptions: MutationHookOptions;
|
5
|
+
mutation: string | DocumentNode;
|
6
|
+
mutationArguments: MutationHookOptions<any>["variables"];
|
7
|
+
submitCallback: () => void | Promise<void>;
|
8
|
+
successCallback: (res: any) => void | Promise<void>;
|
9
|
+
errorCallback: (err: any) => void | Promise<void>;
|
10
|
+
loadingButtonProps: {
|
11
|
+
label: string;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
export declare const MutationButton: (props: MutationButtonProps) => JSX.Element;
|
15
|
+
//# sourceMappingURL=MutationButton.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MutationButton.d.ts","sourceRoot":"","sources":["../../components/MutationButton.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAO,mBAAmB,EAAe,MAAM,gBAAgB,CAAC;AAuBvE,MAAM,WAAW,mBAAmB;IASlC,eAAe,EAAE,mBAAmB,CAAC;IASrC,QAAQ,EAAE,MAAM,GAAG,YAAY,CAAC;IAEhC,iBAAiB,EAAE,mBAAmB,CAAC,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC;IACzD,cAAc,EAAE,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3C,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpD,aAAa,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAElD,kBAAkB,EAAE;QAClB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AACD,eAAO,MAAM,cAAc,UAAW,mBAAmB,gBAqFxD,CAAC"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Consumer.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Consumer.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAE1C,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAErD,eAAO,MAAM,wBAAwB,0CAAmC,CAAC;AAEzE,eAAO,MAAM,mBAAmB,gCAA4C,CAAC;AAE7E,eAAO,MAAM,oBAAoB,yCAOhC,CAAC"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAK1D,eAAO,MAAM,uBAAuB,yCA2DhC,CAAC"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dummy.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Dummy.tsx"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;CAAG;AAE9B,eAAO,MAAM,KAAK,mBAMjB,CAAC"}
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/Provider.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAC;AAOrD,eAAO,MAAM,wBAAwB;;cAKzB,MAAM,SAAS;iBAM1B,CAAC"}
|
package/dist/components/{form/VulcanComponents → VulcanComponents}/defaultVulcanComponents.d.ts
RENAMED
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
export declare const defaultVulcanComponents: {
|
2
3
|
FormError: any;
|
3
4
|
FormComponentDefault: any;
|
@@ -44,10 +45,16 @@ export declare const defaultVulcanComponents: {
|
|
44
45
|
FormNestedObject: any;
|
45
46
|
FormOptionLabel: any;
|
46
47
|
Form: any;
|
48
|
+
FormItem: any;
|
47
49
|
Loading: any;
|
48
50
|
FormattedMessage: any;
|
49
51
|
Alert: any;
|
50
52
|
Button: any;
|
51
53
|
Icon: any;
|
54
|
+
MutationButton: import("react").ComponentType<any>;
|
55
|
+
LoadingButton: import("react").ComponentType<any>;
|
56
|
+
HeadTags: import("react").ComponentType<any>;
|
57
|
+
TooltipTrigger: import("react").ComponentType<any>;
|
58
|
+
Dropdown: import("react").ComponentType<any>;
|
52
59
|
};
|
53
60
|
//# sourceMappingURL=defaultVulcanComponents.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"defaultVulcanComponents.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/defaultVulcanComponents.ts"],"names":[],"mappings":";AA6IA,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC"}
|
@@ -1,9 +1,15 @@
|
|
1
|
+
import React from "react";
|
1
2
|
export interface PossibleCoreComponents {
|
2
3
|
Loading: any;
|
3
4
|
FormattedMessage: any;
|
4
5
|
Alert: any;
|
5
6
|
Button: any;
|
6
7
|
Icon: any;
|
8
|
+
MutationButton: React.ComponentType<any>;
|
9
|
+
LoadingButton: React.ComponentType<any>;
|
10
|
+
HeadTags: React.ComponentType<any>;
|
11
|
+
TooltipTrigger: React.ComponentType<any>;
|
12
|
+
Dropdown: React.ComponentType<any>;
|
7
13
|
}
|
8
14
|
export interface PossibleFormComponents {
|
9
15
|
FormError: any;
|
@@ -51,6 +57,7 @@ export interface PossibleFormComponents {
|
|
51
57
|
FormNestedObject: any;
|
52
58
|
FormOptionLabel: any;
|
53
59
|
Form: any;
|
60
|
+
FormItem: any;
|
54
61
|
}
|
55
62
|
export declare type PossibleVulcanComponents = PossibleCoreComponents & PossibleFormComponents;
|
56
63
|
//# sourceMappingURL=typings.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../components/VulcanComponents/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,GAAG,CAAC;IACb,gBAAgB,EAAE,GAAG,CAAC;IACtB,KAAK,EAAE,GAAG,CAAC;IACX,MAAM,EAAE,GAAG,CAAC;IACZ,IAAI,EAAE,GAAG,CAAC;IAEV,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACxC,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IAEnC,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;IACzC,QAAQ,EAAE,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,sBAAsB;IACrC,SAAS,EAAE,GAAG,CAAC;IAEf,oBAAoB,EAAE,GAAG,CAAC;IAC1B,qBAAqB,EAAE,GAAG,CAAC;IAC3B,mBAAmB,EAAE,GAAG,CAAC;IACzB,gBAAgB,EAAE,GAAG,CAAC;IACtB,kBAAkB,EAAE,GAAG,CAAC;IACxB,qBAAqB,EAAE,GAAG,CAAC;IAC3B,qBAAqB,EAAE,GAAG,CAAC;IAC3B,0BAA0B,EAAE,GAAG,CAAC;IAChC,uBAAuB,EAAE,GAAG,CAAC;IAC7B,mBAAmB,EAAE,GAAG,CAAC;IACzB,2BAA2B,EAAE,GAAG,CAAC;IACjC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,iBAAiB,EAAE,GAAG,CAAC;IAEvB,iBAAiB,EAAE,GAAG,CAAC;IACvB,uBAAuB,EAAE,GAAG,CAAC;IAC7B,mBAAmB,EAAE,GAAG,CAAC;IACzB,yBAAyB,EAAE,GAAG,CAAC;IAC/B,8BAA8B,EAAE,GAAG,CAAC;IAEpC,aAAa,EAAE,GAAG,CAAC;IACnB,kBAAkB,EAAE,GAAG,CAAC;IACxB,mBAAmB,EAAE,GAAG,CAAC;IACzB,WAAW,EAAE,GAAG,CAAC;IACjB,SAAS,EAAE,GAAG,CAAC;IACf,eAAe,EAAE,GAAG,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,GAAG,CAAC;IAChB,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;CACV;AACD,oBAAY,wBAAwB,GAAG,sBAAsB,GAC3D,sBAAsB,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import PropTypes from "prop-types";
|
2
|
+
declare const BootstrapDropdown: {
|
3
|
+
({ label, labelId, trigger, menuItems, menuContents, variant, buttonProps, ...dropdownProps }: {
|
4
|
+
[x: string]: any;
|
5
|
+
label: any;
|
6
|
+
labelId: any;
|
7
|
+
trigger: any;
|
8
|
+
menuItems: any;
|
9
|
+
menuContents: any;
|
10
|
+
variant?: string | undefined;
|
11
|
+
buttonProps: any;
|
12
|
+
}): any;
|
13
|
+
propTypes: {
|
14
|
+
labelId: PropTypes.Requireable<string>;
|
15
|
+
label: PropTypes.Requireable<string>;
|
16
|
+
trigger: PropTypes.Requireable<object>;
|
17
|
+
menuContents: PropTypes.Requireable<object>;
|
18
|
+
menuItems: PropTypes.Requireable<any[]>;
|
19
|
+
variant: PropTypes.Requireable<string>;
|
20
|
+
buttonProps: PropTypes.Requireable<object>;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
export default BootstrapDropdown;
|
24
|
+
//# sourceMappingURL=Dropdown.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../components/bootstrap/Dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,YAAY,CAAC;AAsFnC,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;CA6CtB,CAAC;AAYF,eAAe,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TooltipTrigger.d.ts","sourceRoot":"","sources":["../../../components/bootstrap/TooltipTrigger.tsx"],"names":[],"mappings":"AAaA,eAAO,MAAM,cAAc;;;iBAe1B,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
|
-
import type { PossibleVulcanComponents } from "
|
2
|
+
import type { PossibleVulcanComponents } from "../VulcanComponents/typings";
|
3
3
|
import { FormField } from "./typings";
|
4
4
|
import { VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
|
5
5
|
declare type Options<TField = any> = Array<{
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormComponent.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,
|
1
|
+
{"version":3,"file":"FormComponent.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponent.tsx"],"names":[],"mappings":"AAOA,OAAO,KAA6C,MAAM,OAAO,CAAC;AAIlE,OAAO,KAAK,EAEV,wBAAwB,EACzB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAEL,gBAAgB,EAChB,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAkK1B,aAAK,OAAO,CAAC,MAAM,GAAG,GAAG,IAAI,KAAK,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC;AAErE,MAAM,WAAW,kBAAkB,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,SAAS;IACjE,QAAQ,EAAE,GAAG,CAAC;IACd,QAAQ,EAAE,eAAe,CAAC;IAC1B,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAEnB,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,KAAK,CAAC,EAAE,gBAAgB,GAAG,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACpD,QAAQ,EAAE,KAAK,GAAG,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,QAAQ,CAAC,EAAE,GAAG,KAAK,OAAO,CAAC,CAAC;IAClD,gBAAgB,CAAC,EAAE,wBAAwB,CAAC;CAC7C;AAID,eAAO,MAAM,aAAa,UAAW,kBAAkB,gBAsOtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAoBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { MouseEventHandler } from "react";
|
2
2
|
import { FormComponentProps } from "./FormComponent";
|
3
3
|
import { VulcanCoreInput } from "@vulcanjs/schema";
|
4
|
-
import { PossibleVulcanComponents } from "
|
4
|
+
import { PossibleVulcanComponents } from "../VulcanComponents/typings";
|
5
5
|
export interface FormComponentInnerProps extends FormComponentProps {
|
6
6
|
inputType: VulcanCoreInput;
|
7
7
|
clearField?: MouseEventHandler<HTMLButtonElement>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormComponentInner.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponentInner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAQrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"FormComponentInner.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponentInner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAGjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAQrD,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AAIvE,MAAM,WAAW,uBAAwB,SAAQ,kBAAkB;IACjE,SAAS,EAAE,eAAe,CAAC;IAM3B,UAAU,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAIlD,YAAY,CAAC,EAAE,QAAQ,CAAC;IACxB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,EAAE,GAAG,CAAC;IAChB,cAAc,EAAE,wBAAwB,CAAC;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,GAAG,CAAC;IACpB,IAAI,EAAE,GAAG,CAAC;IACV,KAAK,EAAE,GAAG,CAAC;IACX,eAAe,EAAE,GAAG,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC;IACZ,kBAAkB,EAAE,GAAG,CAAC;IACxB,cAAc,EAAE,GAAG,CAAC;IACpB,eAAe,EAAE,GAAG,CAAC;IACrB,SAAS,EAAE,GAAG,CAAC;CAChB;AAED,eAAO,MAAM,kBAAkB,UAAW,uBAAuB,gBA2IhE,CAAC;AAEF,MAAM,WAAW,cAAe,SAAQ,uBAAuB;IAG7D,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACnD,cAAc,EAAE,GAAG,CAAC;CACrB"}
|
@@ -1,7 +1,3 @@
|
|
1
1
|
export * from "./FormContainer";
|
2
2
|
export * from "./Form";
|
3
|
-
export * from "./VulcanComponents/Provider";
|
4
|
-
export * from "./VulcanComponents/Context";
|
5
|
-
export * from "./VulcanComponents/Consumer";
|
6
|
-
export * from "./VulcanComponents/typings";
|
7
3
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { FormInputProps } from "../FormComponentInner";
|
2
|
+
export interface AutocompleteMultipleProps extends FormInputProps {
|
3
|
+
}
|
4
|
+
export declare const AutocompleteMultiple: (props: AutocompleteMultipleProps) => JSX.Element;
|
5
|
+
//# sourceMappingURL=AutocompleteMultiple.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AutocompleteMultiple.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/AutocompleteMultiple.tsx"],"names":[],"mappings":"AAgBA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAGvD,MAAM,WAAW,yBAA0B,SAAQ,cAAc;CAAG;AACpE,eAAO,MAAM,oBAAoB,UAAW,yBAAyB,gBAsFpE,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { FormInputProps } from "../FormComponentInner";
|
2
|
+
export declare const FormItem: (props: FormInputProps["itemProperties"] & Pick<FormInputProps["inputProperties"], "label" | "name">) => JSX.Element;
|
2
3
|
export declare const FormComponentDefault: (props: any) => JSX.Element;
|
3
4
|
export declare const FormComponentPassword: (props: any) => JSX.Element;
|
4
5
|
export declare const FormComponentNumber: (props: any) => JSX.Element;
|
@@ -16,5 +17,4 @@ export declare const FormComponentTime: (props: any) => JSX.Element;
|
|
16
17
|
export declare const FormComponentStaticText: (props: any) => JSX.Element;
|
17
18
|
export declare const FormComponentLikert: (props: any) => string;
|
18
19
|
export declare const FormComponentAutocomplete: (props: any) => string;
|
19
|
-
export declare const FormComponentMultiAutocomplete: (props: any) => string;
|
20
20
|
//# sourceMappingURL=BasicInputs.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"BasicInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/BasicInputs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;
|
1
|
+
{"version":3,"file":"BasicInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/BasicInputs.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AA4BvD,eAAO,MAAM,QAAQ,UACZ,cAAc,CAAC,gBAAgB,CAAC,GACrC,KAAK,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,gBAS5D,CAAC;AAqBF,eAAO,MAAM,oBAAoB,6BAEhC,CAAC;AACF,eAAO,MAAM,qBAAqB,6BAEjC,CAAC;AACF,eAAO,MAAM,mBAAmB,6BAE/B,CAAC;AACF,eAAO,MAAM,gBAAgB,6BAE5B,CAAC;AACF,eAAO,MAAM,kBAAkB,6BAE9B,CAAC;AACF,eAAO,MAAM,qBAAqB,6BAAqC,CAAC;AACxE,eAAO,MAAM,qBAAqB,6BAEjC,CAAC;AAEF,eAAO,MAAM,0BAA0B,6BAEtC,CAAC;AAEF,eAAO,MAAM,uBAAuB,6BAEnC,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,cAAc,gBAExD,CAAC;AACF,eAAO,MAAM,2BAA2B,6BAGvC,CAAC;AACF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AAMF,eAAO,MAAM,qBAAqB,6BAEjC,CAAC;AACF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AACF,eAAO,MAAM,uBAAuB,6BAA2C,CAAC;AAChF,eAAO,MAAM,mBAAmB,wBACQ,CAAC;AACzC,eAAO,MAAM,yBAAyB,wBACQ,CAAC"}
|
@@ -10,7 +10,7 @@ declare const getFormFragments: ({ formType, model, fields, addFields, }: {
|
|
10
10
|
mutationFragment: import("@apollo/client").DocumentNode;
|
11
11
|
queryFragmentName: string;
|
12
12
|
mutationFragmentName: string;
|
13
|
-
extraQueries: string[];
|
13
|
+
extraQueries: (string | (() => string))[];
|
14
14
|
};
|
15
15
|
export default getFormFragments;
|
16
16
|
//# sourceMappingURL=formFragments.d.ts.map
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|