@alfalab/core-components-typography 6.0.14 → 6.0.15-alfasans

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (143) hide show
  1. package/colors.css +20 -20
  2. package/colors.js.map +1 -1
  3. package/colors.module.css.js +1 -1
  4. package/colors.module.css.js.map +1 -1
  5. package/component.js +8 -8
  6. package/component.js.map +1 -1
  7. package/cssm/colors.js.map +1 -1
  8. package/cssm/component.js +8 -8
  9. package/cssm/component.js.map +1 -1
  10. package/cssm/index.js +8 -8
  11. package/cssm/presets.js.map +1 -1
  12. package/cssm/text/component.js.map +1 -1
  13. package/cssm/text/index.module.css +40 -13
  14. package/cssm/title/component.d.ts +2 -8
  15. package/cssm/title/component.js +3 -6
  16. package/cssm/title/component.js.map +1 -1
  17. package/cssm/title/index.d.ts +1 -4
  18. package/cssm/title/index.js.map +1 -1
  19. package/cssm/title/index.module.css +23 -74
  20. package/cssm/title-mobile/component.d.ts +1 -4
  21. package/cssm/title-mobile/component.js.map +1 -1
  22. package/cssm/title-mobile/index.module.css +28 -45
  23. package/cssm/title-responsive/component.d.ts +1 -4
  24. package/cssm/title-responsive/component.js.map +1 -1
  25. package/esm/colors.css +20 -20
  26. package/esm/colors.js.map +1 -1
  27. package/esm/colors.module.css.js +1 -1
  28. package/esm/colors.module.css.js.map +1 -1
  29. package/esm/component.js.map +1 -1
  30. package/esm/index.js +1 -1
  31. package/esm/presets.js.map +1 -1
  32. package/esm/text/component.js.map +1 -1
  33. package/esm/text/index.css +82 -55
  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/common.css +7 -7
  37. package/esm/title/common.module.css.js +1 -1
  38. package/esm/title/common.module.css.js.map +1 -1
  39. package/esm/title/component.d.ts +2 -8
  40. package/esm/title/component.js +2 -5
  41. package/esm/title/component.js.map +1 -1
  42. package/esm/title/index.css +38 -89
  43. package/esm/title/index.d.ts +1 -4
  44. package/esm/title/index.js.map +1 -1
  45. package/esm/title/index.module.css.js +1 -1
  46. package/esm/title/index.module.css.js.map +1 -1
  47. package/esm/title-mobile/component.d.ts +1 -4
  48. package/esm/title-mobile/component.js.map +1 -1
  49. package/esm/title-mobile/index.css +53 -70
  50. package/esm/title-mobile/index.module.css.js +1 -1
  51. package/esm/title-mobile/index.module.css.js.map +1 -1
  52. package/esm/title-responsive/component.d.ts +1 -4
  53. package/esm/title-responsive/component.js.map +1 -1
  54. package/index.js +8 -8
  55. package/modern/colors.css +20 -20
  56. package/modern/colors.js.map +1 -1
  57. package/modern/colors.module.css.js +1 -1
  58. package/modern/colors.module.css.js.map +1 -1
  59. package/modern/component.js.map +1 -1
  60. package/modern/index.js +1 -1
  61. package/modern/presets.js.map +1 -1
  62. package/modern/text/component.js.map +1 -1
  63. package/modern/text/index.css +82 -55
  64. package/modern/text/index.module.css.js +1 -1
  65. package/modern/text/index.module.css.js.map +1 -1
  66. package/modern/title/common.css +7 -7
  67. package/modern/title/common.module.css.js +1 -1
  68. package/modern/title/common.module.css.js.map +1 -1
  69. package/modern/title/component.d.ts +2 -8
  70. package/modern/title/component.js +1 -4
  71. package/modern/title/component.js.map +1 -1
  72. package/modern/title/index.css +38 -89
  73. package/modern/title/index.d.ts +1 -4
  74. package/modern/title/index.js.map +1 -1
  75. package/modern/title/index.module.css.js +1 -1
  76. package/modern/title/index.module.css.js.map +1 -1
  77. package/modern/title-mobile/component.d.ts +1 -4
  78. package/modern/title-mobile/component.js.map +1 -1
  79. package/modern/title-mobile/index.css +53 -70
  80. package/modern/title-mobile/index.module.css.js +1 -1
  81. package/modern/title-mobile/index.module.css.js.map +1 -1
  82. package/modern/title-responsive/component.d.ts +1 -4
  83. package/modern/title-responsive/component.js.map +1 -1
  84. package/moderncssm/colors.js.map +1 -1
  85. package/moderncssm/component.js.map +1 -1
  86. package/moderncssm/index.js +1 -1
  87. package/moderncssm/presets.js.map +1 -1
  88. package/moderncssm/text/component.js.map +1 -1
  89. package/moderncssm/text/index.module.css +37 -11
  90. package/moderncssm/title/component.d.ts +2 -8
  91. package/moderncssm/title/component.js +1 -4
  92. package/moderncssm/title/component.js.map +1 -1
  93. package/moderncssm/title/index.d.ts +1 -4
  94. package/moderncssm/title/index.js.map +1 -1
  95. package/moderncssm/title/index.module.css +20 -79
  96. package/moderncssm/title-mobile/component.d.ts +1 -4
  97. package/moderncssm/title-mobile/component.js.map +1 -1
  98. package/moderncssm/title-mobile/index.module.css +25 -40
  99. package/moderncssm/title-responsive/component.d.ts +1 -4
  100. package/moderncssm/title-responsive/component.js.map +1 -1
  101. package/package.json +6 -6
  102. package/presets.js.map +1 -1
  103. package/src/text/index.module.css +5 -4
  104. package/src/title/component.tsx +3 -8
  105. package/src/title/index.module.css +0 -8
  106. package/text/component.js.map +1 -1
  107. package/text/index.css +82 -55
  108. package/text/index.module.css.js +1 -1
  109. package/text/index.module.css.js.map +1 -1
  110. package/title/common.css +7 -7
  111. package/title/common.module.css.js +1 -1
  112. package/title/common.module.css.js.map +1 -1
  113. package/title/component.d.ts +2 -8
  114. package/title/component.js +2 -5
  115. package/title/component.js.map +1 -1
  116. package/title/index.css +38 -89
  117. package/title/index.d.ts +1 -4
  118. package/title/index.js.map +1 -1
  119. package/title/index.module.css.js +1 -1
  120. package/title/index.module.css.js.map +1 -1
  121. package/title-mobile/component.d.ts +1 -4
  122. package/title-mobile/component.js.map +1 -1
  123. package/title-mobile/index.css +53 -70
  124. package/title-mobile/index.module.css.js +1 -1
  125. package/title-mobile/index.module.css.js.map +1 -1
  126. package/title-responsive/component.d.ts +1 -4
  127. package/title-responsive/component.js.map +1 -1
  128. package/cssm/title/utils.d.ts +0 -1
  129. package/cssm/title/utils.js +0 -16
  130. package/cssm/title/utils.js.map +0 -1
  131. package/esm/title/utils.d.ts +0 -1
  132. package/esm/title/utils.js +0 -12
  133. package/esm/title/utils.js.map +0 -1
  134. package/modern/title/utils.d.ts +0 -1
  135. package/modern/title/utils.js +0 -12
  136. package/modern/title/utils.js.map +0 -1
  137. package/moderncssm/title/utils.d.ts +0 -1
  138. package/moderncssm/title/utils.js +0 -12
  139. package/moderncssm/title/utils.js.map +0 -1
  140. package/src/title/utils.ts +0 -14
  141. package/title/utils.d.ts +0 -1
  142. package/title/utils.js +0 -16
  143. package/title/utils.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/title/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from './component';\n\nimport styles from './index.module.css';\n\nconst Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (\n <TitleBase {...props} styles={styles} ref={ref} platform='desktop' />\n));\n\nexport { Title };\nexport type { TitleProps };\n"],"names":["forwardRef","React","TitleBase","styles"],"mappings":";;;;;;;;;;;;;AAMA,IAAM,KAAK,GAAGA,gBAAU,CAAkD,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,QACtFC,sBAAC,CAAA,aAAA,CAAAC,mBAAS,qBAAK,KAAK,EAAA,EAAE,MAAM,EAAEC,YAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,SAAS,EAAG,CAAA,CAAA,EADiB,EAEzF;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/title/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from './component';\n\nimport styles from './index.module.css';\n\nconst Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (\n <TitleBase {...props} styles={styles} ref={ref} platform='desktop' />\n));\n\nexport { Title };\nexport type { TitleProps };\n"],"names":["forwardRef","React","TitleBase","styles"],"mappings":";;;;;;;;;;;;;AAMA,IAAM,KAAK,GAAGA,gBAAU,CAAkD,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,QACtFC,sBAAA,CAAA,aAAA,CAACC,mBAAS,qBAAK,KAAK,EAAA,EAAE,MAAM,EAAEC,YAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,SAAS,EAAA,CAAA,CAAG,EACxE,CAFyF,CAEzF;;"}
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"xlarge":"typography__xlarge_xd7yh","font":"typography__font_xd7yh","regular-xlarge":"typography__regular-xlarge_xd7yh","large":"typography__large_xd7yh","regular-large":"typography__regular-large_xd7yh","medium":"typography__medium_xd7yh","regular-medium":"typography__regular-medium_xd7yh","small":"typography__small_xd7yh","regular-small":"typography__regular-small_xd7yh","xsmall":"typography__xsmall_xd7yh","regular-xsmall":"typography__regular-xsmall_xd7yh","component":"typography__component_xd7yh","margins-xlarge":"typography__margins-xlarge_xd7yh","margins-large":"typography__margins-large_xd7yh","margins-medium":"typography__margins-medium_xd7yh","margins-small":"typography__margins-small_xd7yh","margins-xsmall":"typography__margins-xsmall_xd7yh"};
5
+ var styles = {"xlarge":"typography__xlarge_8713p","regular-xlarge":"typography__regular-xlarge_8713p","large":"typography__large_8713p","regular-large":"typography__regular-large_8713p","medium":"typography__medium_8713p","regular-medium":"typography__regular-medium_8713p","small":"typography__small_8713p","regular-small":"typography__regular-small_8713p","xsmall":"typography__xsmall_8713p","regular-xsmall":"typography__regular-xsmall_8713p","component":"typography__component_8713p","margins-xlarge":"typography__margins-xlarge_8713p","margins-large":"typography__margins-large_8713p","margins-medium":"typography__margins-medium_8713p","margins-small":"typography__margins-small_8713p","margins-xsmall":"typography__margins-xsmall_8713p"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;"}
@@ -4,10 +4,7 @@ export declare const TitleMobile: React.ForwardRefExoticComponent<Omit<React.HTM
4
4
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
5
5
  color?: import("..").Color;
6
6
  weight?: "regular" | "medium" | "bold" | "semibold";
7
- font?: "styrene" | "system" | "alfasans" | {
8
- font: "alfasans";
9
- systemCompat: boolean;
10
- };
7
+ font?: "styrene" | "system";
11
8
  defaultMargins?: boolean;
12
9
  className?: string;
13
10
  dataTestId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":["forwardRef","React","TitleBase","__assign","styles"],"mappings":";;;;;;;;;;;;;AAMO,IAAM,WAAW,GAAGA,gBAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,mBAAS,EAAKC,cAAA,CAAA,EAAA,EAAA,KAAK,EAAE,EAAA,MAAM,EAAEC,YAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,QAAQ,EAAA,CAAA,CAAG,CAApE,EAAoE;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":["forwardRef","React","TitleBase","__assign","styles"],"mappings":";;;;;;;;;;;;;AAMO,IAAM,WAAW,GAAGA,gBAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,mBAAS,EAAAC,cAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,MAAM,EAAEC,YAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,QAAQ,EAAA,CAAA,CAAG,CAAA,CAApE,CAAoE;;"}
@@ -5,129 +5,112 @@
5
5
  --gap-40: 40px;
6
6
  }
7
7
  :root {
8
- --font-family-system:
9
- system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, sans-serif;
10
- --font-family-styrene:
11
- 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
12
- sans-serif;
8
+ --font-family-alfasans:
9
+ 'Alfa Interface Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue',
10
+ Helvetica, sans-serif;
13
11
  }
14
- .typography__xlarge_k7ygb {
12
+ .typography__xlarge_ggxzg {
15
13
  font-size: 34px;
16
14
  line-height: 40px;
17
- font-weight: 600;
18
- font-family: var(--font-family-system);
15
+ font-weight: 500;
16
+ letter-spacing: -0.32px;
17
+ font-family: var(--font-family-alfasans);
19
18
  }
20
- .typography__xlarge_k7ygb.typography__font_k7ygb {
21
- font-weight: 500;
22
- font-feature-settings: 'ss01';
23
- font-family: var(--font-family-styrene);
19
+ .typography__xlarge_ggxzg.typography__font_ggxzg {
24
20
  }
25
- .typography__regular-xlarge_k7ygb {
21
+ .typography__regular-xlarge_ggxzg {
26
22
  font-size: 34px;
27
23
  line-height: 40px;
28
24
  font-weight: 400;
29
- font-family: var(--font-family-system);
25
+ letter-spacing: -1.36px;
26
+ font-family: var(--font-family-alfasans);
30
27
  }
31
- .typography__regular-xlarge_k7ygb.typography__system_k7ygb {
32
- font-feature-settings: 'ss01';
33
- font-family: var(--font-family-styrene);
28
+ .typography__regular-xlarge_ggxzg.typography__system_ggxzg {
34
29
  }
35
- .typography__large_k7ygb {
30
+ .typography__large_ggxzg {
36
31
  font-size: 30px;
37
32
  line-height: 36px;
38
- font-weight: 600;
39
- font-family: var(--font-family-system);
33
+ font-weight: 500;
34
+ letter-spacing: -0.25px;
35
+ font-family: var(--font-family-alfasans);
40
36
  }
41
- .typography__large_k7ygb.typography__font_k7ygb {
42
- font-weight: 500;
43
- font-feature-settings: 'ss01';
44
- font-family: var(--font-family-styrene);
37
+ .typography__large_ggxzg.typography__font_ggxzg {
45
38
  }
46
- .typography__regular-large_k7ygb {
39
+ .typography__regular-large_ggxzg {
47
40
  font-size: 30px;
48
41
  line-height: 36px;
49
42
  font-weight: 400;
50
- font-family: var(--font-family-system);
43
+ letter-spacing: -1.25px;
44
+ font-family: var(--font-family-alfasans);
51
45
  }
52
- .typography__regular-large_k7ygb.typography__system_k7ygb {
53
- font-feature-settings: 'ss01';
54
- font-family: var(--font-family-styrene);
46
+ .typography__regular-large_ggxzg.typography__system_ggxzg {
55
47
  }
56
- .typography__medium_k7ygb {
48
+ .typography__medium_ggxzg {
57
49
  font-size: 26px;
58
50
  line-height: 32px;
59
- font-weight: 600;
60
- font-family: var(--font-family-system);
51
+ font-weight: 500;
52
+ letter-spacing: -0.25px;
53
+ font-family: var(--font-family-alfasans);
61
54
  }
62
- .typography__medium_k7ygb.typography__font_k7ygb {
63
- font-weight: 500;
64
- font-feature-settings: 'ss01';
65
- font-family: var(--font-family-styrene);
55
+ .typography__medium_ggxzg.typography__font_ggxzg {
66
56
  }
67
- .typography__regular-medium_k7ygb {
57
+ .typography__regular-medium_ggxzg {
68
58
  font-size: 26px;
69
59
  line-height: 32px;
70
60
  font-weight: 400;
71
- font-family: var(--font-family-system);
61
+ letter-spacing: -1px;
62
+ font-family: var(--font-family-alfasans);
72
63
  }
73
- .typography__regular-medium_k7ygb.typography__system_k7ygb {
74
- font-feature-settings: 'ss01';
75
- font-family: var(--font-family-styrene);
64
+ .typography__regular-medium_ggxzg.typography__system_ggxzg {
76
65
  }
77
- .typography__small_k7ygb {
66
+ .typography__small_ggxzg {
78
67
  font-size: 20px;
79
68
  line-height: 28px;
80
- font-weight: 600;
81
- font-family: var(--font-family-system);
69
+ font-weight: 500;
70
+ letter-spacing: -0.15px;
71
+ font-family: var(--font-family-alfasans);
82
72
  }
83
- .typography__small_k7ygb.typography__font_k7ygb {
84
- font-weight: 500;
85
- font-feature-settings: 'ss01';
86
- font-family: var(--font-family-styrene);
73
+ .typography__small_ggxzg.typography__font_ggxzg {
87
74
  }
88
- .typography__regular-small_k7ygb {
75
+ .typography__regular-small_ggxzg {
89
76
  font-size: 20px;
90
77
  line-height: 28px;
91
78
  font-weight: 400;
92
- font-family: var(--font-family-system);
79
+ letter-spacing: -0.68px;
80
+ font-family: var(--font-family-alfasans);
93
81
  }
94
- .typography__regular-small_k7ygb.typography__system_k7ygb {
95
- font-feature-settings: 'ss01';
96
- font-family: var(--font-family-styrene);
82
+ .typography__regular-small_ggxzg.typography__system_ggxzg {
97
83
  }
98
- .typography__xsmall_k7ygb {
84
+ .typography__xsmall_ggxzg {
99
85
  font-size: 16px;
100
86
  line-height: 20px;
101
- font-weight: 600;
102
- font-family: var(--font-family-system);
87
+ font-weight: 500;
88
+ letter-spacing: 0.17px;
89
+ font-family: var(--font-family-alfasans);
103
90
  }
104
- .typography__xsmall_k7ygb.typography__font_k7ygb {
105
- font-weight: 500;
106
- font-feature-settings: 'ss01';
107
- font-family: var(--font-family-styrene);
91
+ .typography__xsmall_ggxzg.typography__font_ggxzg {
108
92
  }
109
- .typography__regular-xsmall_k7ygb {
93
+ .typography__regular-xsmall_ggxzg {
110
94
  font-size: 16px;
111
95
  line-height: 20px;
112
96
  font-weight: 400;
113
- font-family: var(--font-family-system);
97
+ letter-spacing: -0.24px;
98
+ font-family: var(--font-family-alfasans);
114
99
  }
115
- .typography__regular-xsmall_k7ygb.typography__system_k7ygb {
116
- font-feature-settings: 'ss01';
117
- font-family: var(--font-family-styrene);
100
+ .typography__regular-xsmall_ggxzg.typography__system_ggxzg {
118
101
  }
119
- .typography__component_k7ygb.typography__margins-xlarge_k7ygb {
102
+ .typography__component_ggxzg.typography__margins-xlarge_ggxzg {
120
103
  margin: var(--gap-0) var(--gap-0) var(--gap-24);
121
104
  }
122
- .typography__component_k7ygb.typography__margins-large_k7ygb {
105
+ .typography__component_ggxzg.typography__margins-large_ggxzg {
123
106
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
124
107
  }
125
- .typography__component_k7ygb.typography__margins-medium_k7ygb {
108
+ .typography__component_ggxzg.typography__margins-medium_ggxzg {
126
109
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
127
110
  }
128
- .typography__component_k7ygb.typography__margins-small_k7ygb {
111
+ .typography__component_ggxzg.typography__margins-small_ggxzg {
129
112
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
130
113
  }
131
- .typography__component_k7ygb .typography__margins-xsmall_k7ygb {
114
+ .typography__component_ggxzg .typography__margins-xsmall_ggxzg {
132
115
  margin: var(--gap-40) var(--gap-0) var(--gap-16);
133
116
  }
@@ -2,7 +2,7 @@
2
2
 
3
3
  require('./index.css');
4
4
 
5
- var styles = {"xlarge":"typography__xlarge_k7ygb","font":"typography__font_k7ygb","regular-xlarge":"typography__regular-xlarge_k7ygb","system":"typography__system_k7ygb","large":"typography__large_k7ygb","regular-large":"typography__regular-large_k7ygb","medium":"typography__medium_k7ygb","regular-medium":"typography__regular-medium_k7ygb","small":"typography__small_k7ygb","regular-small":"typography__regular-small_k7ygb","xsmall":"typography__xsmall_k7ygb","regular-xsmall":"typography__regular-xsmall_k7ygb","component":"typography__component_k7ygb","margins-xlarge":"typography__margins-xlarge_k7ygb","margins-large":"typography__margins-large_k7ygb","margins-medium":"typography__margins-medium_k7ygb","margins-small":"typography__margins-small_k7ygb","margins-xsmall":"typography__margins-xsmall_k7ygb"};
5
+ var styles = {"xlarge":"typography__xlarge_ggxzg","font":"typography__font_ggxzg","regular-xlarge":"typography__regular-xlarge_ggxzg","system":"typography__system_ggxzg","large":"typography__large_ggxzg","regular-large":"typography__regular-large_ggxzg","medium":"typography__medium_ggxzg","regular-medium":"typography__regular-medium_ggxzg","small":"typography__small_ggxzg","regular-small":"typography__regular-small_ggxzg","xsmall":"typography__xsmall_ggxzg","regular-xsmall":"typography__regular-xsmall_ggxzg","component":"typography__component_ggxzg","margins-xlarge":"typography__margins-xlarge_ggxzg","margins-large":"typography__margins-large_ggxzg","margins-medium":"typography__margins-medium_ggxzg","margins-small":"typography__margins-small_ggxzg","margins-xsmall":"typography__margins-xsmall_ggxzg"};
6
6
 
7
7
  module.exports = styles;
8
8
  //# sourceMappingURL=index.module.css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;"}
@@ -16,10 +16,7 @@ export declare const TitleResponsive: React.ForwardRefExoticComponent<Omit<React
16
16
  view?: "xlarge" | "large" | "medium" | "small" | "xsmall";
17
17
  color?: import("..").Color;
18
18
  weight?: "regular" | "medium" | "bold" | "semibold";
19
- font?: "styrene" | "system" | "alfasans" | {
20
- font: "alfasans";
21
- systemCompat: boolean;
22
- };
19
+ font?: "styrene" | "system";
23
20
  defaultMargins?: boolean;
24
21
  className?: string;
25
22
  dataTestId?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAlCC,YAAA,CAAA,EAAA,EAAA,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAGC,6BAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAGC,WAAK,GAAGC,qBAAW;IAEjD,OAAOC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAKC,cAAA,CAAA,EAAA,EAAA,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;;;"}
1
+ {"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAAC,YAAA,CAAA,EAAA,EAAlC,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAGC,6BAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAGC,WAAK,GAAGC,qBAAW;IAEjD,OAAOC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAAC,cAAA,CAAA,EAAA,EAAK,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;"}
@@ -1 +0,0 @@
1
- export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function getDefaultWeight(font, platform) {
6
- if (font === 'styrene' || font === 'alfasans') {
7
- return 'medium';
8
- }
9
- if (platform === 'desktop') {
10
- return 'bold';
11
- }
12
- return 'semibold';
13
- }
14
-
15
- exports.getDefaultWeight = getDefaultWeight;
16
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":";;;;AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -1 +0,0 @@
1
- export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -1,12 +0,0 @@
1
- function getDefaultWeight(font, platform) {
2
- if (font === 'styrene' || font === 'alfasans') {
3
- return 'medium';
4
- }
5
- if (platform === 'desktop') {
6
- return 'bold';
7
- }
8
- return 'semibold';
9
- }
10
-
11
- export { getDefaultWeight };
12
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -1 +0,0 @@
1
- export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -1,12 +0,0 @@
1
- function getDefaultWeight(font, platform) {
2
- if (font === 'styrene' || font === 'alfasans') {
3
- return 'medium';
4
- }
5
- if (platform === 'desktop') {
6
- return 'bold';
7
- }
8
- return 'semibold';
9
- }
10
-
11
- export { getDefaultWeight };
12
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -1 +0,0 @@
1
- export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -1,12 +0,0 @@
1
- function getDefaultWeight(font, platform) {
2
- if (font === 'styrene' || font === 'alfasans') {
3
- return 'medium';
4
- }
5
- if (platform === 'desktop') {
6
- return 'bold';
7
- }
8
- return 'semibold';
9
- }
10
-
11
- export { getDefaultWeight };
12
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":"AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -1,14 +0,0 @@
1
- export function getDefaultWeight(
2
- font: 'styrene' | 'system' | 'alfasans',
3
- platform: 'mobile' | 'desktop',
4
- ) {
5
- if (font === 'styrene' || font === 'alfasans') {
6
- return 'medium';
7
- }
8
-
9
- if (platform === 'desktop') {
10
- return 'bold';
11
- }
12
-
13
- return 'semibold';
14
- }
package/title/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
package/title/utils.js DELETED
@@ -1,16 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function getDefaultWeight(font, platform) {
6
- if (font === 'styrene' || font === 'alfasans') {
7
- return 'medium';
8
- }
9
- if (platform === 'desktop') {
10
- return 'bold';
11
- }
12
- return 'semibold';
13
- }
14
-
15
- exports.getDefaultWeight = getDefaultWeight;
16
- //# sourceMappingURL=utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.js","sources":["../src/title/utils.ts"],"sourcesContent":["export function getDefaultWeight(\n font: 'styrene' | 'system' | 'alfasans',\n platform: 'mobile' | 'desktop',\n) {\n if (font === 'styrene' || font === 'alfasans') {\n return 'medium';\n }\n\n if (platform === 'desktop') {\n return 'bold';\n }\n\n return 'semibold';\n}\n"],"names":[],"mappings":";;;;AAAgB,SAAA,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;;AAGnB,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;;AAGjB,IAAA,OAAO,UAAU;AACrB;;;;"}