@akad/design-system 0.1.0-beta.4 → 0.1.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akad/design-system",
3
- "version": "0.1.0-beta.4",
3
+ "version": "0.1.0-beta.6",
4
4
  "main": "react/react.js",
5
5
  "types": "react/main.d.ts",
6
6
  "author": "Gabriel Mule <gabemule@gmail.com>",
@@ -1,3 +1,9 @@
1
+ import { MaskedOptions } from 'imask';
2
+
3
+ interface MaskedDynamic {
4
+ value: string;
5
+ compiledMasks: MaskedOptions[];
6
+ }
1
7
  declare const maskConfig: {
2
8
  currency: {
3
9
  mask: string;
@@ -26,5 +32,11 @@ declare const maskConfig: {
26
32
  maxLength: number;
27
33
  }[];
28
34
  };
35
+ 'phone-br': {
36
+ mask: {
37
+ mask: string;
38
+ }[];
39
+ dispatch: (appended: string, dynamicMasked: MaskedDynamic) => Partial<Pick<import('imask').Masked<any>, "mask" | "parent" | "prepare" | "prepareChar" | "validate" | "commit" | "format" | "parse" | "overwrite" | "eager" | "skipInvalid" | "autofix">>;
40
+ };
29
41
  };
30
42
  export default maskConfig;
@@ -1,3 +1,5 @@
1
1
  import { default as Ajv } from 'ajv';
2
2
 
3
3
  export declare const createAjvInstance: () => Ajv;
4
+ export declare function emailValidator(email: string): boolean;
5
+ export declare function phoneBrValidator(phone: string): boolean;
@@ -0,0 +1 @@
1
+ export {};