-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get rid of react-phone-input-2 (GH-57)
- Loading branch information
Showing
37 changed files
with
6,328 additions
and
1,783 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
resources | ||
examples | ||
scripts | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import "./dark.less"; | ||
import "antd/dist/antd.dark.less"; | ||
import Demo from "../Demo"; | ||
|
||
export default Demo; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import "./light.less"; | ||
import "antd/dist/antd.less"; | ||
import Demo from "../Demo"; | ||
|
||
export default Demo; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.2.4", | ||
"version": "0.3.0", | ||
"name": "antd-phone-input", | ||
"description": "Advanced, highly customizable phone input component for Ant Design.", | ||
"keywords": [ | ||
|
@@ -32,38 +32,35 @@ | |
"default": "./index.d.ts" | ||
} | ||
}, | ||
"./legacy": { | ||
"import": "./legacy/index.js", | ||
"require": "./legacy/index.cjs.js", | ||
"types": { | ||
"default": "./legacy/index.d.ts" | ||
} | ||
}, | ||
"./types": { | ||
"import": "./types.js", | ||
"require": "./types.cjs.js", | ||
"types": { | ||
"default": "./types.d.ts" | ||
} | ||
}, | ||
"./legacy/style": { | ||
"default": "./legacy/style.less" | ||
"./styles": { | ||
"import": "./styles.js", | ||
"require": "./styles.cjs.js", | ||
"types": { | ||
"default": "./styles.d.ts" | ||
} | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
"files": [ | ||
"index*", | ||
"style*", | ||
"types*", | ||
"legacy", | ||
"styles*", | ||
"LICENSE", | ||
"metadata", | ||
"README.md" | ||
], | ||
"scripts": { | ||
"rename": "bash -c 'for file in $1*.js; do if [[ \"${file%.js}\" =~ ^[^.]*$ ]]; then mv \"$file\" \"${file%.js}.$0.js\"; fi; done'", | ||
"compile": "tsc --module commonjs && npm run rename -- cjs && npm run rename -- cjs legacy/ && tsc --declaration", | ||
"build": "npm run compile && tsx scripts/prepare-styles.ts", | ||
"prebuild": "rm -r legacy index* style* types* || true", | ||
"rename": "bash -c 'for file in *.js; do mv $file \"${file%.js}.$0.js\"; done'", | ||
"build": "tsc --module commonjs && npm run rename -- cjs && tsc --declaration", | ||
"prebuild": "rm -r metadata index* types* styles* || true", | ||
"postbuild": "tsx scripts/prepare-styles.ts", | ||
"postpack": "tsx scripts/prepare-package.ts", | ||
"test": "jest --config jestconfig.json" | ||
}, | ||
|
@@ -75,19 +72,15 @@ | |
"devDependencies": { | ||
"@testing-library/react": "^14.0.0", | ||
"@testing-library/user-event": "^14.5.1", | ||
"@types/jest": "^29.5.5", | ||
"@types/react": "^18.2.21", | ||
"antd": "npm:[email protected]", | ||
"antd4": "npm:antd@^4.24.8", | ||
"@types/jest": "^29.5.7", | ||
"@types/react": "^18.2.34", | ||
"antd": "*", | ||
"identity-obj-proxy": "^3.0.0", | ||
"jest": "^29.7.0", | ||
"jest-environment-jsdom": "^29.7.0", | ||
"ts-jest": "^29.1.1", | ||
"tslib": "^2.6.2", | ||
"tsx": "^3.12.10", | ||
"typescript": "^5.2.2" | ||
}, | ||
"dependencies": { | ||
"react-phone-input-2": "^2.15.1" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.