@alfalab/core-components-typography 6.0.2 → 6.0.3-alfasans
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/colors.css +20 -20
- package/colors.d.ts +1 -1
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/cssm/colors.d.ts +1 -1
- package/cssm/text/component.d.ts +4 -4
- package/cssm/text/component.js.map +1 -1
- package/cssm/text/index.module.css +40 -13
- package/cssm/title/component.d.ts +18 -18
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +13 -13
- package/cssm/title/index.module.css +29 -40
- package/cssm/title/utils.js.map +1 -1
- package/cssm/title-mobile/component.d.ts +13 -13
- package/cssm/title-mobile/index.module.css +28 -45
- package/cssm/title-responsive/component.d.ts +16 -16
- package/cssm/types.d.ts +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.d.ts +1 -1
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/text/component.d.ts +4 -4
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +80 -53
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +5 -5
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.d.ts +18 -18
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +54 -65
- package/esm/title/index.d.ts +13 -13
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title/utils.js.map +1 -1
- package/esm/title-mobile/component.d.ts +13 -13
- package/esm/title-mobile/index.css +53 -70
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-mobile/index.module.css.js.map +1 -1
- package/esm/title-responsive/component.d.ts +16 -16
- package/esm/types.d.ts +1 -1
- package/modern/colors.css +20 -20
- package/modern/colors.d.ts +1 -1
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/text/component.d.ts +4 -4
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +80 -53
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +5 -5
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.d.ts +18 -18
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +54 -65
- package/modern/title/index.d.ts +13 -13
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title/utils.js.map +1 -1
- package/modern/title-mobile/component.d.ts +13 -13
- package/modern/title-mobile/index.css +53 -70
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-mobile/index.module.css.js.map +1 -1
- package/modern/title-responsive/component.d.ts +16 -16
- package/modern/types.d.ts +1 -1
- package/moderncssm/colors.d.ts +1 -1
- package/moderncssm/text/component.d.ts +4 -4
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/text/index.module.css +37 -11
- package/moderncssm/title/component.d.ts +18 -18
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +13 -13
- package/moderncssm/title/index.module.css +29 -38
- package/moderncssm/title/utils.js.map +1 -1
- package/moderncssm/title-mobile/component.d.ts +13 -13
- package/moderncssm/title-mobile/index.module.css +28 -43
- package/moderncssm/title-responsive/component.d.ts +16 -16
- package/moderncssm/types.d.ts +1 -1
- package/package.json +6 -6
- package/src/colors.module.css +1 -1
- package/src/text/index.module.css +1 -1
- package/src/title/common.module.css +1 -1
- package/src/title/index.module.css +1 -1
- package/src/title-mobile/index.module.css +1 -1
- package/text/component.d.ts +4 -4
- package/text/component.js.map +1 -1
- package/text/index.css +80 -53
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +5 -5
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.d.ts +18 -18
- package/title/component.js.map +1 -1
- package/title/index.css +54 -65
- package/title/index.d.ts +13 -13
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title/utils.js.map +1 -1
- package/title-mobile/component.d.ts +13 -13
- package/title-mobile/index.css +53 -70
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.d.ts +16 -16
- package/types.d.ts +1 -1
|
@@ -2,126 +2,111 @@
|
|
|
2
2
|
.xlarge {
|
|
3
3
|
font-size: 34px;
|
|
4
4
|
line-height: 40px;
|
|
5
|
-
font-weight:
|
|
6
|
-
|
|
5
|
+
font-weight: 500;
|
|
6
|
+
letter-spacing: -0.32px;
|
|
7
|
+
font-family: var(--font-family-alfasans);
|
|
7
8
|
}
|
|
8
9
|
|
|
9
|
-
.xlarge.font {
|
|
10
|
-
font-weight: 500;
|
|
11
|
-
font-feature-settings: 'ss01';
|
|
12
|
-
font-family: var(--font-family-styrene);
|
|
10
|
+
.xlarge.font {
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
.regular-xlarge {
|
|
13
|
+
.regular-xlarge {
|
|
16
14
|
font-size: 34px;
|
|
17
15
|
line-height: 40px;
|
|
18
16
|
font-weight: 400;
|
|
19
|
-
|
|
17
|
+
letter-spacing: -1.36px;
|
|
18
|
+
font-family: var(--font-family-alfasans);
|
|
20
19
|
}
|
|
21
20
|
|
|
22
|
-
.regular-xlarge.system {
|
|
23
|
-
font-feature-settings: 'ss01';
|
|
24
|
-
font-family: var(--font-family-styrene);
|
|
21
|
+
.regular-xlarge.system {
|
|
25
22
|
}
|
|
26
23
|
|
|
27
24
|
.large {
|
|
28
25
|
font-size: 30px;
|
|
29
26
|
line-height: 36px;
|
|
30
|
-
font-weight:
|
|
31
|
-
|
|
27
|
+
font-weight: 500;
|
|
28
|
+
letter-spacing: -0.25px;
|
|
29
|
+
font-family: var(--font-family-alfasans);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
.large.font {
|
|
35
|
-
font-weight: 500;
|
|
36
|
-
font-feature-settings: 'ss01';
|
|
37
|
-
font-family: var(--font-family-styrene);
|
|
38
33
|
}
|
|
39
34
|
|
|
40
35
|
.regular-large {
|
|
41
36
|
font-size: 30px;
|
|
42
37
|
line-height: 36px;
|
|
43
38
|
font-weight: 400;
|
|
44
|
-
|
|
39
|
+
letter-spacing: -1.25px;
|
|
40
|
+
font-family: var(--font-family-alfasans);
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
.regular-large.system {
|
|
48
|
-
font-feature-settings: 'ss01';
|
|
49
|
-
font-family: var(--font-family-styrene);
|
|
50
44
|
}
|
|
51
45
|
|
|
52
46
|
.medium {
|
|
53
47
|
font-size: 26px;
|
|
54
48
|
line-height: 32px;
|
|
55
|
-
font-weight:
|
|
56
|
-
|
|
49
|
+
font-weight: 500;
|
|
50
|
+
letter-spacing: -0.25px;
|
|
51
|
+
font-family: var(--font-family-alfasans);
|
|
57
52
|
}
|
|
58
53
|
|
|
59
54
|
.medium.font {
|
|
60
|
-
font-weight: 500;
|
|
61
|
-
font-feature-settings: 'ss01';
|
|
62
|
-
font-family: var(--font-family-styrene);
|
|
63
55
|
}
|
|
64
56
|
|
|
65
57
|
.regular-medium {
|
|
66
58
|
font-size: 26px;
|
|
67
59
|
line-height: 32px;
|
|
68
60
|
font-weight: 400;
|
|
69
|
-
|
|
61
|
+
letter-spacing: -1px;
|
|
62
|
+
font-family: var(--font-family-alfasans);
|
|
70
63
|
}
|
|
71
64
|
|
|
72
65
|
.regular-medium.system {
|
|
73
|
-
font-feature-settings: 'ss01';
|
|
74
|
-
font-family: var(--font-family-styrene);
|
|
75
66
|
}
|
|
76
67
|
|
|
77
68
|
.small {
|
|
78
69
|
font-size: 20px;
|
|
79
70
|
line-height: 28px;
|
|
80
|
-
font-weight:
|
|
81
|
-
|
|
71
|
+
font-weight: 500;
|
|
72
|
+
letter-spacing: -0.15px;
|
|
73
|
+
font-family: var(--font-family-alfasans);
|
|
82
74
|
}
|
|
83
75
|
|
|
84
76
|
.small.font {
|
|
85
|
-
font-weight: 500;
|
|
86
|
-
font-feature-settings: 'ss01';
|
|
87
|
-
font-family: var(--font-family-styrene);
|
|
88
77
|
}
|
|
89
78
|
|
|
90
79
|
.regular-small {
|
|
91
80
|
font-size: 20px;
|
|
92
81
|
line-height: 28px;
|
|
93
82
|
font-weight: 400;
|
|
94
|
-
|
|
83
|
+
letter-spacing: -0.68px;
|
|
84
|
+
font-family: var(--font-family-alfasans);
|
|
95
85
|
}
|
|
96
86
|
|
|
97
87
|
.regular-small.system {
|
|
98
|
-
font-feature-settings: 'ss01';
|
|
99
|
-
font-family: var(--font-family-styrene);
|
|
100
88
|
}
|
|
101
89
|
|
|
102
90
|
.xsmall {
|
|
103
91
|
font-size: 16px;
|
|
104
92
|
line-height: 20px;
|
|
105
|
-
font-weight:
|
|
106
|
-
|
|
93
|
+
font-weight: 500;
|
|
94
|
+
letter-spacing: 0.17px;
|
|
95
|
+
font-family: var(--font-family-alfasans);
|
|
107
96
|
}
|
|
108
97
|
|
|
109
98
|
.xsmall.font {
|
|
110
|
-
font-weight: 500;
|
|
111
|
-
font-feature-settings: 'ss01';
|
|
112
|
-
font-family: var(--font-family-styrene);
|
|
113
99
|
}
|
|
114
100
|
|
|
115
101
|
.regular-xsmall {
|
|
116
102
|
font-size: 16px;
|
|
117
103
|
line-height: 20px;
|
|
118
104
|
font-weight: 400;
|
|
119
|
-
|
|
105
|
+
letter-spacing: -0.24px;
|
|
106
|
+
font-family: var(--font-family-alfasans);
|
|
120
107
|
}
|
|
121
108
|
|
|
122
109
|
.regular-xsmall.system {
|
|
123
|
-
font-feature-settings: 'ss01';
|
|
124
|
-
font-family: var(--font-family-styrene);
|
|
125
110
|
}
|
|
126
111
|
|
|
127
112
|
.component.margins-xlarge {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type TitleProps } from '../title';
|
|
3
|
-
export
|
|
3
|
+
export type TitleResponsiveProps = TitleProps & {
|
|
4
4
|
/**
|
|
5
5
|
* Контрольная точка, с нее начинается desktop версия
|
|
6
6
|
* @default 1024
|
|
@@ -12,30 +12,30 @@ export declare type TitleResponsiveProps = TitleProps & {
|
|
|
12
12
|
client?: 'desktop' | 'mobile';
|
|
13
13
|
};
|
|
14
14
|
export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
|
|
15
|
-
tag: "
|
|
16
|
-
view?: "
|
|
17
|
-
color?: "
|
|
18
|
-
weight?: "regular" | "medium" | "bold" | "semibold"
|
|
19
|
-
font?: "
|
|
15
|
+
tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "div";
|
|
16
|
+
view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
|
|
17
|
+
color?: import("..").Color;
|
|
18
|
+
weight?: "regular" | "medium" | "bold" | "semibold";
|
|
19
|
+
font?: "styrene" | "system" | "alfasans" | {
|
|
20
20
|
font: "alfasans";
|
|
21
21
|
systemCompat: boolean;
|
|
22
|
-
}
|
|
23
|
-
defaultMargins?: boolean
|
|
24
|
-
className?: string
|
|
25
|
-
dataTestId?: string
|
|
22
|
+
};
|
|
23
|
+
defaultMargins?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
dataTestId?: string;
|
|
26
26
|
children?: React.ReactNode;
|
|
27
|
-
rowLimit?: 1 | 2 | 3
|
|
28
|
-
showSkeleton?: boolean
|
|
29
|
-
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps
|
|
30
|
-
defaultMatchMediaValue?: boolean | (() => boolean)
|
|
27
|
+
rowLimit?: 1 | 2 | 3;
|
|
28
|
+
showSkeleton?: boolean;
|
|
29
|
+
skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps;
|
|
30
|
+
defaultMatchMediaValue?: boolean | (() => boolean);
|
|
31
31
|
} & {
|
|
32
32
|
/**
|
|
33
33
|
* Контрольная точка, с нее начинается desktop версия
|
|
34
34
|
* @default 1024
|
|
35
35
|
*/
|
|
36
|
-
breakpoint?: number
|
|
36
|
+
breakpoint?: number;
|
|
37
37
|
/**
|
|
38
38
|
* Версия, которая будет использоваться при серверном рендеринге
|
|
39
39
|
*/
|
|
40
|
-
client?: "
|
|
40
|
+
client?: "desktop" | "mobile";
|
|
41
41
|
} & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
|
package/moderncssm/types.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TextElementType = HTMLParagraphElement | HTMLSpanElement | HTMLDivElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alfalab/core-components-typography",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.3-alfasans",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"main": "index.js",
|
|
11
11
|
"module": "./esm/index.js",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@alfalab/core-components-mq": "
|
|
14
|
-
"@alfalab/core-components-shared": "
|
|
15
|
-
"@alfalab/core-components-skeleton": "
|
|
13
|
+
"@alfalab/core-components-mq": "6.0.3-alfasans",
|
|
14
|
+
"@alfalab/core-components-shared": "2.1.1-alfasans",
|
|
15
|
+
"@alfalab/core-components-skeleton": "7.0.2-alfasans",
|
|
16
16
|
"classnames": "^2.5.1",
|
|
17
17
|
"react-merge-refs": "^1.1.0",
|
|
18
18
|
"tslib": "^2.4.0"
|
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
"access": "public",
|
|
26
26
|
"directory": "dist"
|
|
27
27
|
},
|
|
28
|
-
"themesVersion": "15.0.
|
|
29
|
-
"varsVersion": "11.0.
|
|
28
|
+
"themesVersion": "15.0.2-alfasans",
|
|
29
|
+
"varsVersion": "11.0.2-alfasans"
|
|
30
30
|
}
|
package/src/colors.module.css
CHANGED
package/text/component.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import React, { type HTMLAttributes } from 'react';
|
|
|
2
2
|
import { type TextSkeletonProps } from '@alfalab/core-components-skeleton';
|
|
3
3
|
import { type Color } from '../colors';
|
|
4
4
|
import { type TextElementType } from '../types';
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
6
|
+
type TextBaseProps = {
|
|
7
7
|
/**
|
|
8
8
|
* [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)
|
|
9
9
|
*/
|
|
@@ -59,10 +59,10 @@ declare type TextBaseProps = {
|
|
|
59
59
|
*/
|
|
60
60
|
font?: 'alfasans' | undefined | null;
|
|
61
61
|
};
|
|
62
|
-
|
|
62
|
+
type TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {
|
|
63
63
|
tag?: 'p';
|
|
64
64
|
defaultMargins?: boolean;
|
|
65
65
|
};
|
|
66
|
-
export
|
|
66
|
+
export type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);
|
|
67
67
|
export declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<TextElementType>>;
|
|
68
68
|
export {};
|
package/text/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/text/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":["forwardRef","__rest","useSkeleton","cn","styles","React","__assign","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;IAoGa,IAAI,GAAGA,gBAAU,CAC1B,UACI,EAeC,EACD,GAAG,EAAA;;IAfC,IAAA,EAAA,GAAA,EAAA,CAAA,IAAuB,CAAvB,CAAA,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,gBAAgB,GAAA,EAAA,CAAA,CACvB,EAAuB,GAAA,EAAA,CAAA,GAAA,CAAA,CAAlB,SAAS,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,GAAA,EAAA,CACvB,CAAA,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA,CACN,EAAwB,GAAA,EAAA,CAAA,gBAAA,CAAA,CAAxB,gBAAgB,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,CACxB,CAAA,EAAA,GAAA,EAAA,CAAA,cAAqB,CAArB,CAAA,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,KAAA,CACrB,CAAA,KAAK,GAAA,EAAA,CAAA,KAAA,CAAA,CACL,SAAS,GAAA,EAAA,CAAA,SAAA,CACT,CAAA,UAAU,GAAA,EAAA,CAAA,UAAA,CAAA,CACV,QAAQ,GAAA,EAAA,CAAA,QAAA,CACR,CAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA,CACR,YAAY,GAAA,EAAA,CAAA,YAAA,CACZ,CAAA,aAAa,GAAA,EAAA,CAAA,aAAA,CAAA,CACT,EAAA,CAAA,IAAA,CACD,KAAA,SAAS,GAdhBC,YAAA,CAAA,EAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,gBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,cAAA,EAAA,eAAA,EAAA,MAAA,CAeC;AAGK,IAAA,IAAA,EAA8B,GAAAC,kCAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAE5E,IAAM,QAAQ,GAAG,cAAc,CAAC;AAC5B,QAAA,gBAAgB,EAAEC,mBAAE,EAAA,EAAA,GAAA,EAAA;YAChB,EAAC,CAAAC,YAAM,CAAC,oBAAoB,CAAA,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AACpE,YAAA,EAAA,EAAA;AACF,QAAA,UAAU,EAAA,UAAA;AACb,KAAA,CAAC;
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/text/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\nimport { type TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport styles from './index.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLSpanElement>;\n\ntype TextBaseProps = {\n /**\n * [Вариант начертания](https://core-ds.github.io/core-components/master/?path=/docs/tokens-assets-типографика--docs)\n */\n view?:\n | 'primary-large'\n | 'primary-medium'\n | 'primary-small'\n | 'secondary-large'\n | 'secondary-medium'\n | 'secondary-small'\n | 'component-primary'\n | 'component-secondary'\n | 'caps'\n | 'tagline';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold';\n\n /**\n * Делает цифры моноширинными\n */\n monospaceNumbers?: boolean;\n\n /**\n * HTML тег\n */\n tag?: 'span' | 'div';\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Добавляет отступы к тэгу 'p'\n */\n defaultMargins?: never;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Шрифт текста\n *\n * @deprecated\n */\n font?: 'alfasans' | undefined | null;\n};\n\ntype TextPTagProps = Omit<TextBaseProps, 'tag' | 'defaultMargins'> & {\n tag?: 'p';\n defaultMargins?: boolean;\n};\n\nexport type TextProps = Omit<NativeProps, 'color'> & (TextBaseProps | TextPTagProps);\n\nexport const Text = forwardRef<TextElementType, TextProps>(\n (\n {\n view = 'primary-medium',\n tag: Component = 'span',\n weight,\n monospaceNumbers = false,\n defaultMargins = true,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n showSkeleton,\n skeletonProps,\n font,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn({\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n }),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n return (\n <Component\n className={cn(\n {\n [styles.paragraph]: Component === 'p' && !defaultMargins,\n [styles.paragraphWithMargins]: Component === 'p' && defaultMargins,\n [styles.monospace]: monospaceNumbers,\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n },\n className,\n color && colors[color],\n styles[view],\n weight && styles[weight],\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":["forwardRef","__rest","useSkeleton","cn","styles","React","__assign","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;IAoGa,IAAI,GAAGA,gBAAU,CAC1B,UACI,EAeC,EACD,GAAG,EAAA;;IAfC,IAAA,EAAA,GAAA,EAAA,CAAA,IAAuB,CAAvB,CAAA,IAAI,GAAG,EAAA,KAAA,MAAA,GAAA,gBAAgB,GAAA,EAAA,CAAA,CACvB,EAAuB,GAAA,EAAA,CAAA,GAAA,CAAA,CAAlB,SAAS,GAAA,EAAA,KAAA,MAAA,GAAG,MAAM,GAAA,EAAA,CACvB,CAAA,MAAM,GAAA,EAAA,CAAA,MAAA,CAAA,CACN,EAAwB,GAAA,EAAA,CAAA,gBAAA,CAAA,CAAxB,gBAAgB,GAAA,EAAA,KAAA,MAAA,GAAG,KAAK,GAAA,EAAA,CACxB,CAAA,EAAA,GAAA,EAAA,CAAA,cAAqB,CAArB,CAAA,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,IAAI,KAAA,CACrB,CAAA,KAAK,GAAA,EAAA,CAAA,KAAA,CAAA,CACL,SAAS,GAAA,EAAA,CAAA,SAAA,CACT,CAAA,UAAU,GAAA,EAAA,CAAA,UAAA,CAAA,CACV,QAAQ,GAAA,EAAA,CAAA,QAAA,CACR,CAAA,QAAQ,GAAA,EAAA,CAAA,QAAA,CAAA,CACR,YAAY,GAAA,EAAA,CAAA,YAAA,CACZ,CAAA,aAAa,GAAA,EAAA,CAAA,aAAA,CAAA,CACT,EAAA,CAAA,IAAA,CACD,KAAA,SAAS,GAdhBC,YAAA,CAAA,EAAA,EAAA,CAAA,MAAA,EAAA,KAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,gBAAA,EAAA,OAAA,EAAA,WAAA,EAAA,YAAA,EAAA,UAAA,EAAA,UAAA,EAAA,cAAA,EAAA,eAAA,EAAA,MAAA,CAeC;AAGK,IAAA,IAAA,EAA8B,GAAAC,kCAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAE5E,IAAM,QAAQ,GAAG,cAAc,CAAC;AAC5B,QAAA,gBAAgB,EAAEC,mBAAE,EAAA,EAAA,GAAA,EAAA;YAChB,EAAC,CAAAC,YAAM,CAAC,oBAAoB,CAAA,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AACpE,YAAA,EAAA,EAAA;AACF,QAAA,UAAU,EAAA,UAAA;AACb,KAAA,CAAC;IAEF,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;;AAGnB,IAAA,QACIC,sBAAC,CAAA,aAAA,CAAA,SAAS,EACNC,cAAA,CAAA,EAAA,SAAS,EAAEH,mBAAE,EAAA,EAAA,GAAA,EAAA;YAEL,EAAC,CAAAC,YAAM,CAAC,SAAS,CAAA,GAAG,SAAS,KAAK,GAAG,IAAI,CAAC,cAAc;YACxD,EAAC,CAAAA,YAAM,CAAC,oBAAoB,CAAA,GAAG,SAAS,KAAK,GAAG,IAAI,cAAc;AAClE,YAAA,EAAA,CAACA,YAAM,CAAC,SAAS,CAAA,GAAG,gBAAgB;AACpC,YAAA,EAAA,CAACA,YAAM,CAAC,UAAA,CAAA,MAAA,CAAW,QAAQ,CAAE,CAAC,IAAG,QAAQ;AACzC,YAAA,EAAA,CAACA,YAAM,CAAC,WAAW,CAAA,GAAG,YAAY;AAEtC,YAAA,EAAA,GAAA,SAAS,EACT,KAAK,IAAIG,aAAM,CAAC,KAAK,CAAC,EACtBH,YAAM,CAAC,IAAI,CAAC,EACZ,MAAM,IAAIA,YAAM,CAAC,MAAM,CAAC,CAC3B,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAEI,0BAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,EAAA,SAAS,GAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
|
package/text/index.css
CHANGED
|
@@ -4,179 +4,206 @@
|
|
|
4
4
|
--gap-12: var(--gap-s);
|
|
5
5
|
}
|
|
6
6
|
:root {
|
|
7
|
-
--font-family-
|
|
8
|
-
system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
7
|
+
--font-family-alfasans:
|
|
8
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
9
|
+
Helvetica, sans-serif;
|
|
9
10
|
}
|
|
10
|
-
.
|
|
11
|
+
.typography__transparent_1mt2x {
|
|
11
12
|
opacity: 0;
|
|
12
13
|
}
|
|
13
14
|
:root {
|
|
14
15
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
15
16
|
}
|
|
16
|
-
.
|
|
17
|
+
.typography__paragraph_1mt2x {
|
|
17
18
|
margin: var(--gap-0);
|
|
18
19
|
padding: var(--gap-0);
|
|
19
20
|
}
|
|
20
|
-
.
|
|
21
|
+
.typography__paragraphWithMargins_1mt2x {
|
|
21
22
|
padding: var(--gap-0);
|
|
22
23
|
margin: var(--text-paragraph-margin-bottom);
|
|
23
24
|
}
|
|
24
|
-
.
|
|
25
|
+
.typography__component_1mt2x {
|
|
25
26
|
font-size: 16px;
|
|
26
27
|
line-height: 20px;
|
|
27
28
|
font-weight: 400;
|
|
28
|
-
|
|
29
|
+
letter-spacing: -0.24px;
|
|
30
|
+
font-family: var(--font-family-alfasans);
|
|
29
31
|
}
|
|
30
|
-
.
|
|
32
|
+
.typography__component_1mt2x.typography__bold_1mt2x {
|
|
31
33
|
font-weight: 700;
|
|
34
|
+
letter-spacing: 0.43px;
|
|
32
35
|
}
|
|
33
|
-
.
|
|
36
|
+
.typography__component_1mt2x.typography__medium_1mt2x {
|
|
34
37
|
font-weight: 500;
|
|
38
|
+
letter-spacing: -0.05px;
|
|
35
39
|
}
|
|
36
|
-
.
|
|
40
|
+
.typography__caps_1mt2x {
|
|
37
41
|
font-size: 12px;
|
|
38
42
|
line-height: 16px;
|
|
39
43
|
font-weight: 400;
|
|
40
44
|
letter-spacing: 1.25px;
|
|
41
45
|
text-transform: uppercase;
|
|
42
|
-
font-family: var(--font-family-
|
|
46
|
+
font-family: var(--font-family-alfasans);
|
|
43
47
|
}
|
|
44
|
-
.
|
|
48
|
+
.typography__caps_1mt2x.typography__bold_1mt2x {
|
|
45
49
|
font-weight: 700;
|
|
46
50
|
}
|
|
47
|
-
.
|
|
51
|
+
.typography__caps_1mt2x.typography__medium_1mt2x {
|
|
48
52
|
font-weight: 500;
|
|
49
53
|
}
|
|
50
|
-
.
|
|
54
|
+
.typography__tagline_1mt2x {
|
|
51
55
|
font-size: 12px;
|
|
52
56
|
line-height: 16px;
|
|
53
57
|
font-weight: 400;
|
|
54
58
|
letter-spacing: 1.25px;
|
|
55
59
|
text-transform: uppercase;
|
|
56
|
-
font-family: var(--font-family-
|
|
60
|
+
font-family: var(--font-family-alfasans);
|
|
57
61
|
}
|
|
58
|
-
.
|
|
62
|
+
.typography__tagline_1mt2x.typography__bold_1mt2x {
|
|
59
63
|
font-weight: 700;
|
|
60
64
|
}
|
|
61
|
-
.
|
|
65
|
+
.typography__tagline_1mt2x.typography__medium_1mt2x {
|
|
62
66
|
font-weight: 500;
|
|
63
67
|
}
|
|
64
|
-
.typography__primary-
|
|
68
|
+
.typography__primary-large_1mt2x {
|
|
65
69
|
font-size: 18px;
|
|
66
70
|
line-height: 24px;
|
|
67
71
|
font-weight: 400;
|
|
68
|
-
|
|
72
|
+
letter-spacing: -0.36px;
|
|
73
|
+
font-family: var(--font-family-alfasans);
|
|
69
74
|
}
|
|
70
|
-
.typography__primary-
|
|
75
|
+
.typography__primary-large_1mt2x.typography__bold_1mt2x {
|
|
71
76
|
font-weight: 700;
|
|
77
|
+
letter-spacing: 0.38px;
|
|
72
78
|
}
|
|
73
|
-
.typography__primary-
|
|
79
|
+
.typography__primary-large_1mt2x.typography__medium_1mt2x {
|
|
74
80
|
font-weight: 500;
|
|
81
|
+
letter-spacing: -0.17px;
|
|
75
82
|
}
|
|
76
|
-
.typography__primary-
|
|
83
|
+
.typography__primary-medium_1mt2x {
|
|
77
84
|
font-size: 16px;
|
|
78
85
|
line-height: 24px;
|
|
79
86
|
font-weight: 400;
|
|
80
|
-
|
|
87
|
+
letter-spacing: -0.24px;
|
|
88
|
+
font-family: var(--font-family-alfasans);
|
|
81
89
|
}
|
|
82
|
-
.typography__primary-
|
|
90
|
+
.typography__primary-medium_1mt2x.typography__bold_1mt2x {
|
|
83
91
|
font-weight: 700;
|
|
92
|
+
letter-spacing: 0.43px;
|
|
84
93
|
}
|
|
85
|
-
.typography__primary-
|
|
94
|
+
.typography__primary-medium_1mt2x.typography__medium_1mt2x {
|
|
86
95
|
font-weight: 500;
|
|
96
|
+
letter-spacing: -0.05px;
|
|
87
97
|
}
|
|
88
|
-
.typography__primary-
|
|
98
|
+
.typography__primary-small_1mt2x {
|
|
89
99
|
font-size: 14px;
|
|
90
100
|
line-height: 20px;
|
|
91
101
|
font-weight: 400;
|
|
92
|
-
|
|
102
|
+
letter-spacing: -0.08px;
|
|
103
|
+
font-family: var(--font-family-alfasans);
|
|
93
104
|
}
|
|
94
|
-
.typography__primary-
|
|
105
|
+
.typography__primary-small_1mt2x.typography__bold_1mt2x {
|
|
95
106
|
font-weight: 700;
|
|
107
|
+
letter-spacing: 0.47px;
|
|
96
108
|
}
|
|
97
|
-
.typography__primary-
|
|
109
|
+
.typography__primary-small_1mt2x.typography__medium_1mt2x {
|
|
98
110
|
font-weight: 500;
|
|
111
|
+
letter-spacing: 0.07px;
|
|
99
112
|
}
|
|
100
|
-
.typography__component-
|
|
113
|
+
.typography__component-primary_1mt2x {
|
|
101
114
|
font-size: 16px;
|
|
102
115
|
line-height: 20px;
|
|
103
116
|
font-weight: 400;
|
|
104
|
-
|
|
117
|
+
letter-spacing: -0.24px;
|
|
118
|
+
font-family: var(--font-family-alfasans);
|
|
105
119
|
}
|
|
106
|
-
.typography__component-
|
|
120
|
+
.typography__component-primary_1mt2x.typography__bold_1mt2x {
|
|
107
121
|
font-weight: 700;
|
|
122
|
+
letter-spacing: 0.43px;
|
|
108
123
|
}
|
|
109
|
-
.typography__component-
|
|
124
|
+
.typography__component-primary_1mt2x.typography__medium_1mt2x {
|
|
110
125
|
font-weight: 500;
|
|
126
|
+
letter-spacing: -0.05px;
|
|
111
127
|
}
|
|
112
|
-
.typography__secondary-
|
|
128
|
+
.typography__secondary-large_1mt2x {
|
|
113
129
|
font-size: 13px;
|
|
114
130
|
line-height: 16px;
|
|
115
131
|
font-weight: 400;
|
|
116
|
-
font-family: var(--font-family-
|
|
132
|
+
font-family: var(--font-family-alfasans);
|
|
117
133
|
}
|
|
118
|
-
.typography__secondary-
|
|
134
|
+
.typography__secondary-large_1mt2x.typography__bold_1mt2x {
|
|
119
135
|
font-weight: 700;
|
|
136
|
+
letter-spacing: 0.54px;
|
|
120
137
|
}
|
|
121
|
-
.typography__secondary-
|
|
138
|
+
.typography__secondary-large_1mt2x.typography__medium_1mt2x {
|
|
122
139
|
font-weight: 500;
|
|
140
|
+
letter-spacing: 0.13px;
|
|
123
141
|
}
|
|
124
|
-
.typography__secondary-
|
|
142
|
+
.typography__secondary-medium_1mt2x {
|
|
125
143
|
font-size: 12px;
|
|
126
144
|
line-height: 16px;
|
|
127
145
|
font-weight: 400;
|
|
128
|
-
|
|
146
|
+
letter-spacing: 0.06px;
|
|
147
|
+
font-family: var(--font-family-alfasans);
|
|
129
148
|
}
|
|
130
|
-
.typography__secondary-
|
|
149
|
+
.typography__secondary-medium_1mt2x.typography__bold_1mt2x {
|
|
131
150
|
font-weight: 700;
|
|
151
|
+
letter-spacing: 0.57px;
|
|
132
152
|
}
|
|
133
|
-
.typography__secondary-
|
|
153
|
+
.typography__secondary-medium_1mt2x.typography__medium_1mt2x {
|
|
134
154
|
font-weight: 500;
|
|
155
|
+
letter-spacing: 0.19px;
|
|
135
156
|
}
|
|
136
|
-
.typography__secondary-
|
|
157
|
+
.typography__secondary-small_1mt2x {
|
|
137
158
|
font-size: 11px;
|
|
138
159
|
line-height: 16px;
|
|
139
160
|
font-weight: 400;
|
|
140
|
-
|
|
161
|
+
letter-spacing: 0.15px;
|
|
162
|
+
font-family: var(--font-family-alfasans);
|
|
141
163
|
}
|
|
142
|
-
.typography__secondary-
|
|
164
|
+
.typography__secondary-small_1mt2x.typography__bold_1mt2x {
|
|
143
165
|
font-weight: 700;
|
|
166
|
+
letter-spacing: 0.54px;
|
|
144
167
|
}
|
|
145
|
-
.typography__secondary-
|
|
168
|
+
.typography__secondary-small_1mt2x.typography__medium_1mt2x {
|
|
146
169
|
font-weight: 500;
|
|
170
|
+
letter-spacing: 0.24px;
|
|
147
171
|
}
|
|
148
|
-
.typography__component-
|
|
172
|
+
.typography__component-secondary_1mt2x {
|
|
149
173
|
font-size: 14px;
|
|
150
174
|
line-height: 18px;
|
|
151
175
|
font-weight: 400;
|
|
152
|
-
|
|
176
|
+
letter-spacing: -0.08px;
|
|
177
|
+
font-family: var(--font-family-alfasans);
|
|
153
178
|
}
|
|
154
|
-
.typography__component-
|
|
179
|
+
.typography__component-secondary_1mt2x.typography__bold_1mt2x {
|
|
155
180
|
font-weight: 700;
|
|
181
|
+
letter-spacing: 0.47px;
|
|
156
182
|
}
|
|
157
|
-
.typography__component-
|
|
183
|
+
.typography__component-secondary_1mt2x.typography__medium_1mt2x {
|
|
158
184
|
font-weight: 500;
|
|
185
|
+
letter-spacing: 0.07px;
|
|
159
186
|
}
|
|
160
|
-
.
|
|
187
|
+
.typography__rowLimit1_1mt2x {
|
|
161
188
|
-webkit-line-clamp: 1;
|
|
162
189
|
display: -webkit-box;
|
|
163
190
|
-webkit-box-orient: vertical;
|
|
164
191
|
overflow: hidden;
|
|
165
192
|
word-break: break-all;
|
|
166
193
|
}
|
|
167
|
-
.
|
|
194
|
+
.typography__rowLimit2_1mt2x {
|
|
168
195
|
-webkit-line-clamp: 2;
|
|
169
196
|
display: -webkit-box;
|
|
170
197
|
-webkit-box-orient: vertical;
|
|
171
198
|
overflow: hidden;
|
|
172
199
|
}
|
|
173
|
-
.
|
|
200
|
+
.typography__rowLimit3_1mt2x {
|
|
174
201
|
-webkit-line-clamp: 3;
|
|
175
202
|
display: -webkit-box;
|
|
176
203
|
-webkit-box-orient: vertical;
|
|
177
204
|
overflow: hidden;
|
|
178
205
|
}
|
|
179
|
-
.
|
|
206
|
+
.typography__monospace_1mt2x {
|
|
180
207
|
font-feature-settings: "tnum";
|
|
181
208
|
font-variant-numeric: tabular-nums;
|
|
182
209
|
}
|
package/text/index.module.css.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"transparent":"
|
|
5
|
+
var styles = {"transparent":"typography__transparent_1mt2x","paragraph":"typography__paragraph_1mt2x","paragraphWithMargins":"typography__paragraphWithMargins_1mt2x","component":"typography__component_1mt2x","bold":"typography__bold_1mt2x","medium":"typography__medium_1mt2x","caps":"typography__caps_1mt2x","tagline":"typography__tagline_1mt2x","primary-large":"typography__primary-large_1mt2x","primary-medium":"typography__primary-medium_1mt2x","primary-small":"typography__primary-small_1mt2x","component-primary":"typography__component-primary_1mt2x","secondary-large":"typography__secondary-large_1mt2x","secondary-medium":"typography__secondary-medium_1mt2x","secondary-small":"typography__secondary-small_1mt2x","component-secondary":"typography__component-secondary_1mt2x","rowLimit1":"typography__rowLimit1_1mt2x","rowLimit2":"typography__rowLimit2_1mt2x","rowLimit3":"typography__rowLimit3_1mt2x","monospace":"typography__monospace_1mt2x"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../common.module.css';\n\n:root {\n --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);\n}\n\n.paragraph {\n margin: var(--gap-0);\n padding: var(--gap-0);\n}\n\n.paragraphWithMargins {\n padding: var(--gap-0);\n margin: var(--text-paragraph-margin-bottom);\n}\n\n@each $view in component, caps, tagline {\n .$(view) {\n @mixin paragraph_$(view);\n }\n\n .$(view).bold {\n @subtract-mixin accent_$(view), paragraph_$(view);\n }\n\n .$(view).medium {\n @subtract-mixin action_$(view), paragraph_$(view);\n }\n}\n\n@each $kind in primary, secondary {\n @each $size in large, medium, small {\n .$(kind)-$(size) {\n /* prettier-ignore */\n @mixin paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n\n .$(kind)-$(size).medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size);\n }\n }\n\n .component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind);\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind);\n }\n }\n}\n\n.rowLimit1 {\n @mixin row_limit 1;\n word-break: break-all;\n}\n\n.rowLimit2 {\n @mixin row_limit 2;\n}\n\n.rowLimit3 {\n @mixin row_limit 3;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|