@semcore/typography 16.3.3-prerelease.9 → 16.4.0-prerelease.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 +2 -8
- package/lib/cjs/Blockquote.js +18 -21
- package/lib/cjs/Blockquote.js.map +1 -1
- package/lib/cjs/List.js +79 -69
- package/lib/cjs/List.js.map +1 -1
- package/lib/cjs/Text.js +64 -137
- package/lib/cjs/Text.js.map +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +7 -7
- package/lib/cjs/style/blockquote.shadow.css +3 -3
- package/lib/cjs/style/list.shadow.css +1 -1
- package/lib/cjs/style/text.shadow.css +18 -46
- package/lib/es6/Blockquote.js +15 -18
- package/lib/es6/Blockquote.js.map +1 -1
- package/lib/es6/List.js +71 -61
- package/lib/es6/List.js.map +1 -1
- package/lib/es6/Text.js +63 -136
- package/lib/es6/Text.js.map +1 -1
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/style/blockquote.shadow.css +3 -3
- package/lib/es6/style/list.shadow.css +1 -1
- package/lib/es6/style/text.shadow.css +18 -46
- package/lib/esm/Blockquote.mjs +18 -22
- package/lib/esm/List.mjs +65 -60
- package/lib/esm/Text.mjs +63 -139
- package/lib/esm/style/blockquote.shadow.css +3 -3
- package/lib/esm/style/list.shadow.css +1 -1
- package/lib/esm/style/text.shadow.css +18 -46
- package/lib/types/index.d.ts +13 -10
- package/package.json +8 -8
- package/lib/types/Text.d.ts +0 -2
package/lib/types/index.d.ts
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type {
|
|
1
|
+
import type { PropGetterFn, UnknownProperties, Intergalactic } from '@semcore/core';
|
|
2
|
+
import type { BoxProps, Flex, FlexProps } from '@semcore/flex-box';
|
|
3
3
|
import type { Property } from 'csstype';
|
|
4
4
|
import type React from 'react';
|
|
5
5
|
|
|
6
|
+
/** @deprecated */
|
|
7
|
+
export interface ITextProps extends TextProps, UnknownProperties {}
|
|
6
8
|
export type TextProps = BoxProps & {
|
|
7
9
|
/** Font size and line-heights */
|
|
8
10
|
size?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800;
|
|
9
|
-
/**
|
|
10
|
-
* The text will not be wrapped on a new line and will be cut off with ellipsis
|
|
11
|
-
* @deprecated use ellipsis prop instead
|
|
12
|
-
**/
|
|
11
|
+
/** The text will not be wrapped on a new line and will be cut off with ellipsis */
|
|
13
12
|
noWrap?: boolean;
|
|
14
13
|
/** CSS property `font-weight: 700;` */
|
|
15
14
|
bold?: boolean;
|
|
@@ -47,18 +46,18 @@ export type TextProps = BoxProps & {
|
|
|
47
46
|
disabled?: boolean;
|
|
48
47
|
/** Enable formatting/styling for all nested HTML tags with our default styles for them */
|
|
49
48
|
formatTags?: boolean;
|
|
50
|
-
/** The text will not be wrapped on a new line and will be cut off with ellipsis. Also, it will show a hint with full text. */
|
|
51
|
-
ellipsis?: true | Readonly<EllipsisSettings> | Ellipsis;
|
|
52
|
-
/** Settings for a hint with full text (cropped by ellipsis) */
|
|
53
|
-
hintProps?: Partial<Omit<SimpleHintPopperProps, 'children'>> | false;
|
|
54
49
|
};
|
|
55
50
|
|
|
51
|
+
/** @deprecated */
|
|
52
|
+
export interface IListProps extends ListProps, UnknownProperties {}
|
|
56
53
|
export type ListProps = TextProps & {
|
|
57
54
|
/** Marker of the entire list
|
|
58
55
|
* @default • */
|
|
59
56
|
marker?: React.ReactNode;
|
|
60
57
|
};
|
|
61
58
|
|
|
59
|
+
/** @deprecated */
|
|
60
|
+
export interface IListItemProps extends ListItemProps, UnknownProperties {}
|
|
62
61
|
export type ListItemProps = TextProps & {
|
|
63
62
|
/** Individual marker of a list item */
|
|
64
63
|
marker?: React.ReactNode;
|
|
@@ -66,10 +65,14 @@ export type ListItemProps = TextProps & {
|
|
|
66
65
|
|
|
67
66
|
export type ListItemContentProps = FlexProps;
|
|
68
67
|
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
export interface IListContext extends ListContext, UnknownProperties {}
|
|
69
70
|
export type ListContext = {
|
|
70
71
|
getItemProps: PropGetterFn;
|
|
71
72
|
};
|
|
72
73
|
|
|
74
|
+
/** @deprecated */
|
|
75
|
+
export interface IBlockquoteProps extends BlockquoteProps, UnknownProperties {}
|
|
73
76
|
export type BlockquoteProps = BoxProps & {
|
|
74
77
|
/** Source of the quote */
|
|
75
78
|
author?: React.ReactNode;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/typography",
|
|
3
3
|
"description": "Semrush Typography Component",
|
|
4
|
-
"version": "16.
|
|
4
|
+
"version": "16.4.0-prerelease.0",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -13,10 +13,12 @@
|
|
|
13
13
|
"import": "./lib/esm/index.mjs",
|
|
14
14
|
"types": "./lib/types/index.d.ts"
|
|
15
15
|
},
|
|
16
|
-
"dependencies": {
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@semcore/flex-box": "16.1.0-prerelease.0",
|
|
18
|
+
"@semcore/icon": "16.8.0-prerelease.0"
|
|
19
|
+
},
|
|
17
20
|
"peerDependencies": {
|
|
18
|
-
"@semcore/base-components": "^16.
|
|
19
|
-
"@semcore/icon": "^16.7.2-prerelease.9"
|
|
21
|
+
"@semcore/base-components": "^16.6.0-prerelease.0"
|
|
20
22
|
},
|
|
21
23
|
"repository": {
|
|
22
24
|
"type": "git",
|
|
@@ -25,12 +27,10 @@
|
|
|
25
27
|
},
|
|
26
28
|
"devDependencies": {
|
|
27
29
|
"csstype": "3.1.3",
|
|
28
|
-
"@semcore/core": "16.5.1",
|
|
29
30
|
"@semcore/testing-utils": "1.0.0",
|
|
30
|
-
"@semcore/
|
|
31
|
-
"@semcore/icon": "16.7.2-prerelease.9"
|
|
31
|
+
"@semcore/core": "16.6.0-prerelease.0"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "pnpm semcore-builder --source=
|
|
34
|
+
"build": "pnpm semcore-builder --source=js && pnpm vite build"
|
|
35
35
|
}
|
|
36
36
|
}
|
package/lib/types/Text.d.ts
DELETED