@hexure/ui 1.8.9 → 1.8.10

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.
package/dist/cjs/index.js CHANGED
@@ -3120,10 +3120,10 @@ const positions = {
3120
3120
  },
3121
3121
  };
3122
3122
  const Content$2 = styled.div(props => (Object.assign({ position: 'absolute', borderRadius: '4px', borderWidth: '1px', borderStyle: 'solid', borderColor: Colors.PRIMARY.Hex, background: '#ffffff', boxShadow: '0px 5px 30px -10px rgba(0, 0, 0, 0.5)', width: props.$width || '240px', padding: '10px 12px', zIndex: 10 }, positions[props.$position])));
3123
- const Tooltip = ({ children, position = 'right-top', width = '240px' }) => {
3123
+ const Tooltip = ({ children, position = 'right-top', width = '240px', trigger, }) => {
3124
3124
  const [show_content, toggleContent] = React.useState(false);
3125
3125
  return (React.createElement(Wrapper$a, { onMouseEnter: toggleContent.bind(null, true), onMouseLeave: toggleContent.bind(null, false) },
3126
- React.createElement(StyledIcon$2, { path: js.mdiInformationOutline }),
3126
+ trigger || React.createElement(StyledIcon$2, { path: js.mdiInformationOutline }),
3127
3127
  show_content ? (React.createElement(Content$2, { "$position": position, "$width": width }, children && React.createElement(Copy, { type: 'small' }, children))) : null));
3128
3128
  };
3129
3129