@alfalab/core-components-typography 6.0.14 → 6.0.15
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.
- package/colors.css +20 -20
- package/colors.js.map +1 -1
- package/colors.module.css.js +1 -1
- package/colors.module.css.js.map +1 -1
- package/component.js +8 -8
- package/component.js.map +1 -1
- package/cssm/colors.js.map +1 -1
- package/cssm/component.js +8 -8
- package/cssm/component.js.map +1 -1
- package/cssm/index.js +8 -8
- package/cssm/presets.js.map +1 -1
- package/cssm/text/component.js.map +1 -1
- package/cssm/title/component.js.map +1 -1
- package/cssm/title/index.js.map +1 -1
- package/cssm/title/utils.js.map +1 -1
- package/cssm/title-mobile/component.js.map +1 -1
- package/cssm/title-responsive/component.js.map +1 -1
- package/esm/colors.css +20 -20
- package/esm/colors.js.map +1 -1
- package/esm/colors.module.css.js +1 -1
- package/esm/colors.module.css.js.map +1 -1
- package/esm/component.js.map +1 -1
- package/esm/index.js +1 -1
- package/esm/presets.js.map +1 -1
- package/esm/text/component.js.map +1 -1
- package/esm/text/index.css +42 -42
- package/esm/text/index.module.css.js +1 -1
- package/esm/text/index.module.css.js.map +1 -1
- package/esm/title/common.css +7 -7
- package/esm/title/common.module.css.js +1 -1
- package/esm/title/common.module.css.js.map +1 -1
- package/esm/title/component.js.map +1 -1
- package/esm/title/index.css +25 -25
- package/esm/title/index.js.map +1 -1
- package/esm/title/index.module.css.js +1 -1
- package/esm/title/index.module.css.js.map +1 -1
- package/esm/title/utils.js.map +1 -1
- package/esm/title-mobile/component.js.map +1 -1
- package/esm/title-mobile/index.css +25 -25
- package/esm/title-mobile/index.module.css.js +1 -1
- package/esm/title-mobile/index.module.css.js.map +1 -1
- package/esm/title-responsive/component.js.map +1 -1
- package/index.js +8 -8
- package/modern/colors.css +20 -20
- package/modern/colors.js.map +1 -1
- package/modern/colors.module.css.js +1 -1
- package/modern/colors.module.css.js.map +1 -1
- package/modern/component.js.map +1 -1
- package/modern/index.js +1 -1
- package/modern/presets.js.map +1 -1
- package/modern/text/component.js.map +1 -1
- package/modern/text/index.css +42 -42
- package/modern/text/index.module.css.js +1 -1
- package/modern/text/index.module.css.js.map +1 -1
- package/modern/title/common.css +7 -7
- package/modern/title/common.module.css.js +1 -1
- package/modern/title/common.module.css.js.map +1 -1
- package/modern/title/component.js.map +1 -1
- package/modern/title/index.css +25 -25
- package/modern/title/index.js.map +1 -1
- package/modern/title/index.module.css.js +1 -1
- package/modern/title/index.module.css.js.map +1 -1
- package/modern/title/utils.js.map +1 -1
- package/modern/title-mobile/component.js.map +1 -1
- package/modern/title-mobile/index.css +25 -25
- package/modern/title-mobile/index.module.css.js +1 -1
- package/modern/title-mobile/index.module.css.js.map +1 -1
- package/modern/title-responsive/component.js.map +1 -1
- package/moderncssm/colors.js.map +1 -1
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/index.js +1 -1
- package/moderncssm/presets.js.map +1 -1
- package/moderncssm/text/component.js.map +1 -1
- package/moderncssm/title/component.js.map +1 -1
- package/moderncssm/title/index.js.map +1 -1
- package/moderncssm/title/utils.js.map +1 -1
- package/moderncssm/title-mobile/component.js.map +1 -1
- package/moderncssm/title-responsive/component.js.map +1 -1
- package/package.json +3 -3
- package/presets.js.map +1 -1
- package/src/text/index.module.css +5 -4
- package/text/component.js.map +1 -1
- package/text/index.css +42 -42
- package/text/index.module.css.js +1 -1
- package/text/index.module.css.js.map +1 -1
- package/title/common.css +7 -7
- package/title/common.module.css.js +1 -1
- package/title/common.module.css.js.map +1 -1
- package/title/component.js.map +1 -1
- package/title/index.css +25 -25
- package/title/index.js.map +1 -1
- package/title/index.module.css.js +1 -1
- package/title/index.module.css.js.map +1 -1
- package/title/utils.js.map +1 -1
- package/title-mobile/component.js.map +1 -1
- package/title-mobile/index.css +25 -25
- package/title-mobile/index.module.css.js +1 -1
- package/title-mobile/index.module.css.js.map +1 -1
- package/title-responsive/component.js.map +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"xlarge":"
|
|
5
|
+
var styles = {"xlarge":"typography__xlarge_lswbl","font":"typography__font_lswbl","regular-xlarge":"typography__regular-xlarge_lswbl","large":"typography__large_lswbl","regular-large":"typography__regular-large_lswbl","medium":"typography__medium_lswbl","regular-medium":"typography__regular-medium_lswbl","small":"typography__small_lswbl","regular-small":"typography__regular-small_lswbl","xsmall":"typography__xsmall_lswbl","regular-xsmall":"typography__regular-xsmall_lswbl","component":"typography__component_lswbl","margins-xlarge":"typography__margins-xlarge_lswbl","margins-large":"typography__margins-large_lswbl","margins-medium":"typography__margins-medium_lswbl","margins-small":"typography__margins-small_lswbl","margins-xsmall":"typography__margins-xsmall_lswbl"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/title/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system_$(view);\n\n &.font {\n @subtract-mixin headline_$(view), headline-system_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system_$(view);\n\n &.font {\n @subtract-mixin promo_$(view), promo-system_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-medium;\n }\n\n &.margins-medium {\n @mixin margin-medium;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n &.margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;"}
|
package/title/utils.js.map
CHANGED
|
@@ -1 +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":";;;;
|
|
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":";;;;AAAM,SAAU,gBAAgB,CAC5B,IAAuC,EACvC,QAA8B,EAAA;IAE9B,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,UAAU,EAAE;AAC3C,QAAA,OAAO,QAAQ;IACnB;AAEA,IAAA,IAAI,QAAQ,KAAK,SAAS,EAAE;AACxB,QAAA,OAAO,MAAM;IACjB;AAEA,IAAA,OAAO,UAAU;AACrB;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":["forwardRef","React","TitleBase","__assign","styles"],"mappings":";;;;;;;;;;;;;AAMO,IAAM,WAAW,GAAGA,gBAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,mBAAS,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/title-mobile/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { TitleBase, type TitleProps } from '../title/component';\n\nimport styles from './index.module.css';\n\nexport const TitleMobile = forwardRef<HTMLHeadingElement | HTMLDivElement, TitleProps>(\n (props, ref) => <TitleBase {...props} styles={styles} ref={ref} platform='mobile' />,\n);\n"],"names":["forwardRef","React","TitleBase","__assign","styles"],"mappings":";;;;;;;;;;;;;AAMO,IAAM,WAAW,GAAGA,gBAAU,CACjC,UAAC,KAAK,EAAE,GAAG,EAAA,EAAK,OAAAC,sBAAA,CAAA,aAAA,CAACC,mBAAS,EAAAC,cAAA,CAAA,EAAA,EAAK,KAAK,EAAA,EAAE,MAAM,EAAEC,YAAM,EAAE,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAC,QAAQ,EAAA,CAAA,CAAG,CAAA,CAApE,CAAoE;;"}
|
package/title-mobile/index.css
CHANGED
|
@@ -11,123 +11,123 @@
|
|
|
11
11
|
'Styrene UI', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica,
|
|
12
12
|
sans-serif;
|
|
13
13
|
}
|
|
14
|
-
.
|
|
14
|
+
.typography__xlarge_vsa37 {
|
|
15
15
|
font-size: 34px;
|
|
16
16
|
line-height: 40px;
|
|
17
17
|
font-weight: 600;
|
|
18
18
|
font-family: var(--font-family-system);
|
|
19
19
|
}
|
|
20
|
-
.
|
|
20
|
+
.typography__xlarge_vsa37.typography__font_vsa37 {
|
|
21
21
|
font-weight: 500;
|
|
22
22
|
font-feature-settings: 'ss01';
|
|
23
23
|
font-family: var(--font-family-styrene);
|
|
24
24
|
}
|
|
25
|
-
.typography__regular-
|
|
25
|
+
.typography__regular-xlarge_vsa37 {
|
|
26
26
|
font-size: 34px;
|
|
27
27
|
line-height: 40px;
|
|
28
28
|
font-weight: 400;
|
|
29
29
|
font-family: var(--font-family-system);
|
|
30
30
|
}
|
|
31
|
-
.typography__regular-
|
|
31
|
+
.typography__regular-xlarge_vsa37.typography__system_vsa37 {
|
|
32
32
|
font-feature-settings: 'ss01';
|
|
33
33
|
font-family: var(--font-family-styrene);
|
|
34
34
|
}
|
|
35
|
-
.
|
|
35
|
+
.typography__large_vsa37 {
|
|
36
36
|
font-size: 30px;
|
|
37
37
|
line-height: 36px;
|
|
38
38
|
font-weight: 600;
|
|
39
39
|
font-family: var(--font-family-system);
|
|
40
40
|
}
|
|
41
|
-
.
|
|
41
|
+
.typography__large_vsa37.typography__font_vsa37 {
|
|
42
42
|
font-weight: 500;
|
|
43
43
|
font-feature-settings: 'ss01';
|
|
44
44
|
font-family: var(--font-family-styrene);
|
|
45
45
|
}
|
|
46
|
-
.typography__regular-
|
|
46
|
+
.typography__regular-large_vsa37 {
|
|
47
47
|
font-size: 30px;
|
|
48
48
|
line-height: 36px;
|
|
49
49
|
font-weight: 400;
|
|
50
50
|
font-family: var(--font-family-system);
|
|
51
51
|
}
|
|
52
|
-
.typography__regular-
|
|
52
|
+
.typography__regular-large_vsa37.typography__system_vsa37 {
|
|
53
53
|
font-feature-settings: 'ss01';
|
|
54
54
|
font-family: var(--font-family-styrene);
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
.typography__medium_vsa37 {
|
|
57
57
|
font-size: 26px;
|
|
58
58
|
line-height: 32px;
|
|
59
59
|
font-weight: 600;
|
|
60
60
|
font-family: var(--font-family-system);
|
|
61
61
|
}
|
|
62
|
-
.
|
|
62
|
+
.typography__medium_vsa37.typography__font_vsa37 {
|
|
63
63
|
font-weight: 500;
|
|
64
64
|
font-feature-settings: 'ss01';
|
|
65
65
|
font-family: var(--font-family-styrene);
|
|
66
66
|
}
|
|
67
|
-
.typography__regular-
|
|
67
|
+
.typography__regular-medium_vsa37 {
|
|
68
68
|
font-size: 26px;
|
|
69
69
|
line-height: 32px;
|
|
70
70
|
font-weight: 400;
|
|
71
71
|
font-family: var(--font-family-system);
|
|
72
72
|
}
|
|
73
|
-
.typography__regular-
|
|
73
|
+
.typography__regular-medium_vsa37.typography__system_vsa37 {
|
|
74
74
|
font-feature-settings: 'ss01';
|
|
75
75
|
font-family: var(--font-family-styrene);
|
|
76
76
|
}
|
|
77
|
-
.
|
|
77
|
+
.typography__small_vsa37 {
|
|
78
78
|
font-size: 20px;
|
|
79
79
|
line-height: 28px;
|
|
80
80
|
font-weight: 600;
|
|
81
81
|
font-family: var(--font-family-system);
|
|
82
82
|
}
|
|
83
|
-
.
|
|
83
|
+
.typography__small_vsa37.typography__font_vsa37 {
|
|
84
84
|
font-weight: 500;
|
|
85
85
|
font-feature-settings: 'ss01';
|
|
86
86
|
font-family: var(--font-family-styrene);
|
|
87
87
|
}
|
|
88
|
-
.typography__regular-
|
|
88
|
+
.typography__regular-small_vsa37 {
|
|
89
89
|
font-size: 20px;
|
|
90
90
|
line-height: 28px;
|
|
91
91
|
font-weight: 400;
|
|
92
92
|
font-family: var(--font-family-system);
|
|
93
93
|
}
|
|
94
|
-
.typography__regular-
|
|
94
|
+
.typography__regular-small_vsa37.typography__system_vsa37 {
|
|
95
95
|
font-feature-settings: 'ss01';
|
|
96
96
|
font-family: var(--font-family-styrene);
|
|
97
97
|
}
|
|
98
|
-
.
|
|
98
|
+
.typography__xsmall_vsa37 {
|
|
99
99
|
font-size: 16px;
|
|
100
100
|
line-height: 20px;
|
|
101
101
|
font-weight: 600;
|
|
102
102
|
font-family: var(--font-family-system);
|
|
103
103
|
}
|
|
104
|
-
.
|
|
104
|
+
.typography__xsmall_vsa37.typography__font_vsa37 {
|
|
105
105
|
font-weight: 500;
|
|
106
106
|
font-feature-settings: 'ss01';
|
|
107
107
|
font-family: var(--font-family-styrene);
|
|
108
108
|
}
|
|
109
|
-
.typography__regular-
|
|
109
|
+
.typography__regular-xsmall_vsa37 {
|
|
110
110
|
font-size: 16px;
|
|
111
111
|
line-height: 20px;
|
|
112
112
|
font-weight: 400;
|
|
113
113
|
font-family: var(--font-family-system);
|
|
114
114
|
}
|
|
115
|
-
.typography__regular-
|
|
115
|
+
.typography__regular-xsmall_vsa37.typography__system_vsa37 {
|
|
116
116
|
font-feature-settings: 'ss01';
|
|
117
117
|
font-family: var(--font-family-styrene);
|
|
118
118
|
}
|
|
119
|
-
.
|
|
119
|
+
.typography__component_vsa37.typography__margins-xlarge_vsa37 {
|
|
120
120
|
margin: var(--gap-0) var(--gap-0) var(--gap-24);
|
|
121
121
|
}
|
|
122
|
-
.
|
|
122
|
+
.typography__component_vsa37.typography__margins-large_vsa37 {
|
|
123
123
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
124
124
|
}
|
|
125
|
-
.
|
|
125
|
+
.typography__component_vsa37.typography__margins-medium_vsa37 {
|
|
126
126
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
.typography__component_vsa37.typography__margins-small_vsa37 {
|
|
129
129
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
130
130
|
}
|
|
131
|
-
.
|
|
131
|
+
.typography__component_vsa37 .typography__margins-xsmall_vsa37 {
|
|
132
132
|
margin: var(--gap-40) var(--gap-0) var(--gap-16);
|
|
133
133
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
require('./index.css');
|
|
4
4
|
|
|
5
|
-
var styles = {"xlarge":"
|
|
5
|
+
var styles = {"xlarge":"typography__xlarge_vsa37","font":"typography__font_vsa37","regular-xlarge":"typography__regular-xlarge_vsa37","system":"typography__system_vsa37","large":"typography__large_vsa37","regular-large":"typography__regular-large_vsa37","medium":"typography__medium_vsa37","regular-medium":"typography__regular-medium_vsa37","small":"typography__small_vsa37","regular-small":"typography__regular-small_vsa37","xsmall":"typography__xsmall_vsa37","regular-xsmall":"typography__regular-xsmall_vsa37","component":"typography__component_vsa37","margins-xlarge":"typography__margins-xlarge_vsa37","margins-large":"typography__margins-large_vsa37","margins-medium":"typography__margins-medium_vsa37","margins-small":"typography__margins-small_vsa37","margins-xsmall":"typography__margins-xsmall_vsa37"};
|
|
6
6
|
|
|
7
7
|
module.exports = styles;
|
|
8
8
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC
|
|
1
|
+
{"version":3,"file":"index.module.css.js","sources":["../src/title-mobile/index.module.css"],"sourcesContent":["@import '@alfalab/core-components-vars/src/index.css';\n@import '../margins.module.css';\n\n@each $view in xlarge, large, medium, small, xsmall {\n .$(view) {\n @mixin headline-system-mobile_$(view);\n\n &.font {\n @subtract-mixin headline-mobile_$(view), headline-system-mobile_$(view);\n }\n }\n\n .regular-$(view) {\n @mixin promo-system-mobile_$(view);\n\n &.system {\n @subtract-mixin promo-mobile_$(view), promo-system-mobile_$(view);\n }\n }\n}\n\n.component {\n &.margins-xlarge {\n @mixin margin-large;\n }\n\n &.margins-large {\n @mixin margin-small;\n }\n\n &.margins-medium {\n @mixin margin-small;\n }\n\n &.margins-small {\n @mixin margin-small;\n }\n\n & .margins-xsmall {\n @mixin margin-small;\n }\n}\n"],"names":[],"mappings":";;;;AAEgB,aAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,OAAO,CAAC,yBAAyB,CAAC,eAAe,CAAC,iCAAiC,CAAC,QAAQ,CAAC,0BAA0B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,WAAW,CAAC,6BAA6B,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC,eAAe,CAAC,iCAAiC,CAAC,gBAAgB,CAAC,kCAAkC,CAAC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/title-responsive/component.tsx"],"sourcesContent":["import React, { forwardRef } from 'react';\n\nimport { useIsDesktop } from '@alfalab/core-components-mq';\n\nimport { Title, type TitleProps } from '../title';\nimport { TitleMobile } from '../title-mobile';\n\nexport type TitleResponsiveProps = TitleProps & {\n /**\n * Контрольная точка, с нее начинается desktop версия\n * @default 1024\n */\n breakpoint?: number;\n\n /**\n * Версия, которая будет использоваться при серверном рендеринге\n */\n client?: 'desktop' | 'mobile';\n};\n\nexport const TitleResponsive = forwardRef<\n HTMLHeadingElement | HTMLDivElement,\n TitleResponsiveProps\n>(({ breakpoint, client, ...restProps }, ref) => {\n const isDesktop = useIsDesktop(breakpoint, client === 'desktop');\n\n const Component = isDesktop ? Title : TitleMobile;\n\n return <Component {...restProps} ref={ref} />;\n});\n"],"names":["forwardRef","__rest","useIsDesktop","Title","TitleMobile","React","__assign"],"mappings":";;;;;;;;;;;;;;IAoBa,eAAe,GAAGA,gBAAU,CAGvC,UAAC,EAAoC,EAAE,GAAG,EAAA;IAAvC,IAAA,UAAU,gBAAA,EAAE,MAAM,YAAA,EAAK,SAAS,GAAAC,YAAA,CAAA,EAAA,EAAlC,CAAA,YAAA,EAAA,QAAA,CAAoC,CAAF;IACjC,IAAM,SAAS,GAAGC,6BAAY,CAAC,UAAU,EAAE,MAAM,KAAK,SAAS,CAAC;IAEhE,IAAM,SAAS,GAAG,SAAS,GAAGC,WAAK,GAAGC,qBAAW;IAEjD,OAAOC,sBAAA,CAAA,aAAA,CAAC,SAAS,EAAAC,cAAA,CAAA,EAAA,EAAK,SAAS,IAAE,GAAG,EAAE,GAAG,EAAA,CAAA,CAAI;AACjD,CAAC;;"}
|