Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react-intel input #1

Open
wants to merge 69 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
71d2be1
Fix: invoke onPhoneNumberChange callback with formatted value on init
coox Mar 27, 2019
a0fce20
update flag when defaultCountry props value is changed
dhanesh-kapadiya May 13, 2019
faa4de2
remove extra space
dhanesh-kapadiya May 13, 2019
d0a959a
Removed bash highlighting for npm/yarn commands in README
bhumijgupta Oct 4, 2019
499d2d9
Update README.md
Parikshit-Hooda Oct 5, 2019
127a371
Update LICENSE
Parikshit-Hooda Oct 5, 2019
327857a
Merge pull request #294 from bhumijgupta/patch1
patw0929 Oct 5, 2019
adfd872
Merge pull request #297 from perry-contribs/master
patw0929 Oct 5, 2019
ed4aa2b
Merge pull request #298 from Parikshit-Hooda/patch-1
patw0929 Oct 5, 2019
d0dc593
fixed bug with pasting number over another number
Oct 7, 2019
5bafbd6
Install cross-env
patw0929 Oct 8, 2019
25e2387
Update package-lock.json
patw0929 Oct 8, 2019
830c20a
Put cross-env in scripts
patw0929 Oct 8, 2019
594912d
Merge pull request #299 from patw0929/feature/cross-env
patw0929 Oct 9, 2019
236dca8
Merge pull request #300 from flagoon/bug/paste_numbers
patw0929 Oct 9, 2019
34357e2
Merge pull request #283 from coox/master
patw0929 Oct 9, 2019
1c205a4
Remove package-lock.json
patw0929 Oct 9, 2019
7287fa4
Remove npm scripts
patw0929 Oct 9, 2019
5a3f67c
Merge pull request #302 from patw0929/feature/remove-package-lock
patw0929 Oct 9, 2019
6f62496
Bumped version into v7.0.2
patw0929 Oct 9, 2019
3fcd621
Change CHANGELOG
patw0929 Oct 9, 2019
b319908
Merge branch 'dhanesh-kapadiya'
patw0929 Oct 10, 2019
8e46953
Bumped version into v7.0.3
patw0929 Oct 10, 2019
ced4b09
Update CHANGELOG
patw0929 Oct 10, 2019
bb2cb87
Improved README.md documentation
michizhou Oct 15, 2019
0362b6b
Add optional onPhoneNumberFocus function
Oct 17, 2019
66a1a35
Merge pull request #308 from DPOrganizer/feature/on-phone-number-focus
patw0929 Oct 20, 2019
6366352
Update CHANGELOG
patw0929 Oct 20, 2019
ca6e3e0
Bumped version into v7.1.0
patw0929 Oct 20, 2019
c00da71
Bug fix: Bypass formatNumber if user is deleting
Kongfujonstew Feb 19, 2020
d212b78
Add priorValue definition
Kongfujonstew Feb 20, 2020
34193af
Merge pull request #307 from michizhou/patch-1
patw0929 Feb 29, 2020
02e635d
Merge pull request #313 from Kongfujonstew/fix-delete-err
patw0929 Feb 29, 2020
3964ba1
refactor: extract flagbox (#315)
mcataford Mar 1, 2020
ab083ed
Refactoring around `CountryList` (#316)
mcataford Mar 1, 2020
5f20088
Extract constants and purge superfluous utils (#318)
mcataford Mar 1, 2020
bda538f
Backtracking on `styled-components` (#319)
mcataford Mar 1, 2020
f8b069a
Size and performance improvements (#314)
Mar 6, 2020
2a01437
Optimizing CI (#317)
Mar 6, 2020
9444d23
Removing SCSS import from components (#322)
mcataford Mar 7, 2020
d8f28c1
Semantic releases setup (#323)
mcataford Mar 7, 2020
05847ea
ci: skip commitlint on master
mcataford Mar 7, 2020
eec5f67
Enabled automated semantic releases (#324)
mcataford Mar 7, 2020
b7f9a69
ci: rebuild before release
mcataford Mar 7, 2020
9ea7769
Cleaning up ESLint / prettier configs and uniting them (#326)
mcataford Mar 8, 2020
745f772
chore: remove unused dev dependencies (#327)
mcataford Mar 8, 2020
919cc17
Fixing style exports (#328)
mcataford Mar 8, 2020
e4ad78f
fix: trigger patch release, exports fix
mcataford Mar 8, 2020
d769a1e
fix: [email protected] (#333)
Mar 19, 2020
edbe061
fix: custom class prop update should not be cumulative (#349)
mcataford Jun 16, 2020
82bf01c
fix: library crashes when localStorage is not callable (#342)
Jun 16, 2020
bd690e6
fix: resolve node-gyp / node-sass errors on build (#374)
mcataford Aug 3, 2021
b458be0
ci: github actions (#376)
mcataford Aug 3, 2021
7771d44
ci: github actor (#377)
mcataford Aug 3, 2021
7f34b5a
ci: storybook token, second try (#378)
mcataford Aug 3, 2021
b63e09e
ci: more storybook (#379)
mcataford Aug 4, 2021
b7ed582
build: replaces node-sass with sass (#381)
mcataford Aug 4, 2021
f961ce5
docs: enhanced contributing section (#356)
Anoop01234 Aug 4, 2021
18a3952
chore: remove unused commitlint/travis-cli dep (#382)
mcataford Aug 4, 2021
dce8b11
chore: linting updates (#384)
mcataford Aug 4, 2021
be281b6
chore: unused devDependencies (#385)
mcataford Aug 4, 2021
04ab817
build: yarn berry migration (#386)
mcataford Aug 5, 2021
b658b04
refactor: website in own workspace (#387)
mcataford Aug 7, 2021
1b5957d
chore: remove deps causing blank screen on web (#388)
mcataford Aug 7, 2021
cd9f262
feat: typescript support (#389)
andrewsantarin Sep 11, 2021
7ee9921
refactor: remove `tsd` integration (#392)
andrewsantarin Sep 16, 2021
26f9b1c
fix: amend selectedCountryData typo (#393)
andrewsantarin Sep 18, 2021
ce2fb98
build: ts eslint warning resolution (#394)
mcataford Sep 23, 2021
a8f5f76
feat: added missing area code for Canada (#396)
obo-ueat Nov 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"comments": false,
"presets": [
"@babel/preset-env",
"@babel/preset-react"
Expand All @@ -13,6 +14,7 @@
"plugins": ["dynamic-import-node"]
},
"production": {
"ignore": ["**/*.test.js"],
"plugins": [
[
"transform-react-remove-prop-types",
Expand Down
3 changes: 3 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
}
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
dist/**
test/**
node_modules/*
package.json
webpack.*.js
Expand Down
115 changes: 81 additions & 34 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
extends: ['eslint-config-airbnb', 'prettier'],
extends: ['eslint-config-airbnb', 'plugin:prettier/recommended'],
plugins: ['react', 'import', 'security', 'prettier'],
parser: 'babel-eslint',
env: {
browser: true,
Expand All @@ -8,12 +9,14 @@ module.exports = {
jest: true,
},
rules: {
'prettier/prettier': 'error',
'prefer-destructuring': 'off',
'jsx-a11y/click-events-have-key-events': 'off',
'jsx-a11y/no-noninteractive-element-interactions': 'off',
'jsx-a11y/no-autofocus': 'off',
'jsx-a11y/no-noninteractive-tabindex': 'off',
'jsx-a11y/anchor-has-content': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/destructuring-assignment': 'off',
'react/jsx-no-bind': 'error',
'react/no-multi-comp': 'off',
Expand All @@ -23,14 +26,8 @@ module.exports = {
'ForInStatement',
'WithStatement',
],
'newline-after-var': ['error', 'always'],
'newline-before-return': 'error',
'comma-dangle': ['error', 'always-multiline'], // https://github.com/airbnb/javascript/commit/788208295469e19b806c06e01095dc8ba1b6cdc9
indent: ['error', 2, { SwitchCase: 1 }],
'no-console': 0,
'no-alert': 0,
'no-underscore-dangle': 'off',
'max-len': ['error', 150, 2, { ignoreUrls: true, ignoreComments: false }],
'react/require-default-props': 'off',
'react/jsx-curly-spacing': 'off',
'arrow-body-style': 'off',
Expand All @@ -46,11 +43,11 @@ module.exports = {
allowSamePrecedence: true,
},
],
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
'react/jsx-filename-extension': [
'error',
{ extensions: ['.js', '.jsx', '.tsx'] },
],
'react/no-string-refs': 'off',
'arrow-parens': 'off',
'jsx-a11y/no-static-element-interactions': 'off',
'react/prefer-stateless-function': 'off',
'no-param-reassign': 'off',
'no-unused-vars': ['error', { ignoreRestSiblings: true }],
'import/no-unresolved': [
Expand Down Expand Up @@ -79,35 +76,85 @@ module.exports = {
optionalDependencies: false,
},
],
indent: [
'error',
2,
{
SwitchCase: 1,
VariableDeclarator: 1,
outerIIFEBody: 1,
MemberExpression: 1,
// CallExpression: {
// parameters: null,
// },
FunctionDeclaration: {
parameters: 1,
body: 1,
},
FunctionExpression: {
parameters: 1,
body: 1,
},
},
],
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
},
plugins: ['react', 'import', 'security'],
globals: {
__DEVELOPMENT__: true,
__CLIENT__: true,
__SERVER__: true,
__DISABLE_SSR__: true,
__DEVTOOLS__: true,
},
};
overrides: [
// typescript common config
{
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
files: ['**/*.d.ts', '**/*.test.ts', '**/*.test.tsx'],
parser: '@typescript-eslint/parser',
plugins: [
'@typescript-eslint',
'eslint-plugin-import',
'eslint-plugin-react',
],
rules: {
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'import/order': [
'error',
{
alphabetize: {
order: 'asc',
},
groups: [['external', 'builtin'], 'parent', 'sibling'],
'newlines-between': 'always',
},
],
'react/jsx-first-prop-new-line': [1, 'multiline'],
'react/jsx-max-props-per-line': [
1,
{
maximum: 1,
},
],
'react/sort-comp': [
2,
{
order: [
'static-methods',
'instance-variables',
'instance-methods',
'lifecycle',
'everything-else',
'render',
],
},
],
'spaced-comment': [
'error',
'always',
{
line: {
markers: ['#region', '#endregion', 'region', 'endregion'],
},
},
],
},
settings: {
'import/resolver': 'eslint-import-resolver-typescript',
},
},
// typescript test-only config
{
files: ['**/*.test.ts', '**/*.test.tsx'],
rules: {
'no-use-before-define': 'off',
'no-console': 'off', // we want to be able to output results for tsc purposes
},
},
],
}
169 changes: 169 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
name: CICD
on:
push:
branches:
master
pull_request:

env:
NODE_VERSION: 14

jobs:
setup:
runs-on: ubuntu-latest
name: Setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Install dependencies
if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
lint:
runs-on: ubuntu-latest
name: Lint
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
- name: Lint
run: |
yarn lint
test:
runs-on: ubuntu-latest
name: Test
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
- name: Tests
run: |
yarn coverage
- name: Coverage upload
run: |
yarn coverage-upload
build:
runs-on: ubuntu-latest
name: Build
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
- run: |
yarn build
- name: Build Artifacts
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: dist
release:
runs-on: ubuntu-latest
name: Release
needs:
- build
- test
- lint
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- name: Build Artifacts
uses: actions/download-artifact@v2
with:
name: build-artifacts
path: dist
- if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
- name: Release (dry)
if: ${{ github.ref != 'refs/heads/master' }}
run: |
yarn semantic-release --ci --dry-run
- name: Release
if: ${{ github.ref == 'refs/heads/master' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
yarn semantic-release --ci
website-deploy:
runs-on: ubuntu-latest
name: Website deploy
needs: setup
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
id: node-setup
with:
node-version: ${{ env.NODE_VERSION }}
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache-restore
with:
path: |
node_modules
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}-${{ env.NODE_VERSION }}
- if: steps.yarn-cache-restore.outputs.cache-hit != 'true'
run: yarn
- name: Deploy (dry)
if: ${{ github.ref != 'refs/heads/master' }}
run: |
yarn website:dryrun
- name: Deploy
if: ${{ github.ref == 'refs/heads/master' }}
env:
GH_TOKEN: ${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}
run: |
yarn website:deploy
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## Yarn
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/sdks
!.yarn/versions
.pnp.*

### SublimeText ###
*.sublime-workspace

Expand Down
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v12.22.4
1 change: 1 addition & 0 deletions .packwatch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"limit":"107.2 kB","packageSize":"107.2 kB","unpackedSize":"241.3 kB"}
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"branches": ["master"]
}
3 changes: 0 additions & 3 deletions .storybook/addons.js

This file was deleted.

Loading