@hh.ru/magritte-ui-title 8.0.3 → 8.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/Title.js +1 -1
- package/index.css +421 -274
- package/package.json +4 -4
- package/types.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hh.ru/magritte-ui-title",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"types": "index.d.ts",
|
|
6
6
|
"sideEffects": [
|
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@hh.ru/magritte-common-use-disabled": "1.0.15",
|
|
23
|
-
"@hh.ru/magritte-design-tokens": "24.
|
|
23
|
+
"@hh.ru/magritte-design-tokens": "24.7.0",
|
|
24
24
|
"@hh.ru/magritte-ui-breakpoint": "6.0.8",
|
|
25
25
|
"@hh.ru/magritte-ui-mock-component": "1.1.7",
|
|
26
|
-
"@hh.ru/magritte-ui-typography": "5.
|
|
26
|
+
"@hh.ru/magritte-ui-typography": "5.3.1"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"classnames": ">=2.3.2",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "00be18722ce9e4f80437fa85595a5efa344d3e28"
|
|
36
36
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
|
|
2
|
+
import { TokenColorText } from '@hh.ru/magritte-design-tokens/types';
|
|
3
3
|
export type TitleSizeOptions = 'extra-large' | 'large' | 'medium' | 'small';
|
|
4
4
|
export type HeadingElement = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
|
|
5
5
|
export interface TitlePropsBase {
|
|
6
6
|
/** Цвет заголовка
|
|
7
7
|
* @default primary
|
|
8
8
|
*/
|
|
9
|
-
style?:
|
|
9
|
+
style?: TokenColorText;
|
|
10
10
|
/** Размер */
|
|
11
11
|
size?: TitleSizeOptions;
|
|
12
12
|
/** Низлежащий HTML элемент для семантики */
|
|
@@ -24,7 +24,7 @@ export interface TitlePropsBase {
|
|
|
24
24
|
/** Цвет описания
|
|
25
25
|
* @default secondary
|
|
26
26
|
*/
|
|
27
|
-
descriptionStyle?:
|
|
27
|
+
descriptionStyle?: TokenColorText;
|
|
28
28
|
/**
|
|
29
29
|
* id аттрибут для aria-labeled-by
|
|
30
30
|
*/
|
|
@@ -35,7 +35,7 @@ export interface TitlePropsBase {
|
|
|
35
35
|
type FinalTitlePropsWithDescription = TitlePropsBase & {
|
|
36
36
|
description: ReactNode;
|
|
37
37
|
descriptionMaxLines?: number;
|
|
38
|
-
descriptionStyle?:
|
|
38
|
+
descriptionStyle?: TokenColorText;
|
|
39
39
|
dataQaDescription?: string;
|
|
40
40
|
};
|
|
41
41
|
type FinalTitlePropsWithoutDescription = TitlePropsBase & {
|