@wix/form-public 0.47.0 → 0.48.0

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.
@@ -421,10 +421,12 @@ declare interface ChoiceOption {
421
421
  default: boolean;
422
422
  }
423
423
 
424
- export declare type Currency = {
424
+ declare type Currency = {
425
425
  sign?: string;
426
426
  code?: string;
427
427
  };
428
+ export { Currency }
429
+ export { Currency as Currency_alias_1 }
428
430
 
429
431
  declare interface CustomOption {
430
432
  label: string;
@@ -862,10 +864,15 @@ declare interface FormError {
862
864
  export { FormError }
863
865
  export { FormError as FormError_alias_1 }
864
866
 
865
- declare const FormProvider: ({ children }: Props) => JSX_2.Element;
867
+ declare const FormProvider: ({ children, currency }: FormProviderProps) => JSX_2.Element;
866
868
  export { FormProvider }
867
869
  export { FormProvider as FormProvider_alias_1 }
868
870
 
871
+ declare interface FormProviderProps {
872
+ currency: Currency;
873
+ children: React_2.ReactNode;
874
+ }
875
+
869
876
  declare type FormValues = {
870
877
  [target: string]: PossibleValues;
871
878
  };
@@ -1382,10 +1389,6 @@ export declare type ProductValue = {
1382
1389
  quantity: number;
1383
1390
  };
1384
1391
 
1385
- declare type Props = {
1386
- children: React_2.ReactNode;
1387
- };
1388
-
1389
1392
  export declare type PropsMapper = (props: any) => FieldProps;
1390
1393
 
1391
1394
  export declare const RadioGroupMapper: PropsMapper;
@@ -421,10 +421,12 @@ declare interface ChoiceOption {
421
421
  default: boolean;
422
422
  }
423
423
 
424
- export declare type Currency = {
424
+ declare type Currency = {
425
425
  sign?: string;
426
426
  code?: string;
427
427
  };
428
+ export { Currency }
429
+ export { Currency as Currency_alias_1 }
428
430
 
429
431
  declare interface CustomOption {
430
432
  label: string;
@@ -862,10 +864,15 @@ declare interface FormError {
862
864
  export { FormError }
863
865
  export { FormError as FormError_alias_1 }
864
866
 
865
- declare const FormProvider: ({ children }: Props) => JSX_2.Element;
867
+ declare const FormProvider: ({ children, currency }: FormProviderProps) => JSX_2.Element;
866
868
  export { FormProvider }
867
869
  export { FormProvider as FormProvider_alias_1 }
868
870
 
871
+ declare interface FormProviderProps {
872
+ currency: Currency;
873
+ children: React_2.ReactNode;
874
+ }
875
+
869
876
  declare type FormValues = {
870
877
  [target: string]: PossibleValues;
871
878
  };
@@ -1382,10 +1389,6 @@ export declare type ProductValue = {
1382
1389
  quantity: number;
1383
1390
  };
1384
1391
 
1385
- declare type Props = {
1386
- children: React_2.ReactNode;
1387
- };
1388
-
1389
1392
  export declare type PropsMapper = (props: any) => FieldProps;
1390
1393
 
1391
1394
  export declare const RadioGroupMapper: PropsMapper;
package/dist/index.cjs CHANGED
@@ -21783,7 +21783,7 @@ var useForm3 = ({
21783
21783
  fieldsLayout
21784
21784
  } : null;
21785
21785
  };
21786
- var FormProvider = ({ children }) => {
21786
+ var FormProvider = ({ children, currency }) => {
21787
21787
  return /* @__PURE__ */ jsxRuntime.jsx(
21788
21788
  FormViewerProvider,
21789
21789
  {
@@ -21792,6 +21792,7 @@ var FormProvider = ({ children }) => {
21792
21792
  form: {},
21793
21793
  locale: "en",
21794
21794
  regionalFormat: "en",
21795
+ currency,
21795
21796
  WixRicosViewer: () => null,
21796
21797
  children: /* @__PURE__ */ jsxRuntime.jsx(ExternalDataProvider, { externalData: {}, children: /* @__PURE__ */ jsxRuntime.jsx(FormStatusProvider, { children }) })
21797
21798
  }