react-tooltip 5.11.0 → 5.11.2-beta.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.
@@ -0,0 +1,80 @@
1
+ :root {
2
+ --rt-color-white: #fff;
3
+ --rt-color-dark: #222;
4
+ --rt-color-success: #8dc572;
5
+ --rt-color-error: #be6464;
6
+ --rt-color-warning: #f0ad4e;
7
+ --rt-color-info: #337ab7;
8
+ --rt-opacity: 0.9;
9
+ }
10
+
11
+ .styles-module_tooltip__mnnfp {
12
+ visibility: hidden;
13
+ width: max-content;
14
+ position: absolute;
15
+ top: 0;
16
+ left: 0;
17
+ padding: 8px 16px;
18
+ border-radius: 3px;
19
+ font-size: 90%;
20
+ pointer-events: none;
21
+ opacity: 0;
22
+ transition: opacity 0.3s ease-out;
23
+ will-change: opacity, visibility;
24
+ }
25
+
26
+ .styles-module_fixed__7ciUi {
27
+ position: fixed;
28
+ }
29
+
30
+ .styles-module_arrow__K0L3T {
31
+ position: absolute;
32
+ background: inherit;
33
+ width: 8px;
34
+ height: 8px;
35
+ transform: rotate(45deg);
36
+ }
37
+
38
+ .styles-module_noArrow__T8y2L {
39
+ display: none;
40
+ }
41
+
42
+ .styles-module_clickable__Bv9o7 {
43
+ pointer-events: auto;
44
+ }
45
+
46
+ .styles-module_show__2NboJ {
47
+ visibility: visible;
48
+ opacity: var(--rt-opacity);
49
+ }
50
+
51
+ /** Types variant **/
52
+ .styles-module_dark__xNqje {
53
+ background: var(--rt-color-dark);
54
+ color: var(--rt-color-white);
55
+ }
56
+
57
+ .styles-module_light__Z6W-X {
58
+ background-color: var(--rt-color-white);
59
+ color: var(--rt-color-dark);
60
+ }
61
+
62
+ .styles-module_success__A2AKt {
63
+ background-color: var(--rt-color-success);
64
+ color: var(--rt-color-white);
65
+ }
66
+
67
+ .styles-module_warning__SCK0X {
68
+ background-color: var(--rt-color-warning);
69
+ color: var(--rt-color-white);
70
+ }
71
+
72
+ .styles-module_error__JvumD {
73
+ background-color: var(--rt-color-error);
74
+ color: var(--rt-color-white);
75
+ }
76
+
77
+ .styles-module_info__BWdHW {
78
+ background-color: var(--rt-color-info);
79
+ color: var(--rt-color-white);
80
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "react-tooltip",
3
- "version": "5.11.0",
3
+ "version": "5.11.2-beta.0",
4
4
  "description": "react tooltip component",
5
5
  "scripts": {
6
6
  "dev-rollup": "node ./prebuild.js --env=development && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.dev.js --watch",
7
- "build-rollup": "node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.js",
7
+ "build": "node ./prebuild.js --env=production && npm run types && node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.prod.js",
8
8
  "dev": "node ./prebuild.js --env=development && node ./esbuild.config.dev.mjs",
9
- "build": "node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs",
9
+ "build-eslint": "node ./prebuild.js --env=production && node ./esbuild.config.prod.mjs",
10
10
  "types": "node --max_old_space_size=2048 ./node_modules/rollup/dist/bin/rollup -c rollup.config.types.js",
11
11
  "eslint": "eslint --ext=js --ext=jsx --ext=ts --ext=tsx --fix ./src",
12
12
  "stylelint": "stylelint \"src/**/*.css\"",
@@ -16,7 +16,7 @@
16
16
  "esbuild": "esbuild",
17
17
  "test": "jest",
18
18
  "postbuild": "npm run types && npm run bundlesize",
19
- "prepublishOnly": "npm run build-rollup"
19
+ "prepublishOnly": "npm run build"
20
20
  },
21
21
  "types": "dist/react-tooltip.d.ts",
22
22
  "license": "MIT",
@@ -32,6 +32,8 @@
32
32
  "bugs": {
33
33
  "url": "https://github.com/ReactTooltip/react-tooltip/issues"
34
34
  },
35
+ "main": "dist/react-tooltip.min.cjs",
36
+ "module": "dist/react-tooltip.min.mjs",
35
37
  "exports": {
36
38
  ".": {
37
39
  "types": "./dist/react-tooltip.d.ts",
@@ -39,6 +41,7 @@
39
41
  "import": "./dist/react-tooltip.min.mjs",
40
42
  "default": "./dist/react-tooltip.min.cjs"
41
43
  },
44
+ "./dist/react-tooltip": "./dist/react-tooltip.min.cjs",
42
45
  "./dist/react-tooltip.css": "./dist/react-tooltip.min.css",
43
46
  "./dist/react-tooltip.d.ts": "./dist/react-tooltip.d.ts",
44
47
  "./package.json": "./package.json"