@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.
Files changed (150) hide show
  1. package/colors.css +20 -20
  2. package/colors.module.css.js +1 -1
  3. package/colors.module.css.js.map +1 -1
  4. package/component.d.ts +6 -6
  5. package/component.js.map +1 -1
  6. package/cssm/component.d.ts +6 -6
  7. package/cssm/component.js.map +1 -1
  8. package/cssm/text/alfasans-index.module.css +23 -22
  9. package/cssm/text/component.d.ts +3 -3
  10. package/cssm/text/component.js.map +1 -1
  11. package/cssm/title/alfasans-index.module.css +8 -7
  12. package/cssm/title/common.module.css +1 -1
  13. package/cssm/title/component.d.ts +2 -2
  14. package/cssm/title/component.js.map +1 -1
  15. package/cssm/title/index.d.ts +1 -1
  16. package/cssm/title/index.js.map +1 -1
  17. package/cssm/title/index.module.css +3 -2
  18. package/cssm/title-mobile/alfasans-index.module.css +8 -7
  19. package/cssm/title-mobile/component.js.map +1 -1
  20. package/cssm/title-mobile/index.module.css +3 -2
  21. package/cssm/title-responsive/component.d.ts +1 -1
  22. package/cssm/title-responsive/component.js.map +1 -1
  23. package/esm/colors.css +20 -20
  24. package/esm/colors.module.css.js +1 -1
  25. package/esm/colors.module.css.js.map +1 -1
  26. package/esm/component.d.ts +6 -6
  27. package/esm/component.js.map +1 -1
  28. package/esm/text/alfasans-index.css +40 -39
  29. package/esm/text/alfasans-index.module.css.js +1 -1
  30. package/esm/text/alfasans-index.module.css.js.map +1 -1
  31. package/esm/text/component.d.ts +3 -3
  32. package/esm/text/component.js.map +1 -1
  33. package/esm/text/index.css +21 -21
  34. package/esm/text/index.module.css.js +1 -1
  35. package/esm/text/index.module.css.js.map +1 -1
  36. package/esm/title/alfasans-index.css +18 -17
  37. package/esm/title/alfasans-index.module.css.js +1 -1
  38. package/esm/title/common.css +9 -9
  39. package/esm/title/common.module.css.js +1 -1
  40. package/esm/title/common.module.css.js.map +1 -1
  41. package/esm/title/component.d.ts +2 -2
  42. package/esm/title/component.js.map +1 -1
  43. package/esm/title/index.css +19 -18
  44. package/esm/title/index.d.ts +1 -1
  45. package/esm/title/index.js.map +1 -1
  46. package/esm/title/index.module.css.js +1 -1
  47. package/esm/title/index.module.css.js.map +1 -1
  48. package/esm/title-mobile/alfasans-index.css +18 -17
  49. package/esm/title-mobile/alfasans-index.module.css.js +1 -1
  50. package/esm/title-mobile/component.js.map +1 -1
  51. package/esm/title-mobile/index.css +18 -17
  52. package/esm/title-mobile/index.module.css.js +1 -1
  53. package/esm/title-mobile/index.module.css.js.map +1 -1
  54. package/esm/title-responsive/component.d.ts +1 -1
  55. package/esm/title-responsive/component.js.map +1 -1
  56. package/modern/colors.css +20 -20
  57. package/modern/colors.module.css.js +1 -1
  58. package/modern/colors.module.css.js.map +1 -1
  59. package/modern/component.d.ts +6 -6
  60. package/modern/component.js.map +1 -1
  61. package/modern/text/alfasans-index.css +40 -39
  62. package/modern/text/alfasans-index.module.css.js +1 -1
  63. package/modern/text/alfasans-index.module.css.js.map +1 -1
  64. package/modern/text/component.d.ts +3 -3
  65. package/modern/text/component.js.map +1 -1
  66. package/modern/text/index.css +21 -21
  67. package/modern/text/index.module.css.js +1 -1
  68. package/modern/text/index.module.css.js.map +1 -1
  69. package/modern/title/alfasans-index.css +18 -17
  70. package/modern/title/alfasans-index.module.css.js +1 -1
  71. package/modern/title/common.css +9 -9
  72. package/modern/title/common.module.css.js +1 -1
  73. package/modern/title/common.module.css.js.map +1 -1
  74. package/modern/title/component.d.ts +2 -2
  75. package/modern/title/component.js.map +1 -1
  76. package/modern/title/index.css +19 -18
  77. package/modern/title/index.d.ts +1 -1
  78. package/modern/title/index.js.map +1 -1
  79. package/modern/title/index.module.css.js +1 -1
  80. package/modern/title/index.module.css.js.map +1 -1
  81. package/modern/title-mobile/alfasans-index.css +18 -17
  82. package/modern/title-mobile/alfasans-index.module.css.js +1 -1
  83. package/modern/title-mobile/component.js.map +1 -1
  84. package/modern/title-mobile/index.css +18 -17
  85. package/modern/title-mobile/index.module.css.js +1 -1
  86. package/modern/title-mobile/index.module.css.js.map +1 -1
  87. package/modern/title-responsive/component.d.ts +1 -1
  88. package/modern/title-responsive/component.js.map +1 -1
  89. package/moderncssm/colors.module.css +2 -0
  90. package/moderncssm/component.d.ts +6 -6
  91. package/moderncssm/component.js.map +1 -1
  92. package/moderncssm/text/alfasans-index.module.css +66 -40
  93. package/moderncssm/text/component.d.ts +3 -3
  94. package/moderncssm/text/component.js.map +1 -1
  95. package/moderncssm/text/index.module.css +21 -0
  96. package/moderncssm/title/alfasans-index.module.css +25 -18
  97. package/moderncssm/title/common.module.css +3 -1
  98. package/moderncssm/title/component.d.ts +2 -2
  99. package/moderncssm/title/component.js.map +1 -1
  100. package/moderncssm/title/index.d.ts +1 -1
  101. package/moderncssm/title/index.js.map +1 -1
  102. package/moderncssm/title/index.module.css +15 -0
  103. package/moderncssm/title-mobile/alfasans-index.module.css +25 -18
  104. package/moderncssm/title-mobile/component.js.map +1 -1
  105. package/moderncssm/title-mobile/index.module.css +14 -0
  106. package/moderncssm/title-responsive/component.d.ts +1 -1
  107. package/moderncssm/title-responsive/component.js.map +1 -1
  108. package/package.json +3 -3
  109. package/src/colors.module.css +1 -1
  110. package/src/component.ts +21 -0
  111. package/src/text/component.tsx +3 -3
  112. package/src/text/index.module.css +1 -1
  113. package/src/title/common.module.css +1 -1
  114. package/src/title/component.tsx +2 -2
  115. package/src/title/index.module.css +1 -1
  116. package/src/title/index.tsx +1 -1
  117. package/src/title-mobile/component.tsx +1 -1
  118. package/src/title-mobile/index.module.css +1 -1
  119. package/src/title-responsive/component.tsx +1 -1
  120. package/text/alfasans-index.css +40 -39
  121. package/text/alfasans-index.module.css.js +1 -1
  122. package/text/alfasans-index.module.css.js.map +1 -1
  123. package/text/component.d.ts +3 -3
  124. package/text/component.js.map +1 -1
  125. package/text/index.css +21 -21
  126. package/text/index.module.css.js +1 -1
  127. package/text/index.module.css.js.map +1 -1
  128. package/title/alfasans-index.css +18 -17
  129. package/title/alfasans-index.module.css.js +1 -1
  130. package/title/common.css +9 -9
  131. package/title/common.module.css.js +1 -1
  132. package/title/common.module.css.js.map +1 -1
  133. package/title/component.d.ts +2 -2
  134. package/title/component.js.map +1 -1
  135. package/title/index.css +19 -18
  136. package/title/index.d.ts +1 -1
  137. package/title/index.js.map +1 -1
  138. package/title/index.module.css.js +1 -1
  139. package/title/index.module.css.js.map +1 -1
  140. package/title-mobile/alfasans-index.css +18 -17
  141. package/title-mobile/alfasans-index.module.css.js +1 -1
  142. package/title-mobile/component.js.map +1 -1
  143. package/title-mobile/index.css +18 -17
  144. package/title-mobile/index.module.css.js +1 -1
  145. package/title-mobile/index.module.css.js.map +1 -1
  146. package/title-responsive/component.d.ts +1 -1
  147. package/title-responsive/component.js.map +1 -1
  148. package/src/component.tsx +0 -21
  149. /package/src/title-mobile/{index.tsx → index.ts} +0 -0
  150. /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;;;;"}
@@ -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>>;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../src/component.tsx"],"sourcesContent":["import { FC, ForwardRefExoticComponent, RefAttributes } from 'react';\n\nimport { Text, TextProps } from './text';\nimport { Title, TitleProps } from './title';\nimport { TitleMobile, TitleMobileProps } from './title-mobile';\nimport { TitleResponsive, TitleResponsiveProps } from './title-responsive';\nimport { 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
+ {"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: 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
3
- 'Helvetica Neue', Helvetica, sans-serif;
4
- } .typography__text_1mgeg.typography__component_1mgeg {
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
- } .typography__text_1mgeg.typography__caps_1mgeg {
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
- } .typography__text_1mgeg.typography__tagline_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-large_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-large_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-large_1mgeg.typography__medium_1mgeg {
33
+ } -large.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
33
34
  letter-spacing: 0.17px;
34
- } .typography__text_1mgeg.typography__primary-medium_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-medium_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-medium_1mgeg.typography__medium_1mgeg {
43
+ } -medium.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
43
44
  letter-spacing: 0.17px;
44
- } .typography__text_1mgeg.typography__primary-small_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-small_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__primary-small_1mgeg.typography__medium_1mgeg {
53
+ } -small.typography__text_4sc5p.typography__primary_4sc5p.typography__medium_4sc5p {
53
54
  letter-spacing: 0.27px;
54
- } .typography__text_1mgeg.typography__component-primary_1mgeg {
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
- } .typography__text_1mgeg.typography__component-primary_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__component-primary_1mgeg.typography__medium_1mgeg {
63
+ } .typography__text_4sc5p.typography__component-primary_4sc5p.typography__medium_4sc5p {
63
64
  letter-spacing: 0.17px;
64
- } .typography__text_1mgeg.typography__secondary-large_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-large_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-large_1mgeg.typography__medium_1mgeg {
73
+ } -large.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
73
74
  letter-spacing: 0.33px;
74
- } .typography__text_1mgeg.typography__secondary-medium_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-medium_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-medium_1mgeg.typography__medium_1mgeg {
83
+ } -medium.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
83
84
  letter-spacing: 0.38px;
84
- } .typography__text_1mgeg.typography__secondary-small_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-small_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__secondary-small_1mgeg.typography__medium_1mgeg {
93
+ } -small.typography__text_4sc5p.typography__secondary_4sc5p.typography__medium_4sc5p {
93
94
  letter-spacing: 0.41px;
94
- } .typography__text_1mgeg.typography__component-secondary_1mgeg {
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
- } .typography__text_1mgeg.typography__component-secondary_1mgeg.typography__bold_1mgeg {
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
- } .typography__text_1mgeg.typography__component-secondary_1mgeg.typography__medium_1mgeg {
103
+ } .typography__text_4sc5p.typography__component-secondary_4sc5p.typography__medium_4sc5p {
103
104
  letter-spacing: 0.27px;
104
- } .typography__text_1mgeg.typography__bold_1mgeg {
105
+ } .typography__text_4sc5p.typography__bold_4sc5p {
105
106
  font-weight: 700;
106
- } .typography__text_1mgeg.typography__medium_1mgeg {
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":"typography__text_1mgeg","component":"typography__component_1mgeg","caps":"typography__caps_1mgeg","tagline":"typography__tagline_1mgeg","primary-large":"typography__primary-large_1mgeg","bold":"typography__bold_1mgeg","medium":"typography__medium_1mgeg","primary-medium":"typography__primary-medium_1mgeg","primary-small":"typography__primary-small_1mgeg","component-primary":"typography__component-primary_1mgeg","secondary-large":"typography__secondary-large_1mgeg","secondary-medium":"typography__secondary-medium_1mgeg","secondary-small":"typography__secondary-small_1mgeg","component-secondary":"typography__component-secondary_1mgeg"};
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;;;;"}
@@ -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,CAAA,MAAA,CAA8C,IAAI,EAA+C,mOAAA,CAAA;AAC7F,QAAA,2EAAA,CAAA,MAAA,CAAqB,QAAQ,CAAC,IAAI,CAAC,EAAA,IAAA,CAAI,CAC9C;AACL,CAAC;IAEY,IAAI,GAAG,UAAU,CAC1B,UACI,EAeC,EACD,GAAG,EAAA;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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,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,CAAA,MAAA,CAA8C,IAAI,EAA+C,mOAAA,CAAA;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OAAO,CAAC,CAAC,EAAA,EAC1B,SAAS,CAAA,EAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
@@ -2,85 +2,85 @@
2
2
  --gap-s: 12px;
3
3
  --gap-0: 0px;
4
4
  --gap-12: var(--gap-s);
5
- } .typography__transparent_1pgf7 {
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
- } .typography__paragraph_1pgf7 {
9
+ } .typography__paragraph_7scw6 {
10
10
  margin: var(--gap-0);
11
11
  padding: var(--gap-0);
12
- } .typography__paragraphWithMargins_1pgf7 {
12
+ } .typography__paragraphWithMargins_7scw6 {
13
13
  padding: var(--gap-0);
14
14
  margin: var(--text-paragraph-margin-bottom);
15
- } .typography__primary-large_1pgf7 {
15
+ } .typography__primary-large_7scw6 {
16
16
  font-size: 18px;
17
17
  line-height: 24px;
18
18
  font-weight: 400;
19
- } .typography__primary-medium_1pgf7 {
19
+ } .typography__primary-medium_7scw6 {
20
20
  font-size: 16px;
21
21
  line-height: 24px;
22
22
  font-weight: 400;
23
- } .typography__primary-small_1pgf7 {
23
+ } .typography__primary-small_7scw6 {
24
24
  font-size: 14px;
25
25
  line-height: 20px;
26
26
  font-weight: 400;
27
- } .typography__secondary-large_1pgf7 {
27
+ } .typography__secondary-large_7scw6 {
28
28
  font-size: 13px;
29
29
  line-height: 16px;
30
30
  font-weight: 400;
31
- } .typography__secondary-medium_1pgf7 {
31
+ } .typography__secondary-medium_7scw6 {
32
32
  font-size: 12px;
33
33
  line-height: 16px;
34
34
  font-weight: 400;
35
- } .typography__secondary-small_1pgf7 {
35
+ } .typography__secondary-small_7scw6 {
36
36
  font-size: 11px;
37
37
  line-height: 16px;
38
38
  font-weight: 400;
39
- } .typography__component_1pgf7 {
39
+ } .typography__component_7scw6 {
40
40
  font-size: 16px;
41
41
  line-height: 20px;
42
42
  font-weight: 400;
43
- } .typography__component-primary_1pgf7 {
43
+ } .typography__component-primary_7scw6 {
44
44
  font-size: 16px;
45
45
  line-height: 20px;
46
46
  font-weight: 400;
47
- } .typography__component-secondary_1pgf7 {
47
+ } .typography__component-secondary_7scw6 {
48
48
  font-size: 14px;
49
49
  line-height: 18px;
50
50
  font-weight: 400;
51
- } .typography__caps_1pgf7 {
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
- } .typography__tagline_1pgf7 {
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
- } .typography__bold_1pgf7 {
63
+ } .typography__bold_7scw6 {
64
64
  font-weight: bold;
65
- } .typography__medium_1pgf7 {
65
+ } .typography__medium_7scw6 {
66
66
  font-weight: 500;
67
- } .typography__regular_1pgf7 {
67
+ } .typography__regular_7scw6 {
68
68
  font-weight: normal;
69
- } .typography__monospace_1pgf7 {
69
+ } .typography__monospace_7scw6 {
70
70
  font-feature-settings: "tnum";
71
71
  font-variant-numeric: tabular-nums;
72
- } .typography__rowLimit1_1pgf7 {
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
- } .typography__rowLimit2_1pgf7 {
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
- } .typography__rowLimit3_1pgf7 {
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":"typography__transparent_1pgf7","paragraph":"typography__paragraph_1pgf7","paragraphWithMargins":"typography__paragraphWithMargins_1pgf7","primary-large":"typography__primary-large_1pgf7","primary-medium":"typography__primary-medium_1pgf7","primary-small":"typography__primary-small_1pgf7","secondary-large":"typography__secondary-large_1pgf7","secondary-medium":"typography__secondary-medium_1pgf7","secondary-small":"typography__secondary-small_1pgf7","component":"typography__component_1pgf7","component-primary":"typography__component-primary_1pgf7","component-secondary":"typography__component-secondary_1pgf7","caps":"typography__caps_1pgf7","tagline":"typography__tagline_1pgf7","bold":"typography__bold_1pgf7","medium":"typography__medium_1pgf7","regular":"typography__regular_1pgf7","monospace":"typography__monospace_1pgf7","rowLimit1":"typography__rowLimit1_1pgf7","rowLimit2":"typography__rowLimit2_1pgf7","rowLimit3":"typography__rowLimit3_1pgf7"};
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: 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto,
3
- 'Helvetica Neue', Helvetica, sans-serif;
4
- } .typography__alfasans-xlarge_neyv5 {
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-xlarge_neyv5.typography__systemCompat_neyv5 {
10
+ font-family: var(--font-family-alfasans);
11
+ } .typography__alfasans-xlarge_1xr2s.typography__systemCompat_1xr2s {
11
12
  line-height: 52px;
12
- } .typography__alfasans-large_neyv5 {
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-large_neyv5.typography__systemCompat_neyv5 {
19
- } .typography__alfasans-medium_neyv5 {
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-medium_neyv5.typography__systemCompat_neyv5 {
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-small_neyv5 {
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-small_neyv5.typography__systemCompat_neyv5 {
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-xsmall_neyv5 {
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-xsmall_neyv5.typography__systemCompat_neyv5 {
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-xlarge_neyv5","systemCompat":"typography__systemCompat_neyv5","alfasans-large":"typography__alfasans-large_neyv5","alfasans-medium":"typography__alfasans-medium_neyv5","alfasans-small":"typography__alfasans-small_neyv5","alfasans-xsmall":"typography__alfasans-xsmall_neyv5"};
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
@@ -1,28 +1,28 @@
1
1
  :root {
2
2
  --gap-0: 0px;
3
- } .typography__component_tr00h {
3
+ } .typography__component_1nmkd {
4
4
  margin: var(--gap-0);
5
- padding: var(--gap-0)
6
- } .typography__component_tr00h.typography__bold_tr00h {
5
+ padding: var(--gap-0);
6
+ } .typography__component_1nmkd.typography__bold_1nmkd {
7
7
  font-weight: bold;
8
- } .typography__component_tr00h.typography__semibold_tr00h {
8
+ } .typography__component_1nmkd.typography__semibold_1nmkd {
9
9
  font-weight: 600;
10
- } .typography__component_tr00h.typography__medium_tr00h {
10
+ } .typography__component_1nmkd.typography__medium_1nmkd {
11
11
  font-weight: 500;
12
- } .typography__component_tr00h.typography__regular_tr00h {
12
+ } .typography__component_1nmkd.typography__regular_1nmkd {
13
13
  font-weight: normal;
14
- } .typography__rowLimit1_tr00h {
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
- } .typography__rowLimit2_tr00h {
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
- } .typography__rowLimit3_tr00h {
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":"typography__component_tr00h","bold":"typography__bold_tr00h","semibold":"typography__semibold_tr00h","medium":"typography__medium_tr00h","regular":"typography__regular_tr00h","rowLimit1":"typography__rowLimit1_tr00h","rowLimit2":"typography__rowLimit2_tr00h","rowLimit3":"typography__rowLimit3_tr00h"};
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;;;;"}
@@ -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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AAA,MAAA,CAAA,IAAI,CAAE,CAAC,CAAC;AACjE,QAAA,UAAU,EAAA,UAAA;AACb,KAAA,CAAC;AAEF,IAAA,IAAI,QAAQ,EAAE;AACV,QAAA,OAAO,QAAQ;AAClB;AAED,IAAA,IAAI,IAAY;AAChB,IAAA,IAAI,YAAiC;AAErC,IAAA,IAAI,QAAQ,CAAC,QAAQ,CAAC,EAAE;AACpB,QAAA,IAAI,GAAG,QAAQ,CAAC,IAAI;AACpB,QAAA,YAAY,GAAG,QAAQ,CAAC,YAAY;AACvC;AAAM,SAAA;QACH,IAAI,GAAG,QAAQ;AAClB;AAED,IAAA,QACI,KAAC,CAAA,aAAA,CAAA,SAAS,aACN,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,SAAS,EAChB,SAAS,EACT,MAAM,CAAC,EAAG,CAAA,MAAA,CAAA,IAAI,cAAI,IAAI,CAAE,CAAC,EACzB,cAAc,IAAI,MAAM,CAAC,UAAW,CAAA,MAAA,CAAA,IAAI,CAAE,CAAC,EAC3C,MAAM,CAAC,MAAM,CAAC,EACd,KAAK,IAAI,MAAM,CAAC,KAAK,CAAC,GAAA,EAAA,GAAA,EAAA;AAElB,YAAA,EAAA,CAAC,MAAM,CAAC,UAAA,CAAA,MAAA,CAAW,QAAQ,CAAE,CAAC,IAAG,QAAQ;AACzC,YAAA,EAAA,CAAC,MAAM,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,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,CAA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