@visiion/forms-library 1.4.5 → 1.4.7
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/Inputs/index.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
|
@@ -12,3 +12,4 @@ export { default as DatePicker } from "./DatePicker";
|
|
|
12
12
|
export { default as SubtitleInput } from "./SubtitleInput";
|
|
13
13
|
export { default as Alert } from "./Alert";
|
|
14
14
|
export { default as InputWrapper } from "./InputWrapper";
|
|
15
|
+
export { default as Checklist } from "./Checklist";
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./styles/index.css";
|
|
2
2
|
export { GenericForm } from "./components/Forms";
|
|
3
|
-
export { TextInput, SelectInput, RadioInput, CheckboxInput, TextareaInput, RutInput, AddressInput, Alert, DynamicInput, InputWrapper, StatusScreen, SwornDeclaration, DatePicker, SubtitleInput, } from "./components/Inputs";
|
|
3
|
+
export { TextInput, SelectInput, RadioInput, CheckboxInput, TextareaInput, RutInput, AddressInput, Alert, DynamicInput, InputWrapper, StatusScreen, SwornDeclaration, DatePicker, SubtitleInput, Checklist, } from "./components/Inputs";
|
|
4
4
|
export { NavigationButton, TextInputField, RadioOption, } from "./components/Common";
|
|
5
5
|
export { GoogleMaps } from "./components/Inputs/GoogleMaps";
|
|
6
6
|
export { useMiDt } from "./contexts/MiDtContext";
|
package/dist/index.esm.js
CHANGED
|
@@ -20029,7 +20029,7 @@ var Typography = function (_a) {
|
|
|
20029
20029
|
var Checklist = function (_a) {
|
|
20030
20030
|
var field = _a.field, _b = _a.value, value = _b === void 0 ? [] : _b, onChange = _a.onChange, error = _a.error, props = _a.props;
|
|
20031
20031
|
var _c = useState(value), selectedOptions = _c[0], setSelectedOptions = _c[1];
|
|
20032
|
-
var _d = useState(props.valueOtraMedida), otraMedida = _d[0], setOtraMedida = _d[1];
|
|
20032
|
+
var _d = useState((props === null || props === void 0 ? void 0 : props.valueOtraMedida) || ""), otraMedida = _d[0], setOtraMedida = _d[1];
|
|
20033
20033
|
var options = field.options || [];
|
|
20034
20034
|
var isOtraMedidaRequired = selectedOptions.includes("otra-medida");
|
|
20035
20035
|
useEffect(function () {
|
|
@@ -23066,4 +23066,4 @@ var GenericForm = function (_a) {
|
|
|
23066
23066
|
return formContent;
|
|
23067
23067
|
};
|
|
23068
23068
|
|
|
23069
|
-
export { AddressInput, Alert, CheckboxInput, Common, DatePicker, DynamicInput, GenericForm, GoogleMaps, InputWrapper, NavigationButton, RadioInput, RadioOption, RutInput, SelectInput, StatusScreen, SubtitleInput, SwornDeclaration, TextInput, TextInputField, TextareaInput, clean as cleanRut, commonValidations, createValidationSchema, formatRut, maskRut, useMiDt, validateOnlyNumbersAndLetters, validate as validateRut };
|
|
23069
|
+
export { AddressInput, Alert, CheckboxInput, Checklist, Common, DatePicker, DynamicInput, GenericForm, GoogleMaps, InputWrapper, NavigationButton, RadioInput, RadioOption, RutInput, SelectInput, StatusScreen, SubtitleInput, SwornDeclaration, TextInput, TextInputField, TextareaInput, clean as cleanRut, commonValidations, createValidationSchema, formatRut, maskRut, useMiDt, validateOnlyNumbersAndLetters, validate as validateRut };
|
package/dist/index.js
CHANGED
|
@@ -20048,7 +20048,7 @@ var Typography = function (_a) {
|
|
|
20048
20048
|
var Checklist = function (_a) {
|
|
20049
20049
|
var field = _a.field, _b = _a.value, value = _b === void 0 ? [] : _b, onChange = _a.onChange, error = _a.error, props = _a.props;
|
|
20050
20050
|
var _c = React.useState(value), selectedOptions = _c[0], setSelectedOptions = _c[1];
|
|
20051
|
-
var _d = React.useState(props.valueOtraMedida), otraMedida = _d[0], setOtraMedida = _d[1];
|
|
20051
|
+
var _d = React.useState((props === null || props === void 0 ? void 0 : props.valueOtraMedida) || ""), otraMedida = _d[0], setOtraMedida = _d[1];
|
|
20052
20052
|
var options = field.options || [];
|
|
20053
20053
|
var isOtraMedidaRequired = selectedOptions.includes("otra-medida");
|
|
20054
20054
|
React.useEffect(function () {
|
|
@@ -23092,6 +23092,7 @@ Object.defineProperty(exports, "Flowbite", {
|
|
|
23092
23092
|
exports.AddressInput = AddressInput;
|
|
23093
23093
|
exports.Alert = Alert;
|
|
23094
23094
|
exports.CheckboxInput = CheckboxInput;
|
|
23095
|
+
exports.Checklist = Checklist;
|
|
23095
23096
|
exports.Common = Common;
|
|
23096
23097
|
exports.DatePicker = DatePicker;
|
|
23097
23098
|
exports.DynamicInput = DynamicInput;
|