@elliemae/ds-truncated-tooltip-text 2.3.0-next.9 → 2.3.0
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/cjs/index.js +4 -2
- package/cjs/truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js +9 -0
- package/cjs/{DSTruncateTextWithTooltip.js → truncateTextWithTooltip/DSTruncateTextWithTooltip.js} +22 -19
- package/cjs/truncateTextWithTooltip/defaultProps.js +9 -0
- package/cjs/truncateTextWithTooltip/index.js +12 -0
- package/cjs/truncateTextWithTooltip/propTypes.js +13 -0
- package/cjs/truncateTextWithTooltip/styles.js +20 -0
- package/esm/index.js +2 -1
- package/esm/truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js +5 -0
- package/esm/{DSTruncateTextWithTooltip.js → truncateTextWithTooltip/DSTruncateTextWithTooltip.js} +20 -16
- package/esm/truncateTextWithTooltip/defaultProps.js +5 -0
- package/esm/truncateTextWithTooltip/index.js +2 -0
- package/esm/truncateTextWithTooltip/propTypes.js +9 -0
- package/esm/truncateTextWithTooltip/styles.js +12 -0
- package/package.json +29 -9
- package/types/index.d.ts +1 -1
- package/types/truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.d.ts +3 -0
- package/types/truncateTextWithTooltip/DSTruncateTextWithTooltip.d.ts +5 -0
- package/types/truncateTextWithTooltip/defaultProps.d.ts +2 -0
- package/types/truncateTextWithTooltip/index.d.ts +2 -0
- package/types/truncateTextWithTooltip/propTypes.d.ts +14 -0
- package/types/truncateTextWithTooltip/styles.d.ts +1 -0
- package/types/DSTruncateTextWithTooltip.d.ts +0 -8
package/cjs/index.js
CHANGED
|
@@ -5,7 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var TooltipTextProvider = require('./TooltipTextProvider.js');
|
|
6
6
|
var SimpleTruncatedTooltipText = require('./SimpleTruncatedTooltipText.js');
|
|
7
7
|
var DSTruncatedTooltipText = require('./DSTruncatedTooltipText.js');
|
|
8
|
-
var DSTruncateTextWithTooltip = require('./DSTruncateTextWithTooltip.js');
|
|
8
|
+
var DSTruncateTextWithTooltip = require('./truncateTextWithTooltip/DSTruncateTextWithTooltip.js');
|
|
9
|
+
var DSTruncateTextWIthTooltipDatatestid = require('./truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js');
|
|
9
10
|
|
|
10
11
|
|
|
11
12
|
|
|
@@ -16,4 +17,5 @@ exports.DSTruncatedTooltipText = DSTruncatedTooltipText.DSTruncatedTooltipText;
|
|
|
16
17
|
exports.TruncatedTooltipTextWithSchema = DSTruncatedTooltipText.TruncatedTooltipTextWithSchema;
|
|
17
18
|
exports["default"] = DSTruncatedTooltipText.DSTruncatedTooltipText;
|
|
18
19
|
exports.DSTruncateTextWithTooltip = DSTruncateTextWithTooltip.DSTruncateTextWithTooltip;
|
|
19
|
-
exports.
|
|
20
|
+
exports.DSTruncateTextWithTooltipWithSchema = DSTruncateTextWithTooltip.DSTruncateTextWithTooltipWithSchema;
|
|
21
|
+
exports.DSTruncateTextWithTooltipDatatestid = DSTruncateTextWIthTooltipDatatestid.DSTruncateTextWithTooltipDatatestid;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const DSTruncateTextWithTooltipDatatestid = {
|
|
6
|
+
TEXT: 'ds-truncatetextwithtooltip-text'
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
exports.DSTruncateTextWithTooltipDatatestid = DSTruncateTextWithTooltipDatatestid;
|
package/cjs/{DSTruncateTextWithTooltip.js → truncateTextWithTooltip/DSTruncateTextWithTooltip.js}
RENAMED
|
@@ -11,30 +11,30 @@ require('core-js/modules/esnext.async-iterator.for-each.js');
|
|
|
11
11
|
require('core-js/modules/esnext.iterator.for-each.js');
|
|
12
12
|
var React = require('react');
|
|
13
13
|
var dsTooltip = require('@elliemae/ds-tooltip');
|
|
14
|
-
var
|
|
14
|
+
var dsPropsHelpers = require('@elliemae/ds-props-helpers');
|
|
15
|
+
var defaultProps = require('./defaultProps.js');
|
|
16
|
+
var DSTruncateTextWIthTooltipDatatestid = require('./DSTruncateTextWIthTooltipDatatestid.js');
|
|
17
|
+
var propTypes = require('./propTypes.js');
|
|
18
|
+
var styles = require('./styles.js');
|
|
15
19
|
var jsxRuntime = require('react/jsx-runtime');
|
|
16
20
|
|
|
17
21
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
18
22
|
|
|
19
23
|
var _defineProperty__default = /*#__PURE__*/_interopDefaultLegacy(_defineProperty);
|
|
20
|
-
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
21
24
|
|
|
22
25
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
26
|
|
|
24
27
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
-
const Text = /*#__PURE__*/styled__default["default"].span.withConfig({
|
|
26
|
-
componentId: "sc-1w57q5j-0"
|
|
27
|
-
})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block;max-width:100%;:focus{border:none;outline:none;background:", ";}"], props => props.theme.colors.brand['200']);
|
|
28
|
-
const DSTruncateTextWithTooltipDatatestId = 'DS-TruncateTextWithTooltip';
|
|
29
|
-
const DSTruncateTextWithTooltip = _ref => {
|
|
30
|
-
let {
|
|
31
|
-
text,
|
|
32
|
-
tooltipProps = {}
|
|
33
|
-
} = _ref;
|
|
34
|
-
const [textWrapperEl, setTextWrapperEl] = React.useState(); // const textWrapperEl = useRef<HTMLSpanElement>();
|
|
35
|
-
|
|
36
|
-
const [isShowingEllipsis, setIsShowingEllipsis] = React.useState(false); // const isShowingEllipsis = textWrapperEl?.scrollWidth > textWrapperEl?.clientWidth;
|
|
37
28
|
|
|
29
|
+
const DSTruncateTextWithTooltip = props => {
|
|
30
|
+
const propsWithDefault = dsPropsHelpers.useMemoMergePropsWithDefault(props, defaultProps.defaultProps);
|
|
31
|
+
dsPropsHelpers.useValidateTypescriptPropTypes(propsWithDefault, propTypes.propTypes);
|
|
32
|
+
const {
|
|
33
|
+
text,
|
|
34
|
+
tooltipProps
|
|
35
|
+
} = propsWithDefault;
|
|
36
|
+
const [textWrapperEl, setTextWrapperEl] = React.useState(null);
|
|
37
|
+
const [isShowingEllipsis, setIsShowingEllipsis] = React.useState(false);
|
|
38
38
|
const resizeObserver = React.useMemo(() => new ResizeObserver(entries => {
|
|
39
39
|
if (entries.length) {
|
|
40
40
|
const [textWrapperEntry] = entries;
|
|
@@ -57,19 +57,22 @@ const DSTruncateTextWithTooltip = _ref => {
|
|
|
57
57
|
if (isShowingEllipsis) return /*#__PURE__*/jsxRuntime.jsx(dsTooltip.DSTooltipV3, _objectSpread(_objectSpread({
|
|
58
58
|
text: text
|
|
59
59
|
}, tooltipProps), {}, {
|
|
60
|
-
children: /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
60
|
+
children: /*#__PURE__*/jsxRuntime.jsx(styles.Text, {
|
|
61
61
|
ref: setTextWrapperEl,
|
|
62
62
|
tabIndex: 0,
|
|
63
|
-
"data-testid":
|
|
63
|
+
"data-testid": DSTruncateTextWIthTooltipDatatestid.DSTruncateTextWithTooltipDatatestid.TEXT,
|
|
64
64
|
children: text
|
|
65
65
|
})
|
|
66
66
|
}));
|
|
67
|
-
return /*#__PURE__*/jsxRuntime.jsx(Text, {
|
|
67
|
+
return /*#__PURE__*/jsxRuntime.jsx(styles.Text, {
|
|
68
68
|
ref: setTextWrapperEl,
|
|
69
|
-
"data-testid":
|
|
69
|
+
"data-testid": DSTruncateTextWIthTooltipDatatestid.DSTruncateTextWithTooltipDatatestid.TEXT,
|
|
70
70
|
children: text
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
|
|
74
|
+
const DSTruncateTextWithTooltipWithSchema = dsPropsHelpers.describe(DSTruncateTextWithTooltip);
|
|
75
|
+
DSTruncateTextWithTooltipWithSchema.propTypes = propTypes.propTypes;
|
|
76
|
+
|
|
74
77
|
exports.DSTruncateTextWithTooltip = DSTruncateTextWithTooltip;
|
|
75
|
-
exports.
|
|
78
|
+
exports.DSTruncateTextWithTooltipWithSchema = DSTruncateTextWithTooltipWithSchema;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var DSTruncateTextWithTooltip = require('./DSTruncateTextWithTooltip.js');
|
|
6
|
+
var DSTruncateTextWIthTooltipDatatestid = require('./DSTruncateTextWIthTooltipDatatestid.js');
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
exports.DSTruncateTextWithTooltip = DSTruncateTextWithTooltip.DSTruncateTextWithTooltip;
|
|
11
|
+
exports.DSTruncateTextWithTooltipWithSchema = DSTruncateTextWithTooltip.DSTruncateTextWithTooltipWithSchema;
|
|
12
|
+
exports.DSTruncateTextWithTooltipDatatestid = DSTruncateTextWIthTooltipDatatestid.DSTruncateTextWithTooltipDatatestid;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var dsPropsHelpers = require('@elliemae/ds-props-helpers');
|
|
6
|
+
|
|
7
|
+
/* eslint-disable max-len */
|
|
8
|
+
const propTypes = {
|
|
9
|
+
text: dsPropsHelpers.PropTypes.string.description('Text to show.').isRequired,
|
|
10
|
+
tooltipProps: dsPropsHelpers.PropTypes.object.description('This component uses DSTooltip component, you can set properties directly to this component with this property.').defaultValue({})
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
exports.propTypes = propTypes;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var styled = require('styled-components');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
10
|
+
|
|
11
|
+
const Text = /*#__PURE__*/styled__default["default"].span.withConfig({
|
|
12
|
+
componentId: "sc-1i0ijyj-0"
|
|
13
|
+
})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block;max-width:100%;&:focus{border:none;outline:none;background:", ";}"], _ref => {
|
|
14
|
+
let {
|
|
15
|
+
theme
|
|
16
|
+
} = _ref;
|
|
17
|
+
return theme.colors.brand[200];
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.Text = Text;
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { TooltipTextProvider, TruncatedTooltipContext } from './TooltipTextProvider.js';
|
|
2
2
|
export { SimpleTruncatedTooltipText } from './SimpleTruncatedTooltipText.js';
|
|
3
3
|
export { DSTruncatedTooltipText, TruncatedTooltipTextWithSchema, DSTruncatedTooltipText as default } from './DSTruncatedTooltipText.js';
|
|
4
|
-
export { DSTruncateTextWithTooltip,
|
|
4
|
+
export { DSTruncateTextWithTooltip, DSTruncateTextWithTooltipWithSchema } from './truncateTextWithTooltip/DSTruncateTextWithTooltip.js';
|
|
5
|
+
export { DSTruncateTextWithTooltipDatatestid } from './truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js';
|
package/esm/{DSTruncateTextWithTooltip.js → truncateTextWithTooltip/DSTruncateTextWithTooltip.js}
RENAMED
|
@@ -7,25 +7,26 @@ import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
|
7
7
|
import 'core-js/modules/web.dom-collections.iterator.js';
|
|
8
8
|
import { useState, useMemo, useEffect } from 'react';
|
|
9
9
|
import { DSTooltipV3 } from '@elliemae/ds-tooltip';
|
|
10
|
-
import
|
|
10
|
+
import { describe, useMemoMergePropsWithDefault, useValidateTypescriptPropTypes } from '@elliemae/ds-props-helpers';
|
|
11
|
+
import { defaultProps } from './defaultProps.js';
|
|
12
|
+
import { DSTruncateTextWithTooltipDatatestid } from './DSTruncateTextWIthTooltipDatatestid.js';
|
|
13
|
+
import { propTypes } from './propTypes.js';
|
|
14
|
+
import { Text } from './styles.js';
|
|
11
15
|
import { jsx } from 'react/jsx-runtime';
|
|
12
16
|
|
|
13
17
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
18
|
|
|
15
19
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
-
const Text = /*#__PURE__*/styled.span.withConfig({
|
|
17
|
-
componentId: "sc-1w57q5j-0"
|
|
18
|
-
})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block;max-width:100%;:focus{border:none;outline:none;background:", ";}"], props => props.theme.colors.brand['200']);
|
|
19
|
-
const DSTruncateTextWithTooltipDatatestId = 'DS-TruncateTextWithTooltip';
|
|
20
|
-
const DSTruncateTextWithTooltip = _ref => {
|
|
21
|
-
let {
|
|
22
|
-
text,
|
|
23
|
-
tooltipProps = {}
|
|
24
|
-
} = _ref;
|
|
25
|
-
const [textWrapperEl, setTextWrapperEl] = useState(); // const textWrapperEl = useRef<HTMLSpanElement>();
|
|
26
|
-
|
|
27
|
-
const [isShowingEllipsis, setIsShowingEllipsis] = useState(false); // const isShowingEllipsis = textWrapperEl?.scrollWidth > textWrapperEl?.clientWidth;
|
|
28
20
|
|
|
21
|
+
const DSTruncateTextWithTooltip = props => {
|
|
22
|
+
const propsWithDefault = useMemoMergePropsWithDefault(props, defaultProps);
|
|
23
|
+
useValidateTypescriptPropTypes(propsWithDefault, propTypes);
|
|
24
|
+
const {
|
|
25
|
+
text,
|
|
26
|
+
tooltipProps
|
|
27
|
+
} = propsWithDefault;
|
|
28
|
+
const [textWrapperEl, setTextWrapperEl] = useState(null);
|
|
29
|
+
const [isShowingEllipsis, setIsShowingEllipsis] = useState(false);
|
|
29
30
|
const resizeObserver = useMemo(() => new ResizeObserver(entries => {
|
|
30
31
|
if (entries.length) {
|
|
31
32
|
const [textWrapperEntry] = entries;
|
|
@@ -51,15 +52,18 @@ const DSTruncateTextWithTooltip = _ref => {
|
|
|
51
52
|
children: /*#__PURE__*/jsx(Text, {
|
|
52
53
|
ref: setTextWrapperEl,
|
|
53
54
|
tabIndex: 0,
|
|
54
|
-
"data-testid":
|
|
55
|
+
"data-testid": DSTruncateTextWithTooltipDatatestid.TEXT,
|
|
55
56
|
children: text
|
|
56
57
|
})
|
|
57
58
|
}));
|
|
58
59
|
return /*#__PURE__*/jsx(Text, {
|
|
59
60
|
ref: setTextWrapperEl,
|
|
60
|
-
"data-testid":
|
|
61
|
+
"data-testid": DSTruncateTextWithTooltipDatatestid.TEXT,
|
|
61
62
|
children: text
|
|
62
63
|
});
|
|
63
64
|
};
|
|
64
65
|
|
|
65
|
-
|
|
66
|
+
const DSTruncateTextWithTooltipWithSchema = describe(DSTruncateTextWithTooltip);
|
|
67
|
+
DSTruncateTextWithTooltipWithSchema.propTypes = propTypes;
|
|
68
|
+
|
|
69
|
+
export { DSTruncateTextWithTooltip, DSTruncateTextWithTooltipWithSchema };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PropTypes } from '@elliemae/ds-props-helpers';
|
|
2
|
+
|
|
3
|
+
/* eslint-disable max-len */
|
|
4
|
+
const propTypes = {
|
|
5
|
+
text: PropTypes.string.description('Text to show.').isRequired,
|
|
6
|
+
tooltipProps: PropTypes.object.description('This component uses DSTooltip component, you can set properties directly to this component with this property.').defaultValue({})
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { propTypes };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Text = /*#__PURE__*/styled.span.withConfig({
|
|
4
|
+
componentId: "sc-1i0ijyj-0"
|
|
5
|
+
})(["text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block;max-width:100%;&:focus{border:none;outline:none;background:", ";}"], _ref => {
|
|
6
|
+
let {
|
|
7
|
+
theme
|
|
8
|
+
} = _ref;
|
|
9
|
+
return theme.colors.brand[200];
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
export { Text };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-truncated-tooltip-text",
|
|
3
|
-
"version": "2.3.0
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - Truncated Tooltip Text",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -11,6 +11,30 @@
|
|
|
11
11
|
"import": "./esm/index.js",
|
|
12
12
|
"require": "./cjs/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./truncateTextWithTooltip/styles": {
|
|
15
|
+
"import": "./esm/truncateTextWithTooltip/styles.js",
|
|
16
|
+
"require": "./cjs/truncateTextWithTooltip/styles.js"
|
|
17
|
+
},
|
|
18
|
+
"./truncateTextWithTooltip/propTypes": {
|
|
19
|
+
"import": "./esm/truncateTextWithTooltip/propTypes.js",
|
|
20
|
+
"require": "./cjs/truncateTextWithTooltip/propTypes.js"
|
|
21
|
+
},
|
|
22
|
+
"./truncateTextWithTooltip": {
|
|
23
|
+
"import": "./esm/truncateTextWithTooltip/index.js",
|
|
24
|
+
"require": "./cjs/truncateTextWithTooltip/index.js"
|
|
25
|
+
},
|
|
26
|
+
"./truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid": {
|
|
27
|
+
"import": "./esm/truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js",
|
|
28
|
+
"require": "./cjs/truncateTextWithTooltip/DSTruncateTextWIthTooltipDatatestid.js"
|
|
29
|
+
},
|
|
30
|
+
"./truncateTextWithTooltip/DSTruncateTextWithTooltip": {
|
|
31
|
+
"import": "./esm/truncateTextWithTooltip/DSTruncateTextWithTooltip.js",
|
|
32
|
+
"require": "./cjs/truncateTextWithTooltip/DSTruncateTextWithTooltip.js"
|
|
33
|
+
},
|
|
34
|
+
"./truncateTextWithTooltip/defaultProps": {
|
|
35
|
+
"import": "./esm/truncateTextWithTooltip/defaultProps.js",
|
|
36
|
+
"require": "./cjs/truncateTextWithTooltip/defaultProps.js"
|
|
37
|
+
},
|
|
14
38
|
"./TooltipTextProvider": {
|
|
15
39
|
"import": "./esm/TooltipTextProvider.js",
|
|
16
40
|
"require": "./cjs/TooltipTextProvider.js"
|
|
@@ -19,10 +43,6 @@
|
|
|
19
43
|
"import": "./esm/SimpleTruncatedTooltipText.js",
|
|
20
44
|
"require": "./cjs/SimpleTruncatedTooltipText.js"
|
|
21
45
|
},
|
|
22
|
-
"./DSTruncateTextWithTooltip": {
|
|
23
|
-
"import": "./esm/DSTruncateTextWithTooltip.js",
|
|
24
|
-
"require": "./cjs/DSTruncateTextWithTooltip.js"
|
|
25
|
-
},
|
|
26
46
|
"./DSTruncatedTooltipText": {
|
|
27
47
|
"import": "./esm/DSTruncatedTooltipText.js",
|
|
28
48
|
"require": "./cjs/DSTruncatedTooltipText.js"
|
|
@@ -48,10 +68,10 @@
|
|
|
48
68
|
"build": "node ../../scripts/build/build.js"
|
|
49
69
|
},
|
|
50
70
|
"dependencies": {
|
|
51
|
-
"@elliemae/ds-popover": "2.3.0
|
|
52
|
-
"@elliemae/ds-popper": "2.3.0
|
|
53
|
-
"@elliemae/ds-tooltip": "2.3.0
|
|
54
|
-
"@elliemae/ds-utilities": "2.3.0
|
|
71
|
+
"@elliemae/ds-popover": "2.3.0",
|
|
72
|
+
"@elliemae/ds-popper": "2.3.0",
|
|
73
|
+
"@elliemae/ds-tooltip": "2.3.0",
|
|
74
|
+
"@elliemae/ds-utilities": "2.3.0",
|
|
55
75
|
"prop-types": "~15.7.2",
|
|
56
76
|
"react-desc": "~4.1.3"
|
|
57
77
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -2,4 +2,4 @@ export * from './TooltipTextProvider';
|
|
|
2
2
|
export * from './SimpleTruncatedTooltipText';
|
|
3
3
|
export * from './DSTruncatedTooltipText';
|
|
4
4
|
export { default } from './DSTruncatedTooltipText';
|
|
5
|
-
export * from './
|
|
5
|
+
export * from './truncateTextWithTooltip';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { DSTruncateTextWithTooltipT } from './propTypes';
|
|
3
|
+
declare const DSTruncateTextWithTooltip: (props: DSTruncateTextWithTooltipT.Props) => JSX.Element;
|
|
4
|
+
declare const DSTruncateTextWithTooltipWithSchema: import("@elliemae/ds-props-helpers/types/propTypes/types").DocumentedReactComponent<DSTruncateTextWithTooltipT.Props>;
|
|
5
|
+
export { DSTruncateTextWithTooltip, DSTruncateTextWithTooltipWithSchema };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace DSTruncateTextWithTooltipT {
|
|
2
|
+
interface PropsRequired {
|
|
3
|
+
text: string;
|
|
4
|
+
}
|
|
5
|
+
interface DefaultProps {
|
|
6
|
+
tooltipProps: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
interface Props extends DefaultProps, PropsRequired {
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export declare const propTypes: {
|
|
12
|
+
text: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
13
|
+
tooltipProps: import("@elliemae/ds-props-helpers/types/propTypes/types").ReactDescT;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Text: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface PropsT {
|
|
3
|
-
text: string;
|
|
4
|
-
tooltipProps?: Record<string, unknown>;
|
|
5
|
-
}
|
|
6
|
-
export declare const DSTruncateTextWithTooltipDatatestId = "DS-TruncateTextWithTooltip";
|
|
7
|
-
export declare const DSTruncateTextWithTooltip: ({ text, tooltipProps }: PropsT) => JSX.Element;
|
|
8
|
-
export {};
|