@helpdice/ui 2.5.2 → 2.5.4

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.
@@ -1,3 +1,8 @@
1
1
  import Tooltip from './tooltip';
2
2
  export type { TooltipProps, TooltipOnVisibleChange, TooltipTypes, TooltipTriggers, TooltipPlacement, } from './tooltip';
3
- export default Tooltip;
3
+ import SmallTooltip from './tooltip-small';
4
+ export type TooltipComponentType = typeof Tooltip & {
5
+ Small: typeof SmallTooltip;
6
+ };
7
+ declare const _default: TooltipComponentType;
8
+ export default _default;
@@ -1517,4 +1517,17 @@ var TooltipComponent = function TooltipComponent(_ref) {
1517
1517
  TooltipComponent.displayName = 'Tooltip';
1518
1518
  var Tooltip = withScale(TooltipComponent);
1519
1519
 
1520
+ var SmallTooltip = function SmallTooltip(props) {
1521
+ return /*#__PURE__*/React.createElement(Tooltip, _extends({
1522
+ text: props.text,
1523
+ font: 0.8,
1524
+ px: 0.6,
1525
+ py: 0.4
1526
+ }, props), props.children);
1527
+ };
1528
+ SmallTooltip.displayName = 'Tooltip.Small';
1529
+ var SmallTooltip$1 = /*#__PURE__*/React.memo(SmallTooltip);
1530
+
1531
+ Tooltip.Small = SmallTooltip$1;
1532
+
1520
1533
  exports.default = Tooltip;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ type SmallTooltipProps = {
3
+ children?: React.ReactNode;
4
+ text?: string | React.ReactNode;
5
+ };
6
+ declare const _default: React.NamedExoticComponent<SmallTooltipProps>;
7
+ export default _default;