@micromerce/formbuilder-react 1.0.1013 → 1.0.1015

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.d.ts CHANGED
@@ -18,9 +18,11 @@ import { queryControl } from "./components/QueryControl/data/defaultControls";
18
18
  import { FormBuilderConfig } from "./types";
19
19
  import { compactVatId, vatIdProblem } from "./components/controls/SubtypeInput/vatId";
20
20
  import type { VatIdProblem } from "./components/controls/SubtypeInput/vatId";
21
+ import { getCountries, parsePhoneNumber } from "react-phone-number-input/max";
22
+ import PHONE_FLAGS from "react-phone-number-input/flags";
21
23
  import { SOCIAL_NETWORKS, handleOf, isValidSocialLink, networkOf } from "./utils/subtypes/socialNetworks";
22
24
  import { FormBuilderThemeProvider, FORM_BUILDER_TOKENS, LEGACY_CSS_VARS, toCssVars } from "./theme";
23
25
  import type { FormBuilderTheme, FormBuilderThemeKey, FormBuilderThemePreset } from "./theme";
24
26
  export type { FormBuilderTheme, FormBuilderThemeKey, FormBuilderThemePreset, VatIdProblem };
25
- 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, SOCIAL_NETWORKS, isValidSocialLink, networkOf, handleOf, };
27
+ 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, SOCIAL_NETWORKS, isValidSocialLink, networkOf, handleOf, parsePhoneNumber, getCountries, PHONE_FLAGS, };
26
28
  export default FormBuilder;
@@ -21,8 +21,6 @@ export interface ISubtype {
21
21
  display?: (value: string) => string;
22
22
  /** An example, shown as the placeholder of an empty field when the form sets none. */
23
23
  example?: string;
24
- /** How wide the field is: as wide as its longest value, in characters (`ch`). */
25
- width?: number;
26
24
  /** Not a code read character by character (a link): the field keeps the form's type face. */
27
25
  text?: boolean;
28
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micromerce/formbuilder-react",
3
- "version": "1.0.1013",
3
+ "version": "1.0.1015",
4
4
  "description": "creates a form based on configuration",
5
5
  "main": "dist/formbuilder.js",
6
6
  "types": "dist/index.d.ts",