@alfalab/core-components-typography 5.0.0 → 5.1.0-snapshot-92b8690

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.module.css.js +1 -1
  3. package/colors.module.css.js.map +1 -1
  4. package/dynamic-mixins/colors.css +62 -0
  5. package/dynamic-mixins/colors.d.ts +2 -0
  6. package/dynamic-mixins/colors.js +29 -0
  7. package/dynamic-mixins/colors.js.map +1 -0
  8. package/dynamic-mixins/colors.module.css.js +8 -0
  9. package/dynamic-mixins/colors.module.css.js.map +1 -0
  10. package/dynamic-mixins/component.d.ts +13 -0
  11. package/dynamic-mixins/component.js +22 -0
  12. package/dynamic-mixins/component.js.map +1 -0
  13. package/dynamic-mixins/index.d.ts +5 -0
  14. package/dynamic-mixins/index.js +20 -0
  15. package/dynamic-mixins/index.js.map +1 -0
  16. package/dynamic-mixins/presets.d.ts +17 -0
  17. package/dynamic-mixins/presets.js +24 -0
  18. package/dynamic-mixins/presets.js.map +1 -0
  19. package/dynamic-mixins/text/alfasans-index.css +108 -0
  20. package/dynamic-mixins/text/alfasans-index.module.css.js +8 -0
  21. package/dynamic-mixins/text/alfasans-index.module.css.js.map +1 -0
  22. package/dynamic-mixins/text/component.d.ts +66 -0
  23. package/dynamic-mixins/text/component.js +60 -0
  24. package/dynamic-mixins/text/component.js.map +1 -0
  25. package/dynamic-mixins/text/index.css +88 -0
  26. package/dynamic-mixins/text/index.d.ts +1 -0
  27. package/dynamic-mixins/text/index.js +10 -0
  28. package/dynamic-mixins/text/index.js.map +1 -0
  29. package/dynamic-mixins/text/index.module.css.js +8 -0
  30. package/dynamic-mixins/text/index.module.css.js.map +1 -0
  31. package/dynamic-mixins/title/alfasans-index.css +49 -0
  32. package/dynamic-mixins/title/alfasans-index.module.css.js +8 -0
  33. package/dynamic-mixins/title/alfasans-index.module.css.js.map +1 -0
  34. package/dynamic-mixins/title/common.css +30 -0
  35. package/dynamic-mixins/title/common.module.css.js +8 -0
  36. package/dynamic-mixins/title/common.module.css.js.map +1 -0
  37. package/dynamic-mixins/title/component.d.ts +126 -0
  38. package/dynamic-mixins/title/component.js +48 -0
  39. package/dynamic-mixins/title/component.js.map +1 -0
  40. package/dynamic-mixins/title/index.css +76 -0
  41. package/dynamic-mixins/title/index.d.ts +22 -0
  42. package/dynamic-mixins/title/index.js +20 -0
  43. package/dynamic-mixins/title/index.js.map +1 -0
  44. package/dynamic-mixins/title/index.module.css.js +8 -0
  45. package/dynamic-mixins/title/index.module.css.js.map +1 -0
  46. package/dynamic-mixins/title/utils.d.ts +1 -0
  47. package/dynamic-mixins/title/utils.js +16 -0
  48. package/dynamic-mixins/title/utils.js.map +1 -0
  49. package/dynamic-mixins/title-mobile/alfasans-index.css +39 -0
  50. package/dynamic-mixins/title-mobile/alfasans-index.module.css.js +8 -0
  51. package/dynamic-mixins/title-mobile/alfasans-index.module.css.js.map +1 -0
  52. package/dynamic-mixins/title-mobile/component.d.ts +19 -0
  53. package/dynamic-mixins/title-mobile/component.js +20 -0
  54. package/dynamic-mixins/title-mobile/component.js.map +1 -0
  55. package/dynamic-mixins/title-mobile/index.css +72 -0
  56. package/dynamic-mixins/title-mobile/index.d.ts +2 -0
  57. package/dynamic-mixins/title-mobile/index.js +10 -0
  58. package/dynamic-mixins/title-mobile/index.js.map +1 -0
  59. package/dynamic-mixins/title-mobile/index.module.css.js +8 -0
  60. package/dynamic-mixins/title-mobile/index.module.css.js.map +1 -0
  61. package/dynamic-mixins/title-responsive/component.d.ts +41 -0
  62. package/dynamic-mixins/title-responsive/component.js +23 -0
  63. package/dynamic-mixins/title-responsive/component.js.map +1 -0
  64. package/dynamic-mixins/title-responsive/index.d.ts +1 -0
  65. package/dynamic-mixins/title-responsive/index.js +10 -0
  66. package/dynamic-mixins/title-responsive/index.js.map +1 -0
  67. package/dynamic-mixins/types.d.ts +1 -0
  68. package/dynamic-mixins/types.js +3 -0
  69. package/dynamic-mixins/types.js.map +1 -0
  70. package/esm/colors.css +20 -20
  71. package/esm/colors.module.css.js +1 -1
  72. package/esm/colors.module.css.js.map +1 -1
  73. package/esm/text/alfasans-index.css +29 -29
  74. package/esm/text/alfasans-index.module.css.js +1 -1
  75. package/esm/text/index.css +21 -21
  76. package/esm/text/index.module.css.js +1 -1
  77. package/esm/text/index.module.css.js.map +1 -1
  78. package/esm/title/alfasans-index.css +10 -10
  79. package/esm/title/alfasans-index.module.css.js +1 -1
  80. package/esm/title/common.css +8 -8
  81. package/esm/title/common.module.css.js +1 -1
  82. package/esm/title/common.module.css.js.map +1 -1
  83. package/esm/title/index.css +16 -16
  84. package/esm/title/index.module.css.js +1 -1
  85. package/esm/title/index.module.css.js.map +1 -1
  86. package/esm/title-mobile/alfasans-index.css +10 -10
  87. package/esm/title-mobile/alfasans-index.module.css.js +1 -1
  88. package/esm/title-mobile/index.css +15 -15
  89. package/esm/title-mobile/index.module.css.js +1 -1
  90. package/esm/title-mobile/index.module.css.js.map +1 -1
  91. package/modern/colors.css +20 -20
  92. package/modern/colors.module.css.js +1 -1
  93. package/modern/colors.module.css.js.map +1 -1
  94. package/modern/text/alfasans-index.css +29 -29
  95. package/modern/text/alfasans-index.module.css.js +1 -1
  96. package/modern/text/index.css +21 -21
  97. package/modern/text/index.module.css.js +1 -1
  98. package/modern/text/index.module.css.js.map +1 -1
  99. package/modern/title/alfasans-index.css +10 -10
  100. package/modern/title/alfasans-index.module.css.js +1 -1
  101. package/modern/title/common.css +8 -8
  102. package/modern/title/common.module.css.js +1 -1
  103. package/modern/title/common.module.css.js.map +1 -1
  104. package/modern/title/index.css +16 -16
  105. package/modern/title/index.module.css.js +1 -1
  106. package/modern/title/index.module.css.js.map +1 -1
  107. package/modern/title-mobile/alfasans-index.css +10 -10
  108. package/modern/title-mobile/alfasans-index.module.css.js +1 -1
  109. package/modern/title-mobile/index.css +15 -15
  110. package/modern/title-mobile/index.module.css.js +1 -1
  111. package/modern/title-mobile/index.module.css.js.map +1 -1
  112. package/moderncssm/colors.module.css +2 -0
  113. package/moderncssm/text/alfasans-index.module.css +87 -32
  114. package/moderncssm/text/index.module.css +21 -0
  115. package/moderncssm/title/alfasans-index.module.css +20 -13
  116. package/moderncssm/title/common.module.css +2 -0
  117. package/moderncssm/title/index.module.css +15 -0
  118. package/moderncssm/title-mobile/alfasans-index.module.css +20 -13
  119. package/moderncssm/title-mobile/index.module.css +14 -0
  120. package/package.json +6 -6
  121. package/src/colors.module.css +1 -1
  122. package/src/text/index.module.css +1 -1
  123. package/src/title/common.module.css +1 -1
  124. package/src/title/index.module.css +1 -1
  125. package/src/title-mobile/index.module.css +1 -1
  126. package/text/alfasans-index.css +29 -29
  127. package/text/alfasans-index.module.css.js +1 -1
  128. package/text/index.css +21 -21
  129. package/text/index.module.css.js +1 -1
  130. package/text/index.module.css.js.map +1 -1
  131. package/title/alfasans-index.css +10 -10
  132. package/title/alfasans-index.module.css.js +1 -1
  133. package/title/common.css +8 -8
  134. package/title/common.module.css.js +1 -1
  135. package/title/common.module.css.js.map +1 -1
  136. package/title/index.css +16 -16
  137. package/title/index.module.css.js +1 -1
  138. package/title/index.module.css.js.map +1 -1
  139. package/title-mobile/alfasans-index.css +10 -10
  140. package/title-mobile/alfasans-index.module.css.js +1 -1
  141. package/title-mobile/index.css +15 -15
  142. package/title-mobile/index.module.css.js +1 -1
  143. package/title-mobile/index.module.css.js.map +1 -1
@@ -0,0 +1,88 @@
1
+ :root {
2
+ --gap-s: 12px;
3
+ --gap-0: 0px;
4
+ --gap-12: var(--gap-s);
5
+ } .typography__transparent_1bk44 {
6
+ opacity: 0;
7
+ } :root {
8
+ --text-paragraph-margin-bottom: var(--gap-0) var(--gap-0) var(--gap-12);
9
+ } .typography__paragraph_1bk44 {
10
+ margin: var(--gap-0);
11
+ padding: var(--gap-0);
12
+ } .typography__paragraphWithMargins_1bk44 {
13
+ padding: var(--gap-0);
14
+ margin: var(--text-paragraph-margin-bottom);
15
+ } .typography__primary-large_1bk44 {
16
+ font-size: 18px;
17
+ line-height: 24px;
18
+ font-weight: 400;
19
+ } .typography__primary-medium_1bk44 {
20
+ font-size: 16px;
21
+ line-height: 24px;
22
+ font-weight: 400;
23
+ } .typography__primary-small_1bk44 {
24
+ font-size: 14px;
25
+ line-height: 20px;
26
+ font-weight: 400;
27
+ } .typography__secondary-large_1bk44 {
28
+ font-size: 13px;
29
+ line-height: 16px;
30
+ font-weight: 400;
31
+ } .typography__secondary-medium_1bk44 {
32
+ font-size: 12px;
33
+ line-height: 16px;
34
+ font-weight: 400;
35
+ } .typography__secondary-small_1bk44 {
36
+ font-size: 11px;
37
+ line-height: 16px;
38
+ font-weight: 400;
39
+ } .typography__component_1bk44 {
40
+ font-size: 16px;
41
+ line-height: 20px;
42
+ font-weight: 400;
43
+ } .typography__component-primary_1bk44 {
44
+ font-size: 16px;
45
+ line-height: 20px;
46
+ font-weight: 400;
47
+ } .typography__component-secondary_1bk44 {
48
+ font-size: 14px;
49
+ line-height: 18px;
50
+ font-weight: 400;
51
+ } .typography__caps_1bk44 {
52
+ font-size: 12px;
53
+ line-height: 16px;
54
+ font-weight: 500;
55
+ letter-spacing: 1.25px;
56
+ text-transform: uppercase;
57
+ } .typography__tagline_1bk44 {
58
+ font-size: 12px;
59
+ line-height: 16px;
60
+ font-weight: 500;
61
+ letter-spacing: 1.25px;
62
+ text-transform: uppercase;
63
+ } .typography__bold_1bk44 {
64
+ font-weight: bold;
65
+ } .typography__medium_1bk44 {
66
+ font-weight: 500;
67
+ } .typography__regular_1bk44 {
68
+ font-weight: normal;
69
+ } .typography__monospace_1bk44 {
70
+ font-feature-settings: "tnum";
71
+ font-variant-numeric: tabular-nums;
72
+ } .typography__rowLimit1_1bk44 {
73
+ -webkit-line-clamp: 1;
74
+ display: -webkit-box;
75
+ -webkit-box-orient: vertical;
76
+ overflow: hidden;
77
+ word-break: break-all;
78
+ } .typography__rowLimit2_1bk44 {
79
+ -webkit-line-clamp: 2;
80
+ display: -webkit-box;
81
+ -webkit-box-orient: vertical;
82
+ overflow: hidden;
83
+ } .typography__rowLimit3_1bk44 {
84
+ -webkit-line-clamp: 3;
85
+ display: -webkit-box;
86
+ -webkit-box-orient: vertical;
87
+ overflow: hidden;
88
+ }
@@ -0,0 +1 @@
1
+ export * from './component';
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var component = require('./component.js');
6
+
7
+
8
+
9
+ exports.Text = component.Text;
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"transparent":"typography__transparent_1bk44","paragraph":"typography__paragraph_1bk44","paragraphWithMargins":"typography__paragraphWithMargins_1bk44","primary-large":"typography__primary-large_1bk44","primary-medium":"typography__primary-medium_1bk44","primary-small":"typography__primary-small_1bk44","secondary-large":"typography__secondary-large_1bk44","secondary-medium":"typography__secondary-medium_1bk44","secondary-small":"typography__secondary-small_1bk44","component":"typography__component_1bk44","component-primary":"typography__component-primary_1bk44","component-secondary":"typography__component-secondary_1bk44","caps":"typography__caps_1bk44","tagline":"typography__tagline_1bk44","bold":"typography__bold_1bk44","medium":"typography__medium_1bk44","regular":"typography__regular_1bk44","monospace":"typography__monospace_1bk44","rowLimit1":"typography__rowLimit1_1bk44","rowLimit2":"typography__rowLimit2_1bk44","rowLimit3":"typography__rowLimit3_1bk44"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/text/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-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;;;;"}
@@ -0,0 +1,49 @@
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_1acj3 {
5
+ font-size: 48px;
6
+ line-height: 64px;
7
+ font-weight: 700;
8
+ letter-spacing: 0.1px;
9
+ font-family: var(--font-family-alfasans)
10
+ } .typography__alfasans-xlarge_1acj3.typography__systemCompat_1acj3 {
11
+ line-height: 52px;
12
+ } .typography__alfasans-large_1acj3 {
13
+ font-size: 40px;
14
+ line-height: 48px;
15
+ font-weight: 700;
16
+ letter-spacing: 0.1px;
17
+ font-family: var(--font-family-alfasans)
18
+ } .typography__alfasans-large_1acj3.typography__systemCompat_1acj3 {
19
+ } .typography__alfasans-medium_1acj3 {
20
+ font-size: 32px;
21
+ line-height: 40px;
22
+ font-weight: 700;
23
+ letter-spacing: 0.3px;
24
+ font-family: var(--font-family-alfasans)
25
+ } .typography__alfasans-medium_1acj3.typography__systemCompat_1acj3 {
26
+ font-size: 30px;
27
+ line-height: 36px;
28
+ letter-spacing: 0.1px;
29
+ } .typography__alfasans-small_1acj3 {
30
+ font-size: 24px;
31
+ line-height: 32px;
32
+ font-weight: 700;
33
+ letter-spacing: 0.39px;
34
+ font-family: var(--font-family-alfasans)
35
+ } .typography__alfasans-small_1acj3.typography__systemCompat_1acj3 {
36
+ font-size: 22px;
37
+ line-height: 26px;
38
+ letter-spacing: 0.2px;
39
+ } .typography__alfasans-xsmall_1acj3 {
40
+ font-size: 20px;
41
+ line-height: 24px;
42
+ font-weight: 700;
43
+ letter-spacing: 0.33px;
44
+ font-family: var(--font-family-alfasans)
45
+ } .typography__alfasans-xsmall_1acj3.typography__systemCompat_1acj3 {
46
+ font-size: 18px;
47
+ line-height: 22px;
48
+ letter-spacing: 0.38px;
49
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./alfasans-index.css');
4
+
5
+ var alfasansStyles = {"alfasans-xlarge":"typography__alfasans-xlarge_1acj3","systemCompat":"typography__systemCompat_1acj3","alfasans-large":"typography__alfasans-large_1acj3","alfasans-medium":"typography__alfasans-medium_1acj3","alfasans-small":"typography__alfasans-small_1acj3","alfasans-xsmall":"typography__alfasans-xsmall_1acj3"};
6
+
7
+ module.exports = alfasansStyles;
8
+ //# sourceMappingURL=alfasans-index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alfasans-index.module.css.js","sources":["../src/title/alfasans-index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/alfasans-index.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .alfasans-$(view) {\n @mixin headline_$(view);\n\n &.systemCompat {\n @subtract-mixin headline-system_$(view), headline_$(view);\n }\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,qBAAe,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,cAAc,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;;;"}
@@ -0,0 +1,30 @@
1
+ :root {
2
+ --gap-0: 0px;
3
+ } .typography__component_14ocf {
4
+ margin: var(--gap-0);
5
+ padding: var(--gap-0)
6
+ } .typography__component_14ocf.typography__bold_14ocf {
7
+ font-weight: bold;
8
+ } .typography__component_14ocf.typography__semibold_14ocf {
9
+ font-weight: 600;
10
+ } .typography__component_14ocf.typography__medium_14ocf {
11
+ font-weight: 500;
12
+ } .typography__component_14ocf.typography__regular_14ocf {
13
+ font-weight: normal;
14
+ } .typography__rowLimit1_14ocf {
15
+ -webkit-line-clamp: 1;
16
+ display: -webkit-box;
17
+ -webkit-box-orient: vertical;
18
+ overflow: hidden;
19
+ word-break: break-all;
20
+ } .typography__rowLimit2_14ocf {
21
+ -webkit-line-clamp: 2;
22
+ display: -webkit-box;
23
+ -webkit-box-orient: vertical;
24
+ overflow: hidden;
25
+ } .typography__rowLimit3_14ocf {
26
+ -webkit-line-clamp: 3;
27
+ display: -webkit-box;
28
+ -webkit-box-orient: vertical;
29
+ overflow: hidden;
30
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./common.css');
4
+
5
+ var commonStyles = {"component":"typography__component_14ocf","bold":"typography__bold_14ocf","semibold":"typography__semibold_14ocf","medium":"typography__medium_14ocf","regular":"typography__regular_14ocf","rowLimit1":"typography__rowLimit1_14ocf","rowLimit2":"typography__rowLimit2_14ocf","rowLimit3":"typography__rowLimit3_14ocf"};
6
+
7
+ module.exports = commonStyles;
8
+ //# sourceMappingURL=common.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.module.css.js","sources":["../src/title/common.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-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;;;;"}
@@ -0,0 +1,126 @@
1
+ import React, { HTMLAttributes } from 'react';
2
+ import { type TextSkeletonProps } from '@alfalab/core-components-skeleton';
3
+ import { Color } from '../colors';
4
+ declare type NativeProps = HTMLAttributes<HTMLHeadingElement>;
5
+ export declare type TitleProps = Omit<NativeProps, 'color'> & {
6
+ /**
7
+ * HTML тег
8
+ */
9
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
10
+ /**
11
+ * [Вариант начертания](?path=/docs/guidelines-typography--page)
12
+ */
13
+ view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';
14
+ /**
15
+ * Цвет текста
16
+ */
17
+ color?: Color;
18
+ /**
19
+ * Толщина шрифта
20
+ */
21
+ weight?: 'regular' | 'medium' | 'bold' | 'semibold';
22
+ /**
23
+ * Шрифт текста
24
+ */
25
+ font?: 'styrene' | 'system' | 'alfasans' | {
26
+ font: 'alfasans';
27
+ systemCompat: boolean;
28
+ };
29
+ /**
30
+ * Добавляет отступы
31
+ */
32
+ defaultMargins?: boolean;
33
+ /**
34
+ * Css-класс для стилизации (native prop)
35
+ */
36
+ className?: string;
37
+ /**
38
+ * Id компонента для тестов
39
+ */
40
+ dataTestId?: string;
41
+ /**
42
+ * Контент (native prop)
43
+ */
44
+ children?: React.ReactNode;
45
+ /**
46
+ * Количество строк
47
+ */
48
+ rowLimit?: 1 | 2 | 3;
49
+ /**
50
+ * Показать скелетон
51
+ */
52
+ showSkeleton?: boolean;
53
+ /**
54
+ * Пропы для скелетона
55
+ */
56
+ skeletonProps?: TextSkeletonProps;
57
+ /**
58
+ * Значение по-умолчанию для хука useMatchMedia
59
+ */
60
+ defaultMatchMediaValue?: boolean | (() => boolean);
61
+ };
62
+ declare type PrivateProps = {
63
+ styles: {
64
+ [key: string]: string;
65
+ };
66
+ platform: 'mobile' | 'desktop';
67
+ };
68
+ declare type TitleElementType = HTMLHeadingElement | HTMLDivElement;
69
+ export declare const TitleBase: React.ForwardRefExoticComponent<Omit<NativeProps, "color"> & {
70
+ /**
71
+ * HTML тег
72
+ */
73
+ tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';
74
+ /**
75
+ * [Вариант начертания](?path=/docs/guidelines-typography--page)
76
+ */
77
+ view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
78
+ /**
79
+ * Цвет текста
80
+ */
81
+ color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | "static-positive" | undefined;
82
+ /**
83
+ * Толщина шрифта
84
+ */
85
+ weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
86
+ /**
87
+ * Шрифт текста
88
+ */
89
+ font?: "alfasans" | "styrene" | "system" | {
90
+ font: 'alfasans';
91
+ systemCompat: boolean;
92
+ } | undefined;
93
+ /**
94
+ * Добавляет отступы
95
+ */
96
+ defaultMargins?: boolean | undefined;
97
+ /**
98
+ * Css-класс для стилизации (native prop)
99
+ */
100
+ className?: string | undefined;
101
+ /**
102
+ * Id компонента для тестов
103
+ */
104
+ dataTestId?: string | undefined;
105
+ /**
106
+ * Контент (native prop)
107
+ */
108
+ children?: React.ReactNode;
109
+ /**
110
+ * Количество строк
111
+ */
112
+ rowLimit?: 1 | 2 | 3 | undefined;
113
+ /**
114
+ * Показать скелетон
115
+ */
116
+ showSkeleton?: boolean | undefined;
117
+ /**
118
+ * Пропы для скелетона
119
+ */
120
+ skeletonProps?: TextSkeletonProps | undefined;
121
+ /**
122
+ * Значение по-умолчанию для хука useMatchMedia
123
+ */
124
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
125
+ } & PrivateProps & React.RefAttributes<TitleElementType>>;
126
+ export {};
@@ -0,0 +1,48 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var React = require('react');
7
+ var mergeRefs = require('react-merge-refs');
8
+ var cn = require('classnames');
9
+ var dynamicMixins = require('@alfalab/core-components-shared/dynamic-mixins');
10
+ var dynamicMixins$1 = require('@alfalab/core-components-skeleton/dynamic-mixins');
11
+ var utils = require('./utils.js');
12
+ var colors_module = require('../colors.module.css.js');
13
+
14
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
15
+
16
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
17
+ var mergeRefs__default = /*#__PURE__*/_interopDefaultCompat(mergeRefs);
18
+ var cn__default = /*#__PURE__*/_interopDefaultCompat(cn);
19
+
20
+ var TitleBase = React.forwardRef(function (_a, ref) {
21
+ var _b;
22
+ var _c = _a.tag, Component = _c === void 0 ? 'div' : _c, _d = _a.view, view = _d === void 0 ? 'medium' : _d, _e = _a.font, fontProp = _e === void 0 ? 'styrene' : _e, platform = _a.platform, _f = _a.weight, weight = _f === void 0 ? utils.getDefaultWeight(dynamicMixins.isObject(fontProp) ? fontProp.font : fontProp, platform) : _f, _g = _a.defaultMargins, defaultMargins = _g === void 0 ? false : _g, color = _a.color, className = _a.className, dataTestId = _a.dataTestId, children = _a.children, rowLimit = _a.rowLimit, styles = _a.styles, skeletonProps = _a.skeletonProps, showSkeleton = _a.showSkeleton, restProps = tslib.__rest(_a, ["tag", "view", "font", "platform", "weight", "defaultMargins", "color", "className", "dataTestId", "children", "rowLimit", "styles", "skeletonProps", "showSkeleton"]);
23
+ var _h = dynamicMixins$1.useSkeleton(showSkeleton, skeletonProps), renderSkeleton = _h.renderSkeleton, textRef = _h.textRef;
24
+ var skeleton = renderSkeleton({
25
+ wrapperClassName: cn__default.default(defaultMargins && styles["margins-".concat(view)]),
26
+ dataTestId: dataTestId,
27
+ });
28
+ if (skeleton) {
29
+ return skeleton;
30
+ }
31
+ var font;
32
+ var systemCompat;
33
+ if (dynamicMixins.isObject(fontProp)) {
34
+ font = fontProp.font;
35
+ systemCompat = fontProp.systemCompat;
36
+ }
37
+ else {
38
+ font = fontProp;
39
+ }
40
+ return (React__default.default.createElement(Component, tslib.__assign({ className: cn__default.default(styles.component, className, styles["".concat(font, "-").concat(view)], defaultMargins && styles["margins-".concat(view)], styles[weight], color && colors_module[color], (_b = {},
41
+ _b[styles["rowLimit".concat(rowLimit)]] = rowLimit,
42
+ _b[styles.transparent] = showSkeleton,
43
+ _b[styles.systemCompat] = systemCompat,
44
+ _b)), "data-test-id": dataTestId, ref: mergeRefs__default.default([ref, textRef]) }, restProps), children));
45
+ });
46
+
47
+ exports.TitleBase = TitleBase;
48
+ //# sourceMappingURL=component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component.js","sources":["../../src/title/component.tsx"],"sourcesContent":["import React, { forwardRef, HTMLAttributes } from 'react';\nimport mergeRefs from 'react-merge-refs';\nimport cn from 'classnames';\n\nimport { isObject } from '@alfalab/core-components-shared';\nimport { type TextSkeletonProps, useSkeleton } from '@alfalab/core-components-skeleton';\n\nimport { Color } from '../colors';\n\nimport { getDefaultWeight } from './utils';\n\nimport colors from '../colors.module.css';\n\ntype NativeProps = HTMLAttributes<HTMLHeadingElement>;\n\nexport type TitleProps = Omit<NativeProps, 'color'> & {\n /**\n * HTML тег\n */\n tag: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'div';\n\n /**\n * [Вариант начертания](?path=/docs/guidelines-typography--page)\n */\n view?: 'xlarge' | 'large' | 'medium' | 'small' | 'xsmall';\n\n /**\n * Цвет текста\n */\n color?: Color;\n\n /**\n * Толщина шрифта\n */\n weight?: 'regular' | 'medium' | 'bold' | 'semibold';\n\n /**\n * Шрифт текста\n */\n font?: 'styrene' | 'system' | 'alfasans' | { font: 'alfasans'; systemCompat: boolean };\n\n /**\n * Добавляет отступы\n */\n defaultMargins?: boolean;\n\n /**\n * Css-класс для стилизации (native prop)\n */\n className?: string;\n\n /**\n * Id компонента для тестов\n */\n dataTestId?: string;\n\n /**\n * Контент (native prop)\n */\n children?: React.ReactNode;\n\n /**\n * Количество строк\n */\n rowLimit?: 1 | 2 | 3;\n\n /**\n * Показать скелетон\n */\n showSkeleton?: boolean;\n\n /**\n * Пропы для скелетона\n */\n skeletonProps?: TextSkeletonProps;\n\n /**\n * Значение по-умолчанию для хука useMatchMedia\n */\n defaultMatchMediaValue?: boolean | (() => boolean);\n};\n\ntype PrivateProps = {\n styles: {\n [key: string]: string;\n };\n platform: 'mobile' | 'desktop';\n};\n\ntype TitleElementType = HTMLHeadingElement | HTMLDivElement;\n\nexport const TitleBase = forwardRef<TitleElementType, TitleProps & PrivateProps>(\n (\n {\n tag: Component = 'div',\n view = 'medium',\n font: fontProp = 'styrene',\n platform,\n weight = getDefaultWeight(isObject(fontProp) ? fontProp.font : fontProp, platform),\n defaultMargins = false,\n color,\n className,\n dataTestId,\n children,\n rowLimit,\n styles,\n skeletonProps,\n showSkeleton,\n ...restProps\n },\n ref,\n ) => {\n const { renderSkeleton, textRef } = useSkeleton(showSkeleton, skeletonProps);\n\n const skeleton = renderSkeleton({\n wrapperClassName: cn(defaultMargins && styles[`margins-${view}`]),\n dataTestId,\n });\n\n if (skeleton) {\n return skeleton;\n }\n\n let font: string;\n let systemCompat: boolean | undefined;\n\n if (isObject(fontProp)) {\n font = fontProp.font;\n systemCompat = fontProp.systemCompat;\n } else {\n font = fontProp;\n }\n\n return (\n <Component\n className={cn(\n styles.component,\n className,\n styles[`${font}-${view}`],\n defaultMargins && styles[`margins-${view}`],\n styles[weight],\n color && colors[color],\n {\n [styles[`rowLimit${rowLimit}`]]: rowLimit,\n [styles.transparent]: showSkeleton,\n [styles.systemCompat]: systemCompat,\n },\n )}\n data-test-id={dataTestId}\n ref={mergeRefs([ref, textRef])}\n {...restProps}\n >\n {children}\n </Component>\n );\n },\n);\n"],"names":["forwardRef","getDefaultWeight","isObject","__rest","useSkeleton","cn","React","colors","mergeRefs"],"mappings":";;;;;;;;;;;;;;;;;;;IA2Fa,SAAS,GAAGA,gBAAU,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,mBAAGC,sBAAgB,CAACC,sBAAQ,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,IAAI,GAAG,QAAQ,EAAE,QAAQ,CAAC,GAAA,EAAA,EAClF,sBAAsB,EAAtB,cAAc,GAAG,EAAA,KAAA,MAAA,GAAA,KAAK,KAAA,EACtB,KAAK,WAAA,EACL,SAAS,eAAA,EACT,UAAU,GAAA,EAAA,CAAA,UAAA,EACV,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,QAAQ,GAAA,EAAA,CAAA,QAAA,EACR,MAAM,GAAA,EAAA,CAAA,MAAA,EACN,aAAa,GAAA,EAAA,CAAA,aAAA,EACb,YAAY,GAAA,EAAA,CAAA,YAAA,EACT,SAAS,GAAAC,YAAA,CAAA,EAAA,EAfhB,sKAgBC,CADe;AAIV,IAAA,IAAA,EAA8B,GAAAC,2BAAW,CAAC,YAAY,EAAE,aAAa,CAAC,EAApE,cAAc,GAAA,EAAA,CAAA,cAAA,EAAE,OAAO,aAA6C;IAE5E,IAAM,QAAQ,GAAG,cAAc,CAAC;QAC5B,gBAAgB,EAAEC,mBAAE,CAAC,cAAc,IAAI,MAAM,CAAC,UAAW,CAAA,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,IAAIH,sBAAQ,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,QACII,sBAAC,CAAA,aAAA,CAAA,SAAS,mBACN,SAAS,EAAED,mBAAE,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,IAAIE,aAAM,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,EAAEC,0BAAS,CAAC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,EAC1B,EAAA,SAAS,GAEZ,QAAQ,CACD;AAEpB,CAAC;;;;"}
@@ -0,0 +1,76 @@
1
+ :root {
2
+ --gap-m: 16px;
3
+ --gap-xl: 24px;
4
+ --gap-3xl: 40px;
5
+ --gap-4xl: 48px;
6
+ --gap-0: 0px;
7
+ --gap-16: var(--gap-m);
8
+ --gap-24: var(--gap-xl);
9
+ --gap-40: var(--gap-3xl);
10
+ --gap-48: var(--gap-4xl);
11
+ } :root {
12
+ --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
13
+ 'Helvetica Neue', Helvetica, sans-serif;
14
+ } .typography__transparent_10bjj {
15
+ opacity: 0;
16
+ } .typography__styrene-xlarge_10bjj {
17
+ font-size: 48px;
18
+ line-height: 64px;
19
+ font-weight: 500;
20
+ font-feature-settings: 'ss01';
21
+ font-family: var(--font-family-styrene);
22
+ } .typography__styrene-large_10bjj {
23
+ font-size: 40px;
24
+ line-height: 48px;
25
+ font-weight: 500;
26
+ font-feature-settings: 'ss01';
27
+ font-family: var(--font-family-styrene);
28
+ } .typography__styrene-medium_10bjj {
29
+ font-size: 32px;
30
+ line-height: 40px;
31
+ font-weight: 500;
32
+ font-feature-settings: 'ss01';
33
+ font-family: var(--font-family-styrene);
34
+ } .typography__styrene-small_10bjj {
35
+ font-size: 24px;
36
+ line-height: 32px;
37
+ font-weight: 500;
38
+ font-feature-settings: 'ss01';
39
+ font-family: var(--font-family-styrene);
40
+ } .typography__styrene-xsmall_10bjj {
41
+ font-size: 20px;
42
+ line-height: 24px;
43
+ font-weight: 500;
44
+ font-feature-settings: 'ss01';
45
+ font-family: var(--font-family-styrene);
46
+ } .typography__system-xlarge_10bjj {
47
+ font-size: 48px;
48
+ line-height: 52px;
49
+ font-weight: 700;
50
+ } .typography__system-large_10bjj {
51
+ font-size: 40px;
52
+ line-height: 48px;
53
+ font-weight: 700;
54
+ } .typography__system-medium_10bjj {
55
+ font-size: 30px;
56
+ line-height: 36px;
57
+ font-weight: 700;
58
+ } .typography__system-small_10bjj {
59
+ font-size: 22px;
60
+ line-height: 26px;
61
+ font-weight: 700;
62
+ } .typography__system-xsmall_10bjj {
63
+ font-size: 18px;
64
+ line-height: 22px;
65
+ font-weight: 700;
66
+ } .typography__margins-xlarge_10bjj {
67
+ margin: var(--gap-0) var(--gap-0) var(--gap-24);
68
+ } .typography__margins-large_10bjj {
69
+ margin: var(--gap-48) var(--gap-0) var(--gap-24);
70
+ } .typography__margins-medium_10bjj {
71
+ margin: var(--gap-48) var(--gap-0) var(--gap-24);
72
+ } .typography__margins-small_10bjj {
73
+ margin: var(--gap-40) var(--gap-0) var(--gap-16);
74
+ } .typography__margins-xsmall_10bjj {
75
+ margin: var(--gap-40) var(--gap-0) var(--gap-16);
76
+ }
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ import { TitleProps } from './component';
3
+ declare const Title: React.ForwardRefExoticComponent<Omit<React.HTMLAttributes<HTMLHeadingElement>, "color"> & {
4
+ tag: "div" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
5
+ view?: "medium" | "small" | "xlarge" | "large" | "xsmall" | undefined;
6
+ color?: "tertiary" | "disabled" | "accent" | "primary" | "attention" | "positive" | "secondary" | "tertiary-inverted" | "primary-inverted" | "secondary-inverted" | "link" | "negative" | "static-primary-light" | "static-secondary-light" | "static-tertiary-light" | "static-primary-dark" | "static-secondary-dark" | "static-tertiary-dark" | "static-accent" | "static-positive" | undefined;
7
+ weight?: "regular" | "medium" | "bold" | "semibold" | undefined;
8
+ font?: "alfasans" | "styrene" | "system" | {
9
+ font: "alfasans";
10
+ systemCompat: boolean;
11
+ } | undefined;
12
+ defaultMargins?: boolean | undefined;
13
+ className?: string | undefined;
14
+ dataTestId?: string | undefined;
15
+ children?: React.ReactNode;
16
+ rowLimit?: 1 | 2 | 3 | undefined;
17
+ showSkeleton?: boolean | undefined;
18
+ skeletonProps?: import("@alfalab/core-components-skeleton").TextSkeletonProps | undefined;
19
+ defaultMatchMediaValue?: boolean | (() => boolean) | undefined;
20
+ } & React.RefAttributes<HTMLDivElement | HTMLHeadingElement>>;
21
+ export { Title };
22
+ export type { TitleProps };
@@ -0,0 +1,20 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib = require('tslib');
6
+ var React = require('react');
7
+ var component = require('./component.js');
8
+ var alfasansIndex_module = require('./alfasans-index.module.css.js');
9
+ var common_module = require('./common.module.css.js');
10
+ var index_module = require('./index.module.css.js');
11
+
12
+ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
13
+
14
+ var React__default = /*#__PURE__*/_interopDefaultCompat(React);
15
+
16
+ var allStyles = tslib.__assign(tslib.__assign(tslib.__assign({}, common_module), index_module), alfasansIndex_module);
17
+ var Title = React.forwardRef(function (props, ref) { return (React__default.default.createElement(component.TitleBase, tslib.__assign({}, props, { styles: allStyles, ref: ref, platform: 'desktop' }))); });
18
+
19
+ exports.Title = Title;
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../src/title/index.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, TitleProps } from './component';\n\nimport alfasansStyles from './alfasans-index.module.css';\nimport commonStyles from './common.module.css';\nimport styles from './index.module.css';\n\nconst allStyles =\n process.env.CORE_COMPONENTS_ENV === 'test'\n ? commonStyles\n : { ...commonStyles, ...styles, ...alfasansStyles };\n\nconst Title = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>((props, ref) => (\n <TitleBase {...props} styles={allStyles} ref={ref} platform='desktop' />\n));\n\nexport { Title };\nexport type { TitleProps };\n"],"names":["commonStyles","styles","alfasansStyles","forwardRef","React","TitleBase"],"mappings":";;;;;;;;;;;;;;;AAQA,IAAM,SAAS,oDAGAA,aAAY,CAAA,EAAKC,YAAM,CAAK,EAAAC,oBAAc,CAAE;AAE3D,IAAM,KAAK,GAAGC,gBAAU,CAAkD,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,QACtFC,sBAAC,CAAA,aAAA,CAAAC,mBAAS,qBAAK,KAAK,EAAA,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,SAAS,EAAG,CAAA,CAAA,EADc,EAEzF;;;;"}
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./index.css');
4
+
5
+ var styles = {"transparent":"typography__transparent_10bjj","styrene-xlarge":"typography__styrene-xlarge_10bjj","styrene-large":"typography__styrene-large_10bjj","styrene-medium":"typography__styrene-medium_10bjj","styrene-small":"typography__styrene-small_10bjj","styrene-xsmall":"typography__styrene-xsmall_10bjj","system-xlarge":"typography__system-xlarge_10bjj","system-large":"typography__system-large_10bjj","system-medium":"typography__system-medium_10bjj","system-small":"typography__system-small_10bjj","system-xsmall":"typography__system-xsmall_10bjj","margins-xlarge":"typography__margins-xlarge_10bjj","margins-large":"typography__margins-large_10bjj","margins-medium":"typography__margins-medium_10bjj","margins-small":"typography__margins-small_10bjj","margins-xsmall":"typography__margins-xsmall_10bjj"};
6
+
7
+ module.exports = styles;
8
+ //# sourceMappingURL=index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/no-dynamic-mixins-index.css';\n@import '../margins.module.css';\n@import '../common.module.css';\n\n.styrene-xlarge {\n @mixin headline_xlarge;\n}\n\n.styrene-large {\n @mixin headline_large;\n}\n\n.styrene-medium {\n @mixin headline_medium;\n}\n\n.styrene-small {\n @mixin headline_small;\n}\n\n.styrene-xsmall {\n @mixin headline_xsmall;\n}\n\n.system-xlarge {\n @mixin headline-system_xlarge;\n}\n\n.system-large {\n @mixin headline-system_large;\n}\n\n.system-medium {\n @mixin headline-system_medium;\n}\n\n.system-small {\n @mixin headline-system_small;\n}\n\n.system-xsmall {\n @mixin headline-system_xsmall;\n}\n\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"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,aAAa,CAAC,+BAA+B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,CAAC,cAAc,CAAC,gCAAgC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;;;"}
@@ -0,0 +1 @@
1
+ export declare function getDefaultWeight(font: 'styrene' | 'system' | 'alfasans', platform: 'mobile' | 'desktop'): "medium" | "bold" | "semibold";
@@ -0,0 +1,16 @@
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
@@ -0,0 +1 @@
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;AAE9B,IAAA,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;AAClB;IAED,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;AAChB;AAED,IAAA,OAAO,UAAU;AACrB;;;;"}
@@ -0,0 +1,39 @@
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_t8ogv {
5
+ font-size: 34px;
6
+ line-height: 40px;
7
+ font-weight: 500;
8
+ letter-spacing: -0.32px;
9
+ font-family: var(--font-family-alfasans)
10
+ } .typography__alfasans-xlarge_t8ogv.typography__systemCompat_t8ogv {
11
+ } .typography__alfasans-large_t8ogv {
12
+ font-size: 30px;
13
+ line-height: 36px;
14
+ font-weight: 500;
15
+ letter-spacing: -0.25px;
16
+ font-family: var(--font-family-alfasans)
17
+ } .typography__alfasans-large_t8ogv.typography__systemCompat_t8ogv {
18
+ } .typography__alfasans-medium_t8ogv {
19
+ font-size: 26px;
20
+ line-height: 32px;
21
+ font-weight: 500;
22
+ letter-spacing: -0.25px;
23
+ font-family: var(--font-family-alfasans)
24
+ } .typography__alfasans-medium_t8ogv.typography__systemCompat_t8ogv {
25
+ } .typography__alfasans-small_t8ogv {
26
+ font-size: 20px;
27
+ line-height: 28px;
28
+ font-weight: 500;
29
+ letter-spacing: -0.15px;
30
+ font-family: var(--font-family-alfasans)
31
+ } .typography__alfasans-small_t8ogv.typography__systemCompat_t8ogv {
32
+ } .typography__alfasans-xsmall_t8ogv {
33
+ font-size: 16px;
34
+ line-height: 20px;
35
+ font-weight: 500;
36
+ letter-spacing: 0.17px;
37
+ font-family: var(--font-family-alfasans)
38
+ } .typography__alfasans-xsmall_t8ogv.typography__systemCompat_t8ogv {
39
+ }
@@ -0,0 +1,8 @@
1
+ 'use strict';
2
+
3
+ require('./alfasans-index.css');
4
+
5
+ var alfasansStyles = {"alfasans-xlarge":"typography__alfasans-xlarge_t8ogv","systemCompat":"typography__systemCompat_t8ogv","alfasans-large":"typography__alfasans-large_t8ogv","alfasans-medium":"typography__alfasans-medium_t8ogv","alfasans-small":"typography__alfasans-small_t8ogv","alfasans-xsmall":"typography__alfasans-xsmall_t8ogv"};
6
+
7
+ module.exports = alfasansStyles;
8
+ //# sourceMappingURL=alfasans-index.module.css.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alfasans-index.module.css.js","sources":["../src/title-mobile/alfasans-index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/alfasans-index.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .alfasans-$(view) {\n @mixin headline-mobile_$(view);\n\n &.systemCompat {\n @subtract-mixin headline-system-mobile_$(view), headline-mobile_$(view);\n }\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,qBAAe,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,cAAc,CAAC,gCAAgC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,iBAAiB,CAAC,mCAAmC,CAAC;;;;"}