@synerise/ds-typography 1.0.28 → 1.1.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/CHANGELOG.md +10 -0
- package/dist/Ellipsis.d.ts +3 -2
- package/dist/Ellipsis.js +3 -1
- package/dist/Text.d.ts +3 -2
- package/dist/Text.js +4 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
## [1.1.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@1.1.0...@synerise/ds-typography@1.1.1) (2026-01-29)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-typography
|
|
9
|
+
|
|
10
|
+
# [1.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@1.0.28...@synerise/ds-typography@1.1.0) (2026-01-22)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **slider:** migrated from antd to tanstack ranger lib ([0c287c1](https://github.com/synerise/synerise-design/commit/0c287c135d91180a143221bc273821828ad7efdc))
|
|
15
|
+
|
|
6
16
|
## [1.0.28](https://github.com/synerise/synerise-design/compare/@synerise/ds-typography@1.0.27...@synerise/ds-typography@1.0.28) (2026-01-15)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @synerise/ds-typography
|
package/dist/Ellipsis.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
1
|
+
import React, { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import { type TooltipProps } from '@synerise/ds-tooltip';
|
|
3
3
|
export type EllipsisProps = {
|
|
4
4
|
tooltip?: ReactNode;
|
|
5
5
|
tooltipProps?: TooltipProps;
|
|
6
6
|
children?: ReactNode;
|
|
7
7
|
className?: string;
|
|
8
|
+
style?: CSSProperties;
|
|
8
9
|
};
|
|
9
|
-
export declare const Ellipsis: ({ tooltip, children, className, tooltipProps, }: EllipsisProps) => React.JSX.Element;
|
|
10
|
+
export declare const Ellipsis: ({ tooltip, children, className, tooltipProps, style, }: EllipsisProps) => React.JSX.Element;
|
package/dist/Ellipsis.js
CHANGED
|
@@ -7,7 +7,8 @@ export var Ellipsis = function Ellipsis(_ref) {
|
|
|
7
7
|
var tooltip = _ref.tooltip,
|
|
8
8
|
children = _ref.children,
|
|
9
9
|
className = _ref.className,
|
|
10
|
-
tooltipProps = _ref.tooltipProps
|
|
10
|
+
tooltipProps = _ref.tooltipProps,
|
|
11
|
+
style = _ref.style;
|
|
11
12
|
var textComponentRef = useRef(null);
|
|
12
13
|
var _useState = useState(false),
|
|
13
14
|
truncated = _useState[0],
|
|
@@ -34,6 +35,7 @@ export var Ellipsis = function Ellipsis(_ref) {
|
|
|
34
35
|
return /*#__PURE__*/React.createElement(Tooltip, _extends({
|
|
35
36
|
title: truncated ? tooltip : undefined
|
|
36
37
|
}, truncated ? tooltipProps : {}), /*#__PURE__*/React.createElement(EllipsisText, {
|
|
38
|
+
style: style,
|
|
37
39
|
className: className,
|
|
38
40
|
ref: textComponentRef
|
|
39
41
|
}, children));
|
package/dist/Text.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { type ReactNode } from 'react';
|
|
1
|
+
import React, { type CSSProperties, type ReactNode } from 'react';
|
|
2
2
|
import '@synerise/ds-core/dist/js/style';
|
|
3
3
|
import { type EllipsisProps } from './Ellipsis';
|
|
4
4
|
import './style/index.less';
|
|
@@ -8,6 +8,7 @@ type TextProps = {
|
|
|
8
8
|
ellipsis?: EllipsisProps;
|
|
9
9
|
children?: ReactNode;
|
|
10
10
|
className?: string;
|
|
11
|
+
style?: CSSProperties;
|
|
11
12
|
};
|
|
12
|
-
export declare const Text: ({ size, className, children, ellipsis, }: TextProps) => React.JSX.Element;
|
|
13
|
+
export declare const Text: ({ size, className, children, ellipsis, style, }: TextProps) => React.JSX.Element;
|
|
13
14
|
export default Text;
|
package/dist/Text.js
CHANGED
|
@@ -14,7 +14,8 @@ export var Text = function Text(_ref) {
|
|
|
14
14
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
15
15
|
className = _ref.className,
|
|
16
16
|
children = _ref.children,
|
|
17
|
-
ellipsis = _ref.ellipsis
|
|
17
|
+
ellipsis = _ref.ellipsis,
|
|
18
|
+
style = _ref.style;
|
|
18
19
|
var Component = MapSizeToComponent[size];
|
|
19
20
|
var textClassNames = "ds-text " + (!ellipsis && className);
|
|
20
21
|
var content = /*#__PURE__*/React.createElement(Component, {
|
|
@@ -24,7 +25,8 @@ export var Text = function Text(_ref) {
|
|
|
24
25
|
return content;
|
|
25
26
|
}
|
|
26
27
|
return /*#__PURE__*/React.createElement(Ellipsis, _extends({
|
|
27
|
-
className: className
|
|
28
|
+
className: className,
|
|
29
|
+
style: style
|
|
28
30
|
}, ellipsis), content);
|
|
29
31
|
};
|
|
30
32
|
export default Text;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-typography",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Typography UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "synerise/synerise-design",
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"access": "public"
|
|
17
17
|
},
|
|
18
18
|
"scripts": {
|
|
19
|
-
"build": "
|
|
19
|
+
"build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
|
|
20
20
|
"build:css": "node ../../../scripts/style/less.js",
|
|
21
21
|
"build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
|
|
22
|
-
"build:watch": "
|
|
22
|
+
"build:watch": "pnpm run build:js -- --watch",
|
|
23
23
|
"defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
|
|
24
24
|
"pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
|
|
25
|
-
"prepublish": "
|
|
25
|
+
"prepublish": "pnpm run build",
|
|
26
26
|
"test": "jest",
|
|
27
|
-
"test:watch": "
|
|
27
|
+
"test:watch": "pnpm run test -- --watchAll",
|
|
28
28
|
"types": "tsc --noEmit",
|
|
29
29
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
30
30
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-tooltip": "^1.3.
|
|
38
|
+
"@synerise/ds-tooltip": "^1.3.6",
|
|
39
39
|
"classnames": "^2.5.1",
|
|
40
40
|
"lodash": "^4.17.21"
|
|
41
41
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react": ">=16.9.0 <= 18.3.1",
|
|
49
49
|
"styled-components": "^5.3.3"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "e1a3b7417480ba1bbf0b68becf985dd2d5f5a924"
|
|
52
52
|
}
|