@helpdice/ui 2.5.3 → 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/index.js +13 -0
- package/dist/table/index.js +13 -0
- 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/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/dist/index.js
CHANGED
|
@@ -35781,6 +35781,19 @@ var TableColumn = function TableColumn(columnProps) {
|
|
|
35781
35781
|
};
|
|
35782
35782
|
TableColumn.displayName = 'TableColumn';
|
|
35783
35783
|
|
|
35784
|
+
var SmallTooltip = function SmallTooltip(props) {
|
|
35785
|
+
return /*#__PURE__*/React$1.createElement(Tooltip, _extends({
|
|
35786
|
+
text: props.text,
|
|
35787
|
+
font: 0.8,
|
|
35788
|
+
px: 0.6,
|
|
35789
|
+
py: 0.4
|
|
35790
|
+
}, props), props.children);
|
|
35791
|
+
};
|
|
35792
|
+
SmallTooltip.displayName = 'Tooltip.Small';
|
|
35793
|
+
var SmallTooltip$1 = /*#__PURE__*/React$1.memo(SmallTooltip);
|
|
35794
|
+
|
|
35795
|
+
Tooltip.Small = SmallTooltip$1;
|
|
35796
|
+
|
|
35784
35797
|
var _excluded$9 = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
35785
35798
|
function TableComponent(tableProps) {
|
|
35786
35799
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
package/dist/table/index.js
CHANGED
|
@@ -23776,6 +23776,19 @@ var TooltipComponent = function TooltipComponent(_ref) {
|
|
|
23776
23776
|
TooltipComponent.displayName = 'Tooltip';
|
|
23777
23777
|
var Tooltip = withScale(TooltipComponent);
|
|
23778
23778
|
|
|
23779
|
+
var SmallTooltip = function SmallTooltip(props) {
|
|
23780
|
+
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
23781
|
+
text: props.text,
|
|
23782
|
+
font: 0.8,
|
|
23783
|
+
px: 0.6,
|
|
23784
|
+
py: 0.4
|
|
23785
|
+
}, props), props.children);
|
|
23786
|
+
};
|
|
23787
|
+
SmallTooltip.displayName = 'Tooltip.Small';
|
|
23788
|
+
var SmallTooltip$1 = /*#__PURE__*/React.memo(SmallTooltip);
|
|
23789
|
+
|
|
23790
|
+
Tooltip.Small = SmallTooltip$1;
|
|
23791
|
+
|
|
23779
23792
|
var _excluded = ["children", "data", "initialData", "hover", "emptyText", "rowDraggable", "readOnly", "cursorPagination", "previousCursor", "nextCursor", "hasMore", "onNextPage", "onPreviousPage", "onRow", "onCell", "onChange", "onFilters", "onPageChange", "showFilters", "stickyHeader", "textPlaceholder", "onSelected", "dataLength", "viewLength", "className", "rowClassName"];
|
|
23780
23793
|
function TableComponent(tableProps) {
|
|
23781
23794
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
package/dist/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/dist/tooltip/index.js
CHANGED
|
@@ -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;
|
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);
|