@fibery/ui-kit 1.4.0 → 1.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fibery/ui-kit",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "main": "index.ts",
5
5
  "private": false,
6
6
  "files": [
@@ -21,7 +21,8 @@
21
21
  "src/Select",
22
22
  "src/error-alert.tsx",
23
23
  "src/Pallete.ts",
24
- "src/tooltip.tsx"
24
+ "src/tooltip.tsx",
25
+ "src/antd/ant-tooltip.tsx"
25
26
  ],
26
27
  "license": "UNLICENSED",
27
28
  "scripts": {
@@ -0,0 +1,5 @@
1
+ import Tooltip, {TooltipPlacement} from "antd/lib/tooltip";
2
+ import "antd/lib/tooltip/style/css";
3
+
4
+ export type {TooltipPlacement};
5
+ export {Tooltip as AntTooltip};
package/src/tooltip.tsx CHANGED
@@ -164,7 +164,7 @@ export function Tooltip(props: Props) {
164
164
  mouseEnterDelay={mouseEnterDelay || (instant ? 0 : tooltipDelay.enter)}
165
165
  mouseLeaveDelay={instant ? 0 : tooltipDelay.leave}
166
166
  overlayClassName={cx(tooltipStyle, {[whiteBgStyle]: whiteBg})}
167
- align={align || (placement === "bottom" ? alignByPlacement[placement] : undefined)}
167
+ align={align || (placement === "bottom" ? alignByPlacement.bottom : undefined)}
168
168
  onVisibleChange={onVisibleChange}
169
169
  destroyTooltipOnHide={destroyTooltipOnHide}
170
170
  getPopupContainer={getPopupContainer}