@alfalab/core-components-typography 5.0.1 → 5.0.2
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.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/component.d.ts +6 -6
- package/component.js.map +1 -1
- package/cssm/component.d.ts +6 -6
- package/cssm/component.js.map +1 -1
- package/cssm/text/alfasans-index.module.css +23 -22
- package/cssm/text/component.d.ts +3 -3
- package/cssm/text/component.js.map +1 -1
- package/cssm/title/alfasans-index.module.css +8 -7
- package/cssm/title/common.module.css +1 -1
- package/cssm/title/component.d.ts +2 -2
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.d.ts +1 -1
- package/cssm/title/index.js.map +1 -1
- package/cssm/title/index.module.css +3 -2
- package/cssm/title-mobile/alfasans-index.module.css +8 -7
- package/cssm/title-mobile/component.js.map +1 -1
- package/cssm/title-mobile/index.module.css +3 -2
- package/cssm/title-responsive/component.d.ts +1 -1
- package/cssm/title-responsive/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/component.d.ts +6 -6
- package/esm/component.js.map +1 -1
- package/esm/text/alfasans-index.css +40 -39
- package/esm/text/alfasans-index.module.css.js +1 -1
- package/esm/text/alfasans-index.module.css.js.map +1 -1
- package/esm/text/component.d.ts +3 -3
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +21 -21
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/alfasans-index.css +18 -17
- package/esm/title/alfasans-index.module.css.js +1 -1
- package/esm/title/common.css +9 -9
- 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 +2 -2
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +19 -18
- package/esm/title/index.d.ts +1 -1
- package/esm/title/index.js.map +1 -1
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title-mobile/alfasans-index.css +18 -17
- package/esm/title-mobile/alfasans-index.module.css.js +1 -1
- package/esm/title-mobile/component.js.map +1 -1
- package/esm/title-mobile/index.css +18 -17
- 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 +1 -1
- package/esm/title-responsive/component.js.map +1 -1
- package/modern/colors.css +20 -20
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/component.d.ts +6 -6
- package/modern/component.js.map +1 -1
- package/modern/text/alfasans-index.css +40 -39
- package/modern/text/alfasans-index.module.css.js +1 -1
- package/modern/text/alfasans-index.module.css.js.map +1 -1
- package/modern/text/component.d.ts +3 -3
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +21 -21
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/alfasans-index.css +18 -17
- package/modern/title/alfasans-index.module.css.js +1 -1
- package/modern/title/common.css +9 -9
- 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 +2 -2
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +19 -18
- package/modern/title/index.d.ts +1 -1
- package/modern/title/index.js.map +1 -1
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title-mobile/alfasans-index.css +18 -17
- package/modern/title-mobile/alfasans-index.module.css.js +1 -1
- package/modern/title-mobile/component.js.map +1 -1
- package/modern/title-mobile/index.css +18 -17
- 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 +1 -1
- package/modern/title-responsive/component.js.map +1 -1
- package/moderncssm/colors.module.css +2 -0
- package/moderncssm/component.d.ts +6 -6
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/text/alfasans-index.module.css +66 -40
- package/moderncssm/text/component.d.ts +3 -3
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/text/index.module.css +21 -0
- package/moderncssm/title/alfasans-index.module.css +25 -18
- package/moderncssm/title/common.module.css +3 -1
- package/moderncssm/title/component.d.ts +2 -2
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.d.ts +1 -1
- package/moderncssm/title/index.js.map +1 -1
- package/moderncssm/title/index.module.css +15 -0
- package/moderncssm/title-mobile/alfasans-index.module.css +25 -18
- package/moderncssm/title-mobile/component.js.map +1 -1
- package/moderncssm/title-mobile/index.module.css +14 -0
- package/moderncssm/title-responsive/component.d.ts +1 -1
- package/moderncssm/title-responsive/component.js.map +1 -1
- package/package.json +3 -3
- package/src/colors.module.css +1 -1
- package/src/component.ts +21 -0
- package/src/text/component.tsx +3 -3
- package/src/text/index.module.css +1 -1
- package/src/title/common.module.css +1 -1
- package/src/title/component.tsx +2 -2
- package/src/title/index.module.css +1 -1
- package/src/title/index.tsx +1 -1
- package/src/title-mobile/component.tsx +1 -1
- package/src/title-mobile/index.module.css +1 -1
- package/src/title-responsive/component.tsx +1 -1
- package/text/alfasans-index.css +40 -39
- package/text/alfasans-index.module.css.js +1 -1
- package/text/alfasans-index.module.css.js.map +1 -1
- package/text/component.d.ts +3 -3
- package/text/component.js.map +1 -1
- package/text/index.css +21 -21
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/alfasans-index.css +18 -17
- package/title/alfasans-index.module.css.js +1 -1
- package/title/common.css +9 -9
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.d.ts +2 -2
- package/title/component.js.map +1 -1
- package/title/index.css +19 -18
- package/title/index.d.ts +1 -1
- package/title/index.js.map +1 -1
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title-mobile/alfasans-index.css +18 -17
- package/title-mobile/alfasans-index.module.css.js +1 -1
- package/title-mobile/component.js.map +1 -1
- package/title-mobile/index.css +18 -17
- 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 +1 -1
- package/title-responsive/component.js.map +1 -1
- package/src/component.tsx +0 -21
- /package/src/title-mobile/{index.tsx → index.ts} +0 -0
- /package/src/title-responsive/{index.tsx → index.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.module.css.js","sources":["src/colors.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n/* colors */\n\n.tertiary {\n color: var(--color-light-text-tertiary);\n}\n\n.disabled {\n color: var(--color-light-text-quaternary);\n}\n\n.accent {\n color: var(--color-light-accent-primary);\n}\n\n.primary {\n color: var(--color-light-text-primary);\n}\n\n.attention {\n color: var(--color-light-text-attention);\n}\n\n.positive {\n color: var(--color-light-text-positive);\n}\n\n.secondary {\n color: var(--color-light-text-secondary);\n}\n\n.tertiary-inverted {\n color: var(--color-light-text-tertiary-inverted);\n}\n\n.primary-inverted {\n color: var(--color-light-text-primary-inverted);\n}\n\n.secondary-inverted {\n color: var(--color-light-text-secondary-inverted);\n}\n\n.link {\n color: var(--color-light-text-info);\n}\n\n.negative {\n color: var(--color-light-text-negative);\n}\n\n.static-primary-light {\n color: var(--color-static-text-primary-light);\n}\n\n.static-secondary-light {\n color: var(--color-static-text-secondary-light);\n}\n\n.static-tertiary-light {\n color: var(--color-static-text-tertiary-light);\n}\n\n.static-primary-dark {\n color: var(--color-static-text-primary-dark);\n}\n\n.static-secondary-dark {\n color: var(--color-static-text-secondary-dark);\n}\n\n.static-tertiary-dark {\n color: var(--color-static-text-tertiary-dark);\n}\n\n.static-accent {\n color: var(--color-static-accent-primary);\n}\n\n.static-positive {\n color: var(--color-static-text-positive);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,UAAU,CAAC,4BAA4B,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"colors.module.css.js","sources":["src/colors.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n/* colors */\n\n.tertiary {\n color: var(--color-light-text-tertiary);\n}\n\n.disabled {\n color: var(--color-light-text-quaternary);\n}\n\n.accent {\n color: var(--color-light-accent-primary);\n}\n\n.primary {\n color: var(--color-light-text-primary);\n}\n\n.attention {\n color: var(--color-light-text-attention);\n}\n\n.positive {\n color: var(--color-light-text-positive);\n}\n\n.secondary {\n color: var(--color-light-text-secondary);\n}\n\n.tertiary-inverted {\n color: var(--color-light-text-tertiary-inverted);\n}\n\n.primary-inverted {\n color: var(--color-light-text-primary-inverted);\n}\n\n.secondary-inverted {\n color: var(--color-light-text-secondary-inverted);\n}\n\n.link {\n color: var(--color-light-text-info);\n}\n\n.negative {\n color: var(--color-light-text-negative);\n}\n\n.static-primary-light {\n color: var(--color-static-text-primary-light);\n}\n\n.static-secondary-light {\n color: var(--color-static-text-secondary-light);\n}\n\n.static-tertiary-light {\n color: var(--color-static-text-tertiary-light);\n}\n\n.static-primary-dark {\n color: var(--color-static-text-primary-dark);\n}\n\n.static-secondary-dark {\n color: var(--color-static-text-secondary-dark);\n}\n\n.static-tertiary-dark {\n color: var(--color-static-text-tertiary-dark);\n}\n\n.static-accent {\n color: var(--color-static-accent-primary);\n}\n\n.static-positive {\n color: var(--color-static-text-positive);\n}\n"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,UAAU,CAAC,4BAA4B,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,UAAU,CAAC,4BAA4B,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,oBAAoB,CAAC,sCAAsC,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,uBAAuB,CAAC,yCAAyC,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;;;"}
|
package/esm/component.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
-
import { Text, TextProps } from './text';
|
|
3
|
-
import { Title, TitleProps } from './title';
|
|
4
|
-
import { TitleMobile, TitleMobileProps } from './title-mobile';
|
|
5
|
-
import { TitleResponsive, TitleResponsiveProps } from './title-responsive';
|
|
6
|
-
import { TextElementType } from './types';
|
|
1
|
+
import { type FC, type ForwardRefExoticComponent, type RefAttributes } from 'react';
|
|
2
|
+
import { Text, type TextProps } from './text';
|
|
3
|
+
import { Title, type TitleProps } from './title';
|
|
4
|
+
import { TitleMobile, type TitleMobileProps } from './title-mobile';
|
|
5
|
+
import { TitleResponsive, type TitleResponsiveProps } from './title-responsive';
|
|
6
|
+
import { type TextElementType } from './types';
|
|
7
7
|
export declare const Typography: {
|
|
8
8
|
Title: FC<TitleProps>;
|
|
9
9
|
Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;
|
package/esm/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/component.
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/component.ts"],"sourcesContent":["import { type FC, type ForwardRefExoticComponent, type RefAttributes } from 'react';\n\nimport { Text, type TextProps } from './text';\nimport { Title, type TitleProps } from './title';\nimport { TitleMobile, type TitleMobileProps } from './title-mobile';\nimport { TitleResponsive, type TitleResponsiveProps } from './title-responsive';\nimport { type TextElementType } from './types';\n\nexport const Typography: {\n Title: FC<TitleProps>;\n Text: ForwardRefExoticComponent<TextProps & RefAttributes<TextElementType>>;\n TitleResponsive: FC<TitleResponsiveProps>;\n TitleMobile: FC<TitleMobileProps>;\n} = {\n Title,\n Text,\n TitleResponsive,\n TitleMobile,\n};\n\nexport { Text, Title as TitleDesktop, TitleResponsive, TitleMobile };\n"],"names":[],"mappings":";;;;;AAQa,IAAA,UAAU,GAKnB;AACA,IAAA,KAAK,EAAA,KAAA;AACL,IAAA,IAAI,EAAA,IAAA;AACJ,IAAA,eAAe,EAAA,eAAA;AACf,IAAA,WAAW,EAAA,WAAA;;;;;"}
|
|
@@ -1,108 +1,109 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--font-family-alfasans:
|
|
3
|
-
'
|
|
4
|
-
|
|
2
|
+
--font-family-alfasans:
|
|
3
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
4
|
+
Helvetica, sans-serif;
|
|
5
|
+
} .typography__text_4sc5p.typography__component_4sc5p {
|
|
5
6
|
font-size: 16px;
|
|
6
7
|
line-height: 20px;
|
|
7
8
|
font-weight: 400;
|
|
8
9
|
letter-spacing: -0.24px;
|
|
9
10
|
font-family: var(--font-family-alfasans);
|
|
10
|
-
} .
|
|
11
|
+
} .typography__text_4sc5p.typography__caps_4sc5p {
|
|
11
12
|
font-size: 12px;
|
|
12
13
|
line-height: 16px;
|
|
13
14
|
font-weight: 400;
|
|
14
15
|
letter-spacing: 1.25px;
|
|
15
16
|
text-transform: uppercase;
|
|
16
17
|
font-family: var(--font-family-alfasans);
|
|
17
|
-
} .
|
|
18
|
+
} .typography__text_4sc5p.typography__tagline_4sc5p {
|
|
18
19
|
font-size: 12px;
|
|
19
20
|
line-height: 16px;
|
|
20
21
|
font-weight: 400;
|
|
21
22
|
letter-spacing: 1.25px;
|
|
22
23
|
text-transform: uppercase;
|
|
23
24
|
font-family: var(--font-family-alfasans);
|
|
24
|
-
} .
|
|
25
|
+
} .typography__text_4sc5p.typography__primary-large_4sc5p {
|
|
25
26
|
font-size: 18px;
|
|
26
27
|
line-height: 24px;
|
|
27
28
|
font-weight: 400;
|
|
28
29
|
letter-spacing: -0.36px;
|
|
29
|
-
font-family: var(--font-family-alfasans)
|
|
30
|
-
} .
|
|
30
|
+
font-family: var(--font-family-alfasans);
|
|
31
|
+
} -large.typography__text_4sc5p.typography__primary_4sc5p.typography__bold_4sc5p {
|
|
31
32
|
letter-spacing: 0.38px;
|
|
32
|
-
} .
|
|
33
|
+
} -large.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
|
|
33
34
|
letter-spacing: 0.17px;
|
|
34
|
-
} .
|
|
35
|
+
} .typography__text_4sc5p.typography__primary-medium_4sc5p {
|
|
35
36
|
font-size: 16px;
|
|
36
37
|
line-height: 24px;
|
|
37
38
|
font-weight: 400;
|
|
38
39
|
letter-spacing: -0.24px;
|
|
39
|
-
font-family: var(--font-family-alfasans)
|
|
40
|
-
} .
|
|
40
|
+
font-family: var(--font-family-alfasans);
|
|
41
|
+
} -medium.typography__text_4sc5p.typography__primary_4sc5p.typography__bold_4sc5p {
|
|
41
42
|
letter-spacing: 0.43px;
|
|
42
|
-
} .
|
|
43
|
+
} -medium.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
|
|
43
44
|
letter-spacing: 0.17px;
|
|
44
|
-
} .
|
|
45
|
+
} .typography__text_4sc5p.typography__primary-small_4sc5p {
|
|
45
46
|
font-size: 14px;
|
|
46
47
|
line-height: 20px;
|
|
47
48
|
font-weight: 400;
|
|
48
49
|
letter-spacing: -0.08px;
|
|
49
|
-
font-family: var(--font-family-alfasans)
|
|
50
|
-
} .
|
|
50
|
+
font-family: var(--font-family-alfasans);
|
|
51
|
+
} -small.typography__text_4sc5p.typography__primary_4sc5p.typography__bold_4sc5p {
|
|
51
52
|
letter-spacing: 0.47px;
|
|
52
|
-
} .
|
|
53
|
+
} -small.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
|
|
53
54
|
letter-spacing: 0.27px;
|
|
54
|
-
} .
|
|
55
|
+
} .typography__text_4sc5p.typography__component-primary_4sc5p {
|
|
55
56
|
font-size: 16px;
|
|
56
57
|
line-height: 20px;
|
|
57
58
|
font-weight: 400;
|
|
58
59
|
letter-spacing: -0.24px;
|
|
59
|
-
font-family: var(--font-family-alfasans)
|
|
60
|
-
} .
|
|
60
|
+
font-family: var(--font-family-alfasans);
|
|
61
|
+
} .typography__text_4sc5p.typography__component-primary_4sc5p.typography__bold_4sc5p {
|
|
61
62
|
letter-spacing: 0.43px;
|
|
62
|
-
} .
|
|
63
|
+
} .typography__text_4sc5p.typography__component-primary_4sc5p.typography__medium_4sc5p {
|
|
63
64
|
letter-spacing: 0.17px;
|
|
64
|
-
} .
|
|
65
|
+
} .typography__text_4sc5p.typography__secondary-large_4sc5p {
|
|
65
66
|
font-size: 13px;
|
|
66
67
|
line-height: 16px;
|
|
67
68
|
font-weight: 400;
|
|
68
69
|
letter-spacing: 0;
|
|
69
|
-
font-family: var(--font-family-alfasans)
|
|
70
|
-
} .
|
|
70
|
+
font-family: var(--font-family-alfasans);
|
|
71
|
+
} -large.typography__text_4sc5p.typography__secondary_4sc5p.typography__bold_4sc5p {
|
|
71
72
|
letter-spacing: 0.54px;
|
|
72
|
-
} .
|
|
73
|
+
} -large.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
|
|
73
74
|
letter-spacing: 0.33px;
|
|
74
|
-
} .
|
|
75
|
+
} .typography__text_4sc5p.typography__secondary-medium_4sc5p {
|
|
75
76
|
font-size: 12px;
|
|
76
77
|
line-height: 16px;
|
|
77
78
|
font-weight: 400;
|
|
78
79
|
letter-spacing: 0.06px;
|
|
79
|
-
font-family: var(--font-family-alfasans)
|
|
80
|
-
} .
|
|
80
|
+
font-family: var(--font-family-alfasans);
|
|
81
|
+
} -medium.typography__text_4sc5p.typography__secondary_4sc5p.typography__bold_4sc5p {
|
|
81
82
|
letter-spacing: 0.57px;
|
|
82
|
-
} .
|
|
83
|
+
} -medium.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
|
|
83
84
|
letter-spacing: 0.38px;
|
|
84
|
-
} .
|
|
85
|
+
} .typography__text_4sc5p.typography__secondary-small_4sc5p {
|
|
85
86
|
font-size: 11px;
|
|
86
87
|
line-height: 16px;
|
|
87
88
|
font-weight: 400;
|
|
88
89
|
letter-spacing: 0.15px;
|
|
89
|
-
font-family: var(--font-family-alfasans)
|
|
90
|
-
} .
|
|
90
|
+
font-family: var(--font-family-alfasans);
|
|
91
|
+
} -small.typography__text_4sc5p.typography__secondary_4sc5p.typography__bold_4sc5p {
|
|
91
92
|
letter-spacing: 0.54px;
|
|
92
|
-
} .
|
|
93
|
+
} -small.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
|
|
93
94
|
letter-spacing: 0.41px;
|
|
94
|
-
} .
|
|
95
|
+
} .typography__text_4sc5p.typography__component-secondary_4sc5p {
|
|
95
96
|
font-size: 14px;
|
|
96
97
|
line-height: 18px;
|
|
97
98
|
font-weight: 400;
|
|
98
99
|
letter-spacing: -0.08px;
|
|
99
|
-
font-family: var(--font-family-alfasans)
|
|
100
|
-
} .
|
|
100
|
+
font-family: var(--font-family-alfasans);
|
|
101
|
+
} .typography__text_4sc5p.typography__component-secondary_4sc5p.typography__bold_4sc5p {
|
|
101
102
|
letter-spacing: 0.47px;
|
|
102
|
-
} .
|
|
103
|
+
} .typography__text_4sc5p.typography__component-secondary_4sc5p.typography__medium_4sc5p {
|
|
103
104
|
letter-spacing: 0.27px;
|
|
104
|
-
} .
|
|
105
|
+
} .typography__text_4sc5p.typography__bold_4sc5p {
|
|
105
106
|
font-weight: 700;
|
|
106
|
-
} .
|
|
107
|
+
} .typography__text_4sc5p.typography__medium_4sc5p {
|
|
107
108
|
font-weight: 500;
|
|
108
109
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './alfasans-index.css';
|
|
2
2
|
|
|
3
|
-
var alfasansStyles = {"text":"
|
|
3
|
+
var alfasansStyles = {"text":"typography__text_4sc5p","component":"typography__component_4sc5p","caps":"typography__caps_4sc5p","tagline":"typography__tagline_4sc5p","primary-large":"typography__primary-large_4sc5p","primary":"typography__primary_4sc5p","bold":"typography__bold_4sc5p","medium":"typography__medium_4sc5p","primary-medium":"typography__primary-medium_4sc5p","primary-small":"typography__primary-small_4sc5p","component-primary":"typography__component-primary_4sc5p","secondary-large":"typography__secondary-large_4sc5p","secondary":"typography__secondary_4sc5p","secondary-medium":"typography__secondary-medium_4sc5p","secondary-small":"typography__secondary-small_4sc5p","component-secondary":"typography__component-secondary_4sc5p"};
|
|
4
4
|
|
|
5
5
|
export { alfasansStyles as default };
|
|
6
6
|
//# sourceMappingURL=alfasans-index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alfasans-index.module.css.js","sources":["../src/text/alfasans-index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/alfasans-index.css';\n\n@define-mixin bold {\n font-weight: 700;\n}\n\n@define-mixin medium {\n font-weight: 500;\n}\n\n.text {\n @each $view in component, caps, tagline {\n &.$(view) {\n @mixin 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 &.bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size), bold;\n }\n\n &.medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size), medium;\n }\n }\n }\n\n &.component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind), bold;\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind), medium;\n }\n }\n }\n\n @each $weight in bold, medium {\n &.$(weight) {\n @mixin $(weight);\n }\n }\n}\n"],"names":[],"mappings":";;AAEgB,qBAAe,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,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;;;;"}
|
|
1
|
+
{"version":3,"file":"alfasans-index.module.css.js","sources":["../src/text/alfasans-index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/alfasans-index.css';\n\n@define-mixin bold {\n font-weight: 700;\n}\n\n@define-mixin medium {\n font-weight: 500;\n}\n\n.text {\n @each $view in component, caps, tagline {\n &.$(view) {\n @mixin 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 &.bold {\n @subtract-mixin accent_$(kind)_$(size), paragraph_$(kind)_$(size), bold;\n }\n\n &.medium {\n @subtract-mixin action_$(kind)_$(size), paragraph_$(kind)_$(size), medium;\n }\n }\n }\n\n &.component-$(kind) {\n @mixin paragraph_component_$(kind);\n\n &.bold {\n @subtract-mixin accent_component_$(kind), paragraph_component_$(kind), bold;\n }\n\n &.medium {\n @subtract-mixin action_component_$(kind), paragraph_component_$(kind), medium;\n }\n }\n }\n\n @each $weight in bold, medium {\n &.$(weight) {\n @mixin $(weight);\n }\n }\n}\n"],"names":[],"mappings":";;AAEgB,qBAAe,CAAC,MAAM,CAAC,wBAAwB,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,eAAe,CAAC,iCAAiC,CAAC,SAAS,CAAC,2BAA2B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,WAAW,CAAC,6BAA6B,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC;;;;"}
|
package/esm/text/component.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type TextSkeletonProps } from '@alfalab/core-components-skeleton/esm';
|
|
3
|
-
import { Color } from '../colors';
|
|
4
|
-
import { TextElementType } from '../types';
|
|
3
|
+
import { type Color } from '../colors';
|
|
4
|
+
import { type TextElementType } from '../types';
|
|
5
5
|
declare type NativeProps = HTMLAttributes<HTMLSpanElement>;
|
|
6
6
|
declare type TextBaseProps = {
|
|
7
7
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/text/component.tsx"],"sourcesContent":["import React, { forwardRef, 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 { Color } from '../colors';\nimport { TextElementType } from '../types';\n\nimport colors from '../colors.module.css';\nimport alfasansStyles from './alfasans-index.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'\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 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\nconst logWarning = (view: Required<TextBaseProps>['view']) => {\n if (process.env.NODE_ENV !== 'development') {\n return;\n }\n\n const viewsMap: { [key: string]: string } = {\n component: 'component-primary',\n };\n\n // eslint-disable-next-line no-console\n console.warn(\n // eslint-disable-next-line prefer-template\n `@alfalab/core-components/typography: view='${view}' будет удален в следующих мажорных версиях. ` +\n `Используйте view='${viewsMap[view]}'.`,\n );\n};\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 if (view === 'component') {\n logWarning(view);\n }\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 [alfasansStyles.text]: font === 'alfasans',\n },\n className,\n color && colors[color],\n (font === 'alfasans' ? alfasansStyles : styles)[view],\n weight && (font === 'alfasans' ? alfasansStyles : 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":[],"mappings":";;;;;;;;;AAoGA,IAAM,UAAU,GAAG,UAAC,IAAqC,EAAA;AACrD,IAAA,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,aAAa,EAAE;QACxC;AACH;AAED,IAAA,IAAM,QAAQ,GAA8B;AACxC,QAAA,SAAS,EAAE,mBAAmB;KACjC;;AAGD,IAAA,OAAO,CAAC,IAAI;;AAER,IAAA,6CAAA,CAA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GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAAA,EAC1B,SAAS,CAAA,EAEZ,QAAQ,CACD;AAEpB,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 alfasansStyles from './alfasans-index.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'\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 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\nconst logWarning = (view: Required<TextBaseProps>['view']) => {\n if (process.env.NODE_ENV !== 'development') {\n return;\n }\n\n const viewsMap: { [key: string]: string } = {\n component: 'component-primary',\n };\n\n // eslint-disable-next-line no-console\n console.warn(\n // eslint-disable-next-line prefer-template\n `@alfalab/core-components/typography: view='${view}' будет удален в следующих мажорных версиях. ` +\n `Используйте view='${viewsMap[view]}'.`,\n );\n};\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 if (view === 'component') {\n logWarning(view);\n }\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 [alfasansStyles.text]: font === 'alfasans',\n },\n className,\n color && colors[color],\n (font === 'alfasans' ? alfasansStyles : styles)[view],\n weight && (font === 'alfasans' ? alfasansStyles : 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":[],"mappings":";;;;;;;;;AAoGA,IAAM,UAAU,GAAG,UAAC,IAAqC,EAAA;AACrD,IAAA,IAAI,OAAO,CAAC,GAAG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UAAU,GAAG,cAAc,GAAG,MAAM,EAAE,IAAI,CAAC,EACrD,MAAM,IAAI,CAAC,IAAI,KAAK,UAAU,GAAG,cAAc,GAAG,MAAM,EAAE,MAAM,CAAC,CACpE,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAAA,EAC1B,SAAS,CAAA,EAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
|
package/esm/text/index.css
CHANGED
|
@@ -2,85 +2,85 @@
|
|
|
2
2
|
--gap-s: 12px;
|
|
3
3
|
--gap-0: 0px;
|
|
4
4
|
--gap-12: var(--gap-s);
|
|
5
|
-
} .
|
|
5
|
+
} .typography__transparent_7scw6 {
|
|
6
6
|
opacity: 0;
|
|
7
7
|
} :root {
|
|
8
8
|
--text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
|
|
9
|
-
} .
|
|
9
|
+
} .typography__paragraph_7scw6 {
|
|
10
10
|
margin: var(--gap-0);
|
|
11
11
|
padding: var(--gap-0);
|
|
12
|
-
} .
|
|
12
|
+
} .typography__paragraphWithMargins_7scw6 {
|
|
13
13
|
padding: var(--gap-0);
|
|
14
14
|
margin: var(--text-paragraph-margin-bottom);
|
|
15
|
-
} .typography__primary-
|
|
15
|
+
} .typography__primary-large_7scw6 {
|
|
16
16
|
font-size: 18px;
|
|
17
17
|
line-height: 24px;
|
|
18
18
|
font-weight: 400;
|
|
19
|
-
} .typography__primary-
|
|
19
|
+
} .typography__primary-medium_7scw6 {
|
|
20
20
|
font-size: 16px;
|
|
21
21
|
line-height: 24px;
|
|
22
22
|
font-weight: 400;
|
|
23
|
-
} .typography__primary-
|
|
23
|
+
} .typography__primary-small_7scw6 {
|
|
24
24
|
font-size: 14px;
|
|
25
25
|
line-height: 20px;
|
|
26
26
|
font-weight: 400;
|
|
27
|
-
} .typography__secondary-
|
|
27
|
+
} .typography__secondary-large_7scw6 {
|
|
28
28
|
font-size: 13px;
|
|
29
29
|
line-height: 16px;
|
|
30
30
|
font-weight: 400;
|
|
31
|
-
} .typography__secondary-
|
|
31
|
+
} .typography__secondary-medium_7scw6 {
|
|
32
32
|
font-size: 12px;
|
|
33
33
|
line-height: 16px;
|
|
34
34
|
font-weight: 400;
|
|
35
|
-
} .typography__secondary-
|
|
35
|
+
} .typography__secondary-small_7scw6 {
|
|
36
36
|
font-size: 11px;
|
|
37
37
|
line-height: 16px;
|
|
38
38
|
font-weight: 400;
|
|
39
|
-
} .
|
|
39
|
+
} .typography__component_7scw6 {
|
|
40
40
|
font-size: 16px;
|
|
41
41
|
line-height: 20px;
|
|
42
42
|
font-weight: 400;
|
|
43
|
-
} .typography__component-
|
|
43
|
+
} .typography__component-primary_7scw6 {
|
|
44
44
|
font-size: 16px;
|
|
45
45
|
line-height: 20px;
|
|
46
46
|
font-weight: 400;
|
|
47
|
-
} .typography__component-
|
|
47
|
+
} .typography__component-secondary_7scw6 {
|
|
48
48
|
font-size: 14px;
|
|
49
49
|
line-height: 18px;
|
|
50
50
|
font-weight: 400;
|
|
51
|
-
} .
|
|
51
|
+
} .typography__caps_7scw6 {
|
|
52
52
|
font-size: 12px;
|
|
53
53
|
line-height: 16px;
|
|
54
54
|
font-weight: 500;
|
|
55
55
|
letter-spacing: 1.25px;
|
|
56
56
|
text-transform: uppercase;
|
|
57
|
-
} .
|
|
57
|
+
} .typography__tagline_7scw6 {
|
|
58
58
|
font-size: 12px;
|
|
59
59
|
line-height: 16px;
|
|
60
60
|
font-weight: 500;
|
|
61
61
|
letter-spacing: 1.25px;
|
|
62
62
|
text-transform: uppercase;
|
|
63
|
-
} .
|
|
63
|
+
} .typography__bold_7scw6 {
|
|
64
64
|
font-weight: bold;
|
|
65
|
-
} .
|
|
65
|
+
} .typography__medium_7scw6 {
|
|
66
66
|
font-weight: 500;
|
|
67
|
-
} .
|
|
67
|
+
} .typography__regular_7scw6 {
|
|
68
68
|
font-weight: normal;
|
|
69
|
-
} .
|
|
69
|
+
} .typography__monospace_7scw6 {
|
|
70
70
|
font-feature-settings: "tnum";
|
|
71
71
|
font-variant-numeric: tabular-nums;
|
|
72
|
-
} .
|
|
72
|
+
} .typography__rowLimit1_7scw6 {
|
|
73
73
|
-webkit-line-clamp: 1;
|
|
74
74
|
display: -webkit-box;
|
|
75
75
|
-webkit-box-orient: vertical;
|
|
76
76
|
overflow: hidden;
|
|
77
77
|
word-break: break-all;
|
|
78
|
-
} .
|
|
78
|
+
} .typography__rowLimit2_7scw6 {
|
|
79
79
|
-webkit-line-clamp: 2;
|
|
80
80
|
display: -webkit-box;
|
|
81
81
|
-webkit-box-orient: vertical;
|
|
82
82
|
overflow: hidden;
|
|
83
|
-
} .
|
|
83
|
+
} .typography__rowLimit3_7scw6 {
|
|
84
84
|
-webkit-line-clamp: 3;
|
|
85
85
|
display: -webkit-box;
|
|
86
86
|
-webkit-box-orient: vertical;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
var styles = {"transparent":"
|
|
3
|
+
var styles = {"transparent":"typography__transparent_7scw6","paragraph":"typography__paragraph_7scw6","paragraphWithMargins":"typography__paragraphWithMargins_7scw6","primary-large":"typography__primary-large_7scw6","primary-medium":"typography__primary-medium_7scw6","primary-small":"typography__primary-small_7scw6","secondary-large":"typography__secondary-large_7scw6","secondary-medium":"typography__secondary-medium_7scw6","secondary-small":"typography__secondary-small_7scw6","component":"typography__component_7scw6","component-primary":"typography__component-primary_7scw6","component-secondary":"typography__component-secondary_7scw6","caps":"typography__caps_7scw6","tagline":"typography__tagline_7scw6","bold":"typography__bold_7scw6","medium":"typography__medium_7scw6","regular":"typography__regular_7scw6","monospace":"typography__monospace_7scw6","rowLimit1":"typography__rowLimit1_7scw6","rowLimit2":"typography__rowLimit2_7scw6","rowLimit3":"typography__rowLimit3_7scw6"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# 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/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.primary-large {\n @mixin paragraph_primary_large;\n}\n\n.primary-medium {\n @mixin paragraph_primary_medium;\n}\n\n.primary-small {\n @mixin paragraph_primary_small;\n}\n\n.secondary-large {\n @mixin paragraph_secondary_large;\n}\n\n.secondary-medium {\n @mixin paragraph_secondary_medium;\n}\n\n.secondary-small {\n @mixin paragraph_secondary_small;\n}\n\n.component {\n @mixin paragraph_component;\n}\n\n.component-primary {\n @mixin paragraph_component_primary;\n}\n\n.component-secondary {\n @mixin paragraph_component_secondary;\n}\n\n.caps {\n @mixin paragraph_caps;\n}\n\n.tagline {\n @mixin paragraph_tagline;\n}\n\n.bold {\n font-weight: bold;\n}\n\n.medium {\n font-weight: 500;\n}\n\n.regular {\n font-weight: normal;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\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"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-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.primary-large {\n @mixin paragraph_primary_large;\n}\n\n.primary-medium {\n @mixin paragraph_primary_medium;\n}\n\n.primary-small {\n @mixin paragraph_primary_small;\n}\n\n.secondary-large {\n @mixin paragraph_secondary_large;\n}\n\n.secondary-medium {\n @mixin paragraph_secondary_medium;\n}\n\n.secondary-small {\n @mixin paragraph_secondary_small;\n}\n\n.component {\n @mixin paragraph_component;\n}\n\n.component-primary {\n @mixin paragraph_component_primary;\n}\n\n.component-secondary {\n @mixin paragraph_component_secondary;\n}\n\n.caps {\n @mixin paragraph_caps;\n}\n\n.tagline {\n @mixin paragraph_tagline;\n}\n\n.bold {\n font-weight: bold;\n}\n\n.medium {\n font-weight: 500;\n}\n\n.regular {\n font-weight: normal;\n}\n\n.monospace {\n font-variant-numeric: tabular-nums;\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"],"names":[],"mappings":";;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,WAAW,CAAC,6BAA6B,CAAC,sBAAsB,CAAC,wCAAwC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,kBAAkB,CAAC,oCAAoC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,WAAW,CAAC,6BAA6B,CAAC,mBAAmB,CAAC,qCAAqC,CAAC,qBAAqB,CAAC,uCAAuC,CAAC,MAAM,CAAC,wBAAwB,CAAC,SAAS,CAAC,2BAA2B,CAAC,MAAM,CAAC,wBAAwB,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
|
@@ -1,48 +1,49 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--font-family-alfasans:
|
|
3
|
-
'
|
|
4
|
-
|
|
2
|
+
--font-family-alfasans:
|
|
3
|
+
'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
|
|
4
|
+
Helvetica, sans-serif;
|
|
5
|
+
} .typography__alfasans-xlarge_1xr2s {
|
|
5
6
|
font-size: 48px;
|
|
6
7
|
line-height: 64px;
|
|
7
8
|
font-weight: 700;
|
|
8
9
|
letter-spacing: 0.1px;
|
|
9
|
-
font-family: var(--font-family-alfasans)
|
|
10
|
-
} .typography__alfasans-
|
|
10
|
+
font-family: var(--font-family-alfasans);
|
|
11
|
+
} .typography__alfasans-xlarge_1xr2s.typography__systemCompat_1xr2s {
|
|
11
12
|
line-height: 52px;
|
|
12
|
-
} .typography__alfasans-
|
|
13
|
+
} .typography__alfasans-large_1xr2s {
|
|
13
14
|
font-size: 40px;
|
|
14
15
|
line-height: 48px;
|
|
15
16
|
font-weight: 700;
|
|
16
17
|
letter-spacing: 0.1px;
|
|
17
|
-
font-family: var(--font-family-alfasans)
|
|
18
|
-
} .typography__alfasans-
|
|
19
|
-
} .typography__alfasans-
|
|
18
|
+
font-family: var(--font-family-alfasans);
|
|
19
|
+
} .typography__alfasans-large_1xr2s.typography__systemCompat_1xr2s {
|
|
20
|
+
} .typography__alfasans-medium_1xr2s {
|
|
20
21
|
font-size: 32px;
|
|
21
22
|
line-height: 40px;
|
|
22
23
|
font-weight: 700;
|
|
23
24
|
letter-spacing: 0.3px;
|
|
24
|
-
font-family: var(--font-family-alfasans)
|
|
25
|
-
} .typography__alfasans-
|
|
25
|
+
font-family: var(--font-family-alfasans);
|
|
26
|
+
} .typography__alfasans-medium_1xr2s.typography__systemCompat_1xr2s {
|
|
26
27
|
font-size: 30px;
|
|
27
28
|
line-height: 36px;
|
|
28
29
|
letter-spacing: 0.1px;
|
|
29
|
-
} .typography__alfasans-
|
|
30
|
+
} .typography__alfasans-small_1xr2s {
|
|
30
31
|
font-size: 24px;
|
|
31
32
|
line-height: 32px;
|
|
32
33
|
font-weight: 700;
|
|
33
34
|
letter-spacing: 0.39px;
|
|
34
|
-
font-family: var(--font-family-alfasans)
|
|
35
|
-
} .typography__alfasans-
|
|
35
|
+
font-family: var(--font-family-alfasans);
|
|
36
|
+
} .typography__alfasans-small_1xr2s.typography__systemCompat_1xr2s {
|
|
36
37
|
font-size: 22px;
|
|
37
38
|
line-height: 26px;
|
|
38
39
|
letter-spacing: 0.2px;
|
|
39
|
-
} .typography__alfasans-
|
|
40
|
+
} .typography__alfasans-xsmall_1xr2s {
|
|
40
41
|
font-size: 20px;
|
|
41
42
|
line-height: 24px;
|
|
42
43
|
font-weight: 700;
|
|
43
44
|
letter-spacing: 0.33px;
|
|
44
|
-
font-family: var(--font-family-alfasans)
|
|
45
|
-
} .typography__alfasans-
|
|
45
|
+
font-family: var(--font-family-alfasans);
|
|
46
|
+
} .typography__alfasans-xsmall_1xr2s.typography__systemCompat_1xr2s {
|
|
46
47
|
font-size: 18px;
|
|
47
48
|
line-height: 22px;
|
|
48
49
|
letter-spacing: 0.38px;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './alfasans-index.css';
|
|
2
2
|
|
|
3
|
-
var alfasansStyles = {"alfasans-xlarge":"typography__alfasans-
|
|
3
|
+
var alfasansStyles = {"alfasans-xlarge":"typography__alfasans-xlarge_1xr2s","systemCompat":"typography__systemCompat_1xr2s","alfasans-large":"typography__alfasans-large_1xr2s","alfasans-medium":"typography__alfasans-medium_1xr2s","alfasans-small":"typography__alfasans-small_1xr2s","alfasans-xsmall":"typography__alfasans-xsmall_1xr2s"};
|
|
4
4
|
|
|
5
5
|
export { alfasansStyles as default };
|
|
6
6
|
//# sourceMappingURL=alfasans-index.module.css.js.map
|
package/esm/title/common.css
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--gap-0: 0px;
|
|
3
|
-
} .
|
|
3
|
+
} .typography__component_1nmkd {
|
|
4
4
|
margin: var(--gap-0);
|
|
5
|
-
padding: var(--gap-0)
|
|
6
|
-
} .
|
|
5
|
+
padding: var(--gap-0);
|
|
6
|
+
} .typography__component_1nmkd.typography__bold_1nmkd {
|
|
7
7
|
font-weight: bold;
|
|
8
|
-
} .
|
|
8
|
+
} .typography__component_1nmkd.typography__semibold_1nmkd {
|
|
9
9
|
font-weight: 600;
|
|
10
|
-
} .
|
|
10
|
+
} .typography__component_1nmkd.typography__medium_1nmkd {
|
|
11
11
|
font-weight: 500;
|
|
12
|
-
} .
|
|
12
|
+
} .typography__component_1nmkd.typography__regular_1nmkd {
|
|
13
13
|
font-weight: normal;
|
|
14
|
-
} .
|
|
14
|
+
} .typography__rowLimit1_1nmkd {
|
|
15
15
|
-webkit-line-clamp: 1;
|
|
16
16
|
display: -webkit-box;
|
|
17
17
|
-webkit-box-orient: vertical;
|
|
18
18
|
overflow: hidden;
|
|
19
19
|
word-break: break-all;
|
|
20
|
-
} .
|
|
20
|
+
} .typography__rowLimit2_1nmkd {
|
|
21
21
|
-webkit-line-clamp: 2;
|
|
22
22
|
display: -webkit-box;
|
|
23
23
|
-webkit-box-orient: vertical;
|
|
24
24
|
overflow: hidden;
|
|
25
|
-
} .
|
|
25
|
+
} .typography__rowLimit3_1nmkd {
|
|
26
26
|
-webkit-line-clamp: 3;
|
|
27
27
|
display: -webkit-box;
|
|
28
28
|
-webkit-box-orient: vertical;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './common.css';
|
|
2
2
|
|
|
3
|
-
var commonStyles = {"component":"
|
|
3
|
+
var commonStyles = {"component":"typography__component_1nmkd","bold":"typography__bold_1nmkd","semibold":"typography__semibold_1nmkd","medium":"typography__medium_1nmkd","regular":"typography__regular_1nmkd","rowLimit1":"typography__rowLimit1_1nmkd","rowLimit2":"typography__rowLimit2_1nmkd","rowLimit3":"typography__rowLimit3_1nmkd"};
|
|
4
4
|
|
|
5
5
|
export { commonStyles as default };
|
|
6
6
|
//# sourceMappingURL=common.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n\n &.bold {\n font-weight: bold;\n }\n\n &.semibold {\n font-weight: 600;\n }\n\n &.medium {\n font-weight: 500;\n }\n\n &.regular {\n font-weight: normal;\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"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-typography-index.css';\n\n.component {\n margin: var(--gap-0);\n padding: var(--gap-0);\n\n &.bold {\n font-weight: bold;\n }\n\n &.semibold {\n font-weight: 600;\n }\n\n &.medium {\n font-weight: 500;\n }\n\n &.regular {\n font-weight: normal;\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"],"names":[],"mappings":";;AAEgB,mBAAe,CAAC,WAAW,CAAC,6BAA6B,CAAC,MAAM,CAAC,wBAAwB,CAAC,UAAU,CAAC,4BAA4B,CAAC,QAAQ,CAAC,0BAA0B,CAAC,SAAS,CAAC,2BAA2B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC,WAAW,CAAC,6BAA6B,CAAC;;;;"}
|
package/esm/title/component.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import React, { HTMLAttributes } from 'react';
|
|
1
|
+
import React, { type HTMLAttributes } from 'react';
|
|
2
2
|
import { type TextSkeletonProps } from '@alfalab/core-components-skeleton/esm';
|
|
3
|
-
import { Color } from '../colors';
|
|
3
|
+
import { type Color } from '../colors';
|
|
4
4
|
declare type NativeProps = HTMLAttributes<HTMLHeadingElement>;
|
|
5
5
|
export declare type TitleProps = Omit<NativeProps, 'color'> & {
|
|
6
6
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\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 * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font: fontProp = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(fontProp) ? fontProp.font : fontProp, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n let font: string;\n let systemCompat: boolean | undefined;\n\n if (isObject(fontProp)) {\n font = fontProp.font;\n systemCompat = fontProp.systemCompat;\n } else {\n font = fontProp;\n }\n\n return (\n <Component\n className={cn(\n styles.component,\n className,\n styles[`${font}-${view}`],\n defaultMargins && styles[`margins-${view}`],\n styles[weight],\n color && colors[color],\n {\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n [styles.systemCompat]: systemCompat,\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;IA2Fa,SAAS,GAAG,UAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,WAAsB,EAAjB,SAAS,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,EAAA,GAAA,EAAA,CAAA,IAAe,EAAf,IAAI,mBAAG,QAAQ,GAAA,EAAA,EACf,EAA0B,GAAA,EAAA,CAAA,IAAA,EAApB,QAAQ,GAAG,EAAA,KAAA,MAAA,GAAA,SAAS,GAAA,EAAA,EAC1B,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,cAAkF,EAAlF,MAAM,mBAAG,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,GAAG,QAAQ,EAAE,QAAQ,CAAC,GAAA,EAAA,EAClF,sBAAsB,EAAtB,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,KAAK,WAAA,EACL,SAAS,eAAA,EACT,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,QAAQ,GAAA,EAAA,CAAA,QAAA,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M,CAAC,WAAW,CAAA,GAAG,YAAY;AAClC,YAAA,EAAA,CAAC,MAAM,CAAC,YAAY,CAAA,GAAG,YAAY;AAE1C,YAAA,EAAA,EAAA,EAAA,cAAA,EACa,UAAU,EACxB,GAAG,EAAE,SAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,EAAA,SAAS,GAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, type HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { type Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\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 * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font: fontProp = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(fontProp) ? fontProp.font : fontProp, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n let font: string;\n let systemCompat: boolean | undefined;\n\n if (isObject(fontProp)) {\n font = fontProp.font;\n systemCompat = fontProp.systemCompat;\n } else {\n font = fontProp;\n }\n\n return (\n <Component\n className={cn(\n styles.component,\n className,\n styles[`${font}-${view}`],\n defaultMargins && styles[`margins-${view}`],\n styles[weight],\n color && colors[color],\n {\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n [styles.systemCompat]: systemCompat,\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;IA2Fa,SAAS,GAAG,UAAU,CAC/B,UACI,EAgBC,EACD,GAAG,EAAA;;AAhBC,IAAA,IAAA,WAAsB,EAAjB,SAAS,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,EAAA,GAAA,EAAA,CAAA,IAAe,EAAf,IAAI,mBAAG,QAAQ,GAAA,EAAA,EACf,EAA0B,GAAA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