Skip to content

Commit 81b394d

Browse files
authored
Custom popup colors
2 parents 2be7537 + 3c17198 commit 81b394d

39 files changed

+22115
-654
lines changed

.babelrc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"plugins": [["@babel/plugin-proposal-decorators", { "legacy": true }],
3-
"@babel/plugin-proposal-class-properties"
4-
],
2+
"plugins": [
3+
["@babel/plugin-proposal-decorators", { "legacy": true }],
4+
"@babel/plugin-syntax-dynamic-import",
5+
"@babel/plugin-syntax-import-meta",
6+
["@babel/plugin-proposal-class-properties", { "loose": false }],
7+
"@babel/plugin-proposal-json-strings"
8+
],
59
"presets": [
6-
["@babel/preset-env", {
7-
"modules": false
8-
}],
9-
"@babel/preset-react"
10+
"@babel/preset-env",
11+
"@babel/preset-react"
1012
]
1113
}

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Dependency directories
22
node_modules/
33

4+
# Styling
5+
*.scss
6+
7+
# Dist
48
build/
59
dist/
610
standalone/

.eslintrc

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"sourceType": "module",
1919
"ecmaVersion": 2018,
2020
"ecmaFeatures": {
21-
"impliedStrict": true,
21+
"impliedStrict": true,
2222
"jsx": true,
2323
"arrowFunctions": true,
2424
"blockBindings": true,
@@ -38,25 +38,15 @@
3838
}
3939
},
4040
"rules": {
41-
// don't force es6 functions to include space before paren
4241
"space-before-function-paren": 0,
43-
44-
// allow specifying true explicitly for boolean props
4542
"react/jsx-boolean-value": 0,
46-
4743
"max-len": [2, {"code":120,"ignoreComments":true}],
48-
49-
"prettier/prettier": [
50-
"error",
51-
{
52-
"singleQuote": false,
53-
"trailingComma": "es5",
54-
"tabWidth": 2,
55-
"printWidth": 80,
56-
"semi": true,
57-
"bracketSpacing": true,
58-
"jsxBracketSameLine": false
59-
}
60-
]
44+
"newline-per-chained-call": 0,
45+
"no-trailing-spaces": ["error"],
46+
"quotes": ["error", "double", { "avoidEscape": true }],
47+
"comma-dangle": ["error", "never"],
48+
"semi": ["error", "always"],
49+
"object-curly-spacing": ["error", "always"],
50+
"quote-props": ["error", "consistent"]
6151
}
6252
}

.stylelintrc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"extends": "stylelint-config-standard",
3+
"ignoreFiles": [
4+
"src/decorators/*.js"
5+
]
6+
}

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ deploy:
3636

3737
branches:
3838
except:
39-
- "/^v\\d+\\.\\d+\\.\\d+$/"
39+
- "/^v\\d+\\.\\d+\\.\\d+$/"

CHANGELOG.md

100644100755
File mode changed.

LICENSE

100644100755
File mode changed.

README.md

100644100755
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ className | data-class | String | | extra custom class, can use !importan
8787
delayUpdate | data-delay-update | Number | | `<p data-tip="tooltip" data-delay-update='1000'></p>` or `<ReactTooltip delayUpdate={1000} />` Sets a delay in calling getContent if the tooltip is already shown and you mouse over another target
8888
insecure | null | Bool | true, false | Whether to inject the style header into the page dynamically (violates CSP style-src but is a convenient default)
8989
border | data-border | Bool | true, false | Add one pixel white border
90+
textColor | data-text-color | String | e.g. red | Popup text color
91+
backgroundColor | data-background-color | String | e.g. yellow | Popup background color
92+
borderColor | data-border-color | String | e.g. green | Popup border color - enabled by the `border` value
93+
arrowColor | data-arrow-color | String | e.g. #fff | Popup arrow color - if not specified, will use the `backgroundColor` value
9094
getContent | null | Func or Array | (dataTip) => {}, [(dataTip) => {}, Interval] | Generate the tip content dynamically
9195
afterShow | null | Func | (evt) => {} | Function that will be called after tooltip show, with event that triggered show
9296
afterHide | null | Func | (evt) => {} | Function that will be called after tooltip hide, with event that triggered hide

bin/transferSass.js

100644100755
File mode changed.

bower.json

100644100755
File mode changed.

0 commit comments

Comments
 (0)