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

V5 #820

Merged
merged 73 commits into from
Dec 7, 2022
Merged

V5 #820

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
9decd67
refactor: add a new setup to react-tooltip related to V5
danielbarion Nov 9, 2022
e7b55f6
chore: add missed files to the previously commit
danielbarion Nov 9, 2022
5caa072
chore: add tailwind to the project and start building tooltip component
danielbarion Nov 10, 2022
f5179e6
chore: remove tailwind and use plain css
danielbarion Nov 11, 2022
5df406f
chore: remove babel from project
danielbarion Nov 14, 2022
ce221db
chore: downgrade packages versions to fix react error
danielbarion Nov 14, 2022
b03148c
chore: tooltip logic v0.0.1
danielbarion Nov 15, 2022
aee6cd3
feat: add tooltip arrow logic
danielbarion Nov 15, 2022
1310ded
chore: add config to export types declaration from typescript
danielbarion Nov 15, 2022
43dc280
feat: add place and offset props to Tooltip
danielbarion Nov 15, 2022
5904069
chore: add some available props from v4 to v5
danielbarion Nov 16, 2022
99777cb
fix: update ts types and fix errors
danielbarion Nov 16, 2022
eb59dae
chore: updating production build
danielbarion Nov 16, 2022
0d3c544
chore: update gitignore in example folder
danielbarion Nov 16, 2022
50ebc3f
chore: make examples folder start in dev mode
danielbarion Nov 17, 2022
e55882a
chore: [wip] add tooltip controller and start add data attributes
danielbarion Nov 17, 2022
b7a35a4
chore: [wip] start add compatibility with data attributes using a con…
danielbarion Nov 18, 2022
763be71
chore: add offset param into data-attribute
danielbarion Nov 19, 2022
064b3bc
chore: add support for wrapper and children from v4 into v5
danielbarion Nov 20, 2022
5e30bfe
chore: set click and hover events as options into tooltip
danielbarion Nov 20, 2022
3071580
chore: add section for custom events and for events
danielbarion Nov 20, 2022
0efaffe
chore: add delay show and delay hide data attributes support
danielbarion Nov 21, 2022
603e4fe
Update .gitignore with VS code config files
danielbarion Nov 23, 2022
20d407d
chore: remove personal .vscode file from source code
danielbarion Nov 23, 2022
4f76e86
chore: update gitignore to not commit the entire.vscode folder
danielbarion Nov 23, 2022
7fc7100
refactor: use css vars instead of plain css colors
danielbarion Nov 23, 2022
9a65993
chore: update documentation and add more features
danielbarion Nov 24, 2022
156a4d2
chore: update examples and type
danielbarion Nov 24, 2022
5eee46c
feat: add option to be controlled or uncontrolled to tooltip
danielbarion Nov 25, 2022
abf88db
docs: add docsaurus doc into the project
danielbarion Nov 28, 2022
00c30b9
feat: add first tooltip component example to docs
danielbarion Nov 28, 2022
4452cf0
docs: update with information of v4 and v5
danielbarion Nov 28, 2022
22b4226
docs: update docs to have informations about props an attrs
danielbarion Nov 28, 2022
dd30723
docs: add place, variant and multiline docs
danielbarion Nov 28, 2022
f9989ce
docs: events docs added into the project
danielbarion Nov 28, 2022
0fe9258
docs: add delays docs into the project
danielbarion Nov 28, 2022
e3808b0
docs: add more params to the docs
danielbarion Nov 29, 2022
7137720
docs: add styling and some params into the docs
danielbarion Nov 30, 2022
7a5bcd3
docs: update styling docs
danielbarion Nov 30, 2022
8b2a15d
docs: update styling docs
danielbarion Nov 30, 2022
33c012b
chore: update project to have v4 docs together
danielbarion Nov 30, 2022
69047b2
docs: rename docs folder to docs
danielbarion Nov 30, 2022
cd2c446
docs: update node version of docs
danielbarion Nov 30, 2022
be8df9f
docs: updating necessary node version
danielbarion Nov 30, 2022
e5f1616
chore: adding node version information into root package
danielbarion Nov 30, 2022
5e62e63
docs: update docs pages
danielbarion Nov 30, 2022
550dba0
chore: remove node version from root package.json
danielbarion Nov 30, 2022
1d69cb9
chore: try to fix pipeline for docs
danielbarion Nov 30, 2022
280fee2
chore: try to fix pipeline for docs 2
danielbarion Nov 30, 2022
67250ac
chore: try to fix pipeline for docs 3
danielbarion Nov 30, 2022
8c0f219
chore: try to fix pipeline for docs 4
danielbarion Nov 30, 2022
74656d8
chore: try to fix pipeline for docs 5
danielbarion Nov 30, 2022
ec99b07
chore: try to fix pipeline for docs 6
danielbarion Nov 30, 2022
c106a1a
docs: fix digital ocean pipeline with correctly node version range
danielbarion Nov 30, 2022
f886904
docs: update package.json of docs
danielbarion Nov 30, 2022
e6cb5e9
docs: update changelog from v4 to v5 docs
danielbarion Nov 30, 2022
d95df9e
docs: update favicon and logo of docs
danielbarion Dec 1, 2022
9d89169
docs: update docs homepage
danielbarion Dec 1, 2022
c53afc2
docs: add a working example into the getting started
danielbarion Dec 1, 2022
90efbfc
fix: add types for typescript project in dist files
danielbarion Dec 2, 2022
009b2d6
docs: upgrade react tooltip package
danielbarion Dec 2, 2022
49b4403
test: add tests into the project
danielbarion Dec 2, 2022
3930044
chore: add gtag manager into the site to add analytics
danielbarion Dec 4, 2022
969dca2
docs: update readme.md and add a code of conduct
danielbarion Dec 5, 2022
1fa4ad7
docs: update changelog
danielbarion Dec 5, 2022
4842d7c
docs: fix typos in docs
danielbarion Dec 5, 2022
645df60
feat: enable docsearch from algolia
danielbarion Dec 6, 2022
80dc778
chore: remove some folders from npm publish and update license content
danielbarion Dec 6, 2022
c0d8157
chore: remove some folders from npm publish
danielbarion Dec 6, 2022
35ace24
docs: update react tooltip version in docs
danielbarion Dec 6, 2022
306117f
chore: merge master into v5
danielbarion Dec 7, 2022
98f7524
chore: update package version to v5 stable release
danielbarion Dec 7, 2022
4ec3123
chore: remove unecessary packages from project
danielbarion Dec 7, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 0 additions & 19 deletions .babelrc

This file was deleted.

25 changes: 25 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

# editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100

[*.md]
max_line_length = 0
trim_trailing_whitespace = false

[{*.json, *.svg}]
indent_style = space
indent_size = 2

# Matches the exact package.json, or *rc
[{package.json,*.yml,*rc}]
indent_style = space
indent_size = 2
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

54 changes: 0 additions & 54 deletions .eslintrc

This file was deleted.

95 changes: 95 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
{
"extends": [
"eslint-config-airbnb",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:prettier/recommended"
],
"env": {
"browser": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"plugins": ["react", "react-hooks", "prettier", "@typescript-eslint"],
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"],
"moduleDirectory": ["node_modules", "src/"]
}
}
},
"rules": {
"operator-linebreak": [
2,
"after",
{
"overrides": {
"?": "before",
":": "before"
}
}
],
"object-curly-newline": 0,
"implicit-arrow-linebreak": 0,
"semi": ["error", "never"],
"quotes": [
"error",
"single",
{
"allowTemplateLiterals": true,
"avoidEscape": true
}
],
"max-len": [
"error",
{
"code": 100,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"import/no-unresolved": [
"error",
{
"commonjs": true,
"amd": true
}
],
"react/jsx-filename-extension": ["off"],
"react/prop-types": ["warn"],
"react/button-has-type": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/label-has-for": [
"error",
{
"allowChildren": true
}
],
"jsx-a11y/anchor-is-valid": [
"error",
{
"specialLink": ["to"]
}
],
"react/jsx-props-no-spreading": 0,
"react/react-in-jsx-scope": "off",
"prettier/prettier": "error",
"import/extensions": 0,
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-explicit-any": "warn",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"@typescript-eslint/ban-ts-comment": "off",
"dot-notation": "off",
"no-shadow": "off",
"@typescript-eslint/no-shadow": "error"
}
}
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# do not show lock files while doing git diff
package-lock.json -diff
yarn.lock -diff
30 changes: 0 additions & 30 deletions .github/workflows/release.yaml

This file was deleted.

41 changes: 31 additions & 10 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,37 @@
# system files
*.log
.DS_Store*
## editors
/.idea

## system files
.DS_Store
.idea/
*.log
.vscode/
## npm
/node_modules/
/npm-debug.log
.npmrc

## testing
/coverage/

## bower
/bower_components*/
/bower-*.json

## temp folders
/.tmp/

## demoing
/demo/

## building
/build/
/dist/

## other
yarn-error.log

# push to github
!.babelrc
!.gitignore
!.npmignore

# files
node_modules/
dist/
build/
.env
.npmrc
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
8 changes: 5 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npm test
npm run eslint
# npm run stylelint
npm run prettier
11 changes: 11 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,22 @@
// specific files
node_modules/
example/
example-v5/
build/
test/
bin/
CHANGELOG.md
src/
docs/
public/
coverage/

// setting files
.babelrc
.travis.yml
.editorconfig

// others
.vscode/
.husky/
.github/
11 changes: 0 additions & 11 deletions .prettierrc.js

This file was deleted.

10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"semi": false,
"arrowParens": "always",
"proseWrap": "preserve",
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 2,
"printWidth": 100,
"endOfLine": "auto"
}
26 changes: 16 additions & 10 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"extends": "stylelint-config-standard",
"ignoreFiles": ["src/**/*.js"],
"overrides": [
{
"files": ["*.scss", "**/*.scss"],
"customSyntax": "postcss-scss"
}
],
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"rules": {
"selector-class-pattern": null
"declaration-no-important": true,
"declaration-colon-newline-after": null,
"selector-pseudo-class-no-unknown": [
true,
{
"ignorePseudoClasses": ["global"]
}
],
"selector-pseudo-element-no-unknown": [
true,
{
"ignorePseudoElements": ["global"]
}
]
}
}
}