@symbo.ls/tooltip 2.11.373 → 2.11.377

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.
Files changed (2) hide show
  1. package/index.js +8 -10
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -45,7 +45,7 @@ export const Tooltip = {
45
45
  }
46
46
 
47
47
  export const TooltipHidden = {
48
- extend: Tooltip,
48
+ extend: 'Tooltip',
49
49
 
50
50
  props: ({ props }) => ({
51
51
  position: 'absolute',
@@ -108,19 +108,17 @@ export const TooltipParent = {
108
108
  props: (el) => {
109
109
  const { Tooltip, TooltipHidden } = el
110
110
  const TooltipElem = (Tooltip || TooltipHidden)
111
- if (!TooltipElem || TooltipElem) return
111
+ if (!TooltipElem) return
112
112
  const TooltipActive = TooltipElem && TooltipElem.props && TooltipElem.props['.active']
113
113
  return {
114
114
  position: 'relative',
115
115
  zIndex: 999,
116
- style: {
117
- '&:hover, &:focus-visible': {
118
- zIndex: 1000,
119
- '& [tooltip]': TooltipActive || {
120
- transform: 'translate3d(-50%,0,0)',
121
- opacity: 1,
122
- visibility: 'visible'
123
- }
116
+ ':hover, &:focus-visible': {
117
+ zIndex: 1000,
118
+ '& [tooltip]': TooltipActive || {
119
+ transform: 'translate3d(-50%,0,0)',
120
+ opacity: 1,
121
+ visibility: 'visible'
124
122
  }
125
123
  }
126
124
  }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/tooltip",
3
- "version": "2.11.373",
3
+ "version": "2.11.377",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "71ddf72da03fdac28f9d1fe2c9e163b5b6ba9f09",
6
+ "gitHead": "8475b31b010da3b62b810e1ded30e5553bf8ea94",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest"
9
9
  },