@alfalab/core-components-typography 2.4.1 → 2.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/CHANGELOG.md +36 -25
  2. package/dist/colors.css +13 -13
  3. package/dist/{colors.module-45b4d802.d.ts → colors.module-5e5e1b11.d.ts} +0 -0
  4. package/dist/{colors.module-45b4d802.js → colors.module-5e5e1b11.js} +1 -1
  5. package/dist/common.module-609d3ad6.js +6 -0
  6. package/dist/component.js +2 -2
  7. package/dist/cssm/index.d.ts +1 -0
  8. package/dist/cssm/index.js +2 -0
  9. package/dist/cssm/presets.d.ts +18 -0
  10. package/dist/cssm/presets.js +23 -0
  11. package/dist/esm/colors.css +13 -13
  12. package/dist/esm/{colors.module-75191c3e.d.ts → colors.module-9d998e27.d.ts} +0 -0
  13. package/dist/esm/{colors.module-75191c3e.js → colors.module-9d998e27.js} +1 -1
  14. package/dist/esm/common.module-bfd18bf8.js +4 -0
  15. package/dist/esm/component.js +2 -2
  16. package/dist/esm/index.d.ts +1 -0
  17. package/dist/esm/index.js +3 -2
  18. package/dist/esm/presets.d.ts +18 -0
  19. package/dist/esm/presets.js +19 -0
  20. package/dist/esm/text/component.js +2 -2
  21. package/dist/esm/text/index.css +14 -14
  22. package/dist/esm/text/index.js +1 -1
  23. package/dist/esm/title/common.css +5 -5
  24. package/dist/esm/title/component.js +1 -1
  25. package/dist/esm/title/index.css +19 -19
  26. package/dist/esm/title/index.js +3 -3
  27. package/dist/esm/title-mobile/component.js +3 -3
  28. package/dist/esm/title-mobile/index.css +14 -14
  29. package/dist/esm/title-mobile/index.js +2 -2
  30. package/dist/esm/title-responsive/component.js +3 -3
  31. package/dist/esm/title-responsive/index.css +41 -41
  32. package/dist/esm/title-responsive/index.js +2 -2
  33. package/dist/index.d.ts +1 -0
  34. package/dist/index.js +4 -2
  35. package/dist/modern/colors.css +13 -13
  36. package/dist/modern/colors.module-df20eed9.js +4 -0
  37. package/dist/modern/common.module-bfd18bf8.js +4 -0
  38. package/dist/modern/component.js +2 -2
  39. package/dist/modern/index.d.ts +1 -0
  40. package/dist/modern/index.js +3 -2
  41. package/dist/modern/presets.d.ts +18 -0
  42. package/dist/modern/presets.js +19 -0
  43. package/dist/modern/text/component.js +2 -2
  44. package/dist/modern/text/index.css +14 -14
  45. package/dist/modern/text/index.js +1 -1
  46. package/dist/modern/title/common.css +5 -5
  47. package/dist/modern/title/component.js +1 -1
  48. package/dist/modern/title/index.css +19 -19
  49. package/dist/modern/title/index.js +3 -3
  50. package/dist/modern/title-mobile/component.js +3 -3
  51. package/dist/modern/title-mobile/index.css +14 -14
  52. package/dist/modern/title-mobile/index.js +2 -2
  53. package/dist/modern/title-responsive/component.js +3 -3
  54. package/dist/modern/title-responsive/index.css +41 -41
  55. package/dist/modern/title-responsive/index.js +2 -2
  56. package/dist/presets.d.ts +18 -0
  57. package/dist/presets.js +23 -0
  58. package/dist/text/component.js +2 -2
  59. package/dist/text/index.css +14 -14
  60. package/dist/text/index.js +1 -1
  61. package/dist/title/common.css +5 -5
  62. package/dist/title/component.js +1 -1
  63. package/dist/title/index.css +19 -19
  64. package/dist/title/index.js +3 -3
  65. package/dist/title-mobile/component.js +3 -3
  66. package/dist/title-mobile/index.css +14 -14
  67. package/dist/title-mobile/index.js +2 -2
  68. package/dist/title-responsive/component.js +3 -3
  69. package/dist/title-responsive/index.css +41 -41
  70. package/dist/title-responsive/index.js +2 -2
  71. package/package.json +3 -3
  72. package/dist/common.module-adb3fff7.js +0 -6
  73. package/dist/esm/common.module-21808f5a.js +0 -4
  74. package/dist/modern/colors.module-fc3a89e7.js +0 -4
  75. package/dist/modern/common.module-21808f5a.js +0 -4
package/CHANGELOG.md CHANGED
@@ -3,63 +3,74 @@
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.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)
6
+ # [2.5.0](https://github.com/core-ds/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/core-ds/core-components/issues/1047)) ([67b6a77](https://github.com/core-ds/core-components/commit/67b6a77d1327b090b010eb061f83a2e6a0cb67b9))
12
+
13
+
14
+
15
+
16
+
17
+ ## [2.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.4.0...@alfalab/core-components-typography@2.4.1) (2022-03-03)
7
18
 
8
19
 
9
20
  ### Bug Fixes
10
21
 
11
- * **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))
22
+ * **typography:** changed styrene font styles for title responsive ([#1017](https://github.com/core-ds/core-components/issues/1017)) ([540b0b5](https://github.com/core-ds/core-components/commit/540b0b59cf99a4cee0798f50b94e6449be4aa3c6))
12
23
 
13
24
 
14
25
 
15
26
 
16
27
 
17
- # [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)
28
+ # [2.4.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.3.0...@alfalab/core-components-typography@2.4.0) (2022-03-01)
18
29
 
19
30
 
20
31
  ### Features
21
32
 
22
- * **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/alfa-laboratory/core-components/issues/1003)) ([9b03cf9](https://github.com/alfa-laboratory/core-components/commit/9b03cf90422b05cc927ed98959708430812d1a50))
23
- * Исправить импорты в сторях. ([#998](https://github.com/alfa-laboratory/core-components/issues/998)) ([e6a654a](https://github.com/alfa-laboratory/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
33
+ * **typography:** новый компонент Typography.TitleMobile ([#1003](https://github.com/core-ds/core-components/issues/1003)) ([9b03cf9](https://github.com/core-ds/core-components/commit/9b03cf90422b05cc927ed98959708430812d1a50))
34
+ * Исправить импорты в сторях. ([#998](https://github.com/core-ds/core-components/issues/998)) ([e6a654a](https://github.com/core-ds/core-components/commit/e6a654a0599451c7d149484cb61d8067eed083b7))
24
35
 
25
36
 
26
37
 
27
38
 
28
39
 
29
- # [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)
40
+ # [2.3.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.2.0...@alfalab/core-components-typography@2.3.0) (2022-01-17)
30
41
 
31
42
 
32
43
  ### Features
33
44
 
34
- * **typography:** export types ([#940](https://github.com/alfa-laboratory/core-components/issues/940)) ([498227c](https://github.com/alfa-laboratory/core-components/commit/498227c272659a1ebf890eee61c6fecdd110faee))
45
+ * **typography:** export types ([#940](https://github.com/core-ds/core-components/issues/940)) ([498227c](https://github.com/core-ds/core-components/commit/498227c272659a1ebf890eee61c6fecdd110faee))
35
46
 
36
47
 
37
48
 
38
49
 
39
50
 
40
- # [2.2.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.1.0...@alfalab/core-components-typography@2.2.0) (2021-09-14)
51
+ # [2.2.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.1.0...@alfalab/core-components-typography@2.2.0) (2021-09-14)
41
52
 
42
53
 
43
54
  ### Features
44
55
 
45
- * **typography:** add ref ([#834](https://github.com/alfa-laboratory/core-components/issues/834)) ([976b16d](https://github.com/alfa-laboratory/core-components/commit/976b16dd9ae68c31999bffb3506623db05033ad4))
56
+ * **typography:** add ref ([#834](https://github.com/core-ds/core-components/issues/834)) ([976b16d](https://github.com/core-ds/core-components/commit/976b16dd9ae68c31999bffb3506623db05033ad4))
46
57
 
47
58
 
48
59
 
49
60
 
50
61
 
51
- # [2.1.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.0.1...@alfalab/core-components-typography@2.1.0) (2021-07-19)
62
+ # [2.1.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.0.1...@alfalab/core-components-typography@2.1.0) (2021-07-19)
52
63
 
53
64
 
54
65
  ### Features
55
66
 
56
- * **typography:** monospaceNumbers prop (PDS-255) ([#697](https://github.com/alfa-laboratory/core-components/issues/697)) ([42d16a6](https://github.com/alfa-laboratory/core-components/commit/42d16a62f6d0781eba44dc1e0b76b28cae37d89a))
67
+ * **typography:** monospaceNumbers prop (PDS-255) ([#697](https://github.com/core-ds/core-components/issues/697)) ([42d16a6](https://github.com/core-ds/core-components/commit/42d16a62f6d0781eba44dc1e0b76b28cae37d89a))
57
68
 
58
69
 
59
70
 
60
71
 
61
72
 
62
- ## [2.0.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@2.0.0...@alfalab/core-components-typography@2.0.1) (2021-07-09)
73
+ ## [2.0.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@2.0.0...@alfalab/core-components-typography@2.0.1) (2021-07-09)
63
74
 
64
75
  **Note:** Version bump only for package @alfalab/core-components-typography
65
76
 
@@ -67,36 +78,36 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
67
78
 
68
79
 
69
80
 
70
- # [2.0.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.5.1...@alfalab/core-components-typography@2.0.0) (2021-07-08)
81
+ # [2.0.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.5.1...@alfalab/core-components-typography@2.0.0) (2021-07-08)
71
82
 
72
83
 
73
84
  ### Features
74
85
 
75
- * upgrade storybook ([#696](https://github.com/alfa-laboratory/core-components/issues/696))
86
+ * upgrade storybook ([#696](https://github.com/core-ds/core-components/issues/696))
76
87
 
77
- ## [1.5.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.5.0...@alfalab/core-components-typography@1.5.1) (2021-06-28)
88
+ ## [1.5.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.5.0...@alfalab/core-components-typography@1.5.1) (2021-06-28)
78
89
 
79
90
 
80
91
  ### Bug Fixes
81
92
 
82
- * **typography:** add missing weight styles ([#719](https://github.com/alfa-laboratory/core-components/issues/719)) ([6b855aa](https://github.com/alfa-laboratory/core-components/commit/6b855aa97eff918e0e16f957c4c05bb7f2d8f4fe))
93
+ * **typography:** add missing weight styles ([#719](https://github.com/core-ds/core-components/issues/719)) ([6b855aa](https://github.com/core-ds/core-components/commit/6b855aa97eff918e0e16f957c4c05bb7f2d8f4fe))
83
94
 
84
95
 
85
96
 
86
97
 
87
98
 
88
- # [1.5.0](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.7...@alfalab/core-components-typography@1.5.0) (2021-06-04)
99
+ # [1.5.0](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.7...@alfalab/core-components-typography@1.5.0) (2021-06-04)
89
100
 
90
101
 
91
102
  ### Features
92
103
 
93
- * **typography:** add rest props ([#682](https://github.com/alfa-laboratory/core-components/issues/682)) ([51e1cf8](https://github.com/alfa-laboratory/core-components/commit/51e1cf89028c788bfcdbc21ea16acbbe190b5db9))
104
+ * **typography:** add rest props ([#682](https://github.com/core-ds/core-components/issues/682)) ([51e1cf8](https://github.com/core-ds/core-components/commit/51e1cf89028c788bfcdbc21ea16acbbe190b5db9))
94
105
 
95
106
 
96
107
 
97
108
 
98
109
 
99
- ## [1.4.7](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.6...@alfalab/core-components-typography@1.4.7) (2021-04-26)
110
+ ## [1.4.7](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.6...@alfalab/core-components-typography@1.4.7) (2021-04-26)
100
111
 
101
112
  **Note:** Version bump only for package @alfalab/core-components-typography
102
113
 
@@ -104,7 +115,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
104
115
 
105
116
 
106
117
 
107
- ## [1.4.6](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.5...@alfalab/core-components-typography@1.4.6) (2021-04-01)
118
+ ## [1.4.6](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.5...@alfalab/core-components-typography@1.4.6) (2021-04-01)
108
119
 
109
120
  **Note:** Version bump only for package @alfalab/core-components-typography
110
121
 
@@ -112,18 +123,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
112
123
 
113
124
 
114
125
 
115
- ## [1.4.5](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.3...@alfalab/core-components-typography@1.4.5) (2021-03-18)
126
+ ## [1.4.5](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.3...@alfalab/core-components-typography@1.4.5) (2021-03-18)
116
127
 
117
128
 
118
129
  ### Bug Fixes
119
130
 
120
- * one more sborka bug ([#579](https://github.com/alfa-laboratory/core-components/issues/579)) ([9fbe0be](https://github.com/alfa-laboratory/core-components/commit/9fbe0beca56ec5971de78b3f6cda25305b260efc))
131
+ * one more sborka bug ([#579](https://github.com/core-ds/core-components/issues/579)) ([9fbe0be](https://github.com/core-ds/core-components/commit/9fbe0beca56ec5971de78b3f6cda25305b260efc))
121
132
 
122
133
 
123
134
 
124
135
 
125
136
 
126
- ## [1.4.3](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.2...@alfalab/core-components-typography@1.4.3) (2021-03-14)
137
+ ## [1.4.3](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.2...@alfalab/core-components-typography@1.4.3) (2021-03-14)
127
138
 
128
139
  **Note:** Version bump only for package @alfalab/core-components-typography
129
140
 
@@ -131,7 +142,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
131
142
 
132
143
 
133
144
 
134
- ## [1.4.2](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.1...@alfalab/core-components-typography@1.4.2) (2021-03-04)
145
+ ## [1.4.2](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.1...@alfalab/core-components-typography@1.4.2) (2021-03-04)
135
146
 
136
147
  **Note:** Version bump only for package @alfalab/core-components-typography
137
148
 
@@ -139,6 +150,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
139
150
 
140
151
 
141
152
 
142
- ## [1.4.1](https://github.com/alfa-laboratory/core-components/compare/@alfalab/core-components-typography@1.4.0...@alfalab/core-components-typography@1.4.1) (2021-03-03)
153
+ ## [1.4.1](https://github.com/core-ds/core-components/compare/@alfalab/core-components-typography@1.4.0...@alfalab/core-components-typography@1.4.1) (2021-03-03)
143
154
 
144
155
  **Note:** Version bump only for package @alfalab/core-components-typography
package/dist/colors.css CHANGED
@@ -1,4 +1,4 @@
1
- /* hash: gwiym */
1
+ /* hash: 1emgq */
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_1i58d {
25
+ .typography__tertiary_uevwu {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1i58d {
28
+ .typography__disabled_uevwu {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1i58d {
31
+ .typography__accent_uevwu {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1i58d {
34
+ .typography__primary_uevwu {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1i58d {
37
+ .typography__attention_uevwu {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1i58d {
40
+ .typography__positive_uevwu {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1i58d {
43
+ .typography__secondary_uevwu {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1i58d {
46
+ .typography__tertiary-inverted_uevwu {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1i58d {
49
+ .typography__primary-inverted_uevwu {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1i58d {
52
+ .typography__secondary-inverted_uevwu {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1i58d {
55
+ .typography__link_uevwu {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1i58d {
58
+ .typography__negative_uevwu {
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_1i58d","disabled":"typography__disabled_1i58d","accent":"typography__accent_1i58d","primary":"typography__primary_1i58d","attention":"typography__attention_1i58d","positive":"typography__positive_1i58d","secondary":"typography__secondary_1i58d","tertiary-inverted":"typography__tertiary-inverted_1i58d","primary-inverted":"typography__primary-inverted_1i58d","secondary-inverted":"typography__secondary-inverted_1i58d","link":"typography__link_1i58d","negative":"typography__negative_1i58d"};
42
+ var colors = {"tertiary":"typography__tertiary_uevwu","disabled":"typography__disabled_uevwu","accent":"typography__accent_uevwu","primary":"typography__primary_uevwu","attention":"typography__attention_uevwu","positive":"typography__positive_uevwu","secondary":"typography__secondary_uevwu","tertiary-inverted":"typography__tertiary-inverted_uevwu","primary-inverted":"typography__primary-inverted_uevwu","secondary-inverted":"typography__secondary-inverted_uevwu","link":"typography__link_uevwu","negative":"typography__negative_uevwu"};
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_1o1to","bold":"typography__bold_1o1to","medium":"typography__medium_1o1to","regular":"typography__regular_1o1to"};
4
+ require('./title/common.css')
5
+
6
+ exports.commonStyles = commonStyles;
package/dist/component.js CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- require('./colors.module-45b4d802.js');
5
+ require('./colors.module-5e5e1b11.js');
6
6
  require('react');
7
7
  require('classnames');
8
8
  require('./title/component.js');
9
- require('./common.module-adb3fff7.js');
9
+ require('./common.module-609d3ad6.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');
@@ -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";
@@ -17,7 +17,9 @@ require('./title-responsive/component.js');
17
17
  require('./title-mobile/index.module.css');
18
18
  require('./title-mobile/component.js');
19
19
  var component = require('./component.js');
20
+ var presets = require('./presets.js');
20
21
 
21
22
 
22
23
 
23
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;
@@ -1,4 +1,4 @@
1
- /* hash: gwiym */
1
+ /* hash: 1emgq */
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_1i58d {
25
+ .typography__tertiary_uevwu {
26
26
  color: var(--color-light-text-tertiary);
27
27
  }
28
- .typography__disabled_1i58d {
28
+ .typography__disabled_uevwu {
29
29
  color: var(--color-light-text-disabled);
30
30
  }
31
- .typography__accent_1i58d {
31
+ .typography__accent_uevwu {
32
32
  color: var(--color-light-text-accent);
33
33
  }
34
- .typography__primary_1i58d {
34
+ .typography__primary_uevwu {
35
35
  color: var(--color-light-text-primary);
36
36
  }
37
- .typography__attention_1i58d {
37
+ .typography__attention_uevwu {
38
38
  color: var(--color-light-text-attention);
39
39
  }
40
- .typography__positive_1i58d {
40
+ .typography__positive_uevwu {
41
41
  color: var(--color-light-text-positive);
42
42
  }
43
- .typography__secondary_1i58d {
43
+ .typography__secondary_uevwu {
44
44
  color: var(--color-light-text-secondary);
45
45
  }
46
- .typography__tertiary-inverted_1i58d {
46
+ .typography__tertiary-inverted_uevwu {
47
47
  color: var(--color-light-text-tertiary-inverted);
48
48
  }
49
- .typography__primary-inverted_1i58d {
49
+ .typography__primary-inverted_uevwu {
50
50
  color: var(--color-light-text-primary-inverted);
51
51
  }
52
- .typography__secondary-inverted_1i58d {
52
+ .typography__secondary-inverted_uevwu {
53
53
  color: var(--color-light-text-secondary-inverted);
54
54
  }
55
- .typography__link_1i58d {
55
+ .typography__link_uevwu {
56
56
  color: var(--color-light-text-link);
57
57
  }
58
- .typography__negative_1i58d {
58
+ .typography__negative_uevwu {
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_1i58d","disabled":"typography__disabled_1i58d","accent":"typography__accent_1i58d","primary":"typography__primary_1i58d","attention":"typography__attention_1i58d","positive":"typography__positive_1i58d","secondary":"typography__secondary_1i58d","tertiary-inverted":"typography__tertiary-inverted_1i58d","primary-inverted":"typography__primary-inverted_1i58d","secondary-inverted":"typography__secondary-inverted_1i58d","link":"typography__link_1i58d","negative":"typography__negative_1i58d"};
40
+ var colors = {"tertiary":"typography__tertiary_uevwu","disabled":"typography__disabled_uevwu","accent":"typography__accent_uevwu","primary":"typography__primary_uevwu","attention":"typography__attention_uevwu","positive":"typography__positive_uevwu","secondary":"typography__secondary_uevwu","tertiary-inverted":"typography__tertiary-inverted_uevwu","primary-inverted":"typography__primary-inverted_uevwu","secondary-inverted":"typography__secondary-inverted_uevwu","link":"typography__link_uevwu","negative":"typography__negative_uevwu"};
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_1o1to","bold":"typography__bold_1o1to","medium":"typography__medium_1o1to","regular":"typography__regular_1o1to"};
2
+ require('./title/common.css')
3
+
4
+ export { commonStyles as c };
@@ -1,8 +1,8 @@
1
- import './colors.module-75191c3e.js';
1
+ import './colors.module-9d998e27.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import './title/component.js';
5
- import './common.module-21808f5a.js';
5
+ import './common.module-bfd18bf8.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';
@@ -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,10 +1,11 @@
1
- import './colors.module-75191c3e.js';
1
+ import './colors.module-9d998e27.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  import './title/component.js';
5
- import './common.module-21808f5a.js';
5
+ import './common.module-bfd18bf8.js';
6
6
  import './title/index.js';
7
7
  import './text/component.js';
8
8
  import './title-responsive/component.js';
9
9
  import './title-mobile/component.js';
10
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 };
@@ -1,8 +1,8 @@
1
- import { a as __rest, _ as __assign, c as colors } from '../colors.module-75191c3e.js';
1
+ import { a as __rest, _ as __assign, c as colors } from '../colors.module-9d998e27.js';
2
2
  import React, { forwardRef } from 'react';
3
3
  import cn from 'classnames';
4
4
 
5
- var styles = {"paragraph":"typography__paragraph_1w8ug","primary-large":"typography__primary-large_1w8ug","primary-medium":"typography__primary-medium_1w8ug","primary-small":"typography__primary-small_1w8ug","secondary-large":"typography__secondary-large_1w8ug","secondary-medium":"typography__secondary-medium_1w8ug","secondary-small":"typography__secondary-small_1w8ug","component":"typography__component_1w8ug","caps":"typography__caps_1w8ug","bold":"typography__bold_1w8ug","medium":"typography__medium_1w8ug","regular":"typography__regular_1w8ug","monospace":"typography__monospace_1w8ug"};
5
+ var styles = {"paragraph":"typography__paragraph_1bvfh","primary-large":"typography__primary-large_1bvfh","primary-medium":"typography__primary-medium_1bvfh","primary-small":"typography__primary-small_1bvfh","secondary-large":"typography__secondary-large_1bvfh","secondary-medium":"typography__secondary-medium_1bvfh","secondary-small":"typography__secondary-small_1bvfh","component":"typography__component_1bvfh","caps":"typography__caps_1bvfh","bold":"typography__bold_1bvfh","medium":"typography__medium_1bvfh","regular":"typography__regular_1bvfh","monospace":"typography__monospace_1bvfh"};
6
6
  require('./index.css')
7
7
 
8
8
  var Text = forwardRef(function (_a, ref) {
@@ -1,4 +1,4 @@
1
- /* hash: fkots */
1
+ /* hash: t4lm8 */
2
2
  :root {
3
3
 
4
4
  /* Hard */
@@ -13,62 +13,62 @@
13
13
  :root {
14
14
  --text-paragraph-margin-bottom: 0 0 var(--gap-s);
15
15
  }
16
- .typography__paragraph_1w8ug {
16
+ .typography__paragraph_1bvfh {
17
17
  margin: var(--text-paragraph-margin-bottom);
18
18
  padding: 0;
19
19
  }
20
- .typography__primary-large_1w8ug {
20
+ .typography__primary-large_1bvfh {
21
21
  font-size: 18px;
22
22
  line-height: 24px;
23
23
  font-weight: 400;
24
24
  }
25
- .typography__primary-medium_1w8ug {
25
+ .typography__primary-medium_1bvfh {
26
26
  font-size: 16px;
27
27
  line-height: 24px;
28
28
  font-weight: 400;
29
29
  }
30
- .typography__primary-small_1w8ug {
30
+ .typography__primary-small_1bvfh {
31
31
  font-size: 14px;
32
32
  line-height: 20px;
33
33
  font-weight: 400;
34
34
  }
35
- .typography__secondary-large_1w8ug {
35
+ .typography__secondary-large_1bvfh {
36
36
  font-size: 13px;
37
37
  line-height: 16px;
38
38
  font-weight: 400;
39
39
  }
40
- .typography__secondary-medium_1w8ug {
40
+ .typography__secondary-medium_1bvfh {
41
41
  font-size: 12px;
42
42
  line-height: 16px;
43
43
  font-weight: 400;
44
44
  }
45
- .typography__secondary-small_1w8ug {
45
+ .typography__secondary-small_1bvfh {
46
46
  font-size: 11px;
47
47
  line-height: 16px;
48
48
  font-weight: 400;
49
49
  }
50
- .typography__component_1w8ug {
50
+ .typography__component_1bvfh {
51
51
  font-size: 16px;
52
52
  line-height: 20px;
53
53
  font-weight: 400;
54
54
  }
55
- .typography__caps_1w8ug {
55
+ .typography__caps_1bvfh {
56
56
  font-size: 12px;
57
57
  line-height: 16px;
58
58
  font-weight: 500;
59
59
  letter-spacing: 1.25px;
60
60
  text-transform: uppercase;
61
61
  }
62
- .typography__bold_1w8ug {
62
+ .typography__bold_1bvfh {
63
63
  font-weight: bold;
64
64
  }
65
- .typography__medium_1w8ug {
65
+ .typography__medium_1bvfh {
66
66
  font-weight: 500;
67
67
  }
68
- .typography__regular_1w8ug {
68
+ .typography__regular_1bvfh {
69
69
  font-weight: normal;
70
70
  }
71
- .typography__monospace_1w8ug {
71
+ .typography__monospace_1bvfh {
72
72
  font-feature-settings: "tnum";
73
73
  font-variant-numeric: tabular-nums;
74
74
  }
@@ -1,4 +1,4 @@
1
- import '../colors.module-75191c3e.js';
1
+ import '../colors.module-9d998e27.js';
2
2
  import 'react';
3
3
  import 'classnames';
4
4
  export { Text } from './component.js';
@@ -1,17 +1,17 @@
1
- /* hash: 2ojzo */
2
- .typography__component_3klin {
1
+ /* hash: 1sm5s */
2
+ .typography__component_1o1to {
3
3
  margin: 0;
4
4
  padding: 0;
5
5
  }
6
6
 
7
- .typography__bold_3klin {
7
+ .typography__bold_1o1to {
8
8
  font-weight: bold;
9
9
  }
10
10
 
11
- .typography__medium_3klin {
11
+ .typography__medium_1o1to {
12
12
  font-weight: 500;
13
13
  }
14
14
 
15
- .typography__regular_3klin {
15
+ .typography__regular_1o1to {
16
16
  font-weight: normal;
17
17
  }
@@ -1,4 +1,4 @@
1
- import { a as __rest, _ as __assign, c as colors } from '../colors.module-75191c3e.js';
1
+ import { a as __rest, _ as __assign, c as colors } from '../colors.module-9d998e27.js';
2
2
  import React, { forwardRef } from 'react';
3
3
  import cn from 'classnames';
4
4