@synerise/ds-typography 0.15.3 → 0.16.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/CHANGELOG.md +19 -0
- package/dist/Ellipsis.d.ts +3 -1
- package/dist/Ellipsis.js +6 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,25 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [0.16.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.15.4...@synerise/ds-typography@0.16.0) (2024-10-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **table:** render skeleton using columns ([c84ca2a](https://github.com/synerise/synerise-design/commit/c84ca2a8a8aea9d492c38802d9eb357039dccf2f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## [0.15.4](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.15.3...@synerise/ds-typography@0.15.4) (2024-10-01)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @synerise/ds-typography
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
6
25
|
## [0.15.3](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@0.15.2...@synerise/ds-typography@0.15.3) (2024-09-26)
|
|
7
26
|
|
|
8
27
|
**Note:** Version bump only for package @synerise/ds-typography
|
package/dist/Ellipsis.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
+
import { TooltipProps } from '@synerise/ds-tooltip';
|
|
2
3
|
export type EllipsisProps = {
|
|
3
4
|
tooltip?: ReactNode;
|
|
5
|
+
tooltipProps?: TooltipProps;
|
|
4
6
|
children?: ReactNode;
|
|
5
7
|
className?: string;
|
|
6
8
|
};
|
|
7
|
-
export declare const Ellipsis: ({ tooltip, children, className }: EllipsisProps) => React.JSX.Element;
|
|
9
|
+
export declare const Ellipsis: ({ tooltip, children, className, tooltipProps }: EllipsisProps) => React.JSX.Element;
|
package/dist/Ellipsis.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
+
|
|
1
3
|
import React, { useRef, useEffect, useState } from 'react';
|
|
2
4
|
import { debounce } from 'lodash';
|
|
3
5
|
import Tooltip from '@synerise/ds-tooltip';
|
|
@@ -5,7 +7,8 @@ import { EllipsisText } from './CommonElements';
|
|
|
5
7
|
export var Ellipsis = function Ellipsis(_ref) {
|
|
6
8
|
var tooltip = _ref.tooltip,
|
|
7
9
|
children = _ref.children,
|
|
8
|
-
className = _ref.className
|
|
10
|
+
className = _ref.className,
|
|
11
|
+
tooltipProps = _ref.tooltipProps;
|
|
9
12
|
var textComponentRef = useRef(null);
|
|
10
13
|
|
|
11
14
|
var _useState = useState(false),
|
|
@@ -32,9 +35,9 @@ export var Ellipsis = function Ellipsis(_ref) {
|
|
|
32
35
|
debouncedResize.cancel();
|
|
33
36
|
};
|
|
34
37
|
}, [resizeObserver, debouncedResize]);
|
|
35
|
-
return /*#__PURE__*/React.createElement(Tooltip, {
|
|
38
|
+
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
36
39
|
title: truncated ? tooltip : undefined
|
|
37
|
-
}, /*#__PURE__*/React.createElement(EllipsisText, {
|
|
40
|
+
}, truncated ? tooltipProps : {}), /*#__PURE__*/React.createElement(EllipsisText, {
|
|
38
41
|
className: className,
|
|
39
42
|
ref: textComponentRef
|
|
40
43
|
}, children));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-typography",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"description": "Typography UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-tooltip": "^0.14.
|
|
37
|
+
"@synerise/ds-tooltip": "^0.14.43",
|
|
38
38
|
"classnames": "2.3.2",
|
|
39
39
|
"lodash": "^4.17.21"
|
|
40
40
|
},
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"react": ">=16.9.0 <= 17.0.2",
|
|
45
45
|
"styled-components": "5.0.1"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "39c906a3f4d8ec9442e5780c6e6a387584eabce1"
|
|
48
48
|
}
|