@xhsreds/reds-token-next 0.2.14-beta202502191801 → 0.2.14-beta202502192019
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/lib/cjs/const/typography/index.js +32 -0
- package/lib/cjs/const/typography/index.js.map +1 -1
- package/lib/esm/const/typography/index.js +17 -1
- package/lib/esm/const/typography/index.js.map +1 -1
- package/lib/types/const/typography/index.d.ts +17 -1
- package/package.json +1 -1
- package/src/const/typography/index.ts +19 -0
|
@@ -53,6 +53,22 @@ const C3LineHeight = 14;
|
|
|
53
53
|
const C3EmphasizedFontWeight = fontWeight.FontWeight.Medium;
|
|
54
54
|
const C3EmphasizedFontSize = 10;
|
|
55
55
|
const C3EmphasizedLineHeight = 14;
|
|
56
|
+
const DisplayLabelLineHeight = 40;
|
|
57
|
+
const DisplayParagraphLineHeight = 52;
|
|
58
|
+
const H1LabelLineHeight = 30;
|
|
59
|
+
const H1ParagraphLineHeight = 38;
|
|
60
|
+
const H2LabelLineHeight = 24;
|
|
61
|
+
const H2ParagraphLineHeight = 32;
|
|
62
|
+
const H3LabelLineHeight = 22;
|
|
63
|
+
const H3ParagraphLineHeight = 28;
|
|
64
|
+
const T1LabelLineHeight = 20;
|
|
65
|
+
const T1ParagraphLineHeight = 26;
|
|
66
|
+
const T2LabelLineHeight = 18;
|
|
67
|
+
const T2ParagraphLineHeight = 22;
|
|
68
|
+
const T3LabelLineHeight = 16;
|
|
69
|
+
const T3ParagraphLineHeight = 20;
|
|
70
|
+
const MicroLabelLineHeight = 12;
|
|
71
|
+
const MicroParagraphLineHeight = 16;
|
|
56
72
|
|
|
57
73
|
exports.B1FontSize = B1FontSize;
|
|
58
74
|
exports.B1FontWeight = B1FontWeight;
|
|
@@ -87,22 +103,38 @@ exports.C3EmphasizedLineHeight = C3EmphasizedLineHeight;
|
|
|
87
103
|
exports.C3FontSize = C3FontSize;
|
|
88
104
|
exports.C3FontWeight = C3FontWeight;
|
|
89
105
|
exports.C3LineHeight = C3LineHeight;
|
|
106
|
+
exports.DisplayLabelLineHeight = DisplayLabelLineHeight;
|
|
107
|
+
exports.DisplayParagraphLineHeight = DisplayParagraphLineHeight;
|
|
90
108
|
exports.H1FontSize = H1FontSize;
|
|
91
109
|
exports.H1FontWeight = H1FontWeight;
|
|
110
|
+
exports.H1LabelLineHeight = H1LabelLineHeight;
|
|
92
111
|
exports.H1LineHeight = H1LineHeight;
|
|
112
|
+
exports.H1ParagraphLineHeight = H1ParagraphLineHeight;
|
|
93
113
|
exports.H2FontSize = H2FontSize;
|
|
94
114
|
exports.H2FontWeight = H2FontWeight;
|
|
115
|
+
exports.H2LabelLineHeight = H2LabelLineHeight;
|
|
95
116
|
exports.H2LineHeight = H2LineHeight;
|
|
117
|
+
exports.H2ParagraphLineHeight = H2ParagraphLineHeight;
|
|
96
118
|
exports.H3FontSize = H3FontSize;
|
|
97
119
|
exports.H3FontWeight = H3FontWeight;
|
|
120
|
+
exports.H3LabelLineHeight = H3LabelLineHeight;
|
|
98
121
|
exports.H3LineHeight = H3LineHeight;
|
|
122
|
+
exports.H3ParagraphLineHeight = H3ParagraphLineHeight;
|
|
123
|
+
exports.MicroLabelLineHeight = MicroLabelLineHeight;
|
|
124
|
+
exports.MicroParagraphLineHeight = MicroParagraphLineHeight;
|
|
99
125
|
exports.T1FontSize = T1FontSize;
|
|
100
126
|
exports.T1FontWeight = T1FontWeight;
|
|
127
|
+
exports.T1LabelLineHeight = T1LabelLineHeight;
|
|
101
128
|
exports.T1LineHeight = T1LineHeight;
|
|
129
|
+
exports.T1ParagraphLineHeight = T1ParagraphLineHeight;
|
|
102
130
|
exports.T2FontSize = T2FontSize;
|
|
103
131
|
exports.T2FontWeight = T2FontWeight;
|
|
132
|
+
exports.T2LabelLineHeight = T2LabelLineHeight;
|
|
104
133
|
exports.T2LineHeight = T2LineHeight;
|
|
134
|
+
exports.T2ParagraphLineHeight = T2ParagraphLineHeight;
|
|
105
135
|
exports.T3FontSize = T3FontSize;
|
|
106
136
|
exports.T3FontWeight = T3FontWeight;
|
|
137
|
+
exports.T3LabelLineHeight = T3LabelLineHeight;
|
|
107
138
|
exports.T3LineHeight = T3LineHeight;
|
|
139
|
+
exports.T3ParagraphLineHeight = T3ParagraphLineHeight;
|
|
108
140
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/const/typography/index.ts"],"sourcesContent":["import { FontWeight } from \"../const/fontWeight\";\n\nexport const H1FontWeight = FontWeight.Semibold;\nexport const H1FontSize = 32;\nexport const H1LineHeight = 40;\nexport const H2FontWeight = FontWeight.Semibold;\nexport const H2FontSize = 24;\nexport const H2LineHeight = 32;\nexport const H3FontWeight = FontWeight.Semibold;\nexport const H3FontSize = 20;\nexport const H3LineHeight = 28;\nexport const T1FontWeight = FontWeight.Semibold;\nexport const T1FontSize = 18;\nexport const T1LineHeight = 26;\nexport const T2FontWeight = FontWeight.Medium;\nexport const T2FontSize = 16;\nexport const T2LineHeight = 24;\nexport const T3FontWeight = FontWeight.Medium;\nexport const T3FontSize = 14;\nexport const T3LineHeight = 20;\nexport const B1FontWeight = FontWeight.Regular;\nexport const B1FontSize = 16;\nexport const B1LineHeight = 24;\nexport const B1LooseFontWeight = FontWeight.Regular;\nexport const B1LooseFontSize = 16;\nexport const B1LooseLineHeight = 26;\nexport const B2FontWeight = FontWeight.Regular;\nexport const B2FontSize = 14;\nexport const B2LineHeight = 20;\nexport const B2LooseFontWeight = FontWeight.Regular;\nexport const B2LooseFontSize = 14;\nexport const B2LooseLineHeight = 22;\nexport const B2LooseSwitchFontWeight = FontWeight.Regular;\nexport const B2LooseSwitchFontSize = 15;\nexport const B2LooseSwitchLineHeight = 22;\nexport const C1FontWeight = FontWeight.Regular;\nexport const C1FontSize = 13;\nexport const C1LineHeight = 20;\nexport const C1EmphasizedFontWeight = FontWeight.Medium;\nexport const C1EmphasizedFontSize = 13;\nexport const C1EmphasizedLineHeight = 20;\nexport const C2FontWeight = FontWeight.Regular;\nexport const C2FontSize = 12;\nexport const C2LineHeight = 18;\nexport const C2EmphasizedFontWeight = FontWeight.Medium;\nexport const C2EmphasizedFontSize = 12;\nexport const C2EmphasizedLineHeight = 18;\nexport const C3FontWeight = FontWeight.Regular;\nexport const C3FontSize = 10;\nexport const C3LineHeight = 14;\nexport const C3EmphasizedFontWeight = FontWeight.Medium;\nexport const C3EmphasizedFontSize = 10;\nexport const C3EmphasizedLineHeight = 14;\n"],"names":["FontWeight"],"mappings":";;;;AAEO,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,OAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,OAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,oBAAoBA,qBAAW,CAAA,QAAA;AACrC,MAAM,eAAkB,GAAA,GAAA;AACxB,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,oBAAoBA,qBAAW,CAAA,QAAA;AACrC,MAAM,eAAkB,GAAA,GAAA;AACxB,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,0BAA0BA,qBAAW,CAAA,QAAA;AAC3C,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,uBAA0B,GAAA,GAAA;AAChC,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,yBAAyBA,qBAAW,CAAA,OAAA;AAC1C,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,sBAAyB,GAAA,GAAA;AAC/B,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,yBAAyBA,qBAAW,CAAA,OAAA;AAC1C,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,sBAAyB,GAAA,GAAA;AAC/B,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,yBAAyBA,qBAAW,CAAA,OAAA;AAC1C,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,sBAAyB,GAAA
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/const/typography/index.ts"],"sourcesContent":["import { FontWeight } from \"../const/fontWeight\";\n\nexport const H1FontWeight = FontWeight.Semibold;\nexport const H1FontSize = 32;\nexport const H1LineHeight = 40;\nexport const H2FontWeight = FontWeight.Semibold;\nexport const H2FontSize = 24;\nexport const H2LineHeight = 32;\nexport const H3FontWeight = FontWeight.Semibold;\nexport const H3FontSize = 20;\nexport const H3LineHeight = 28;\nexport const T1FontWeight = FontWeight.Semibold;\nexport const T1FontSize = 18;\nexport const T1LineHeight = 26;\nexport const T2FontWeight = FontWeight.Medium;\nexport const T2FontSize = 16;\nexport const T2LineHeight = 24;\nexport const T3FontWeight = FontWeight.Medium;\nexport const T3FontSize = 14;\nexport const T3LineHeight = 20;\nexport const B1FontWeight = FontWeight.Regular;\nexport const B1FontSize = 16;\nexport const B1LineHeight = 24;\nexport const B1LooseFontWeight = FontWeight.Regular;\nexport const B1LooseFontSize = 16;\nexport const B1LooseLineHeight = 26;\nexport const B2FontWeight = FontWeight.Regular;\nexport const B2FontSize = 14;\nexport const B2LineHeight = 20;\nexport const B2LooseFontWeight = FontWeight.Regular;\nexport const B2LooseFontSize = 14;\nexport const B2LooseLineHeight = 22;\nexport const B2LooseSwitchFontWeight = FontWeight.Regular;\nexport const B2LooseSwitchFontSize = 15;\nexport const B2LooseSwitchLineHeight = 22;\nexport const C1FontWeight = FontWeight.Regular;\nexport const C1FontSize = 13;\nexport const C1LineHeight = 20;\nexport const C1EmphasizedFontWeight = FontWeight.Medium;\nexport const C1EmphasizedFontSize = 13;\nexport const C1EmphasizedLineHeight = 20;\nexport const C2FontWeight = FontWeight.Regular;\nexport const C2FontSize = 12;\nexport const C2LineHeight = 18;\nexport const C2EmphasizedFontWeight = FontWeight.Medium;\nexport const C2EmphasizedFontSize = 12;\nexport const C2EmphasizedLineHeight = 18;\nexport const C3FontWeight = FontWeight.Regular;\nexport const C3FontSize = 10;\nexport const C3LineHeight = 14;\nexport const C3EmphasizedFontWeight = FontWeight.Medium;\nexport const C3EmphasizedFontSize = 10;\nexport const C3EmphasizedLineHeight = 14;\n\n// 对齐reds1.0 token\n\nexport const DisplayLabelLineHeight = 40;\nexport const DisplayParagraphLineHeight = 52;\nexport const H1LabelLineHeight = 30;\nexport const H1ParagraphLineHeight = 38;\nexport const H2LabelLineHeight = 24;\nexport const H2ParagraphLineHeight = 32;\nexport const H3LabelLineHeight = 22;\nexport const H3ParagraphLineHeight = 28;\nexport const T1LabelLineHeight = 20;\nexport const T1ParagraphLineHeight = 26;\nexport const T2LabelLineHeight = 18;\nexport const T2ParagraphLineHeight = 22;\nexport const T3LabelLineHeight = 16;\nexport const T3ParagraphLineHeight = 20;\nexport const MicroLabelLineHeight = 12;\nexport const MicroParagraphLineHeight = 16;\n"],"names":["FontWeight"],"mappings":";;;;AAEO,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,OAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,OAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,oBAAoBA,qBAAW,CAAA,QAAA;AACrC,MAAM,eAAkB,GAAA,GAAA;AACxB,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,eAAeA,qBAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,oBAAoBA,qBAAW,CAAA,QAAA;AACrC,MAAM,eAAkB,GAAA,GAAA;AACxB,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,0BAA0BA,qBAAW,CAAA,QAAA;AAC3C,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,uBAA0B,GAAA,GAAA;AAChC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;"}
|
|
@@ -51,6 +51,22 @@ const C3LineHeight = 14;
|
|
|
51
51
|
const C3EmphasizedFontWeight = FontWeight.Medium;
|
|
52
52
|
const C3EmphasizedFontSize = 10;
|
|
53
53
|
const C3EmphasizedLineHeight = 14;
|
|
54
|
+
const DisplayLabelLineHeight = 40;
|
|
55
|
+
const DisplayParagraphLineHeight = 52;
|
|
56
|
+
const H1LabelLineHeight = 30;
|
|
57
|
+
const H1ParagraphLineHeight = 38;
|
|
58
|
+
const H2LabelLineHeight = 24;
|
|
59
|
+
const H2ParagraphLineHeight = 32;
|
|
60
|
+
const H3LabelLineHeight = 22;
|
|
61
|
+
const H3ParagraphLineHeight = 28;
|
|
62
|
+
const T1LabelLineHeight = 20;
|
|
63
|
+
const T1ParagraphLineHeight = 26;
|
|
64
|
+
const T2LabelLineHeight = 18;
|
|
65
|
+
const T2ParagraphLineHeight = 22;
|
|
66
|
+
const T3LabelLineHeight = 16;
|
|
67
|
+
const T3ParagraphLineHeight = 20;
|
|
68
|
+
const MicroLabelLineHeight = 12;
|
|
69
|
+
const MicroParagraphLineHeight = 16;
|
|
54
70
|
|
|
55
|
-
export { B1FontSize, B1FontWeight, B1LineHeight, B1LooseFontSize, B1LooseFontWeight, B1LooseLineHeight, B2FontSize, B2FontWeight, B2LineHeight, B2LooseFontSize, B2LooseFontWeight, B2LooseLineHeight, B2LooseSwitchFontSize, B2LooseSwitchFontWeight, B2LooseSwitchLineHeight, C1EmphasizedFontSize, C1EmphasizedFontWeight, C1EmphasizedLineHeight, C1FontSize, C1FontWeight, C1LineHeight, C2EmphasizedFontSize, C2EmphasizedFontWeight, C2EmphasizedLineHeight, C2FontSize, C2FontWeight, C2LineHeight, C3EmphasizedFontSize, C3EmphasizedFontWeight, C3EmphasizedLineHeight, C3FontSize, C3FontWeight, C3LineHeight, H1FontSize, H1FontWeight, H1LineHeight, H2FontSize, H2FontWeight, H2LineHeight, H3FontSize, H3FontWeight, H3LineHeight, T1FontSize, T1FontWeight, T1LineHeight, T2FontSize, T2FontWeight, T2LineHeight, T3FontSize, T3FontWeight, T3LineHeight };
|
|
71
|
+
export { B1FontSize, B1FontWeight, B1LineHeight, B1LooseFontSize, B1LooseFontWeight, B1LooseLineHeight, B2FontSize, B2FontWeight, B2LineHeight, B2LooseFontSize, B2LooseFontWeight, B2LooseLineHeight, B2LooseSwitchFontSize, B2LooseSwitchFontWeight, B2LooseSwitchLineHeight, C1EmphasizedFontSize, C1EmphasizedFontWeight, C1EmphasizedLineHeight, C1FontSize, C1FontWeight, C1LineHeight, C2EmphasizedFontSize, C2EmphasizedFontWeight, C2EmphasizedLineHeight, C2FontSize, C2FontWeight, C2LineHeight, C3EmphasizedFontSize, C3EmphasizedFontWeight, C3EmphasizedLineHeight, C3FontSize, C3FontWeight, C3LineHeight, DisplayLabelLineHeight, DisplayParagraphLineHeight, H1FontSize, H1FontWeight, H1LabelLineHeight, H1LineHeight, H1ParagraphLineHeight, H2FontSize, H2FontWeight, H2LabelLineHeight, H2LineHeight, H2ParagraphLineHeight, H3FontSize, H3FontWeight, H3LabelLineHeight, H3LineHeight, H3ParagraphLineHeight, MicroLabelLineHeight, MicroParagraphLineHeight, T1FontSize, T1FontWeight, T1LabelLineHeight, T1LineHeight, T1ParagraphLineHeight, T2FontSize, T2FontWeight, T2LabelLineHeight, T2LineHeight, T2ParagraphLineHeight, T3FontSize, T3FontWeight, T3LabelLineHeight, T3LineHeight, T3ParagraphLineHeight };
|
|
56
72
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../src/const/typography/index.ts"],"sourcesContent":["import { FontWeight } from \"../const/fontWeight\";\n\nexport const H1FontWeight = FontWeight.Semibold;\nexport const H1FontSize = 32;\nexport const H1LineHeight = 40;\nexport const H2FontWeight = FontWeight.Semibold;\nexport const H2FontSize = 24;\nexport const H2LineHeight = 32;\nexport const H3FontWeight = FontWeight.Semibold;\nexport const H3FontSize = 20;\nexport const H3LineHeight = 28;\nexport const T1FontWeight = FontWeight.Semibold;\nexport const T1FontSize = 18;\nexport const T1LineHeight = 26;\nexport const T2FontWeight = FontWeight.Medium;\nexport const T2FontSize = 16;\nexport const T2LineHeight = 24;\nexport const T3FontWeight = FontWeight.Medium;\nexport const T3FontSize = 14;\nexport const T3LineHeight = 20;\nexport const B1FontWeight = FontWeight.Regular;\nexport const B1FontSize = 16;\nexport const B1LineHeight = 24;\nexport const B1LooseFontWeight = FontWeight.Regular;\nexport const B1LooseFontSize = 16;\nexport const B1LooseLineHeight = 26;\nexport const B2FontWeight = FontWeight.Regular;\nexport const B2FontSize = 14;\nexport const B2LineHeight = 20;\nexport const B2LooseFontWeight = FontWeight.Regular;\nexport const B2LooseFontSize = 14;\nexport const B2LooseLineHeight = 22;\nexport const B2LooseSwitchFontWeight = FontWeight.Regular;\nexport const B2LooseSwitchFontSize = 15;\nexport const B2LooseSwitchLineHeight = 22;\nexport const C1FontWeight = FontWeight.Regular;\nexport const C1FontSize = 13;\nexport const C1LineHeight = 20;\nexport const C1EmphasizedFontWeight = FontWeight.Medium;\nexport const C1EmphasizedFontSize = 13;\nexport const C1EmphasizedLineHeight = 20;\nexport const C2FontWeight = FontWeight.Regular;\nexport const C2FontSize = 12;\nexport const C2LineHeight = 18;\nexport const C2EmphasizedFontWeight = FontWeight.Medium;\nexport const C2EmphasizedFontSize = 12;\nexport const C2EmphasizedLineHeight = 18;\nexport const C3FontWeight = FontWeight.Regular;\nexport const C3FontSize = 10;\nexport const C3LineHeight = 14;\nexport const C3EmphasizedFontWeight = FontWeight.Medium;\nexport const C3EmphasizedFontSize = 10;\nexport const C3EmphasizedLineHeight = 14;\n"],"names":[],"mappings":";;AAEO,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,G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,OAAA;AAC1C,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,sBAAyB,GAAA,GAAA;AAC/B,MAAM,eAAe,UAAW,CAAA,QAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,yBAAyB,UAAW,CAAA,OAAA;AAC1C,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,sBAAyB,GAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/const/typography/index.ts"],"sourcesContent":["import { FontWeight } from \"../const/fontWeight\";\n\nexport const H1FontWeight = FontWeight.Semibold;\nexport const H1FontSize = 32;\nexport const H1LineHeight = 40;\nexport const H2FontWeight = FontWeight.Semibold;\nexport const H2FontSize = 24;\nexport const H2LineHeight = 32;\nexport const H3FontWeight = FontWeight.Semibold;\nexport const H3FontSize = 20;\nexport const H3LineHeight = 28;\nexport const T1FontWeight = FontWeight.Semibold;\nexport const T1FontSize = 18;\nexport const T1LineHeight = 26;\nexport const T2FontWeight = FontWeight.Medium;\nexport const T2FontSize = 16;\nexport const T2LineHeight = 24;\nexport const T3FontWeight = FontWeight.Medium;\nexport const T3FontSize = 14;\nexport const T3LineHeight = 20;\nexport const B1FontWeight = FontWeight.Regular;\nexport const B1FontSize = 16;\nexport const B1LineHeight = 24;\nexport const B1LooseFontWeight = FontWeight.Regular;\nexport const B1LooseFontSize = 16;\nexport const B1LooseLineHeight = 26;\nexport const B2FontWeight = FontWeight.Regular;\nexport const B2FontSize = 14;\nexport const B2LineHeight = 20;\nexport const B2LooseFontWeight = FontWeight.Regular;\nexport const B2LooseFontSize = 14;\nexport const B2LooseLineHeight = 22;\nexport const B2LooseSwitchFontWeight = FontWeight.Regular;\nexport const B2LooseSwitchFontSize = 15;\nexport const B2LooseSwitchLineHeight = 22;\nexport const C1FontWeight = FontWeight.Regular;\nexport const C1FontSize = 13;\nexport const C1LineHeight = 20;\nexport const C1EmphasizedFontWeight = FontWeight.Medium;\nexport const C1EmphasizedFontSize = 13;\nexport const C1EmphasizedLineHeight = 20;\nexport const C2FontWeight = FontWeight.Regular;\nexport const C2FontSize = 12;\nexport const C2LineHeight = 18;\nexport const C2EmphasizedFontWeight = FontWeight.Medium;\nexport const C2EmphasizedFontSize = 12;\nexport const C2EmphasizedLineHeight = 18;\nexport const C3FontWeight = FontWeight.Regular;\nexport const C3FontSize = 10;\nexport const C3LineHeight = 14;\nexport const C3EmphasizedFontWeight = FontWeight.Medium;\nexport const C3EmphasizedFontSize = 10;\nexport const C3EmphasizedLineHeight = 14;\n\n// 对齐reds1.0 token\n\nexport const DisplayLabelLineHeight = 40;\nexport const DisplayParagraphLineHeight = 52;\nexport const H1LabelLineHeight = 30;\nexport const H1ParagraphLineHeight = 38;\nexport const H2LabelLineHeight = 24;\nexport const H2ParagraphLineHeight = 32;\nexport const H3LabelLineHeight = 22;\nexport const H3ParagraphLineHeight = 28;\nexport const T1LabelLineHeight = 20;\nexport const T1ParagraphLineHeight = 26;\nexport const T2LabelLineHeight = 18;\nexport const T2ParagraphLineHeight = 22;\nexport const T3LabelLineHeight = 16;\nexport const T3ParagraphLineHeight = 20;\nexport const MicroLabelLineHeight = 12;\nexport const MicroParagraphLineHeight = 16;\n"],"names":[],"mappings":";;AAEO,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAe,UAAW,CAAA,SAAA;AAChC,MAAM,UAAa,GAAA,GAAA;AACnB,MAAM,YAAe,GAAA,GAAA;AACrB,MAAM,eAAe,UAAW,CAAA,OAAA;AAChC,MAAM,UAAa,G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BAAyB,GAAA,GAAA;AAI/B,MAAM,sBAAyB,GAAA,GAAA;AAC/B,MAAM,0BAA6B,GAAA,GAAA;AACnC,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,iBAAoB,GAAA,GAAA;AAC1B,MAAM,qBAAwB,GAAA,GAAA;AAC9B,MAAM,oBAAuB,GAAA,GAAA;AAC7B,MAAM,wBAA2B,GAAA;;;;"}
|
|
@@ -49,5 +49,21 @@ declare const C3LineHeight = 14;
|
|
|
49
49
|
declare const C3EmphasizedFontWeight: "400" | "500" | "600" | "700";
|
|
50
50
|
declare const C3EmphasizedFontSize = 10;
|
|
51
51
|
declare const C3EmphasizedLineHeight = 14;
|
|
52
|
+
declare const DisplayLabelLineHeight = 40;
|
|
53
|
+
declare const DisplayParagraphLineHeight = 52;
|
|
54
|
+
declare const H1LabelLineHeight = 30;
|
|
55
|
+
declare const H1ParagraphLineHeight = 38;
|
|
56
|
+
declare const H2LabelLineHeight = 24;
|
|
57
|
+
declare const H2ParagraphLineHeight = 32;
|
|
58
|
+
declare const H3LabelLineHeight = 22;
|
|
59
|
+
declare const H3ParagraphLineHeight = 28;
|
|
60
|
+
declare const T1LabelLineHeight = 20;
|
|
61
|
+
declare const T1ParagraphLineHeight = 26;
|
|
62
|
+
declare const T2LabelLineHeight = 18;
|
|
63
|
+
declare const T2ParagraphLineHeight = 22;
|
|
64
|
+
declare const T3LabelLineHeight = 16;
|
|
65
|
+
declare const T3ParagraphLineHeight = 20;
|
|
66
|
+
declare const MicroLabelLineHeight = 12;
|
|
67
|
+
declare const MicroParagraphLineHeight = 16;
|
|
52
68
|
|
|
53
|
-
export { B1FontSize, B1FontWeight, B1LineHeight, B1LooseFontSize, B1LooseFontWeight, B1LooseLineHeight, B2FontSize, B2FontWeight, B2LineHeight, B2LooseFontSize, B2LooseFontWeight, B2LooseLineHeight, B2LooseSwitchFontSize, B2LooseSwitchFontWeight, B2LooseSwitchLineHeight, C1EmphasizedFontSize, C1EmphasizedFontWeight, C1EmphasizedLineHeight, C1FontSize, C1FontWeight, C1LineHeight, C2EmphasizedFontSize, C2EmphasizedFontWeight, C2EmphasizedLineHeight, C2FontSize, C2FontWeight, C2LineHeight, C3EmphasizedFontSize, C3EmphasizedFontWeight, C3EmphasizedLineHeight, C3FontSize, C3FontWeight, C3LineHeight, H1FontSize, H1FontWeight, H1LineHeight, H2FontSize, H2FontWeight, H2LineHeight, H3FontSize, H3FontWeight, H3LineHeight, T1FontSize, T1FontWeight, T1LineHeight, T2FontSize, T2FontWeight, T2LineHeight, T3FontSize, T3FontWeight, T3LineHeight };
|
|
69
|
+
export { B1FontSize, B1FontWeight, B1LineHeight, B1LooseFontSize, B1LooseFontWeight, B1LooseLineHeight, B2FontSize, B2FontWeight, B2LineHeight, B2LooseFontSize, B2LooseFontWeight, B2LooseLineHeight, B2LooseSwitchFontSize, B2LooseSwitchFontWeight, B2LooseSwitchLineHeight, C1EmphasizedFontSize, C1EmphasizedFontWeight, C1EmphasizedLineHeight, C1FontSize, C1FontWeight, C1LineHeight, C2EmphasizedFontSize, C2EmphasizedFontWeight, C2EmphasizedLineHeight, C2FontSize, C2FontWeight, C2LineHeight, C3EmphasizedFontSize, C3EmphasizedFontWeight, C3EmphasizedLineHeight, C3FontSize, C3FontWeight, C3LineHeight, DisplayLabelLineHeight, DisplayParagraphLineHeight, H1FontSize, H1FontWeight, H1LabelLineHeight, H1LineHeight, H1ParagraphLineHeight, H2FontSize, H2FontWeight, H2LabelLineHeight, H2LineHeight, H2ParagraphLineHeight, H3FontSize, H3FontWeight, H3LabelLineHeight, H3LineHeight, H3ParagraphLineHeight, MicroLabelLineHeight, MicroParagraphLineHeight, T1FontSize, T1FontWeight, T1LabelLineHeight, T1LineHeight, T1ParagraphLineHeight, T2FontSize, T2FontWeight, T2LabelLineHeight, T2LineHeight, T2ParagraphLineHeight, T3FontSize, T3FontWeight, T3LabelLineHeight, T3LineHeight, T3ParagraphLineHeight };
|
package/package.json
CHANGED
|
@@ -51,3 +51,22 @@ export const C3LineHeight = 14;
|
|
|
51
51
|
export const C3EmphasizedFontWeight = FontWeight.Medium;
|
|
52
52
|
export const C3EmphasizedFontSize = 10;
|
|
53
53
|
export const C3EmphasizedLineHeight = 14;
|
|
54
|
+
|
|
55
|
+
// 对齐reds1.0 token
|
|
56
|
+
|
|
57
|
+
export const DisplayLabelLineHeight = 40;
|
|
58
|
+
export const DisplayParagraphLineHeight = 52;
|
|
59
|
+
export const H1LabelLineHeight = 30;
|
|
60
|
+
export const H1ParagraphLineHeight = 38;
|
|
61
|
+
export const H2LabelLineHeight = 24;
|
|
62
|
+
export const H2ParagraphLineHeight = 32;
|
|
63
|
+
export const H3LabelLineHeight = 22;
|
|
64
|
+
export const H3ParagraphLineHeight = 28;
|
|
65
|
+
export const T1LabelLineHeight = 20;
|
|
66
|
+
export const T1ParagraphLineHeight = 26;
|
|
67
|
+
export const T2LabelLineHeight = 18;
|
|
68
|
+
export const T2ParagraphLineHeight = 22;
|
|
69
|
+
export const T3LabelLineHeight = 16;
|
|
70
|
+
export const T3ParagraphLineHeight = 20;
|
|
71
|
+
export const MicroLabelLineHeight = 12;
|
|
72
|
+
export const MicroParagraphLineHeight = 16;
|