@visiion/forms-library 1.1.5 → 1.1.6

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.esm.js CHANGED
@@ -34283,7 +34283,6 @@ var AddressInput = function (_a) {
34283
34283
  var libraries = ["places"];
34284
34284
  var GoogleMaps = function (_a) {
34285
34285
  var children = _a.children, _b = _a.apiKey, apiKey = _b === void 0 ? "" : _b;
34286
- console.log('apiKey', apiKey);
34287
34286
  var _c = useJsApiLoader({
34288
34287
  googleMapsApiKey: apiKey,
34289
34288
  libraries: libraries,
@@ -36558,7 +36557,7 @@ var createValidationSchema = function (fields) {
36558
36557
  var schema = {};
36559
36558
  // Filtrar campos válidos antes de procesarlos
36560
36559
  var validFields = fields.filter(function (_a) {
36561
- var _b = _a.validate, validate = _b === void 0 ? true : _b, _c = _a.name, name = _c === void 0 ? null : _c, type = _a.type;
36560
+ var _b = _a.validate, validate = _b === void 0 ? true : _b, name = _a.name, type = _a.type;
36562
36561
  // Excluir campos que no tienen name o son de tipos especiales
36563
36562
  if (!name || ["subtitle", "alert", "status"].includes(type)) {
36564
36563
  return false;
package/dist/index.js CHANGED
@@ -34303,7 +34303,6 @@ var AddressInput = function (_a) {
34303
34303
  var libraries = ["places"];
34304
34304
  var GoogleMaps = function (_a) {
34305
34305
  var children = _a.children, _b = _a.apiKey, apiKey = _b === void 0 ? "" : _b;
34306
- console.log('apiKey', apiKey);
34307
34306
  var _c = useJsApiLoader({
34308
34307
  googleMapsApiKey: apiKey,
34309
34308
  libraries: libraries,
@@ -36578,7 +36577,7 @@ var createValidationSchema = function (fields) {
36578
36577
  var schema = {};
36579
36578
  // Filtrar campos válidos antes de procesarlos
36580
36579
  var validFields = fields.filter(function (_a) {
36581
- var _b = _a.validate, validate = _b === void 0 ? true : _b, _c = _a.name, name = _c === void 0 ? null : _c, type = _a.type;
36580
+ var _b = _a.validate, validate = _b === void 0 ? true : _b, name = _a.name, type = _a.type;
36582
36581
  // Excluir campos que no tienen name o son de tipos especiales
36583
36582
  if (!name || ["subtitle", "alert", "status"].includes(type)) {
36584
36583
  return false;
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  export interface IFormField {
3
3
  id: string;
4
- name: string | null;
4
+ name: string;
5
5
  type: "radio" | "text" | "select" | "textarea" | "checkbox" | "rut" | "address" | "subtitle" | "alert" | "date" | "declaration" | "status";
6
6
  label: string;
7
7
  value?: string | number | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visiion/forms-library",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Librería de componentes de formularios reutilizables",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",