react-french-ssn 1.3.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 +192 -0
- package/dist/components/SocialSecurityInput/SocialSecurityInput.d.ts +5 -0
- package/dist/components/SocialSecurityInput/SocialSecurityInput.d.ts.map +1 -0
- package/dist/components/SocialSecurityInput/index.d.ts +2 -0
- package/dist/components/SocialSecurityInput/index.d.ts.map +1 -0
- package/dist/components/SocialSecurityInput/useSocialSecurityInput.d.ts +56 -0
- package/dist/components/SocialSecurityInput/useSocialSecurityInput.d.ts.map +1 -0
- package/dist/components/ThemeProvider.d.ts +9 -0
- package/dist/components/ThemeProvider.d.ts.map +1 -0
- package/dist/config/index.d.ts +83 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/decorators/withTheme.d.ts +8 -0
- package/dist/decorators/withTheme.d.ts.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +520 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/index.js +529 -0
- package/dist/index.js.map +1 -0
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/cssVariables.d.ts +3 -0
- package/dist/utils/cssVariables.d.ts.map +1 -0
- package/dist/utils/index.d.ts +5 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +101 -0
@@ -0,0 +1,39 @@
|
|
1
|
+
export interface ButtonProps {
|
2
|
+
children: React.ReactNode;
|
3
|
+
variant?: 'primary' | 'secondary' | 'outline';
|
4
|
+
size?: 'small' | 'medium' | 'large';
|
5
|
+
disabled?: boolean;
|
6
|
+
onClick?: () => void;
|
7
|
+
className?: string;
|
8
|
+
}
|
9
|
+
export interface InputProps {
|
10
|
+
label?: string;
|
11
|
+
placeholder?: string;
|
12
|
+
value?: string;
|
13
|
+
onChange?: (value: string) => void;
|
14
|
+
error?: string;
|
15
|
+
disabled?: boolean;
|
16
|
+
type?: 'text' | 'email' | 'password' | 'number';
|
17
|
+
className?: string;
|
18
|
+
}
|
19
|
+
export interface ComponentSize {
|
20
|
+
small: string;
|
21
|
+
medium: string;
|
22
|
+
large: string;
|
23
|
+
}
|
24
|
+
export interface ComponentVariant {
|
25
|
+
primary: string;
|
26
|
+
secondary: string;
|
27
|
+
outline: string;
|
28
|
+
}
|
29
|
+
export interface SocialSecurityInputProps {
|
30
|
+
label?: string;
|
31
|
+
placeholder?: string;
|
32
|
+
value?: string;
|
33
|
+
onChange?: (value: string) => void;
|
34
|
+
error?: string;
|
35
|
+
disabled?: boolean;
|
36
|
+
className?: string;
|
37
|
+
showCopyButton?: boolean;
|
38
|
+
}
|
39
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAAC;IAC9C,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cssVariables.d.ts","sourceRoot":"","sources":["../../src/utils/cssVariables.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,MAAM,MAAM,KAAG,MAc7C,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAO,MA4CrC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export declare const cn: (...classes: (string | undefined | null | false)[]) => string;
|
2
|
+
export declare const formatDate: (date: Date | string) => string;
|
3
|
+
export declare const generateId: () => string;
|
4
|
+
export declare const capitalize: (str: string) => string;
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,GAAI,GAAG,SAAS,CAAC,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,EAAE,KAAG,MAEtE,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,GAAG,MAAM,KAAG,MAOhD,CAAC;AAEF,eAAO,MAAM,UAAU,QAAO,MAE7B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,KAAG,MAExC,CAAC"}
|
package/package.json
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
{
|
2
|
+
"name": "react-french-ssn",
|
3
|
+
"version": "1.3.0",
|
4
|
+
"description": "React component for French Social Security Numbers (NIR) with automatic formatting and validation",
|
5
|
+
"type": "module",
|
6
|
+
"main": "dist/index.js",
|
7
|
+
"module": "dist/index.esm.js",
|
8
|
+
"types": "dist/index.d.ts",
|
9
|
+
"files": [
|
10
|
+
"dist"
|
11
|
+
],
|
12
|
+
"publishConfig": {
|
13
|
+
"access": "public"
|
14
|
+
},
|
15
|
+
"scripts": {
|
16
|
+
"build": "rollup -c",
|
17
|
+
"dev": "rollup -c -w",
|
18
|
+
"test": "jest",
|
19
|
+
"test:watch": "jest --watch",
|
20
|
+
"test:coverage": "jest --coverage",
|
21
|
+
"lint": "eslint src --ext .ts,.tsx",
|
22
|
+
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
23
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\"",
|
24
|
+
"storybook": "storybook dev -p 6006",
|
25
|
+
"build-storybook": "storybook build",
|
26
|
+
"prepublishOnly": "npm run build",
|
27
|
+
"release": "semantic-release"
|
28
|
+
},
|
29
|
+
"keywords": [
|
30
|
+
"react",
|
31
|
+
"typescript",
|
32
|
+
"french",
|
33
|
+
"social-security",
|
34
|
+
"nir",
|
35
|
+
"ssn",
|
36
|
+
"input",
|
37
|
+
"validation",
|
38
|
+
"form"
|
39
|
+
],
|
40
|
+
"author": "JatoCool Company",
|
41
|
+
"license": "MIT",
|
42
|
+
"peerDependencies": {
|
43
|
+
"react": ">=18.0.0",
|
44
|
+
"react-dom": ">=18.0.0"
|
45
|
+
},
|
46
|
+
"devDependencies": {
|
47
|
+
"@babel/core": "^7.23.0",
|
48
|
+
"@babel/preset-env": "^7.23.0",
|
49
|
+
"@babel/preset-react": "^7.22.0",
|
50
|
+
"@babel/preset-typescript": "^7.23.0",
|
51
|
+
"@rollup/plugin-babel": "^6.0.4",
|
52
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
53
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
54
|
+
"@rollup/plugin-typescript": "^11.1.5",
|
55
|
+
"@semantic-release/changelog": "^6.0.3",
|
56
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
57
|
+
"@semantic-release/github": "^11.0.6",
|
58
|
+
"@semantic-release/npm": "^12.0.2",
|
59
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
60
|
+
"@storybook/addon-essentials": "^7.5.0",
|
61
|
+
"@storybook/addon-interactions": "^7.5.0",
|
62
|
+
"@storybook/addon-links": "^7.5.0",
|
63
|
+
"@storybook/blocks": "^7.5.0",
|
64
|
+
"@storybook/react": "^7.5.0",
|
65
|
+
"@storybook/react-vite": "^7.5.0",
|
66
|
+
"@storybook/test": "^7.5.0",
|
67
|
+
"@testing-library/jest-dom": "^6.1.4",
|
68
|
+
"@testing-library/react": "^13.4.0",
|
69
|
+
"@testing-library/user-event": "^14.5.1",
|
70
|
+
"@types/jest": "^29.5.8",
|
71
|
+
"@types/react": "^18.2.37",
|
72
|
+
"@types/react-dom": "^18.2.15",
|
73
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
74
|
+
"@typescript-eslint/parser": "^6.10.0",
|
75
|
+
"eslint": "^8.53.0",
|
76
|
+
"eslint-plugin-react": "^7.33.2",
|
77
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
78
|
+
"identity-obj-proxy": "^3.0.0",
|
79
|
+
"jest": "^29.7.0",
|
80
|
+
"jest-environment-jsdom": "^29.7.0",
|
81
|
+
"prettier": "^3.0.3",
|
82
|
+
"react": "^18.2.0",
|
83
|
+
"react-dom": "^18.2.0",
|
84
|
+
"rollup": "^4.4.0",
|
85
|
+
"rollup-plugin-dts": "^6.1.0",
|
86
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
87
|
+
"rollup-plugin-postcss": "^4.0.2",
|
88
|
+
"semantic-release": "^24.2.9",
|
89
|
+
"storybook": "^7.5.0",
|
90
|
+
"ts-jest": "^29.1.1",
|
91
|
+
"typescript": "^5.2.2"
|
92
|
+
},
|
93
|
+
"repository": {
|
94
|
+
"type": "git",
|
95
|
+
"url": "https://github.com/Johanna1506/ui.git"
|
96
|
+
},
|
97
|
+
"bugs": {
|
98
|
+
"url": "https://github.com/Johanna1506/ui/issues"
|
99
|
+
},
|
100
|
+
"homepage": "https://github.com/Johanna1506/ui#readme"
|
101
|
+
}
|