@itcase/forms 1.1.42 → 1.1.43
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/css/styles/main.css +1 -1
- package/dist/itcase-forms.cjs.js +47 -47
- package/dist/itcase-forms.esm.js +47 -47
- package/package.json +1 -1
package/dist/css/styles/main.css
CHANGED
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -2642,9 +2642,9 @@ const sendFormDataToServer = async (url, data) => {
|
|
|
2642
2642
|
|
|
2643
2643
|
const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalForm(props, ref) {
|
|
2644
2644
|
const {
|
|
2645
|
+
className,
|
|
2645
2646
|
dataTestId,
|
|
2646
2647
|
dataTour,
|
|
2647
|
-
className,
|
|
2648
2648
|
type,
|
|
2649
2649
|
initialValues,
|
|
2650
2650
|
initialValuesEqual,
|
|
@@ -2660,8 +2660,36 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2660
2660
|
descTextColor,
|
|
2661
2661
|
descTextWeight,
|
|
2662
2662
|
buttonGap,
|
|
2663
|
+
additionalProps = {},
|
|
2664
|
+
buttonDirection = 'vertical',
|
|
2665
|
+
buttonFill,
|
|
2666
|
+
buttonJustifyContent,
|
|
2667
|
+
buttonPadding,
|
|
2668
|
+
buttonPosition,
|
|
2669
|
+
dataTestIdButtons,
|
|
2663
2670
|
dataTestIdPrimaryButton,
|
|
2671
|
+
dataTestIdSecondaryButton,
|
|
2672
|
+
dataTestIdTertiaryButton,
|
|
2673
|
+
dataTourButtons,
|
|
2664
2674
|
dataTourPrimaryButton,
|
|
2675
|
+
dataTourSecondaryButton,
|
|
2676
|
+
dataTourTertiaryButton,
|
|
2677
|
+
disableFieldsAutoComplete = false,
|
|
2678
|
+
fieldsGap,
|
|
2679
|
+
formName,
|
|
2680
|
+
groupGap,
|
|
2681
|
+
language,
|
|
2682
|
+
loader,
|
|
2683
|
+
loaderAppearance,
|
|
2684
|
+
loaderFill = 'surfacePrimary',
|
|
2685
|
+
loaderItemFill = 'accentItemSecondary',
|
|
2686
|
+
loaderShape,
|
|
2687
|
+
loaderSize = 'l',
|
|
2688
|
+
loaderText,
|
|
2689
|
+
loaderType = 'simple',
|
|
2690
|
+
mutators,
|
|
2691
|
+
notificationCloseButton,
|
|
2692
|
+
notificationType,
|
|
2665
2693
|
primaryButton,
|
|
2666
2694
|
primaryButtonAppearance,
|
|
2667
2695
|
primaryButtonFill,
|
|
@@ -2673,9 +2701,7 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2673
2701
|
primaryButtonLabelTextColor,
|
|
2674
2702
|
primaryButtonLabelTextWeight,
|
|
2675
2703
|
primaryButtonSize,
|
|
2676
|
-
|
|
2677
|
-
dataTourSecondaryButton,
|
|
2678
|
-
onClickSecondaryButton,
|
|
2704
|
+
renderFieldsWrapper = wrapperChildren => wrapperChildren,
|
|
2679
2705
|
secondaryButton,
|
|
2680
2706
|
secondaryButtonAppearance,
|
|
2681
2707
|
secondaryButtonFill,
|
|
@@ -2687,9 +2713,7 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2687
2713
|
secondaryButtonLabelTextColor,
|
|
2688
2714
|
secondaryButtonLabelTextWeight,
|
|
2689
2715
|
secondaryButtonSize,
|
|
2690
|
-
|
|
2691
|
-
dataTourTertiaryButton,
|
|
2692
|
-
onClickTertiaryButton,
|
|
2716
|
+
shapeStrengthClass,
|
|
2693
2717
|
tertiaryButton,
|
|
2694
2718
|
tertiaryButtonFill,
|
|
2695
2719
|
tertiaryButtonFillHover,
|
|
@@ -2698,35 +2722,11 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2698
2722
|
tertiaryButtonLabelTextColor,
|
|
2699
2723
|
tertiaryButtonLabelTextWeight,
|
|
2700
2724
|
tertiaryButtonSize,
|
|
2701
|
-
additionalProps = {},
|
|
2702
|
-
buttonDirection = 'vertical',
|
|
2703
|
-
buttonFill,
|
|
2704
|
-
buttonJustifyContent,
|
|
2705
|
-
buttonPadding,
|
|
2706
|
-
buttonPosition,
|
|
2707
|
-
dataTestIdButtons,
|
|
2708
|
-
dataTourButtons,
|
|
2709
|
-
disableFieldsAutoComplete = false,
|
|
2710
|
-
fieldsGap,
|
|
2711
|
-
formName,
|
|
2712
|
-
groupGap,
|
|
2713
|
-
language,
|
|
2714
|
-
loader,
|
|
2715
|
-
loaderAppearance = 'surfacePrimary sizeM',
|
|
2716
|
-
loaderFill,
|
|
2717
|
-
loaderItemFill,
|
|
2718
|
-
loaderShape,
|
|
2719
|
-
loaderSize,
|
|
2720
|
-
loaderText,
|
|
2721
|
-
loaderType = 'simple',
|
|
2722
|
-
mutators,
|
|
2723
|
-
notificationCloseButton,
|
|
2724
|
-
notificationType,
|
|
2725
|
-
renderFieldsWrapper = wrapperChildren => wrapperChildren,
|
|
2726
|
-
shapeStrengthClass,
|
|
2727
2725
|
before,
|
|
2728
2726
|
after,
|
|
2729
2727
|
isLoading,
|
|
2728
|
+
onClickSecondaryButton,
|
|
2729
|
+
onClickTertiaryButton,
|
|
2730
2730
|
onChangeFormValues,
|
|
2731
2731
|
onSubmit
|
|
2732
2732
|
} = props;
|
|
@@ -2751,10 +2751,10 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2751
2751
|
initialValues: initialValues,
|
|
2752
2752
|
initialValuesEqual: initialValuesEqual,
|
|
2753
2753
|
render: ({
|
|
2754
|
-
submitError,
|
|
2755
2754
|
form,
|
|
2756
2755
|
handleSubmit,
|
|
2757
|
-
modifiedSinceLastSubmit
|
|
2756
|
+
modifiedSinceLastSubmit,
|
|
2757
|
+
submitError
|
|
2758
2758
|
}) => {
|
|
2759
2759
|
return /*#__PURE__*/React__default.default.createElement("form", {
|
|
2760
2760
|
className: clsx__default.default(className, 'form', type && `form_type_${type}`, buttonPosition && `form_button-position_${buttonPosition}`, directionClass && `direction_${directionClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, elevationClass && `elevation_${elevationClass}`),
|
|
@@ -2784,8 +2784,8 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2784
2784
|
}, desc), submitError && !modifiedSinceLastSubmit && /*#__PURE__*/React__default.default.createElement("div", {
|
|
2785
2785
|
className: clsx__default.default('notification', 'form-notification', notificationType ? `form-notification_${notificationType}` : 'form-notification_global')
|
|
2786
2786
|
}, /*#__PURE__*/React__default.default.createElement(Notification.Notification, {
|
|
2787
|
-
className: "form-notification__item",
|
|
2788
2787
|
appearance: "errorPrimary",
|
|
2788
|
+
className: "form-notification__item",
|
|
2789
2789
|
title: form.getState().submitError,
|
|
2790
2790
|
titleTextSize: "h6",
|
|
2791
2791
|
status: "error",
|
|
@@ -2803,28 +2803,28 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2803
2803
|
}, Object.keys(config).map(key => generateField(config[key], {
|
|
2804
2804
|
key
|
|
2805
2805
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React__default.default.createElement(Loader.Loader, {
|
|
2806
|
+
appearance: loaderAppearance,
|
|
2806
2807
|
className: "form__loader",
|
|
2807
2808
|
type: loaderType,
|
|
2808
|
-
appearance: loaderAppearance,
|
|
2809
2809
|
size: loaderSize,
|
|
2810
2810
|
fill: loaderFill,
|
|
2811
2811
|
text: loaderText,
|
|
2812
2812
|
itemFill: loaderItemFill,
|
|
2813
2813
|
shape: loaderShape
|
|
2814
2814
|
}))))), (primaryButtonLabel || primaryButton || secondaryButtonLabel || secondaryButton || tertiaryButton || tertiaryButtonLabel) && /*#__PURE__*/React__default.default.createElement(Group.Group, {
|
|
2815
|
+
className: "form__button",
|
|
2815
2816
|
dataTestId: dataTestIdButtons,
|
|
2816
2817
|
dataTour: dataTourButtons,
|
|
2817
|
-
className: "form__button",
|
|
2818
2818
|
direction: buttonDirection,
|
|
2819
2819
|
justifyContent: buttonJustifyContent,
|
|
2820
2820
|
fill: buttonFill,
|
|
2821
2821
|
padding: buttonPadding,
|
|
2822
2822
|
gap: buttonGap
|
|
2823
2823
|
}, primaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2824
|
+
appearance: primaryButtonAppearance,
|
|
2825
|
+
className: "form__button-item",
|
|
2824
2826
|
dataTestId: dataTestIdPrimaryButton,
|
|
2825
2827
|
dataTour: dataTourPrimaryButton,
|
|
2826
|
-
className: "form__button-item",
|
|
2827
|
-
appearance: primaryButtonAppearance,
|
|
2828
2828
|
width: "fill",
|
|
2829
2829
|
size: primaryButtonSize,
|
|
2830
2830
|
fill: primaryButtonFill,
|
|
@@ -2833,13 +2833,13 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2833
2833
|
labelTextColor: primaryButtonLabelTextColor,
|
|
2834
2834
|
labelTextSize: primaryButtonLabelSize,
|
|
2835
2835
|
labelTextWeight: primaryButtonLabelTextWeight,
|
|
2836
|
-
|
|
2837
|
-
|
|
2836
|
+
loading: primaryButtonIsLoading,
|
|
2837
|
+
isDisabled: primaryButtonIsDisabled
|
|
2838
2838
|
}) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2839
|
+
appearance: secondaryButtonAppearance,
|
|
2840
|
+
className: "form__button-item",
|
|
2839
2841
|
dataTestId: dataTestIdSecondaryButton,
|
|
2840
2842
|
dataTour: dataTourSecondaryButton,
|
|
2841
|
-
className: "form__button-item",
|
|
2842
|
-
appearance: secondaryButtonAppearance,
|
|
2843
2843
|
width: "fill",
|
|
2844
2844
|
size: secondaryButtonSize,
|
|
2845
2845
|
fill: secondaryButtonFill,
|
|
@@ -2848,13 +2848,13 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2848
2848
|
labelTextColor: secondaryButtonLabelTextColor,
|
|
2849
2849
|
labelTextSize: secondaryButtonLabelSize,
|
|
2850
2850
|
labelTextWeight: secondaryButtonLabelTextWeight,
|
|
2851
|
-
isDisabled: secondaryButtonIsDisabled,
|
|
2852
2851
|
loading: secondaryButtonIsLoading,
|
|
2852
|
+
isDisabled: secondaryButtonIsDisabled,
|
|
2853
2853
|
onClick: onClickSecondaryButton
|
|
2854
2854
|
}) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React__default.default.createElement(Button.Button, {
|
|
2855
|
+
className: "form__button-item",
|
|
2855
2856
|
dataTestId: dataTestIdTertiaryButton,
|
|
2856
2857
|
dataTour: dataTourTertiaryButton,
|
|
2857
|
-
className: "form__button-item",
|
|
2858
2858
|
width: "fill",
|
|
2859
2859
|
size: tertiaryButtonSize,
|
|
2860
2860
|
fill: tertiaryButtonFill,
|
|
@@ -2869,9 +2869,9 @@ const FinalForm = /*#__PURE__*/React__default.default.forwardRef(function FinalF
|
|
|
2869
2869
|
decorators: [focusOnErrorDecorator],
|
|
2870
2870
|
mutators: mutators,
|
|
2871
2871
|
subscription: {
|
|
2872
|
-
submitError: true,
|
|
2873
2872
|
modifiedSinceLastSubmit: true,
|
|
2874
2873
|
pristine: true,
|
|
2874
|
+
submitError: true,
|
|
2875
2875
|
submitting: true
|
|
2876
2876
|
},
|
|
2877
2877
|
validate: validate,
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -2631,9 +2631,9 @@ const sendFormDataToServer = async (url, data) => {
|
|
|
2631
2631
|
|
|
2632
2632
|
const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
2633
2633
|
const {
|
|
2634
|
+
className,
|
|
2634
2635
|
dataTestId,
|
|
2635
2636
|
dataTour,
|
|
2636
|
-
className,
|
|
2637
2637
|
type,
|
|
2638
2638
|
initialValues,
|
|
2639
2639
|
initialValuesEqual,
|
|
@@ -2649,8 +2649,36 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2649
2649
|
descTextColor,
|
|
2650
2650
|
descTextWeight,
|
|
2651
2651
|
buttonGap,
|
|
2652
|
+
additionalProps = {},
|
|
2653
|
+
buttonDirection = 'vertical',
|
|
2654
|
+
buttonFill,
|
|
2655
|
+
buttonJustifyContent,
|
|
2656
|
+
buttonPadding,
|
|
2657
|
+
buttonPosition,
|
|
2658
|
+
dataTestIdButtons,
|
|
2652
2659
|
dataTestIdPrimaryButton,
|
|
2660
|
+
dataTestIdSecondaryButton,
|
|
2661
|
+
dataTestIdTertiaryButton,
|
|
2662
|
+
dataTourButtons,
|
|
2653
2663
|
dataTourPrimaryButton,
|
|
2664
|
+
dataTourSecondaryButton,
|
|
2665
|
+
dataTourTertiaryButton,
|
|
2666
|
+
disableFieldsAutoComplete = false,
|
|
2667
|
+
fieldsGap,
|
|
2668
|
+
formName,
|
|
2669
|
+
groupGap,
|
|
2670
|
+
language,
|
|
2671
|
+
loader,
|
|
2672
|
+
loaderAppearance,
|
|
2673
|
+
loaderFill = 'surfacePrimary',
|
|
2674
|
+
loaderItemFill = 'accentItemSecondary',
|
|
2675
|
+
loaderShape,
|
|
2676
|
+
loaderSize = 'l',
|
|
2677
|
+
loaderText,
|
|
2678
|
+
loaderType = 'simple',
|
|
2679
|
+
mutators,
|
|
2680
|
+
notificationCloseButton,
|
|
2681
|
+
notificationType,
|
|
2654
2682
|
primaryButton,
|
|
2655
2683
|
primaryButtonAppearance,
|
|
2656
2684
|
primaryButtonFill,
|
|
@@ -2662,9 +2690,7 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2662
2690
|
primaryButtonLabelTextColor,
|
|
2663
2691
|
primaryButtonLabelTextWeight,
|
|
2664
2692
|
primaryButtonSize,
|
|
2665
|
-
|
|
2666
|
-
dataTourSecondaryButton,
|
|
2667
|
-
onClickSecondaryButton,
|
|
2693
|
+
renderFieldsWrapper = wrapperChildren => wrapperChildren,
|
|
2668
2694
|
secondaryButton,
|
|
2669
2695
|
secondaryButtonAppearance,
|
|
2670
2696
|
secondaryButtonFill,
|
|
@@ -2676,9 +2702,7 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2676
2702
|
secondaryButtonLabelTextColor,
|
|
2677
2703
|
secondaryButtonLabelTextWeight,
|
|
2678
2704
|
secondaryButtonSize,
|
|
2679
|
-
|
|
2680
|
-
dataTourTertiaryButton,
|
|
2681
|
-
onClickTertiaryButton,
|
|
2705
|
+
shapeStrengthClass,
|
|
2682
2706
|
tertiaryButton,
|
|
2683
2707
|
tertiaryButtonFill,
|
|
2684
2708
|
tertiaryButtonFillHover,
|
|
@@ -2687,35 +2711,11 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2687
2711
|
tertiaryButtonLabelTextColor,
|
|
2688
2712
|
tertiaryButtonLabelTextWeight,
|
|
2689
2713
|
tertiaryButtonSize,
|
|
2690
|
-
additionalProps = {},
|
|
2691
|
-
buttonDirection = 'vertical',
|
|
2692
|
-
buttonFill,
|
|
2693
|
-
buttonJustifyContent,
|
|
2694
|
-
buttonPadding,
|
|
2695
|
-
buttonPosition,
|
|
2696
|
-
dataTestIdButtons,
|
|
2697
|
-
dataTourButtons,
|
|
2698
|
-
disableFieldsAutoComplete = false,
|
|
2699
|
-
fieldsGap,
|
|
2700
|
-
formName,
|
|
2701
|
-
groupGap,
|
|
2702
|
-
language,
|
|
2703
|
-
loader,
|
|
2704
|
-
loaderAppearance = 'surfacePrimary sizeM',
|
|
2705
|
-
loaderFill,
|
|
2706
|
-
loaderItemFill,
|
|
2707
|
-
loaderShape,
|
|
2708
|
-
loaderSize,
|
|
2709
|
-
loaderText,
|
|
2710
|
-
loaderType = 'simple',
|
|
2711
|
-
mutators,
|
|
2712
|
-
notificationCloseButton,
|
|
2713
|
-
notificationType,
|
|
2714
|
-
renderFieldsWrapper = wrapperChildren => wrapperChildren,
|
|
2715
|
-
shapeStrengthClass,
|
|
2716
2714
|
before,
|
|
2717
2715
|
after,
|
|
2718
2716
|
isLoading,
|
|
2717
|
+
onClickSecondaryButton,
|
|
2718
|
+
onClickTertiaryButton,
|
|
2719
2719
|
onChangeFormValues,
|
|
2720
2720
|
onSubmit
|
|
2721
2721
|
} = props;
|
|
@@ -2740,10 +2740,10 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2740
2740
|
initialValues: initialValues,
|
|
2741
2741
|
initialValuesEqual: initialValuesEqual,
|
|
2742
2742
|
render: ({
|
|
2743
|
-
submitError,
|
|
2744
2743
|
form,
|
|
2745
2744
|
handleSubmit,
|
|
2746
|
-
modifiedSinceLastSubmit
|
|
2745
|
+
modifiedSinceLastSubmit,
|
|
2746
|
+
submitError
|
|
2747
2747
|
}) => {
|
|
2748
2748
|
return /*#__PURE__*/React.createElement("form", {
|
|
2749
2749
|
className: clsx(className, 'form', type && `form_type_${type}`, buttonPosition && `form_button-position_${buttonPosition}`, directionClass && `direction_${directionClass}`, fillClass && `fill_${fillClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, elevationClass && `elevation_${elevationClass}`),
|
|
@@ -2773,8 +2773,8 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2773
2773
|
}, desc), submitError && !modifiedSinceLastSubmit && /*#__PURE__*/React.createElement("div", {
|
|
2774
2774
|
className: clsx('notification', 'form-notification', notificationType ? `form-notification_${notificationType}` : 'form-notification_global')
|
|
2775
2775
|
}, /*#__PURE__*/React.createElement(Notification, {
|
|
2776
|
-
className: "form-notification__item",
|
|
2777
2776
|
appearance: "errorPrimary",
|
|
2777
|
+
className: "form-notification__item",
|
|
2778
2778
|
title: form.getState().submitError,
|
|
2779
2779
|
titleTextSize: "h6",
|
|
2780
2780
|
status: "error",
|
|
@@ -2792,28 +2792,28 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2792
2792
|
}, Object.keys(config).map(key => generateField(config[key], {
|
|
2793
2793
|
key
|
|
2794
2794
|
}, additionalProps[config[key].name])), isLoading && (loader || /*#__PURE__*/React.createElement(Loader, {
|
|
2795
|
+
appearance: loaderAppearance,
|
|
2795
2796
|
className: "form__loader",
|
|
2796
2797
|
type: loaderType,
|
|
2797
|
-
appearance: loaderAppearance,
|
|
2798
2798
|
size: loaderSize,
|
|
2799
2799
|
fill: loaderFill,
|
|
2800
2800
|
text: loaderText,
|
|
2801
2801
|
itemFill: loaderItemFill,
|
|
2802
2802
|
shape: loaderShape
|
|
2803
2803
|
}))))), (primaryButtonLabel || primaryButton || secondaryButtonLabel || secondaryButton || tertiaryButton || tertiaryButtonLabel) && /*#__PURE__*/React.createElement(Group, {
|
|
2804
|
+
className: "form__button",
|
|
2804
2805
|
dataTestId: dataTestIdButtons,
|
|
2805
2806
|
dataTour: dataTourButtons,
|
|
2806
|
-
className: "form__button",
|
|
2807
2807
|
direction: buttonDirection,
|
|
2808
2808
|
justifyContent: buttonJustifyContent,
|
|
2809
2809
|
fill: buttonFill,
|
|
2810
2810
|
padding: buttonPadding,
|
|
2811
2811
|
gap: buttonGap
|
|
2812
2812
|
}, primaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
|
|
2813
|
+
appearance: primaryButtonAppearance,
|
|
2814
|
+
className: "form__button-item",
|
|
2813
2815
|
dataTestId: dataTestIdPrimaryButton,
|
|
2814
2816
|
dataTour: dataTourPrimaryButton,
|
|
2815
|
-
className: "form__button-item",
|
|
2816
|
-
appearance: primaryButtonAppearance,
|
|
2817
2817
|
width: "fill",
|
|
2818
2818
|
size: primaryButtonSize,
|
|
2819
2819
|
fill: primaryButtonFill,
|
|
@@ -2822,13 +2822,13 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2822
2822
|
labelTextColor: primaryButtonLabelTextColor,
|
|
2823
2823
|
labelTextSize: primaryButtonLabelSize,
|
|
2824
2824
|
labelTextWeight: primaryButtonLabelTextWeight,
|
|
2825
|
-
|
|
2826
|
-
|
|
2825
|
+
loading: primaryButtonIsLoading,
|
|
2826
|
+
isDisabled: primaryButtonIsDisabled
|
|
2827
2827
|
}) : primaryButton, secondaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
|
|
2828
|
+
appearance: secondaryButtonAppearance,
|
|
2829
|
+
className: "form__button-item",
|
|
2828
2830
|
dataTestId: dataTestIdSecondaryButton,
|
|
2829
2831
|
dataTour: dataTourSecondaryButton,
|
|
2830
|
-
className: "form__button-item",
|
|
2831
|
-
appearance: secondaryButtonAppearance,
|
|
2832
2832
|
width: "fill",
|
|
2833
2833
|
size: secondaryButtonSize,
|
|
2834
2834
|
fill: secondaryButtonFill,
|
|
@@ -2837,13 +2837,13 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2837
2837
|
labelTextColor: secondaryButtonLabelTextColor,
|
|
2838
2838
|
labelTextSize: secondaryButtonLabelSize,
|
|
2839
2839
|
labelTextWeight: secondaryButtonLabelTextWeight,
|
|
2840
|
-
isDisabled: secondaryButtonIsDisabled,
|
|
2841
2840
|
loading: secondaryButtonIsLoading,
|
|
2841
|
+
isDisabled: secondaryButtonIsDisabled,
|
|
2842
2842
|
onClick: onClickSecondaryButton
|
|
2843
2843
|
}) : secondaryButton, tertiaryButtonLabel ? /*#__PURE__*/React.createElement(Button, {
|
|
2844
|
+
className: "form__button-item",
|
|
2844
2845
|
dataTestId: dataTestIdTertiaryButton,
|
|
2845
2846
|
dataTour: dataTourTertiaryButton,
|
|
2846
|
-
className: "form__button-item",
|
|
2847
2847
|
width: "fill",
|
|
2848
2848
|
size: tertiaryButtonSize,
|
|
2849
2849
|
fill: tertiaryButtonFill,
|
|
@@ -2858,9 +2858,9 @@ const FinalForm = /*#__PURE__*/React.forwardRef(function FinalForm(props, ref) {
|
|
|
2858
2858
|
decorators: [focusOnErrorDecorator],
|
|
2859
2859
|
mutators: mutators,
|
|
2860
2860
|
subscription: {
|
|
2861
|
-
submitError: true,
|
|
2862
2861
|
modifiedSinceLastSubmit: true,
|
|
2863
2862
|
pristine: true,
|
|
2863
|
+
submitError: true,
|
|
2864
2864
|
submitting: true
|
|
2865
2865
|
},
|
|
2866
2866
|
validate: validate,
|