@itcase/forms 1.1.57 → 1.1.59
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/itcase-forms.cjs.js +10 -2
- package/dist/itcase-forms.esm.js +10 -2
- package/package.json +1 -1
package/dist/itcase-forms.cjs.js
CHANGED
|
@@ -2305,10 +2305,12 @@ var FormFieldInputNumber = /*#__PURE__*/React__default.default.memo(function For
|
|
|
2305
2305
|
}),
|
|
2306
2306
|
errorKey = _useFieldValidationSt.errorKey,
|
|
2307
2307
|
errorMessage = _useFieldValidationSt.errorMessage,
|
|
2308
|
+
successKey = _useFieldValidationSt.successKey,
|
|
2308
2309
|
isErrorState = _useFieldValidationSt.isErrorState,
|
|
2309
2310
|
isValidState = _useFieldValidationSt.isValidState;
|
|
2310
2311
|
var updatedInputProps = useValidationAppearanceInputProps({
|
|
2311
|
-
inputProps: inputProps
|
|
2312
|
+
inputProps: inputProps,
|
|
2313
|
+
validationStateKey: isErrorState ? errorKey : isValidState ? successKey : null
|
|
2312
2314
|
});
|
|
2313
2315
|
var dataTestIdField = createDataTestIdField(input.name, dataTestId);
|
|
2314
2316
|
return /*#__PURE__*/React__default.default.createElement(FieldWrapper, Object.assign({
|
|
@@ -2524,7 +2526,13 @@ var FormFieldPassword = /*#__PURE__*/React__default.default.memo(function FormFi
|
|
|
2524
2526
|
});
|
|
2525
2527
|
|
|
2526
2528
|
var defaultRadioProps = {
|
|
2527
|
-
appearance: 'defaultPrimary sizeM solid circular'
|
|
2529
|
+
appearance: 'defaultPrimary sizeM solid circular',
|
|
2530
|
+
// Error
|
|
2531
|
+
errorAppearance: 'errorPrimary sizeM solid circular',
|
|
2532
|
+
// Required
|
|
2533
|
+
requiredAppearance: 'requirePrimary sizeM solid circular',
|
|
2534
|
+
// Success
|
|
2535
|
+
successAppearance: 'successPrimary sizeM solid circular'
|
|
2528
2536
|
};
|
|
2529
2537
|
|
|
2530
2538
|
function FormFieldRadioGroupList(props) {
|
package/dist/itcase-forms.esm.js
CHANGED
|
@@ -2294,10 +2294,12 @@ var FormFieldInputNumber = /*#__PURE__*/React.memo(function FormFieldInputNumber
|
|
|
2294
2294
|
}),
|
|
2295
2295
|
errorKey = _useFieldValidationSt.errorKey,
|
|
2296
2296
|
errorMessage = _useFieldValidationSt.errorMessage,
|
|
2297
|
+
successKey = _useFieldValidationSt.successKey,
|
|
2297
2298
|
isErrorState = _useFieldValidationSt.isErrorState,
|
|
2298
2299
|
isValidState = _useFieldValidationSt.isValidState;
|
|
2299
2300
|
var updatedInputProps = useValidationAppearanceInputProps({
|
|
2300
|
-
inputProps: inputProps
|
|
2301
|
+
inputProps: inputProps,
|
|
2302
|
+
validationStateKey: isErrorState ? errorKey : isValidState ? successKey : null
|
|
2301
2303
|
});
|
|
2302
2304
|
var dataTestIdField = createDataTestIdField(input.name, dataTestId);
|
|
2303
2305
|
return /*#__PURE__*/React.createElement(FieldWrapper, Object.assign({
|
|
@@ -2513,7 +2515,13 @@ var FormFieldPassword = /*#__PURE__*/React.memo(function FormFieldPassword(props
|
|
|
2513
2515
|
});
|
|
2514
2516
|
|
|
2515
2517
|
var defaultRadioProps = {
|
|
2516
|
-
appearance: 'defaultPrimary sizeM solid circular'
|
|
2518
|
+
appearance: 'defaultPrimary sizeM solid circular',
|
|
2519
|
+
// Error
|
|
2520
|
+
errorAppearance: 'errorPrimary sizeM solid circular',
|
|
2521
|
+
// Required
|
|
2522
|
+
requiredAppearance: 'requirePrimary sizeM solid circular',
|
|
2523
|
+
// Success
|
|
2524
|
+
successAppearance: 'successPrimary sizeM solid circular'
|
|
2517
2525
|
};
|
|
2518
2526
|
|
|
2519
2527
|
function FormFieldRadioGroupList(props) {
|