@micromerce/formbuilder-react 1.0.1008 → 1.0.1010
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/controls/PhoneInput/PhoneInput.d.ts +19 -0
- package/dist/components/controls/PhoneInput/phone.d.ts +18 -0
- package/dist/components/controls/SubtypeInput/vatId.d.ts +13 -0
- package/dist/formbuilder.js +70 -70
- package/dist/formbuilder.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/subtypes/index.d.ts +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -16,8 +16,10 @@ import TrafficLightCardSelect from "./components/controls/TrafficLightCardSelect
|
|
|
16
16
|
import { useValueGenerator } from "./hooks/useValueGenerator/useValueGenerator";
|
|
17
17
|
import { queryControl } from "./components/QueryControl/data/defaultControls";
|
|
18
18
|
import { FormBuilderConfig } from "./types";
|
|
19
|
+
import { compactVatId, vatIdProblem } from "./components/controls/SubtypeInput/vatId";
|
|
20
|
+
import type { VatIdProblem } from "./components/controls/SubtypeInput/vatId";
|
|
19
21
|
import { FormBuilderThemeProvider, FORM_BUILDER_TOKENS, LEGACY_CSS_VARS, toCssVars } from "./theme";
|
|
20
22
|
import type { FormBuilderTheme, FormBuilderThemeKey, FormBuilderThemePreset } from "./theme";
|
|
21
|
-
export type { FormBuilderTheme, FormBuilderThemeKey, FormBuilderThemePreset };
|
|
22
|
-
export { FormBuilderThemeProvider, FORM_BUILDER_TOKENS, LEGACY_CSS_VARS, toCssVars, FormBuilder, FormBuilderConfig, queryControl, Select, MultiSelect, Checkbox, ControlWrapper, FormFooter, Input, InputFreeSolo, FormList, FormGroup, MrnInput, PasswordInput, Textarea, TrafficLightCardSelect, useValueGenerator, };
|
|
23
|
+
export type { FormBuilderTheme, FormBuilderThemeKey, FormBuilderThemePreset, VatIdProblem };
|
|
24
|
+
export { FormBuilderThemeProvider, FORM_BUILDER_TOKENS, LEGACY_CSS_VARS, toCssVars, FormBuilder, FormBuilderConfig, queryControl, Select, MultiSelect, Checkbox, ControlWrapper, FormFooter, Input, InputFreeSolo, FormList, FormGroup, MrnInput, PasswordInput, Textarea, TrafficLightCardSelect, useValueGenerator, compactVatId, vatIdProblem, };
|
|
23
25
|
export default FormBuilder;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -87,7 +87,7 @@ export interface GroupFormControl extends ControlCommons {
|
|
|
87
87
|
}
|
|
88
88
|
export interface InputFormControl extends ControlCommons {
|
|
89
89
|
control: "input";
|
|
90
|
-
type: "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "password" | "geolocation";
|
|
90
|
+
type: "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "tel" | "password" | "geolocation";
|
|
91
91
|
placeholder?: string;
|
|
92
92
|
pattern?: string;
|
|
93
93
|
minLength?: number;
|
|
@@ -131,7 +131,7 @@ export interface ListFormControl extends ControlCommons {
|
|
|
131
131
|
template: FormControls;
|
|
132
132
|
}
|
|
133
133
|
export type Control = "input" | "textarea" | "checkbox" | "select" | "list";
|
|
134
|
-
export type ControlType = "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "password" | "geolocation" | "json";
|
|
134
|
+
export type ControlType = "plain" | "html" | "hex" | "color" | "mrn" | "url" | "date" | "time" | "datetime" | "number" | "email" | "tel" | "password" | "geolocation" | "json";
|
|
135
135
|
export type FormControl = InputFormControl | TextareaFormControl | CheckboxFormControl | SelectFormControl | MultiSelectFormControl | ListFormControl | GroupFormControl;
|
|
136
136
|
export interface FormControls {
|
|
137
137
|
[key: string]: FormControl;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* positive case only (a check mark) and never blocks a submit.
|
|
8
8
|
*/
|
|
9
9
|
import { compactBic } from "../../components/controls/SubtypeInput/bankAccount";
|
|
10
|
-
export type Normalize = "compact-upper" | "upper";
|
|
10
|
+
export type Normalize = "compact-upper" | "compact-id" | "upper" | "e164";
|
|
11
11
|
export interface ISubtype {
|
|
12
12
|
/** The server refuses a value that fails `check`. */
|
|
13
13
|
checked: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@micromerce/formbuilder-react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1010",
|
|
4
4
|
"description": "creates a form based on configuration",
|
|
5
5
|
"main": "dist/formbuilder.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"qs": "^6.16.0",
|
|
82
82
|
"react-date-range": "2.0.1",
|
|
83
83
|
"react-lite-youtube-embed": "^2.6.0",
|
|
84
|
+
"react-phone-number-input": "^3.4.18",
|
|
84
85
|
"react-quill": "^2.0.0",
|
|
85
86
|
"showdown": "^2.1.0",
|
|
86
87
|
"styled-components": "^6.6.0",
|