@win2win/shared 1.0.248 → 1.0.250

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.
@@ -131,7 +131,7 @@ export declare const TEMPLATES: Readonly<{
131
131
  readonly "ecommerce-banner": {
132
132
  readonly label: "Banner para Ecommerce";
133
133
  readonly params: readonly ["title", "text", "background", "image", "height", "custom", "button"];
134
- readonly variants: readonly ["default", "text-image", "text-centered", "text-image-background", "contact"];
134
+ readonly variants: readonly ["default", "text-image", "text-centered", "text-image-background", "button-image-background", "contact"];
135
135
  };
136
136
  readonly "ecommerce-filters": {
137
137
  readonly label: "Filtros para Ecommerce";
@@ -222,6 +222,7 @@ exports.TEMPLATES = Object.freeze({
222
222
  "text-image",
223
223
  "text-centered",
224
224
  "text-image-background",
225
+ "button-image-background",
225
226
  "contact",
226
227
  ],
227
228
  },
@@ -14,7 +14,8 @@ export declare enum PropValidatorKeys {
14
14
  DNI = "dni",
15
15
  IBAN = "iban",
16
16
  INE = "ine",
17
- RFC = "rfc"
17
+ RFC = "rfc",
18
+ CURP = "curp"
18
19
  }
19
20
  export declare const VALIDATORS: {
20
21
  fn: (val: number) => (control: GamaPropModel) => boolean;
@@ -104,6 +104,13 @@ exports.GamaPropValidatorsMap = {
104
104
  message: "El INE no es válido",
105
105
  label: "Identificación México (INE)",
106
106
  },
107
+ curp: {
108
+ fn: () => (control) => {
109
+ return true;
110
+ },
111
+ message: "El CURP no es válido",
112
+ label: "Identificación México (CURP)",
113
+ },
107
114
  rfc: {
108
115
  fn: () => (control) => {
109
116
  return true;
@@ -126,5 +133,6 @@ var PropValidatorKeys;
126
133
  // ID México
127
134
  PropValidatorKeys["INE"] = "ine";
128
135
  PropValidatorKeys["RFC"] = "rfc";
136
+ PropValidatorKeys["CURP"] = "curp";
129
137
  })(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
130
138
  exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.248",
3
+ "version": "1.0.250",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/README.md DELETED
@@ -1,11 +0,0 @@
1
- # README #
2
- version 1.0.1
3
-
4
- ### Como hacer deploy del repo
5
-
6
- * Correr el comando
7
- `npm run deploy`
8
-
9
- * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
-
11
-