@symbo.ls/tooltip 2.11.267 → 2.11.288

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 +4 -2
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -106,9 +106,11 @@ export const TooltipHidden = {
106
106
  }
107
107
 
108
108
  export const TooltipParent = {
109
- props: ({ Tooltip, TooltipHidden }) => {
109
+ props: (el) => {
110
+ const { Tooltip, TooltipHidden } = el
110
111
  const TooltipElem = (Tooltip || TooltipHidden)
111
- const TooltipActive = TooltipElem && TooltipElem.props['.active']
112
+ if (!TooltipElem || TooltipElem) return console.warn('Tooltip was not found in', el.__ref.path)
113
+ const TooltipActive = TooltipElem.props && TooltipElem.props['.active']
112
114
  return {
113
115
  position: 'relative',
114
116
  zIndex: 999,
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@symbo.ls/tooltip",
3
- "version": "2.11.267",
3
+ "version": "2.11.288",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
- "gitHead": "8641ea0f87d8ae5c7c0266f94a38f5714cac1e34",
6
+ "gitHead": "2793d8d6b6903041e9d988b292ee6fdf7ed67176",
7
7
  "dependencies": {
8
8
  "@symbo.ls/atoms": "latest"
9
9
  },