@vulcanjs/react-ui 0.6.4 → 0.6.6-alpha.5
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/form/FormComponent.d.ts +2 -1
- package/dist/components/form/FormComponent.d.ts.map +1 -1
- package/dist/components/form/FormComponentInner.d.ts +4 -3
- package/dist/components/form/FormComponentInner.d.ts.map +1 -1
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/form/index.d.ts.map +1 -1
- package/dist/components/form/inputs/AutocompleteMultiple.d.ts.map +1 -1
- package/dist/components/form/inputs/BasicInputs.d.ts +9 -14
- package/dist/components/form/inputs/BasicInputs.d.ts.map +1 -1
- package/dist/components/form/inputs/Checkboxgroup.d.ts +9 -0
- package/dist/components/form/inputs/Checkboxgroup.d.ts.map +1 -0
- package/dist/components/form/inputs/FormItem.d.ts +4 -0
- package/dist/components/form/inputs/FormItem.d.ts.map +1 -0
- package/dist/components/form/inputs/RadioGroup.d.ts +4 -0
- package/dist/components/form/inputs/RadioGroup.d.ts.map +1 -0
- package/dist/components/form/inputs/SelectInputs.d.ts +5 -0
- package/dist/components/form/inputs/SelectInputs.d.ts.map +1 -0
- package/dist/components/form/inputs/index.d.ts +6 -0
- package/dist/components/form/inputs/index.d.ts.map +1 -0
- package/dist/index.js +8139 -7712
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
@@ -5,8 +5,9 @@ import { VulcanFieldInput, VulcanFieldType } from "@vulcanjs/schema";
|
|
5
5
|
declare type Options<TField = any> = Array<{
|
6
6
|
label: string;
|
7
7
|
value: TField;
|
8
|
+
checked?: boolean;
|
8
9
|
}>;
|
9
|
-
export interface FormComponentProps<TField = any> extends FormField {
|
10
|
+
export interface FormComponentProps<TField = any> extends Omit<FormField, "type"> {
|
10
11
|
document: any;
|
11
12
|
datatype: VulcanFieldType;
|
12
13
|
disabled: boolean;
|
@@ -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,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;
|
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;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,MAAM,WAAW,kBAAkB,CAAC,MAAM,GAAG,GAAG,CAC9C,SAAQ,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC;IAC/B,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,gBAqOtD,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAoBtC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -13,7 +13,7 @@ export interface FormComponentInnerProps extends FormComponentProps {
|
|
13
13
|
formComponents: PossibleVulcanComponents;
|
14
14
|
intlKeys?: any;
|
15
15
|
inputClassName: any;
|
16
|
-
name
|
16
|
+
name?: string;
|
17
17
|
input: any;
|
18
18
|
beforeComponent: any;
|
19
19
|
afterComponent: any;
|
@@ -24,8 +24,9 @@ export interface FormComponentInnerProps extends FormComponentProps {
|
|
24
24
|
formInput: any;
|
25
25
|
}
|
26
26
|
export declare const FormComponentInner: (props: FormComponentInnerProps) => JSX.Element;
|
27
|
-
export interface FormInputProps extends FormComponentInnerProps {
|
28
|
-
inputProperties: React.HTMLProps<
|
27
|
+
export interface FormInputProps<TInput = HTMLInputElement> extends FormComponentInnerProps {
|
28
|
+
inputProperties: React.HTMLProps<TInput>;
|
29
29
|
itemProperties: any;
|
30
30
|
}
|
31
|
+
export declare type FormTextAreaProps = FormInputProps<HTMLTextAreaElement>;
|
31
32
|
//# sourceMappingURL=FormComponentInner.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"FormComponentInner.d.ts","sourceRoot":"","sources":["../../../components/form/FormComponentInner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,E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E,GAAG,CAAC;IAChB,cAAc,EAAE,wBAAwB,CAAC;IACzC,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,cAAc,EAAE,GAAG,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,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;AAMF,MAAM,WAAW,cAAc,CAAC,MAAM,GAAG,gBAAgB,CACvD,SAAQ,uBAAuB;IAU/B,eAAe,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACzC,cAAc,EAAE,GAAG,CAAC;CACrB;AACD,oBAAY,iBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC"}
|
@@ -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;AAEvB,cAAc,eAAe,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../components/form/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AAEvB,cAAc,eAAe,CAAC;AAE9B,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
@@ -1 +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,
|
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,gBAuFpE,CAAC"}
|
@@ -1,21 +1,16 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import { FormInputProps } from "../FormComponentInner";
|
3
|
-
export declare const
|
4
|
-
export declare const
|
5
|
-
export declare const
|
6
|
-
export declare const
|
7
|
-
export declare const
|
8
|
-
export declare const
|
9
|
-
export declare const FormComponentTextarea: (props: any) => JSX.Element;
|
10
|
-
export declare const FormComponentCheckbox: (props: any) => JSX.Element;
|
11
|
-
export declare const FormComponentCheckboxGroup: (props: any) => JSX.Element;
|
12
|
-
export declare const FormComponentRadioGroup: (props: any) => JSX.Element;
|
13
|
-
export declare const FormComponentSelect: (props: FormInputProps) => JSX.Element;
|
14
|
-
export declare const FormComponentSelectMultiple: (props: any) => JSX.Element;
|
2
|
+
import { FormInputProps, FormTextAreaProps } from "../FormComponentInner";
|
3
|
+
export declare const FormComponentDefault: (props: FormInputProps) => JSX.Element;
|
4
|
+
export declare const FormComponentPassword: (props: FormInputProps) => JSX.Element;
|
5
|
+
export declare const FormComponentNumber: (props: FormInputProps) => JSX.Element;
|
6
|
+
export declare const FormComponentUrl: (props: FormInputProps) => JSX.Element;
|
7
|
+
export declare const FormComponentEmail: (props: FormInputProps) => JSX.Element;
|
8
|
+
export declare const FormComponentCheckbox: (props: FormInputProps) => JSX.Element;
|
15
9
|
export declare const FormComponentDate: (props: any) => JSX.Element;
|
16
10
|
export declare const FormComponentDateTime: (props: any) => JSX.Element;
|
17
11
|
export declare const FormComponentTime: (props: any) => JSX.Element;
|
18
|
-
export declare const FormComponentStaticText: (props:
|
12
|
+
export declare const FormComponentStaticText: (props: FormInputProps) => JSX.Element;
|
19
13
|
export declare const FormComponentLikert: (props: any) => string;
|
20
14
|
export declare const FormComponentAutocomplete: (props: any) => string;
|
15
|
+
export declare const FormComponentTextarea: (props: FormTextAreaProps) => JSX.Element;
|
21
16
|
//# 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,
|
1
|
+
{"version":3,"file":"BasicInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/BasicInputs.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAkC1E,eAAO,MAAM,oBAAoB,UAAW,cAAc,gBAEzD,CAAC;AACF,eAAO,MAAM,qBAAqB,UAAW,cAAc,gBAE1D,CAAC;AACF,eAAO,MAAM,mBAAmB,UAAW,cAAc,gBAExD,CAAC;AACF,eAAO,MAAM,gBAAgB,UAAW,cAAc,gBAErD,CAAC;AACF,eAAO,MAAM,kBAAkB,UAAW,cAAc,gBAEvD,CAAC;AAEF,eAAO,MAAM,qBAAqB,UAAW,cAAc,gBAG1D,CAAC;AAEF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AAMF,eAAO,MAAM,qBAAqB,6BAEjC,CAAC;AACF,eAAO,MAAM,iBAAiB,6BAE7B,CAAC;AACF,eAAO,MAAM,uBAAuB,UAAW,cAAc,gBAG5D,CAAC;AACF,eAAO,MAAM,mBAAmB,wBACQ,CAAC;AACzC,eAAO,MAAM,yBAAyB,wBACQ,CAAC;AAI/C,eAAO,MAAM,qBAAqB,UAAW,iBAAiB,gBAgB7D,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormInputProps } from "../FormComponentInner";
|
3
|
+
export declare const otherMarker = "[other]";
|
4
|
+
export declare const isOtherValue: (s: any) => any;
|
5
|
+
export declare const removeOtherMarker: (s: any) => any;
|
6
|
+
export declare const addOtherMarker: (s: any) => string;
|
7
|
+
export declare const removeOtherValue: (a: any) => any;
|
8
|
+
export declare const FormComponentCheckboxGroup: (props: FormInputProps) => JSX.Element;
|
9
|
+
//# sourceMappingURL=Checkboxgroup.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"Checkboxgroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/Checkboxgroup.tsx"],"names":[],"mappings":";AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAIvD,eAAO,MAAM,WAAW,YAAY,CAAC;AAGrC,eAAO,MAAM,YAAY,iBACsD,CAAC;AAGhF,eAAO,MAAM,iBAAiB,iBAC8B,CAAC;AAG7D,eAAO,MAAM,cAAc,oBAA8B,CAAC;AAG1D,eAAO,MAAM,gBAAgB,iBAE5B,CAAC;AAwEF,eAAO,MAAM,0BAA0B,UAAW,cAAc,gBAgG/D,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormInputProps } from "../FormComponentInner";
|
3
|
+
export declare const FormItem: (props: FormInputProps["itemProperties"] & Pick<FormInputProps["inputProperties"], "label" | "name">) => JSX.Element;
|
4
|
+
//# sourceMappingURL=FormItem.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FormItem.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/FormItem.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAKvD,eAAO,MAAM,QAAQ,UACZ,cAAc,CAAC,gBAAgB,CAAC,GACrC,KAAK,cAAc,CAAC,iBAAiB,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,gBAS5D,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/RadioGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAOvD,eAAO,MAAM,uBAAuB,UAAW,cAAc,gBAoC5D,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { FormInputProps } from "../FormComponentInner";
|
3
|
+
export declare const FormComponentSelect: (props: FormInputProps<HTMLSelectElement>) => JSX.Element;
|
4
|
+
export declare const FormComponentSelectMultiple: (props: any) => JSX.Element;
|
5
|
+
//# sourceMappingURL=SelectInputs.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"SelectInputs.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/SelectInputs.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AAwC1E,eAAO,MAAM,mBAAmB,UACvB,eAAe,iBAAiB,CAAC,gBACL,CAAC;AAEtC,eAAO,MAAM,2BAA2B,6BAGvC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../components/form/inputs/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|