@alfalab/core-components-typography 2.3.0 → 2.5.0

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 (94) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/dist/colors.css +13 -13
  3. package/dist/{colors.module-35c48cf7.d.ts → colors.module-14ced997.d.ts} +0 -0
  4. package/dist/{colors.module-35c48cf7.js → colors.module-14ced997.js} +1 -1
  5. package/dist/common.module-01d90d2d.js +6 -0
  6. package/dist/component.d.ts +2 -0
  7. package/dist/component.js +4 -2
  8. package/dist/cssm/component.d.ts +2 -0
  9. package/dist/cssm/component.js +3 -0
  10. package/dist/cssm/index.d.ts +1 -0
  11. package/dist/cssm/index.js +4 -0
  12. package/dist/cssm/presets.d.ts +18 -0
  13. package/dist/cssm/presets.js +23 -0
  14. package/dist/cssm/title-mobile/component.d.ts +5 -0
  15. package/dist/cssm/title-mobile/component.js +27 -0
  16. package/dist/cssm/title-mobile/index.d.ts +1 -0
  17. package/dist/cssm/title-mobile/index.js +16 -0
  18. package/dist/cssm/title-mobile/index.module.css +81 -0
  19. package/dist/cssm/title-responsive/index.module.css +7 -47
  20. package/dist/esm/colors.css +13 -13
  21. package/dist/esm/{colors.module-2c206829.d.ts → colors.module-fef377ec.d.ts} +0 -0
  22. package/dist/esm/{colors.module-2c206829.js → colors.module-fef377ec.js} +1 -1
  23. package/dist/esm/common.module-f9c1ed2c.js +4 -0
  24. package/dist/esm/component.d.ts +2 -0
  25. package/dist/esm/component.js +4 -2
  26. package/dist/esm/index.d.ts +1 -0
  27. package/dist/esm/index.js +4 -2
  28. package/dist/esm/presets.d.ts +18 -0
  29. package/dist/esm/presets.js +19 -0
  30. package/dist/esm/text/component.js +2 -2
  31. package/dist/esm/text/index.css +14 -14
  32. package/dist/esm/text/index.js +1 -1
  33. package/dist/esm/title/common.css +5 -5
  34. package/dist/esm/title/component.js +1 -1
  35. package/dist/esm/title/index.css +19 -19
  36. package/dist/esm/title/index.js +3 -3
  37. package/dist/esm/title-mobile/component.d.ts +5 -0
  38. package/dist/esm/title-mobile/component.js +18 -0
  39. package/dist/esm/title-mobile/index.css +82 -0
  40. package/dist/esm/title-mobile/index.d.ts +1 -0
  41. package/dist/esm/title-mobile/index.js +6 -0
  42. package/dist/esm/title-responsive/component.js +3 -3
  43. package/dist/esm/title-responsive/index.css +48 -88
  44. package/dist/esm/title-responsive/index.js +2 -2
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +5 -2
  47. package/dist/modern/colors.css +13 -13
  48. package/dist/modern/colors.module-b724016d.js +4 -0
  49. package/dist/modern/common.module-f9c1ed2c.js +4 -0
  50. package/dist/modern/component.d.ts +2 -0
  51. package/dist/modern/component.js +4 -2
  52. package/dist/modern/index.d.ts +1 -0
  53. package/dist/modern/index.js +4 -2
  54. package/dist/modern/presets.d.ts +18 -0
  55. package/dist/modern/presets.js +19 -0
  56. package/dist/modern/text/component.js +2 -2
  57. package/dist/modern/text/index.css +14 -14
  58. package/dist/modern/text/index.js +1 -1
  59. package/dist/modern/title/common.css +5 -5
  60. package/dist/modern/title/component.js +1 -1
  61. package/dist/modern/title/index.css +19 -19
  62. package/dist/modern/title/index.js +3 -3
  63. package/dist/modern/title-mobile/component.d.ts +5 -0
  64. package/dist/modern/title-mobile/component.js +18 -0
  65. package/dist/modern/title-mobile/index.css +82 -0
  66. package/dist/modern/title-mobile/index.d.ts +1 -0
  67. package/dist/modern/title-mobile/index.js +6 -0
  68. package/dist/modern/title-responsive/component.js +3 -3
  69. package/dist/modern/title-responsive/index.css +48 -88
  70. package/dist/modern/title-responsive/index.js +2 -2
  71. package/dist/presets.d.ts +18 -0
  72. package/dist/presets.js +23 -0
  73. package/dist/text/component.d.ts +2 -2
  74. package/dist/text/component.js +2 -2
  75. package/dist/text/index.css +14 -14
  76. package/dist/text/index.js +1 -1
  77. package/dist/title/common.css +5 -5
  78. package/dist/title/component.d.ts +3 -3
  79. package/dist/title/component.js +1 -1
  80. package/dist/title/index.css +19 -19
  81. package/dist/title/index.js +3 -3
  82. package/dist/title-mobile/component.d.ts +5 -0
  83. package/dist/title-mobile/component.js +26 -0
  84. package/dist/title-mobile/index.css +82 -0
  85. package/dist/title-mobile/index.d.ts +1 -0
  86. package/dist/title-mobile/index.js +14 -0
  87. package/dist/title-responsive/component.js +3 -3
  88. package/dist/title-responsive/index.css +48 -88
  89. package/dist/title-responsive/index.js +2 -2
  90. package/package.json +2 -2
  91. package/dist/common.module-8f8baeca.js +0 -6
  92. package/dist/esm/common.module-c6bc7a27.js +0 -4
  93. package/dist/modern/colors.module-148ba739.js +0 -4
  94. package/dist/modern/common.module-c6bc7a27.js +0 -4
package/CHANGELOG.md CHANGED
@@ -3,6 +3,40 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.5.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.4.1...@alfalab/core-components-typography@2.5.0) (2022-03-30)
7
+
8
+
9
+ ### Features
10
+
11
+ * **list:** added list & typography presets ([#1047](https://github.com/alfa-laboratory/core-components/issues/1047)) ([67b6a77](https://github.com/alfa-laboratory/core-components/commit/67b6a77d1327b090b010eb061f83a2e6a0cb67b9))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.4.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.4.0...@alfalab/core-components-typography@2.4.1) (2022-03-03)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **typography:** changed styrene font styles for title responsive ([#1017](https://github.com/alfa-laboratory/core-components/issues/1017)) ([540b0b5](https://github.com/alfa-laboratory/core-components/commit/540b0b59cf99a4cee0798f50b94e6449be4aa3c6))
23
+
24
+
25
+
26
+
27
+
28
+ # [2.4.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.3.0...@alfalab/core-components-typography@2.4.0) (2022-03-01)
29
+
30
+
31
+ ### Features
32
+
33
+ * **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/alfa-laboratory/core-components/issues/1003)) ([9b03cf9](https://github.com/alfa-laboratory/core-components/commit/9b03cf90422b05cc927ed98959708430812d1a50))
34
+ * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
35
+
36
+
37
+
38
+
39
+
6
40
  # [2.3.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.2.0...@alfalab/core-components-typography@2.3.0) (2022-01-17)
7
41
 
8
42
 
package/dist/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: 7rmvg */
1
+ /* hash: 1eoer */
2
2
  :root {
3
3
  --color-light-text-accent: #ef3124;
4
4
  --color-light-text-attention: #de6a00;
@@ -22,39 +22,39 @@
22
22
  /* Hard up */
23
23
  }
24
24
  /* colors */
25
- .typography__tertiary_1t8fi {
25
+ .typography__tertiary_16enl {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1t8fi {
28
+ .typography__disabled_16enl {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1t8fi {
31
+ .typography__accent_16enl {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1t8fi {
34
+ .typography__primary_16enl {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1t8fi {
37
+ .typography__attention_16enl {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1t8fi {
40
+ .typography__positive_16enl {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1t8fi {
43
+ .typography__secondary_16enl {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1t8fi {
46
+ .typography__tertiary-inverted_16enl {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1t8fi {
49
+ .typography__primary-inverted_16enl {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1t8fi {
52
+ .typography__secondary-inverted_16enl {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1t8fi {
55
+ .typography__link_16enl {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1t8fi {
58
+ .typography__negative_16enl {
59
59
  color: var(--color-light-text-negative);
60
60
  }
@@ -39,7 +39,7 @@ function __rest(s, e) {
39
39
  return t;
40
40
  }
41
41
 
42
- var colors = {"tertiary":"typography__tertiary_1t8fi","disabled":"typography__disabled_1t8fi","accent":"typography__accent_1t8fi","primary":"typography__primary_1t8fi","attention":"typography__attention_1t8fi","positive":"typography__positive_1t8fi","secondary":"typography__secondary_1t8fi","tertiary-inverted":"typography__tertiary-inverted_1t8fi","primary-inverted":"typography__primary-inverted_1t8fi","secondary-inverted":"typography__secondary-inverted_1t8fi","link":"typography__link_1t8fi","negative":"typography__negative_1t8fi"};
42
+ var colors = {"tertiary":"typography__tertiary_16enl","disabled":"typography__disabled_16enl","accent":"typography__accent_16enl","primary":"typography__primary_16enl","attention":"typography__attention_16enl","positive":"typography__positive_16enl","secondary":"typography__secondary_16enl","tertiary-inverted":"typography__tertiary-inverted_16enl","primary-inverted":"typography__primary-inverted_16enl","secondary-inverted":"typography__secondary-inverted_16enl","link":"typography__link_16enl","negative":"typography__negative_16enl"};
43
43
  require('./colors.css')
44
44
 
45
45
  exports.__rest = __rest;
@@ -0,0 +1,6 @@
1
+ 'use strict';
2
+
3
+ var commonStyles = {"component":"typography__component_1ns6m","bold":"typography__bold_1ns6m","medium":"typography__medium_1ns6m","regular":"typography__regular_1ns6m"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
@@ -1,9 +1,11 @@
1
1
  import { FC } from 'react';
2
2
  import { TitleProps } from "./title/index";
3
3
  import { TextProps } from "./text/index";
4
+ import { TitleMobileProps } from "./title-mobile/index";
4
5
  declare const Typography: {
5
6
  Title: FC<TitleProps>;
6
7
  Text: FC<TextProps>;
7
8
  TitleResponsive: FC<TitleProps>;
9
+ TitleMobile: FC<TitleMobileProps>;
8
10
  };
9
11
  export { Typography };
package/dist/component.js CHANGED
@@ -2,19 +2,21 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./colors.module-35c48cf7.js');
5
+ require('./colors.module-14ced997.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('./title/component.js');
9
- require('./common.module-8f8baeca.js');
9
+ require('./common.module-01d90d2d.js');
10
10
  var title_index = require('./title/index.js');
11
11
  var text_component = require('./text/component.js');
12
12
  var titleResponsive_component = require('./title-responsive/component.js');
13
+ var titleMobile_component = require('./title-mobile/component.js');
13
14
 
14
15
  var Typography = {
15
16
  Title: title_index.Title,
16
17
  Text: text_component.Text,
17
18
  TitleResponsive: titleResponsive_component.TitleResponsive,
19
+ TitleMobile: titleMobile_component.TitleMobile,
18
20
  };
19
21
 
20
22
  exports.Typography = Typography;
@@ -1,9 +1,11 @@
1
1
  import { FC } from 'react';
2
2
  import { TitleProps } from "./title/index";
3
3
  import { TextProps } from "./text/index";
4
+ import { TitleMobileProps } from "./title-mobile/index";
4
5
  declare const Typography: {
5
6
  Title: FC<TitleProps>;
6
7
  Text: FC<TextProps>;
7
8
  TitleResponsive: FC<TitleProps>;
9
+ TitleMobile: FC<TitleMobileProps>;
8
10
  };
9
11
  export { Typography };
@@ -14,11 +14,14 @@ require('./text/index.module.css');
14
14
  var text_component = require('./text/component.js');
15
15
  require('./title-responsive/index.module.css');
16
16
  var titleResponsive_component = require('./title-responsive/component.js');
17
+ require('./title-mobile/index.module.css');
18
+ var titleMobile_component = require('./title-mobile/component.js');
17
19
 
18
20
  var Typography = {
19
21
  Title: title_index.Title,
20
22
  Text: text_component.Text,
21
23
  TitleResponsive: titleResponsive_component.TitleResponsive,
24
+ TitleMobile: titleMobile_component.TitleMobile,
22
25
  };
23
26
 
24
27
  exports.Typography = Typography;
@@ -1,3 +1,4 @@
1
1
  export * from "./component";
2
+ export * from "./presets";
2
3
  export { TitleProps } from "./title/index";
3
4
  export { TextProps } from "./text/index";
@@ -14,8 +14,12 @@ require('./text/index.module.css');
14
14
  require('./text/component.js');
15
15
  require('./title-responsive/index.module.css');
16
16
  require('./title-responsive/component.js');
17
+ require('./title-mobile/index.module.css');
18
+ require('./title-mobile/component.js');
17
19
  var component = require('./component.js');
20
+ var presets = require('./presets.js');
18
21
 
19
22
 
20
23
 
21
24
  exports.Typography = component.Typography;
25
+ exports.typographyPresets = presets.typographyPresets;
@@ -0,0 +1,18 @@
1
+ declare const typographyPresets: {
2
+ mobile: {
3
+ list: {
4
+ text: {
5
+ primary: {
6
+ tag: string;
7
+ view: string;
8
+ };
9
+ secondary: {
10
+ tag: string;
11
+ color: string;
12
+ view: string;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ };
18
+ export { typographyPresets };
@@ -0,0 +1,23 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var typographyPresets = {
6
+ mobile: {
7
+ list: {
8
+ text: {
9
+ primary: {
10
+ tag: 'div',
11
+ view: 'primary-medium',
12
+ },
13
+ secondary: {
14
+ tag: 'div',
15
+ color: 'secondary',
16
+ view: 'primary-small',
17
+ },
18
+ },
19
+ },
20
+ },
21
+ };
22
+
23
+ exports.typographyPresets = typographyPresets;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { TitleProps } from "../title/component";
3
+ type TitleMobileProps = Omit<TitleProps, 'defaultMargins'>;
4
+ declare const TitleMobile: FC<TitleMobileProps>;
5
+ export { TitleMobileProps, TitleMobile };
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var tslib_es6 = require('../tslib.es6-ce870b46.js');
6
+ var React = require('react');
7
+ require('classnames');
8
+ require('../colors.module.css');
9
+ var title_component = require('../title/component.js');
10
+ var commonStyles = require('../title/common.module.css');
11
+ var styles = require('./index.module.css');
12
+
13
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
14
+
15
+ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
16
+ var commonStyles__default = /*#__PURE__*/_interopDefaultLegacy(commonStyles);
17
+ var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
18
+
19
+ var TitleMobile = function (props) {
20
+ /**
21
+ * Если поменять Object.assign на деструктуризацию, то упадут тесты.
22
+ * Видимо, это особенность работы jest и css-modules.
23
+ */
24
+ return React__default['default'].createElement(title_component.Title, tslib_es6.__assign({}, props, { styles: Object.assign(commonStyles__default['default'], styles__default['default']) }));
25
+ };
26
+
27
+ exports.TitleMobile = TitleMobile;
@@ -0,0 +1 @@
1
+ export * from "./component";
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ require('../tslib.es6-ce870b46.js');
6
+ require('react');
7
+ require('classnames');
8
+ require('../colors.module.css');
9
+ require('../title/component.js');
10
+ require('../title/common.module.css');
11
+ require('./index.module.css');
12
+ var titleMobile_component = require('./component.js');
13
+
14
+
15
+
16
+ exports.TitleMobile = titleMobile_component.TitleMobile;
@@ -0,0 +1,81 @@
1
+ :root {
2
+
3
+ /* Hard */
4
+
5
+ /* Up */
6
+
7
+ /* Hard up */
8
+ }
9
+ :root {
10
+ --font-family-styrene: 'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto,
11
+ 'Helvetica Neue', Helvetica, sans-serif;
12
+ }
13
+ .styrene-xlarge {
14
+ font-size: 34px;
15
+ line-height: 40px;
16
+ font-weight: 500;
17
+ font-feature-settings: 'ss01';
18
+ font-family: var(--font-family-styrene);
19
+ }
20
+ .styrene-large {
21
+ font-size: 30px;
22
+ line-height: 36px;
23
+ font-weight: 500;
24
+ font-feature-settings: 'ss01';
25
+ font-family: var(--font-family-styrene);
26
+ }
27
+ .styrene-medium {
28
+ font-size: 26px;
29
+ line-height: 32px;
30
+ font-weight: 500;
31
+ font-feature-settings: 'ss01';
32
+ font-family: var(--font-family-styrene);
33
+ }
34
+ .styrene-small {
35
+ font-size: 20px;
36
+ line-height: 28px;
37
+ font-weight: 500;
38
+ font-feature-settings: 'ss01';
39
+ font-family: var(--font-family-styrene);
40
+ }
41
+ .styrene-xsmall {
42
+ font-size: 16px;
43
+ line-height: 24px;
44
+ font-weight: 500;
45
+ font-feature-settings: 'ss01';
46
+ font-family: var(--font-family-styrene);
47
+ }
48
+ .system-xlarge {
49
+ font-size: 34px;
50
+ line-height: 40px;
51
+ font-weight: 600;
52
+ }
53
+ .system-large {
54
+ font-size: 30px;
55
+ line-height: 36px;
56
+ font-weight: 600;
57
+ }
58
+ .system-medium {
59
+ font-size: 26px;
60
+ line-height: 32px;
61
+ font-weight: 600;
62
+ }
63
+ .system-small {
64
+ font-size: 20px;
65
+ line-height: 28px;
66
+ font-weight: 600;
67
+ }
68
+ .system-xsmall {
69
+ font-size: 16px;
70
+ line-height: 24px;
71
+ font-weight: 600;
72
+ }
73
+ .bold {
74
+ font-weight: bold;
75
+ }
76
+ .medium {
77
+ font-weight: 500;
78
+ }
79
+ .regular {
80
+ font-weight: normal;
81
+ }
@@ -18,35 +18,35 @@
18
18
  }
19
19
  /* TODO: поменять медиа-запросы на миксины */
20
20
  .styrene-xlarge {
21
- font-size: 32px;
21
+ font-size: 34px;
22
22
  line-height: 40px;
23
23
  font-weight: 500;
24
24
  font-feature-settings: 'ss01';
25
25
  font-family: var(--font-family-styrene);
26
26
  }
27
27
  .styrene-large {
28
- font-size: 24px;
29
- line-height: 32px;
28
+ font-size: 30px;
29
+ line-height: 36px;
30
30
  font-weight: 500;
31
31
  font-feature-settings: 'ss01';
32
32
  font-family: var(--font-family-styrene);
33
33
  }
34
34
  .styrene-medium {
35
- font-size: 20px;
36
- line-height: 24px;
35
+ font-size: 26px;
36
+ line-height: 32px;
37
37
  font-weight: 500;
38
38
  font-feature-settings: 'ss01';
39
39
  font-family: var(--font-family-styrene);
40
40
  }
41
41
  .styrene-small {
42
42
  font-size: 20px;
43
- line-height: 24px;
43
+ line-height: 28px;
44
44
  font-weight: 500;
45
45
  font-feature-settings: 'ss01';
46
46
  font-family: var(--font-family-styrene);
47
47
  }
48
48
  .styrene-xsmall {
49
- font-size: 20px;
49
+ font-size: 16px;
50
50
  line-height: 24px;
51
51
  font-weight: 500;
52
52
  font-feature-settings: 'ss01';
@@ -93,46 +93,6 @@
93
93
  margin: var(--gap-3xl) 0 var(--gap-m);
94
94
  }
95
95
  @media screen and (min-width: 600px) {
96
- .styrene-xlarge {
97
- font-size: 40px;
98
- line-height: 48px;
99
- font-weight: 500;
100
- font-feature-settings: 'ss01';
101
- font-family: var(--font-family-styrene);
102
- }
103
-
104
- .styrene-large {
105
- font-size: 32px;
106
- line-height: 40px;
107
- font-weight: 500;
108
- font-feature-settings: 'ss01';
109
- font-family: var(--font-family-styrene);
110
- }
111
-
112
- .styrene-medium {
113
- font-size: 24px;
114
- line-height: 32px;
115
- font-weight: 500;
116
- font-feature-settings: 'ss01';
117
- font-family: var(--font-family-styrene);
118
- }
119
-
120
- .styrene-small {
121
- font-size: 24px;
122
- line-height: 32px;
123
- font-weight: 500;
124
- font-feature-settings: 'ss01';
125
- font-family: var(--font-family-styrene);
126
- }
127
-
128
- .styrene-xsmall {
129
- font-size: 20px;
130
- line-height: 24px;
131
- font-weight: 500;
132
- font-feature-settings: 'ss01';
133
- font-family: var(--font-family-styrene);
134
- }
135
-
136
96
  .system-xlarge {
137
97
  font-size: 40px;
138
98
  line-height: 48px;
@@ -1,4 +1,4 @@
1
- /* hash: 7rmvg */
1
+ /* hash: 1eoer */
2
2
  :root {
3
3
  --color-light-text-accent: #ef3124;
4
4
  --color-light-text-attention: #de6a00;
@@ -22,39 +22,39 @@
22
22
  /* Hard up */
23
23
  }
24
24
  /* colors */
25
- .typography__tertiary_1t8fi {
25
+ .typography__tertiary_16enl {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1t8fi {
28
+ .typography__disabled_16enl {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1t8fi {
31
+ .typography__accent_16enl {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1t8fi {
34
+ .typography__primary_16enl {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1t8fi {
37
+ .typography__attention_16enl {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1t8fi {
40
+ .typography__positive_16enl {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1t8fi {
43
+ .typography__secondary_16enl {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1t8fi {
46
+ .typography__tertiary-inverted_16enl {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1t8fi {
49
+ .typography__primary-inverted_16enl {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1t8fi {
52
+ .typography__secondary-inverted_16enl {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1t8fi {
55
+ .typography__link_16enl {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1t8fi {
58
+ .typography__negative_16enl {
59
59
  color: var(--color-light-text-negative);
60
60
  }
@@ -37,7 +37,7 @@ function __rest(s, e) {
37
37
  return t;
38
38
  }
39
39
 
40
- var colors = {"tertiary":"typography__tertiary_1t8fi","disabled":"typography__disabled_1t8fi","accent":"typography__accent_1t8fi","primary":"typography__primary_1t8fi","attention":"typography__attention_1t8fi","positive":"typography__positive_1t8fi","secondary":"typography__secondary_1t8fi","tertiary-inverted":"typography__tertiary-inverted_1t8fi","primary-inverted":"typography__primary-inverted_1t8fi","secondary-inverted":"typography__secondary-inverted_1t8fi","link":"typography__link_1t8fi","negative":"typography__negative_1t8fi"};
40
+ var colors = {"tertiary":"typography__tertiary_16enl","disabled":"typography__disabled_16enl","accent":"typography__accent_16enl","primary":"typography__primary_16enl","attention":"typography__attention_16enl","positive":"typography__positive_16enl","secondary":"typography__secondary_16enl","tertiary-inverted":"typography__tertiary-inverted_16enl","primary-inverted":"typography__primary-inverted_16enl","secondary-inverted":"typography__secondary-inverted_16enl","link":"typography__link_16enl","negative":"typography__negative_16enl"};
41
41
  require('./colors.css')
42
42
 
43
43
  export { __assign as _, __rest as a, colors as c };
@@ -0,0 +1,4 @@
1
+ var commonStyles = {"component":"typography__component_1ns6m","bold":"typography__bold_1ns6m","medium":"typography__medium_1ns6m","regular":"typography__regular_1ns6m"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
@@ -1,9 +1,11 @@
1
1
  import { FC } from 'react';
2
2
  import { TitleProps } from "./title/index";
3
3
  import { TextProps } from "./text/index";
4
+ import { TitleMobileProps } from "./title-mobile/index";
4
5
  declare const Typography: {
5
6
  Title: FC<TitleProps>;
6
7
  Text: FC<TextProps>;
7
8
  TitleResponsive: FC<TitleProps>;
9
+ TitleMobile: FC<TitleMobileProps>;
8
10
  };
9
11
  export { Typography };
@@ -1,16 +1,18 @@
1
- import './colors.module-2c206829.js';
1
+ import './colors.module-fef377ec.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import './title/component.js';
5
- import './common.module-c6bc7a27.js';
5
+ import './common.module-f9c1ed2c.js';
6
6
  import { Title } from './title/index.js';
7
7
  import { Text } from './text/component.js';
8
8
  import { TitleResponsive } from './title-responsive/component.js';
9
+ import { TitleMobile } from './title-mobile/component.js';
9
10
 
10
11
  var Typography = {
11
12
  Title: Title,
12
13
  Text: Text,
13
14
  TitleResponsive: TitleResponsive,
15
+ TitleMobile: TitleMobile,
14
16
  };
15
17
 
16
18
  export { Typography };
@@ -1,3 +1,4 @@
1
1
  export * from "./component";
2
+ export * from "./presets";
2
3
  export { TitleProps } from "./title/index";
3
4
  export { TextProps } from "./text/index";
package/dist/esm/index.js CHANGED
@@ -1,9 +1,11 @@
1
- import './colors.module-2c206829.js';
1
+ import './colors.module-fef377ec.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import './title/component.js';
5
- import './common.module-c6bc7a27.js';
5
+ import './common.module-f9c1ed2c.js';
6
6
  import './title/index.js';
7
7
  import './text/component.js';
8
8
  import './title-responsive/component.js';
9
+ import './title-mobile/component.js';
9
10
  export { Typography } from './component.js';
11
+ export { typographyPresets } from './presets.js';
@@ -0,0 +1,18 @@
1
+ declare const typographyPresets: {
2
+ mobile: {
3
+ list: {
4
+ text: {
5
+ primary: {
6
+ tag: string;
7
+ view: string;
8
+ };
9
+ secondary: {
10
+ tag: string;
11
+ color: string;
12
+ view: string;
13
+ };
14
+ };
15
+ };
16
+ };
17
+ };
18
+ export { typographyPresets };
@@ -0,0 +1,19 @@
1
+ var typographyPresets = {
2
+ mobile: {
3
+ list: {
4
+ text: {
5
+ primary: {
6
+ tag: 'div',
7
+ view: 'primary-medium',
8
+ },
9
+ secondary: {
10
+ tag: 'div',
11
+ color: 'secondary',
12
+ view: 'primary-small',
13
+ },
14
+ },
15
+ },
16
+ },
17
+ };
18
+
19
+ export { typographyPresets };