@rubenpazch/identification-input 2.0.0
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/README.md +3 -0
- package/dist/IdentificationInput.d.ts +23 -0
- package/dist/IdentificationInput.d.ts.map +1 -0
- package/dist/index.cjs.js +1698 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +1678 -0
- package/dist/peruvianIdentification.d.ts +15 -0
- package/dist/peruvianIdentification.d.ts.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type PeruIdentificationType = "dni" | "ce" | "passport";
|
|
2
|
+
export type PeruIdentificationDoc = {
|
|
3
|
+
type: PeruIdentificationType;
|
|
4
|
+
label: string;
|
|
5
|
+
description: string;
|
|
6
|
+
maxLength: number;
|
|
7
|
+
alphanumeric: boolean;
|
|
8
|
+
placeholder: string;
|
|
9
|
+
hint: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const PERU_IDENTIFICATION_DOCS: Record<PeruIdentificationType, PeruIdentificationDoc>;
|
|
12
|
+
export declare const formatIdentificationInput: (type: PeruIdentificationType, value: string) => string;
|
|
13
|
+
export declare const getIdentificationPlaceholder: (type: PeruIdentificationType) => string;
|
|
14
|
+
export declare const getIdentificationHint: (type: PeruIdentificationType) => string;
|
|
15
|
+
//# sourceMappingURL=peruvianIdentification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peruvianIdentification.d.ts","sourceRoot":"","sources":["../src/peruvianIdentification.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAAG,KAAK,GAAG,IAAI,GAAG,UAAU,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,sBAAsB,CAAC;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAC3C,sBAAsB,EACtB,qBAAqB,CA6BtB,CAAC;AAEF,eAAO,MAAM,yBAAyB,GACpC,MAAM,sBAAsB,EAC5B,OAAO,MAAM,KACZ,MASF,CAAC;AAEF,eAAO,MAAM,4BAA4B,GACvC,MAAM,sBAAsB,KAC3B,MAEF,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,MAAM,sBAAsB,KAAG,MAEpE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@rubenpazch/identification-input",
|
|
3
|
+
"version": "2.0.0",
|
|
4
|
+
"description": "IdentificationInput component",
|
|
5
|
+
"private": false,
|
|
6
|
+
"main": "dist/index.cjs.js",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/rubenpazch/lbyte-ui-library.git",
|
|
12
|
+
"directory": "packages/identification-input"
|
|
13
|
+
},
|
|
14
|
+
"author": "Ruben Paz Chuspe <rubenpazchuspe@outlook.com>",
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"files": [
|
|
17
|
+
"dist"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"**/*.css"
|
|
21
|
+
],
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./dist/index.esm.js",
|
|
25
|
+
"require": "./dist/index.cjs.js",
|
|
26
|
+
"types": "./dist/index.d.ts"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"peerDependencies": {
|
|
30
|
+
"react": "^19.0.0",
|
|
31
|
+
"react-dom": "^19.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@rubenpazch/autocomplete": "^3.0.3",
|
|
35
|
+
"@rubenpazch/text-input": "^5.0.0"
|
|
36
|
+
},
|
|
37
|
+
"devDependencies": {
|
|
38
|
+
"@rubenpazch/typescript-config": "3.0.0"
|
|
39
|
+
},
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
},
|
|
43
|
+
"scripts": {
|
|
44
|
+
"build": "rollup -c",
|
|
45
|
+
"test": "jest --passWithNoTests"
|
|
46
|
+
}
|
|
47
|
+
}
|