@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.
- package/dist/auto-complete/index.js +999 -1249
- package/dist/index.js +1012 -1249
- package/dist/input/index.js +999 -1249
- package/dist/table/index.js +1012 -1249
- package/dist/tooltip/index.d.ts +6 -1
- package/dist/tooltip/index.js +13 -0
- package/dist/tooltip/tooltip-small.d.ts +7 -0
- package/esm/input/input-phone.js +1000 -1
- package/esm/tooltip/index.d.ts +6 -1
- package/esm/tooltip/index.js +2 -0
- package/esm/tooltip/tooltip-small.d.ts +7 -0
- package/esm/tooltip/tooltip-small.js +13 -0
- package/package.json +1 -1
package/esm/tooltip/index.d.ts
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
1
|
import Tooltip from './tooltip';
|
|
2
2
|
export type { TooltipProps, TooltipOnVisibleChange, TooltipTypes, TooltipTriggers, TooltipPlacement, } from './tooltip';
|
|
3
|
-
|
|
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;
|
package/esm/tooltip/index.js
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import React, { memo } from 'react';
|
|
3
|
+
import Tooltip from './tooltip';
|
|
4
|
+
var SmallTooltip = function SmallTooltip(props) {
|
|
5
|
+
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
6
|
+
text: props.text,
|
|
7
|
+
font: 0.8,
|
|
8
|
+
px: 0.6,
|
|
9
|
+
py: 0.4
|
|
10
|
+
}, props), props.children);
|
|
11
|
+
};
|
|
12
|
+
SmallTooltip.displayName = 'Tooltip.Small';
|
|
13
|
+
export default /*#__PURE__*/memo(SmallTooltip);
|