spoclip-kit 1.3.2 → 1.4.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.
- package/dist/index.cjs +93 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +92 -0
- package/dist/index.js.map +1 -1
- package/dist/styles.cjs +93 -0
- package/dist/styles.cjs.map +1 -1
- package/dist/styles.d.cts +133 -1
- package/dist/styles.d.ts +133 -1
- package/dist/styles.js +92 -0
- package/dist/styles.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(src_exports, {
|
|
|
25
25
|
getClipVideoDownloadCost: () => getClipVideoDownloadCost,
|
|
26
26
|
getRawVideoDownloadCost: () => getRawVideoDownloadCost,
|
|
27
27
|
getVideoDownloadCost: () => getVideoDownloadCost,
|
|
28
|
+
mobileTypo: () => mobileTypo,
|
|
28
29
|
typo: () => typo
|
|
29
30
|
});
|
|
30
31
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -67,7 +68,9 @@ function getRawVideoDownloadCost() {
|
|
|
67
68
|
// src/styles/color.ts
|
|
68
69
|
var color = {
|
|
69
70
|
primary: "#242535",
|
|
71
|
+
primaryB: "#515265",
|
|
70
72
|
primary2: "#9335FB",
|
|
73
|
+
primary2B: "#6323AA",
|
|
71
74
|
secondary: "#FADD32",
|
|
72
75
|
bgColor: "#F3F4F6",
|
|
73
76
|
error: "#EA2E2E",
|
|
@@ -211,6 +214,95 @@ var typo = {
|
|
|
211
214
|
letterSpacing: 0
|
|
212
215
|
}
|
|
213
216
|
};
|
|
217
|
+
var transformLineheight = (key) => {
|
|
218
|
+
return typo[key].lineHeight * typo[key].fontSize;
|
|
219
|
+
};
|
|
220
|
+
var mobileTypo = {
|
|
221
|
+
"h1-24b": {
|
|
222
|
+
...typo["h1-24b"],
|
|
223
|
+
lineHeight: transformLineheight("h1-24b")
|
|
224
|
+
},
|
|
225
|
+
"h1-24m": {
|
|
226
|
+
...typo["h1-24m"],
|
|
227
|
+
lineHeight: transformLineheight("h1-24m")
|
|
228
|
+
},
|
|
229
|
+
"h1-24": {
|
|
230
|
+
...typo["h1-24"],
|
|
231
|
+
lineHeight: transformLineheight("h1-24")
|
|
232
|
+
},
|
|
233
|
+
"h2-20b": {
|
|
234
|
+
...typo["h2-20b"],
|
|
235
|
+
lineHeight: transformLineheight("h2-20b")
|
|
236
|
+
},
|
|
237
|
+
"h2-20m": {
|
|
238
|
+
...typo["h2-20m"],
|
|
239
|
+
lineHeight: transformLineheight("h2-20m")
|
|
240
|
+
},
|
|
241
|
+
"h2-20": {
|
|
242
|
+
...typo["h2-20"],
|
|
243
|
+
lineHeight: transformLineheight("h2-20")
|
|
244
|
+
},
|
|
245
|
+
"h3-18b": {
|
|
246
|
+
...typo["h3-18b"],
|
|
247
|
+
lineHeight: transformLineheight("h3-18b")
|
|
248
|
+
},
|
|
249
|
+
"h3-18m": {
|
|
250
|
+
...typo["h3-18m"],
|
|
251
|
+
lineHeight: transformLineheight("h3-18m")
|
|
252
|
+
},
|
|
253
|
+
"h3-18": {
|
|
254
|
+
...typo["h3-18"],
|
|
255
|
+
lineHeight: transformLineheight("h3-18")
|
|
256
|
+
},
|
|
257
|
+
"b1-16b": {
|
|
258
|
+
...typo["b1-16b"],
|
|
259
|
+
lineHeight: transformLineheight("b1-16b")
|
|
260
|
+
},
|
|
261
|
+
"b1-16m": {
|
|
262
|
+
...typo["b1-16m"],
|
|
263
|
+
lineHeight: transformLineheight("b1-16m")
|
|
264
|
+
},
|
|
265
|
+
"b1-16": {
|
|
266
|
+
...typo["b1-16"],
|
|
267
|
+
lineHeight: transformLineheight("b1-16")
|
|
268
|
+
},
|
|
269
|
+
"b2-14b": {
|
|
270
|
+
...typo["b2-14b"],
|
|
271
|
+
lineHeight: transformLineheight("b2-14b")
|
|
272
|
+
},
|
|
273
|
+
"b2-14m": {
|
|
274
|
+
...typo["b2-14m"],
|
|
275
|
+
lineHeight: transformLineheight("b2-14m")
|
|
276
|
+
},
|
|
277
|
+
"b2-14": {
|
|
278
|
+
...typo["b2-14"],
|
|
279
|
+
lineHeight: transformLineheight("b2-14")
|
|
280
|
+
},
|
|
281
|
+
"b3-12b": {
|
|
282
|
+
...typo["b3-12b"],
|
|
283
|
+
lineHeight: transformLineheight("b3-12b")
|
|
284
|
+
},
|
|
285
|
+
"b3-12m": {
|
|
286
|
+
...typo["b3-12m"],
|
|
287
|
+
lineHeight: transformLineheight("b3-12m")
|
|
288
|
+
},
|
|
289
|
+
"b3-12": {
|
|
290
|
+
...typo["b3-12"],
|
|
291
|
+
lineHeight: transformLineheight("b3-12")
|
|
292
|
+
},
|
|
293
|
+
"s1-10b": {
|
|
294
|
+
...typo["s1-10b"],
|
|
295
|
+
lineHeight: transformLineheight("s1-10b")
|
|
296
|
+
},
|
|
297
|
+
"s1-10m": {
|
|
298
|
+
...typo["s1-10m"],
|
|
299
|
+
lineHeight: transformLineheight("s1-10m")
|
|
300
|
+
},
|
|
301
|
+
"s1-10": {
|
|
302
|
+
...typo["s1-10"],
|
|
303
|
+
lineHeight: transformLineheight("s1-10")
|
|
304
|
+
}
|
|
305
|
+
};
|
|
214
306
|
// Annotate the CommonJS export names for ESM import in node:
|
|
215
307
|
0 && (module.exports = {
|
|
216
308
|
color,
|
|
@@ -218,6 +310,7 @@ var typo = {
|
|
|
218
310
|
getClipVideoDownloadCost,
|
|
219
311
|
getRawVideoDownloadCost,
|
|
220
312
|
getVideoDownloadCost,
|
|
313
|
+
mobileTypo,
|
|
221
314
|
typo
|
|
222
315
|
});
|
|
223
316
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts","../src/libs/cost.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["// Main entry point for spoclip-kit\nexport * from './libs';\nexport * from './types';\nexport * from './styles';\n","import type { TicketCode } from '@/types/membership';\n\nconst CLIP_COST_PER_SECOND = 1 / 60;\n\n/**\n * 비디오 다운로드 비용을 계산합니다.\n *\n * @description\n * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨\n * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료\n * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작\n * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨\n * - 59초부터는 1.98xx 이므로 반올림 시 2톨\n * - 60초부터는 2.00xx 이므로 반올림 시 2톨\n * - 62초부터는 2.03xx 이므로 반올림 시 2톨\n * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨\n *\n */\n\ntype GetVideoDownloadCostParams = {\n duration: number;\n quality: '2K' | '4K';\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n\n /** @deprecated 이 파라미터는 더이상 사용되지 않습니다. */\n isFullTime?: boolean;\n};\n\nexport function getVideoDownloadCost({\n duration,\n quality,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetVideoDownloadCostParams) {\n if (quality === '4K') {\n return getRawVideoDownloadCost();\n }\n\n return getClipVideoDownloadCost({\n duration,\n ticketCode,\n remainingFreeDownloads,\n });\n}\n\ntype GetClipVideoDownloadCostParams = {\n duration: number;\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n};\n\nexport function getClipVideoDownloadCost({\n duration,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetClipVideoDownloadCostParams) {\n const durationInSeconds = duration / 1000;\n const isUnder61 = durationInSeconds < 61;\n const isPlus = ticketCode === 'PLUS';\n\n if (isPlus && remainingFreeDownloads > 0 && isUnder61) {\n return { cost: 0, isPlusFree: true };\n }\n\n const cost = Math.round(durationInSeconds * CLIP_COST_PER_SECOND * 10) / 10;\n return { cost, isPlusFree: false };\n}\n\nexport function getRawVideoDownloadCost() {\n return { cost: 20, isPlusFree: false };\n}\n","const color = {\n primary: '#242535',\n primary2: '#9335FB',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","const typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nexport { typo };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAM,uBAAuB,IAAI;AA2B1B,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAA+B;AAC7B,MAAI,YAAY,MAAM;AACpB,WAAO,wBAAwB;AAAA,EACjC;AAEA,SAAO,yBAAyB;AAAA,IAC9B;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAQO,SAAS,yBAAyB;AAAA,EACvC;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAAmC;AACjC,QAAM,oBAAoB,WAAW;AACrC,QAAM,YAAY,oBAAoB;AACtC,QAAM,SAAS,eAAe;AAE9B,MAAI,UAAU,yBAAyB,KAAK,WAAW;AACrD,WAAO,EAAE,MAAM,GAAG,YAAY,KAAK;AAAA,EACrC;AAEA,QAAM,OAAO,KAAK,MAAM,oBAAoB,uBAAu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AA,IACZ,eAAe;AAAA,EACjB;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/libs/cost.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["// Main entry point for spoclip-kit\nexport * from './libs';\nexport * from './types';\nexport * from './styles';\n","import type { TicketCode } from '@/types/membership';\n\nconst CLIP_COST_PER_SECOND = 1 / 60;\n\n/**\n * 비디오 다운로드 비용을 계산합니다.\n *\n * @description\n * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨\n * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료\n * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작\n * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨\n * - 59초부터는 1.98xx 이므로 반올림 시 2톨\n * - 60초부터는 2.00xx 이므로 반올림 시 2톨\n * - 62초부터는 2.03xx 이므로 반올림 시 2톨\n * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨\n *\n */\n\ntype GetVideoDownloadCostParams = {\n duration: number;\n quality: '2K' | '4K';\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n\n /** @deprecated 이 파라미터는 더이상 사용되지 않습니다. */\n isFullTime?: boolean;\n};\n\nexport function getVideoDownloadCost({\n duration,\n quality,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetVideoDownloadCostParams) {\n if (quality === '4K') {\n return getRawVideoDownloadCost();\n }\n\n return getClipVideoDownloadCost({\n duration,\n ticketCode,\n remainingFreeDownloads,\n });\n}\n\ntype GetClipVideoDownloadCostParams = {\n duration: number;\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n};\n\nexport function getClipVideoDownloadCost({\n duration,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetClipVideoDownloadCostParams) {\n const durationInSeconds = duration / 1000;\n const isUnder61 = durationInSeconds < 61;\n const isPlus = ticketCode === 'PLUS';\n\n if (isPlus && remainingFreeDownloads > 0 && isUnder61) {\n return { cost: 0, isPlusFree: true };\n }\n\n const cost = Math.round(durationInSeconds * CLIP_COST_PER_SECOND * 10) / 10;\n return { cost, isPlusFree: false };\n}\n\nexport function getRawVideoDownloadCost() {\n return { cost: 20, isPlusFree: false };\n}\n","const color = {\n primary: '#242535',\n primaryB: '#515265',\n primary2: '#9335FB',\n primary2B: '#6323AA',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","type TypographyKey =\n | 'h1-24b'\n | 'h1-24m'\n | 'h1-24'\n | 'h2-20b'\n | 'h2-20m'\n | 'h2-20'\n | 'h3-18b'\n | 'h3-18m'\n | 'h3-18'\n | 'b1-16b'\n | 'b1-16m'\n | 'b1-16'\n | 'b2-14b'\n | 'b2-14m'\n | 'b2-14'\n | 'b3-12b'\n | 'b3-12m'\n | 'b3-12'\n | 's1-10b'\n | 's1-10m'\n | 's1-10';\ntype TypographyValue = {\n fontSize: number;\n fontWeight: number;\n lineHeight: number;\n letterSpacing: number;\n};\n\nconst typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nconst transformLineheight = (key: TypographyKey) => {\n return typo[key].lineHeight * typo[key].fontSize;\n};\n\nconst mobileTypo = {\n 'h1-24b': {\n ...typo['h1-24b'],\n lineHeight: transformLineheight('h1-24b'),\n },\n\n 'h1-24m': {\n ...typo['h1-24m'],\n lineHeight: transformLineheight('h1-24m'),\n },\n\n 'h1-24': {\n ...typo['h1-24'],\n lineHeight: transformLineheight('h1-24'),\n },\n\n 'h2-20b': {\n ...typo['h2-20b'],\n lineHeight: transformLineheight('h2-20b'),\n },\n\n 'h2-20m': {\n ...typo['h2-20m'],\n lineHeight: transformLineheight('h2-20m'),\n },\n\n 'h2-20': {\n ...typo['h2-20'],\n lineHeight: transformLineheight('h2-20'),\n },\n\n 'h3-18b': {\n ...typo['h3-18b'],\n lineHeight: transformLineheight('h3-18b'),\n },\n\n 'h3-18m': {\n ...typo['h3-18m'],\n lineHeight: transformLineheight('h3-18m'),\n },\n\n 'h3-18': {\n ...typo['h3-18'],\n lineHeight: transformLineheight('h3-18'),\n },\n\n 'b1-16b': {\n ...typo['b1-16b'],\n lineHeight: transformLineheight('b1-16b'),\n },\n\n 'b1-16m': {\n ...typo['b1-16m'],\n lineHeight: transformLineheight('b1-16m'),\n },\n\n 'b1-16': {\n ...typo['b1-16'],\n lineHeight: transformLineheight('b1-16'),\n },\n\n 'b2-14b': {\n ...typo['b2-14b'],\n lineHeight: transformLineheight('b2-14b'),\n },\n\n 'b2-14m': {\n ...typo['b2-14m'],\n lineHeight: transformLineheight('b2-14m'),\n },\n\n 'b2-14': {\n ...typo['b2-14'],\n lineHeight: transformLineheight('b2-14'),\n },\n\n 'b3-12b': {\n ...typo['b3-12b'],\n lineHeight: transformLineheight('b3-12b'),\n },\n\n 'b3-12m': {\n ...typo['b3-12m'],\n lineHeight: transformLineheight('b3-12m'),\n },\n\n 'b3-12': {\n ...typo['b3-12'],\n lineHeight: transformLineheight('b3-12'),\n },\n\n 's1-10b': {\n ...typo['s1-10b'],\n lineHeight: transformLineheight('s1-10b'),\n },\n\n 's1-10m': {\n ...typo['s1-10m'],\n lineHeight: transformLineheight('s1-10m'),\n },\n\n 's1-10': {\n ...typo['s1-10'],\n lineHeight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AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AACF;","names":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { getClipVideoDownloadCost, getRawVideoDownloadCost, getVideoDownloadCost } from './libs.cjs';
|
|
2
2
|
export { T as TicketCode } from './membership-DWX-PuXh.cjs';
|
|
3
3
|
export { APIErrorResponse, APIResponse, APIResponseBase } from './types.cjs';
|
|
4
|
-
export { color, colorV2, typo } from './styles.cjs';
|
|
4
|
+
export { color, colorV2, mobileTypo, typo } from './styles.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { getClipVideoDownloadCost, getRawVideoDownloadCost, getVideoDownloadCost } from './libs.js';
|
|
2
2
|
export { T as TicketCode } from './membership-DWX-PuXh.js';
|
|
3
3
|
export { APIErrorResponse, APIResponse, APIResponseBase } from './types.js';
|
|
4
|
-
export { color, colorV2, typo } from './styles.js';
|
|
4
|
+
export { color, colorV2, mobileTypo, typo } from './styles.js';
|
package/dist/index.js
CHANGED
|
@@ -36,7 +36,9 @@ function getRawVideoDownloadCost() {
|
|
|
36
36
|
// src/styles/color.ts
|
|
37
37
|
var color = {
|
|
38
38
|
primary: "#242535",
|
|
39
|
+
primaryB: "#515265",
|
|
39
40
|
primary2: "#9335FB",
|
|
41
|
+
primary2B: "#6323AA",
|
|
40
42
|
secondary: "#FADD32",
|
|
41
43
|
bgColor: "#F3F4F6",
|
|
42
44
|
error: "#EA2E2E",
|
|
@@ -180,12 +182,102 @@ var typo = {
|
|
|
180
182
|
letterSpacing: 0
|
|
181
183
|
}
|
|
182
184
|
};
|
|
185
|
+
var transformLineheight = (key) => {
|
|
186
|
+
return typo[key].lineHeight * typo[key].fontSize;
|
|
187
|
+
};
|
|
188
|
+
var mobileTypo = {
|
|
189
|
+
"h1-24b": {
|
|
190
|
+
...typo["h1-24b"],
|
|
191
|
+
lineHeight: transformLineheight("h1-24b")
|
|
192
|
+
},
|
|
193
|
+
"h1-24m": {
|
|
194
|
+
...typo["h1-24m"],
|
|
195
|
+
lineHeight: transformLineheight("h1-24m")
|
|
196
|
+
},
|
|
197
|
+
"h1-24": {
|
|
198
|
+
...typo["h1-24"],
|
|
199
|
+
lineHeight: transformLineheight("h1-24")
|
|
200
|
+
},
|
|
201
|
+
"h2-20b": {
|
|
202
|
+
...typo["h2-20b"],
|
|
203
|
+
lineHeight: transformLineheight("h2-20b")
|
|
204
|
+
},
|
|
205
|
+
"h2-20m": {
|
|
206
|
+
...typo["h2-20m"],
|
|
207
|
+
lineHeight: transformLineheight("h2-20m")
|
|
208
|
+
},
|
|
209
|
+
"h2-20": {
|
|
210
|
+
...typo["h2-20"],
|
|
211
|
+
lineHeight: transformLineheight("h2-20")
|
|
212
|
+
},
|
|
213
|
+
"h3-18b": {
|
|
214
|
+
...typo["h3-18b"],
|
|
215
|
+
lineHeight: transformLineheight("h3-18b")
|
|
216
|
+
},
|
|
217
|
+
"h3-18m": {
|
|
218
|
+
...typo["h3-18m"],
|
|
219
|
+
lineHeight: transformLineheight("h3-18m")
|
|
220
|
+
},
|
|
221
|
+
"h3-18": {
|
|
222
|
+
...typo["h3-18"],
|
|
223
|
+
lineHeight: transformLineheight("h3-18")
|
|
224
|
+
},
|
|
225
|
+
"b1-16b": {
|
|
226
|
+
...typo["b1-16b"],
|
|
227
|
+
lineHeight: transformLineheight("b1-16b")
|
|
228
|
+
},
|
|
229
|
+
"b1-16m": {
|
|
230
|
+
...typo["b1-16m"],
|
|
231
|
+
lineHeight: transformLineheight("b1-16m")
|
|
232
|
+
},
|
|
233
|
+
"b1-16": {
|
|
234
|
+
...typo["b1-16"],
|
|
235
|
+
lineHeight: transformLineheight("b1-16")
|
|
236
|
+
},
|
|
237
|
+
"b2-14b": {
|
|
238
|
+
...typo["b2-14b"],
|
|
239
|
+
lineHeight: transformLineheight("b2-14b")
|
|
240
|
+
},
|
|
241
|
+
"b2-14m": {
|
|
242
|
+
...typo["b2-14m"],
|
|
243
|
+
lineHeight: transformLineheight("b2-14m")
|
|
244
|
+
},
|
|
245
|
+
"b2-14": {
|
|
246
|
+
...typo["b2-14"],
|
|
247
|
+
lineHeight: transformLineheight("b2-14")
|
|
248
|
+
},
|
|
249
|
+
"b3-12b": {
|
|
250
|
+
...typo["b3-12b"],
|
|
251
|
+
lineHeight: transformLineheight("b3-12b")
|
|
252
|
+
},
|
|
253
|
+
"b3-12m": {
|
|
254
|
+
...typo["b3-12m"],
|
|
255
|
+
lineHeight: transformLineheight("b3-12m")
|
|
256
|
+
},
|
|
257
|
+
"b3-12": {
|
|
258
|
+
...typo["b3-12"],
|
|
259
|
+
lineHeight: transformLineheight("b3-12")
|
|
260
|
+
},
|
|
261
|
+
"s1-10b": {
|
|
262
|
+
...typo["s1-10b"],
|
|
263
|
+
lineHeight: transformLineheight("s1-10b")
|
|
264
|
+
},
|
|
265
|
+
"s1-10m": {
|
|
266
|
+
...typo["s1-10m"],
|
|
267
|
+
lineHeight: transformLineheight("s1-10m")
|
|
268
|
+
},
|
|
269
|
+
"s1-10": {
|
|
270
|
+
...typo["s1-10"],
|
|
271
|
+
lineHeight: transformLineheight("s1-10")
|
|
272
|
+
}
|
|
273
|
+
};
|
|
183
274
|
export {
|
|
184
275
|
color,
|
|
185
276
|
colorV2,
|
|
186
277
|
getClipVideoDownloadCost,
|
|
187
278
|
getRawVideoDownloadCost,
|
|
188
279
|
getVideoDownloadCost,
|
|
280
|
+
mobileTypo,
|
|
189
281
|
typo
|
|
190
282
|
};
|
|
191
283
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/libs/cost.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["import type { TicketCode } from '@/types/membership';\n\nconst CLIP_COST_PER_SECOND = 1 / 60;\n\n/**\n * 비디오 다운로드 비용을 계산합니다.\n *\n * @description\n * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨\n * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료\n * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작\n * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨\n * - 59초부터는 1.98xx 이므로 반올림 시 2톨\n * - 60초부터는 2.00xx 이므로 반올림 시 2톨\n * - 62초부터는 2.03xx 이므로 반올림 시 2톨\n * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨\n *\n */\n\ntype GetVideoDownloadCostParams = {\n duration: number;\n quality: '2K' | '4K';\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n\n /** @deprecated 이 파라미터는 더이상 사용되지 않습니다. */\n isFullTime?: boolean;\n};\n\nexport function getVideoDownloadCost({\n duration,\n quality,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetVideoDownloadCostParams) {\n if (quality === '4K') {\n return getRawVideoDownloadCost();\n }\n\n return getClipVideoDownloadCost({\n duration,\n ticketCode,\n remainingFreeDownloads,\n });\n}\n\ntype GetClipVideoDownloadCostParams = {\n duration: number;\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n};\n\nexport function getClipVideoDownloadCost({\n duration,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetClipVideoDownloadCostParams) {\n const durationInSeconds = duration / 1000;\n const isUnder61 = durationInSeconds < 61;\n const isPlus = ticketCode === 'PLUS';\n\n if (isPlus && remainingFreeDownloads > 0 && isUnder61) {\n return { cost: 0, isPlusFree: true };\n }\n\n const cost = Math.round(durationInSeconds * CLIP_COST_PER_SECOND * 10) / 10;\n return { cost, isPlusFree: false };\n}\n\nexport function getRawVideoDownloadCost() {\n return { cost: 20, isPlusFree: false };\n}\n","const color = {\n primary: '#242535',\n primary2: '#9335FB',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","const typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nexport { typo };\n"],"mappings":";AAEA,IAAM,uBAAuB,IAAI;AA2B1B,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAA+B;AAC7B,MAAI,YAAY,MAAM;AACpB,WAAO,wBAAwB;AAAA,EACjC;AAEA,SAAO,yBAAyB;AAAA,IAC9B;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAQO,SAAS,yBAAyB;AAAA,EACvC;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAAmC;AACjC,QAAM,oBAAoB,WAAW;AACrC,QAAM,YAAY,oBAAoB;AACtC,QAAM,SAAS,eAAe;AAE9B,MAAI,UAAU,yB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AA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AACF;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/libs/cost.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["import type { TicketCode } from '@/types/membership';\n\nconst CLIP_COST_PER_SECOND = 1 / 60;\n\n/**\n * 비디오 다운로드 비용을 계산합니다.\n *\n * @description\n * - 전체 시간 4K 다운로드 시 티켓 상관없이 20톨\n * - 1분 미만인 경우, remainingFreeDownloads > 0 이면 무료\n * - 1분 미만인 경우, remainingFreeDownloads <= 0 이면 1톨부터 시작\n * - 55초부터는 1.92xx 이므로 반올림 시 1.9톨\n * - 59초부터는 1.98xx 이므로 반올림 시 2톨\n * - 60초부터는 2.00xx 이므로 반올림 시 2톨\n * - 62초부터는 2.03xx 이므로 반올림 시 2톨\n * - 63초부터는 2.05xx 이므로 반올림 시 2.1톨\n *\n */\n\ntype GetVideoDownloadCostParams = {\n duration: number;\n quality: '2K' | '4K';\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n\n /** @deprecated 이 파라미터는 더이상 사용되지 않습니다. */\n isFullTime?: boolean;\n};\n\nexport function getVideoDownloadCost({\n duration,\n quality,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetVideoDownloadCostParams) {\n if (quality === '4K') {\n return getRawVideoDownloadCost();\n }\n\n return getClipVideoDownloadCost({\n duration,\n ticketCode,\n remainingFreeDownloads,\n });\n}\n\ntype GetClipVideoDownloadCostParams = {\n duration: number;\n ticketCode?: TicketCode;\n remainingFreeDownloads?: number;\n};\n\nexport function getClipVideoDownloadCost({\n duration,\n ticketCode = 'FREE',\n remainingFreeDownloads = 0,\n}: GetClipVideoDownloadCostParams) {\n const durationInSeconds = duration / 1000;\n const isUnder61 = durationInSeconds < 61;\n const isPlus = ticketCode === 'PLUS';\n\n if (isPlus && remainingFreeDownloads > 0 && isUnder61) {\n return { cost: 0, isPlusFree: true };\n }\n\n const cost = Math.round(durationInSeconds * CLIP_COST_PER_SECOND * 10) / 10;\n return { cost, isPlusFree: false };\n}\n\nexport function getRawVideoDownloadCost() {\n return { cost: 20, isPlusFree: false };\n}\n","const color = {\n primary: '#242535',\n primaryB: '#515265',\n primary2: '#9335FB',\n primary2B: '#6323AA',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","type TypographyKey =\n | 'h1-24b'\n | 'h1-24m'\n | 'h1-24'\n | 'h2-20b'\n | 'h2-20m'\n | 'h2-20'\n | 'h3-18b'\n | 'h3-18m'\n | 'h3-18'\n | 'b1-16b'\n | 'b1-16m'\n | 'b1-16'\n | 'b2-14b'\n | 'b2-14m'\n | 'b2-14'\n | 'b3-12b'\n | 'b3-12m'\n | 'b3-12'\n | 's1-10b'\n | 's1-10m'\n | 's1-10';\ntype TypographyValue = {\n fontSize: number;\n fontWeight: number;\n lineHeight: number;\n letterSpacing: number;\n};\n\nconst typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nconst transformLineheight = (key: TypographyKey) => {\n return typo[key].lineHeight * typo[key].fontSize;\n};\n\nconst mobileTypo = {\n 'h1-24b': {\n ...typo['h1-24b'],\n lineHeight: transformLineheight('h1-24b'),\n },\n\n 'h1-24m': {\n ...typo['h1-24m'],\n lineHeight: transformLineheight('h1-24m'),\n },\n\n 'h1-24': {\n ...typo['h1-24'],\n lineHeight: transformLineheight('h1-24'),\n },\n\n 'h2-20b': {\n ...typo['h2-20b'],\n lineHeight: transformLineheight('h2-20b'),\n },\n\n 'h2-20m': {\n ...typo['h2-20m'],\n lineHeight: transformLineheight('h2-20m'),\n },\n\n 'h2-20': {\n ...typo['h2-20'],\n lineHeight: transformLineheight('h2-20'),\n },\n\n 'h3-18b': {\n ...typo['h3-18b'],\n lineHeight: transformLineheight('h3-18b'),\n },\n\n 'h3-18m': {\n ...typo['h3-18m'],\n lineHeight: transformLineheight('h3-18m'),\n },\n\n 'h3-18': {\n ...typo['h3-18'],\n lineHeight: transformLineheight('h3-18'),\n },\n\n 'b1-16b': {\n ...typo['b1-16b'],\n lineHeight: transformLineheight('b1-16b'),\n },\n\n 'b1-16m': {\n ...typo['b1-16m'],\n lineHeight: transformLineheight('b1-16m'),\n },\n\n 'b1-16': {\n ...typo['b1-16'],\n lineHeight: transformLineheight('b1-16'),\n },\n\n 'b2-14b': {\n ...typo['b2-14b'],\n lineHeight: transformLineheight('b2-14b'),\n },\n\n 'b2-14m': {\n ...typo['b2-14m'],\n lineHeight: transformLineheight('b2-14m'),\n },\n\n 'b2-14': {\n ...typo['b2-14'],\n lineHeight: transformLineheight('b2-14'),\n },\n\n 'b3-12b': {\n ...typo['b3-12b'],\n lineHeight: transformLineheight('b3-12b'),\n },\n\n 'b3-12m': {\n ...typo['b3-12m'],\n lineHeight: transformLineheight('b3-12m'),\n },\n\n 'b3-12': {\n ...typo['b3-12'],\n lineHeight: transformLineheight('b3-12'),\n },\n\n 's1-10b': {\n ...typo['s1-10b'],\n lineHeight: transformLineheight('s1-10b'),\n },\n\n 's1-10m': {\n ...typo['s1-10m'],\n lineHeight: transformLineheight('s1-10m'),\n },\n\n 's1-10': {\n ...typo['s1-10'],\n lineHeight: transformLineheight('s1-10'),\n },\n} as const;\n\nexport { typo, mobileTypo };\n"],"mappings":";AAEA,IAAM,uBAAuB,IAAI;AA2B1B,SAAS,qBAAqB;AAAA,EACnC;AAAA,EACA;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAA+B;AAC7B,MAAI,YAAY,MAAM;AACpB,WAAO,wBAAwB;AAAA,EACjC;AAEA,SAAO,yBAAyB;AAAA,IAC9B;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AACH;AAQO,SAAS,yBAAyB;AAAA,EACvC;AAAA,EACA,aAAa;AAAA,EACb,yBAAyB;AAC3B,GAAmC;AACjC,QAAM,oBAAoB,WAAW;AACrC,QAAM,YAAY,oBAAoB;AACtC,QAAM,SAAS,eAAe;AAE9B,MAAI,UAAU,yBAAyB,KAAK,WAAW;AACrD,WAAO,EAAE,MAAM,GAAG,YAAY,KAAK;AAAA,EACrC;AAEA,QAAM,OAAO,KAAK,MAAM,oBAAoB,uBAAuB,EAAE,IAAI;AACzE,SAAO,EAAE,MAAM,YAAY,MAAM;AACnC;AAEO,SAAS,0BAA0B;AACxC,SAAO,EAAE,MAAM,IAAI,YAAY,MAAM;AACvC;;;ACvEA,IAAM,QAAQ;AAAA,EACZ,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EAEP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;AAMA,IAAM,UAAU;;;ACMhB,IAAM,OAAO;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;A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P,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AACF;","names":[]}
|
package/dist/styles.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var styles_exports = {};
|
|
|
22
22
|
__export(styles_exports, {
|
|
23
23
|
color: () => color,
|
|
24
24
|
colorV2: () => colorV2,
|
|
25
|
+
mobileTypo: () => mobileTypo,
|
|
25
26
|
typo: () => typo
|
|
26
27
|
});
|
|
27
28
|
module.exports = __toCommonJS(styles_exports);
|
|
@@ -29,7 +30,9 @@ module.exports = __toCommonJS(styles_exports);
|
|
|
29
30
|
// src/styles/color.ts
|
|
30
31
|
var color = {
|
|
31
32
|
primary: "#242535",
|
|
33
|
+
primaryB: "#515265",
|
|
32
34
|
primary2: "#9335FB",
|
|
35
|
+
primary2B: "#6323AA",
|
|
33
36
|
secondary: "#FADD32",
|
|
34
37
|
bgColor: "#F3F4F6",
|
|
35
38
|
error: "#EA2E2E",
|
|
@@ -173,10 +176,100 @@ var typo = {
|
|
|
173
176
|
letterSpacing: 0
|
|
174
177
|
}
|
|
175
178
|
};
|
|
179
|
+
var transformLineheight = (key) => {
|
|
180
|
+
return typo[key].lineHeight * typo[key].fontSize;
|
|
181
|
+
};
|
|
182
|
+
var mobileTypo = {
|
|
183
|
+
"h1-24b": {
|
|
184
|
+
...typo["h1-24b"],
|
|
185
|
+
lineHeight: transformLineheight("h1-24b")
|
|
186
|
+
},
|
|
187
|
+
"h1-24m": {
|
|
188
|
+
...typo["h1-24m"],
|
|
189
|
+
lineHeight: transformLineheight("h1-24m")
|
|
190
|
+
},
|
|
191
|
+
"h1-24": {
|
|
192
|
+
...typo["h1-24"],
|
|
193
|
+
lineHeight: transformLineheight("h1-24")
|
|
194
|
+
},
|
|
195
|
+
"h2-20b": {
|
|
196
|
+
...typo["h2-20b"],
|
|
197
|
+
lineHeight: transformLineheight("h2-20b")
|
|
198
|
+
},
|
|
199
|
+
"h2-20m": {
|
|
200
|
+
...typo["h2-20m"],
|
|
201
|
+
lineHeight: transformLineheight("h2-20m")
|
|
202
|
+
},
|
|
203
|
+
"h2-20": {
|
|
204
|
+
...typo["h2-20"],
|
|
205
|
+
lineHeight: transformLineheight("h2-20")
|
|
206
|
+
},
|
|
207
|
+
"h3-18b": {
|
|
208
|
+
...typo["h3-18b"],
|
|
209
|
+
lineHeight: transformLineheight("h3-18b")
|
|
210
|
+
},
|
|
211
|
+
"h3-18m": {
|
|
212
|
+
...typo["h3-18m"],
|
|
213
|
+
lineHeight: transformLineheight("h3-18m")
|
|
214
|
+
},
|
|
215
|
+
"h3-18": {
|
|
216
|
+
...typo["h3-18"],
|
|
217
|
+
lineHeight: transformLineheight("h3-18")
|
|
218
|
+
},
|
|
219
|
+
"b1-16b": {
|
|
220
|
+
...typo["b1-16b"],
|
|
221
|
+
lineHeight: transformLineheight("b1-16b")
|
|
222
|
+
},
|
|
223
|
+
"b1-16m": {
|
|
224
|
+
...typo["b1-16m"],
|
|
225
|
+
lineHeight: transformLineheight("b1-16m")
|
|
226
|
+
},
|
|
227
|
+
"b1-16": {
|
|
228
|
+
...typo["b1-16"],
|
|
229
|
+
lineHeight: transformLineheight("b1-16")
|
|
230
|
+
},
|
|
231
|
+
"b2-14b": {
|
|
232
|
+
...typo["b2-14b"],
|
|
233
|
+
lineHeight: transformLineheight("b2-14b")
|
|
234
|
+
},
|
|
235
|
+
"b2-14m": {
|
|
236
|
+
...typo["b2-14m"],
|
|
237
|
+
lineHeight: transformLineheight("b2-14m")
|
|
238
|
+
},
|
|
239
|
+
"b2-14": {
|
|
240
|
+
...typo["b2-14"],
|
|
241
|
+
lineHeight: transformLineheight("b2-14")
|
|
242
|
+
},
|
|
243
|
+
"b3-12b": {
|
|
244
|
+
...typo["b3-12b"],
|
|
245
|
+
lineHeight: transformLineheight("b3-12b")
|
|
246
|
+
},
|
|
247
|
+
"b3-12m": {
|
|
248
|
+
...typo["b3-12m"],
|
|
249
|
+
lineHeight: transformLineheight("b3-12m")
|
|
250
|
+
},
|
|
251
|
+
"b3-12": {
|
|
252
|
+
...typo["b3-12"],
|
|
253
|
+
lineHeight: transformLineheight("b3-12")
|
|
254
|
+
},
|
|
255
|
+
"s1-10b": {
|
|
256
|
+
...typo["s1-10b"],
|
|
257
|
+
lineHeight: transformLineheight("s1-10b")
|
|
258
|
+
},
|
|
259
|
+
"s1-10m": {
|
|
260
|
+
...typo["s1-10m"],
|
|
261
|
+
lineHeight: transformLineheight("s1-10m")
|
|
262
|
+
},
|
|
263
|
+
"s1-10": {
|
|
264
|
+
...typo["s1-10"],
|
|
265
|
+
lineHeight: transformLineheight("s1-10")
|
|
266
|
+
}
|
|
267
|
+
};
|
|
176
268
|
// Annotate the CommonJS export names for ESM import in node:
|
|
177
269
|
0 && (module.exports = {
|
|
178
270
|
color,
|
|
179
271
|
colorV2,
|
|
272
|
+
mobileTypo,
|
|
180
273
|
typo
|
|
181
274
|
});
|
|
182
275
|
//# sourceMappingURL=styles.cjs.map
|
package/dist/styles.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/index.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["export * from './color';\nexport * from './typo';\n","const color = {\n primary: '#242535',\n primary2: '#9335FB',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.ts","../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["export * from './color';\nexport * from './typo';\n","const color = {\n primary: '#242535',\n primaryB: '#515265',\n primary2: '#9335FB',\n primary2B: '#6323AA',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","type TypographyKey =\n | 'h1-24b'\n | 'h1-24m'\n | 'h1-24'\n | 'h2-20b'\n | 'h2-20m'\n | 'h2-20'\n | 'h3-18b'\n | 'h3-18m'\n | 'h3-18'\n | 'b1-16b'\n | 'b1-16m'\n | 'b1-16'\n | 'b2-14b'\n | 'b2-14m'\n | 'b2-14'\n | 'b3-12b'\n | 'b3-12m'\n | 'b3-12'\n | 's1-10b'\n | 's1-10m'\n | 's1-10';\ntype TypographyValue = {\n fontSize: number;\n fontWeight: number;\n lineHeight: number;\n letterSpacing: number;\n};\n\nconst typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nconst transformLineheight = (key: TypographyKey) => {\n return typo[key].lineHeight * typo[key].fontSize;\n};\n\nconst mobileTypo = {\n 'h1-24b': {\n ...typo['h1-24b'],\n lineHeight: transformLineheight('h1-24b'),\n },\n\n 'h1-24m': {\n ...typo['h1-24m'],\n lineHeight: transformLineheight('h1-24m'),\n },\n\n 'h1-24': {\n ...typo['h1-24'],\n lineHeight: transformLineheight('h1-24'),\n },\n\n 'h2-20b': {\n ...typo['h2-20b'],\n lineHeight: transformLineheight('h2-20b'),\n },\n\n 'h2-20m': {\n ...typo['h2-20m'],\n lineHeight: transformLineheight('h2-20m'),\n },\n\n 'h2-20': {\n ...typo['h2-20'],\n lineHeight: transformLineheight('h2-20'),\n },\n\n 'h3-18b': {\n ...typo['h3-18b'],\n lineHeight: transformLineheight('h3-18b'),\n },\n\n 'h3-18m': {\n ...typo['h3-18m'],\n lineHeight: transformLineheight('h3-18m'),\n },\n\n 'h3-18': {\n ...typo['h3-18'],\n lineHeight: transformLineheight('h3-18'),\n },\n\n 'b1-16b': {\n ...typo['b1-16b'],\n lineHeight: transformLineheight('b1-16b'),\n },\n\n 'b1-16m': {\n ...typo['b1-16m'],\n lineHeight: transformLineheight('b1-16m'),\n },\n\n 'b1-16': {\n ...typo['b1-16'],\n lineHeight: transformLineheight('b1-16'),\n },\n\n 'b2-14b': {\n ...typo['b2-14b'],\n lineHeight: transformLineheight('b2-14b'),\n },\n\n 'b2-14m': {\n ...typo['b2-14m'],\n lineHeight: transformLineheight('b2-14m'),\n },\n\n 'b2-14': {\n ...typo['b2-14'],\n lineHeight: transformLineheight('b2-14'),\n },\n\n 'b3-12b': {\n ...typo['b3-12b'],\n lineHeight: transformLineheight('b3-12b'),\n },\n\n 'b3-12m': {\n ...typo['b3-12m'],\n lineHeight: transformLineheight('b3-12m'),\n },\n\n 'b3-12': {\n ...typo['b3-12'],\n lineHeight: transformLineheight('b3-12'),\n },\n\n 's1-10b': {\n ...typo['s1-10b'],\n lineHeight: transformLineheight('s1-10b'),\n },\n\n 's1-10m': {\n ...typo['s1-10m'],\n lineHeight: transformLineheight('s1-10m'),\n },\n\n 's1-10': {\n ...typo['s1-10'],\n lineHeight: transformLineheight('s1-10'),\n },\n} as const;\n\nexport { typo, mobileTypo };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAM,QAAQ;AAAA,EACZ,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EAEP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;AAMA,IAAM,UAAU;;;ACMhB,IAAM,OAAO;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EAEA,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,SAAS;AAAA,IACP,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AA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Q;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,UAAU;AAAA,IACR,GAAG,KAAK,QAAQ;AAAA,IAChB,YAAY,oBAAoB,QAAQ;AAAA,EAC1C;AAAA,EAEA,SAAS;AAAA,IACP,GAAG,KAAK,OAAO;AAAA,IACf,YAAY,oBAAoB,OAAO;AAAA,EACzC;AACF;","names":[]}
|
package/dist/styles.d.cts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const color: {
|
|
2
2
|
readonly primary: "#242535";
|
|
3
|
+
readonly primaryB: "#515265";
|
|
3
4
|
readonly primary2: "#9335FB";
|
|
5
|
+
readonly primary2B: "#6323AA";
|
|
4
6
|
readonly secondary: "#FADD32";
|
|
5
7
|
readonly bgColor: "#F3F4F6";
|
|
6
8
|
readonly error: "#EA2E2E";
|
|
@@ -18,7 +20,9 @@ declare const color: {
|
|
|
18
20
|
*/
|
|
19
21
|
declare const colorV2: {
|
|
20
22
|
readonly primary: "#242535";
|
|
23
|
+
readonly primaryB: "#515265";
|
|
21
24
|
readonly primary2: "#9335FB";
|
|
25
|
+
readonly primary2B: "#6323AA";
|
|
22
26
|
readonly secondary: "#FADD32";
|
|
23
27
|
readonly bgColor: "#F3F4F6";
|
|
24
28
|
readonly error: "#EA2E2E";
|
|
@@ -160,5 +164,133 @@ declare const typo: {
|
|
|
160
164
|
readonly letterSpacing: 0;
|
|
161
165
|
};
|
|
162
166
|
};
|
|
167
|
+
declare const mobileTypo: {
|
|
168
|
+
readonly 'h1-24b': {
|
|
169
|
+
readonly lineHeight: number;
|
|
170
|
+
readonly fontSize: 24;
|
|
171
|
+
readonly fontWeight: 700;
|
|
172
|
+
readonly letterSpacing: 0;
|
|
173
|
+
};
|
|
174
|
+
readonly 'h1-24m': {
|
|
175
|
+
readonly lineHeight: number;
|
|
176
|
+
readonly fontSize: 24;
|
|
177
|
+
readonly fontWeight: 500;
|
|
178
|
+
readonly letterSpacing: 0;
|
|
179
|
+
};
|
|
180
|
+
readonly 'h1-24': {
|
|
181
|
+
readonly lineHeight: number;
|
|
182
|
+
readonly fontSize: 24;
|
|
183
|
+
readonly fontWeight: 400;
|
|
184
|
+
readonly letterSpacing: 0;
|
|
185
|
+
};
|
|
186
|
+
readonly 'h2-20b': {
|
|
187
|
+
readonly lineHeight: number;
|
|
188
|
+
readonly fontSize: 20;
|
|
189
|
+
readonly fontWeight: 700;
|
|
190
|
+
readonly letterSpacing: 0;
|
|
191
|
+
};
|
|
192
|
+
readonly 'h2-20m': {
|
|
193
|
+
readonly lineHeight: number;
|
|
194
|
+
readonly fontSize: 20;
|
|
195
|
+
readonly fontWeight: 500;
|
|
196
|
+
readonly letterSpacing: 0;
|
|
197
|
+
};
|
|
198
|
+
readonly 'h2-20': {
|
|
199
|
+
readonly lineHeight: number;
|
|
200
|
+
readonly fontSize: 20;
|
|
201
|
+
readonly fontWeight: 400;
|
|
202
|
+
readonly letterSpacing: 0;
|
|
203
|
+
};
|
|
204
|
+
readonly 'h3-18b': {
|
|
205
|
+
readonly lineHeight: number;
|
|
206
|
+
readonly fontSize: 18;
|
|
207
|
+
readonly fontWeight: 700;
|
|
208
|
+
readonly letterSpacing: 0;
|
|
209
|
+
};
|
|
210
|
+
readonly 'h3-18m': {
|
|
211
|
+
readonly lineHeight: number;
|
|
212
|
+
readonly fontSize: 18;
|
|
213
|
+
readonly fontWeight: 500;
|
|
214
|
+
readonly letterSpacing: 0;
|
|
215
|
+
};
|
|
216
|
+
readonly 'h3-18': {
|
|
217
|
+
readonly lineHeight: number;
|
|
218
|
+
readonly fontSize: 18;
|
|
219
|
+
readonly fontWeight: 400;
|
|
220
|
+
readonly letterSpacing: 0;
|
|
221
|
+
};
|
|
222
|
+
readonly 'b1-16b': {
|
|
223
|
+
readonly lineHeight: number;
|
|
224
|
+
readonly fontSize: 16;
|
|
225
|
+
readonly fontWeight: 700;
|
|
226
|
+
readonly letterSpacing: 0;
|
|
227
|
+
};
|
|
228
|
+
readonly 'b1-16m': {
|
|
229
|
+
readonly lineHeight: number;
|
|
230
|
+
readonly fontSize: 16;
|
|
231
|
+
readonly fontWeight: 500;
|
|
232
|
+
readonly letterSpacing: 0;
|
|
233
|
+
};
|
|
234
|
+
readonly 'b1-16': {
|
|
235
|
+
readonly lineHeight: number;
|
|
236
|
+
readonly fontSize: 16;
|
|
237
|
+
readonly fontWeight: 400;
|
|
238
|
+
readonly letterSpacing: 0;
|
|
239
|
+
};
|
|
240
|
+
readonly 'b2-14b': {
|
|
241
|
+
readonly lineHeight: number;
|
|
242
|
+
readonly fontSize: 14;
|
|
243
|
+
readonly fontWeight: 700;
|
|
244
|
+
readonly letterSpacing: 0;
|
|
245
|
+
};
|
|
246
|
+
readonly 'b2-14m': {
|
|
247
|
+
readonly lineHeight: number;
|
|
248
|
+
readonly fontSize: 14;
|
|
249
|
+
readonly fontWeight: 500;
|
|
250
|
+
readonly letterSpacing: 0;
|
|
251
|
+
};
|
|
252
|
+
readonly 'b2-14': {
|
|
253
|
+
readonly lineHeight: number;
|
|
254
|
+
readonly fontSize: 14;
|
|
255
|
+
readonly fontWeight: 400;
|
|
256
|
+
readonly letterSpacing: 0;
|
|
257
|
+
};
|
|
258
|
+
readonly 'b3-12b': {
|
|
259
|
+
readonly lineHeight: number;
|
|
260
|
+
readonly fontSize: 12;
|
|
261
|
+
readonly fontWeight: 700;
|
|
262
|
+
readonly letterSpacing: 0;
|
|
263
|
+
};
|
|
264
|
+
readonly 'b3-12m': {
|
|
265
|
+
readonly lineHeight: number;
|
|
266
|
+
readonly fontSize: 12;
|
|
267
|
+
readonly fontWeight: 500;
|
|
268
|
+
readonly letterSpacing: 0;
|
|
269
|
+
};
|
|
270
|
+
readonly 'b3-12': {
|
|
271
|
+
readonly lineHeight: number;
|
|
272
|
+
readonly fontSize: 12;
|
|
273
|
+
readonly fontWeight: 400;
|
|
274
|
+
readonly letterSpacing: 0;
|
|
275
|
+
};
|
|
276
|
+
readonly 's1-10b': {
|
|
277
|
+
readonly lineHeight: number;
|
|
278
|
+
readonly fontSize: 10;
|
|
279
|
+
readonly fontWeight: 700;
|
|
280
|
+
readonly letterSpacing: 0;
|
|
281
|
+
};
|
|
282
|
+
readonly 's1-10m': {
|
|
283
|
+
readonly lineHeight: number;
|
|
284
|
+
readonly fontSize: 10;
|
|
285
|
+
readonly fontWeight: 500;
|
|
286
|
+
readonly letterSpacing: 0;
|
|
287
|
+
};
|
|
288
|
+
readonly 's1-10': {
|
|
289
|
+
readonly lineHeight: number;
|
|
290
|
+
readonly fontSize: 10;
|
|
291
|
+
readonly fontWeight: 400;
|
|
292
|
+
readonly letterSpacing: 0;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
163
295
|
|
|
164
|
-
export { color, colorV2, typo };
|
|
296
|
+
export { color, colorV2, mobileTypo, typo };
|
package/dist/styles.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
declare const color: {
|
|
2
2
|
readonly primary: "#242535";
|
|
3
|
+
readonly primaryB: "#515265";
|
|
3
4
|
readonly primary2: "#9335FB";
|
|
5
|
+
readonly primary2B: "#6323AA";
|
|
4
6
|
readonly secondary: "#FADD32";
|
|
5
7
|
readonly bgColor: "#F3F4F6";
|
|
6
8
|
readonly error: "#EA2E2E";
|
|
@@ -18,7 +20,9 @@ declare const color: {
|
|
|
18
20
|
*/
|
|
19
21
|
declare const colorV2: {
|
|
20
22
|
readonly primary: "#242535";
|
|
23
|
+
readonly primaryB: "#515265";
|
|
21
24
|
readonly primary2: "#9335FB";
|
|
25
|
+
readonly primary2B: "#6323AA";
|
|
22
26
|
readonly secondary: "#FADD32";
|
|
23
27
|
readonly bgColor: "#F3F4F6";
|
|
24
28
|
readonly error: "#EA2E2E";
|
|
@@ -160,5 +164,133 @@ declare const typo: {
|
|
|
160
164
|
readonly letterSpacing: 0;
|
|
161
165
|
};
|
|
162
166
|
};
|
|
167
|
+
declare const mobileTypo: {
|
|
168
|
+
readonly 'h1-24b': {
|
|
169
|
+
readonly lineHeight: number;
|
|
170
|
+
readonly fontSize: 24;
|
|
171
|
+
readonly fontWeight: 700;
|
|
172
|
+
readonly letterSpacing: 0;
|
|
173
|
+
};
|
|
174
|
+
readonly 'h1-24m': {
|
|
175
|
+
readonly lineHeight: number;
|
|
176
|
+
readonly fontSize: 24;
|
|
177
|
+
readonly fontWeight: 500;
|
|
178
|
+
readonly letterSpacing: 0;
|
|
179
|
+
};
|
|
180
|
+
readonly 'h1-24': {
|
|
181
|
+
readonly lineHeight: number;
|
|
182
|
+
readonly fontSize: 24;
|
|
183
|
+
readonly fontWeight: 400;
|
|
184
|
+
readonly letterSpacing: 0;
|
|
185
|
+
};
|
|
186
|
+
readonly 'h2-20b': {
|
|
187
|
+
readonly lineHeight: number;
|
|
188
|
+
readonly fontSize: 20;
|
|
189
|
+
readonly fontWeight: 700;
|
|
190
|
+
readonly letterSpacing: 0;
|
|
191
|
+
};
|
|
192
|
+
readonly 'h2-20m': {
|
|
193
|
+
readonly lineHeight: number;
|
|
194
|
+
readonly fontSize: 20;
|
|
195
|
+
readonly fontWeight: 500;
|
|
196
|
+
readonly letterSpacing: 0;
|
|
197
|
+
};
|
|
198
|
+
readonly 'h2-20': {
|
|
199
|
+
readonly lineHeight: number;
|
|
200
|
+
readonly fontSize: 20;
|
|
201
|
+
readonly fontWeight: 400;
|
|
202
|
+
readonly letterSpacing: 0;
|
|
203
|
+
};
|
|
204
|
+
readonly 'h3-18b': {
|
|
205
|
+
readonly lineHeight: number;
|
|
206
|
+
readonly fontSize: 18;
|
|
207
|
+
readonly fontWeight: 700;
|
|
208
|
+
readonly letterSpacing: 0;
|
|
209
|
+
};
|
|
210
|
+
readonly 'h3-18m': {
|
|
211
|
+
readonly lineHeight: number;
|
|
212
|
+
readonly fontSize: 18;
|
|
213
|
+
readonly fontWeight: 500;
|
|
214
|
+
readonly letterSpacing: 0;
|
|
215
|
+
};
|
|
216
|
+
readonly 'h3-18': {
|
|
217
|
+
readonly lineHeight: number;
|
|
218
|
+
readonly fontSize: 18;
|
|
219
|
+
readonly fontWeight: 400;
|
|
220
|
+
readonly letterSpacing: 0;
|
|
221
|
+
};
|
|
222
|
+
readonly 'b1-16b': {
|
|
223
|
+
readonly lineHeight: number;
|
|
224
|
+
readonly fontSize: 16;
|
|
225
|
+
readonly fontWeight: 700;
|
|
226
|
+
readonly letterSpacing: 0;
|
|
227
|
+
};
|
|
228
|
+
readonly 'b1-16m': {
|
|
229
|
+
readonly lineHeight: number;
|
|
230
|
+
readonly fontSize: 16;
|
|
231
|
+
readonly fontWeight: 500;
|
|
232
|
+
readonly letterSpacing: 0;
|
|
233
|
+
};
|
|
234
|
+
readonly 'b1-16': {
|
|
235
|
+
readonly lineHeight: number;
|
|
236
|
+
readonly fontSize: 16;
|
|
237
|
+
readonly fontWeight: 400;
|
|
238
|
+
readonly letterSpacing: 0;
|
|
239
|
+
};
|
|
240
|
+
readonly 'b2-14b': {
|
|
241
|
+
readonly lineHeight: number;
|
|
242
|
+
readonly fontSize: 14;
|
|
243
|
+
readonly fontWeight: 700;
|
|
244
|
+
readonly letterSpacing: 0;
|
|
245
|
+
};
|
|
246
|
+
readonly 'b2-14m': {
|
|
247
|
+
readonly lineHeight: number;
|
|
248
|
+
readonly fontSize: 14;
|
|
249
|
+
readonly fontWeight: 500;
|
|
250
|
+
readonly letterSpacing: 0;
|
|
251
|
+
};
|
|
252
|
+
readonly 'b2-14': {
|
|
253
|
+
readonly lineHeight: number;
|
|
254
|
+
readonly fontSize: 14;
|
|
255
|
+
readonly fontWeight: 400;
|
|
256
|
+
readonly letterSpacing: 0;
|
|
257
|
+
};
|
|
258
|
+
readonly 'b3-12b': {
|
|
259
|
+
readonly lineHeight: number;
|
|
260
|
+
readonly fontSize: 12;
|
|
261
|
+
readonly fontWeight: 700;
|
|
262
|
+
readonly letterSpacing: 0;
|
|
263
|
+
};
|
|
264
|
+
readonly 'b3-12m': {
|
|
265
|
+
readonly lineHeight: number;
|
|
266
|
+
readonly fontSize: 12;
|
|
267
|
+
readonly fontWeight: 500;
|
|
268
|
+
readonly letterSpacing: 0;
|
|
269
|
+
};
|
|
270
|
+
readonly 'b3-12': {
|
|
271
|
+
readonly lineHeight: number;
|
|
272
|
+
readonly fontSize: 12;
|
|
273
|
+
readonly fontWeight: 400;
|
|
274
|
+
readonly letterSpacing: 0;
|
|
275
|
+
};
|
|
276
|
+
readonly 's1-10b': {
|
|
277
|
+
readonly lineHeight: number;
|
|
278
|
+
readonly fontSize: 10;
|
|
279
|
+
readonly fontWeight: 700;
|
|
280
|
+
readonly letterSpacing: 0;
|
|
281
|
+
};
|
|
282
|
+
readonly 's1-10m': {
|
|
283
|
+
readonly lineHeight: number;
|
|
284
|
+
readonly fontSize: 10;
|
|
285
|
+
readonly fontWeight: 500;
|
|
286
|
+
readonly letterSpacing: 0;
|
|
287
|
+
};
|
|
288
|
+
readonly 's1-10': {
|
|
289
|
+
readonly lineHeight: number;
|
|
290
|
+
readonly fontSize: 10;
|
|
291
|
+
readonly fontWeight: 400;
|
|
292
|
+
readonly letterSpacing: 0;
|
|
293
|
+
};
|
|
294
|
+
};
|
|
163
295
|
|
|
164
|
-
export { color, colorV2, typo };
|
|
296
|
+
export { color, colorV2, mobileTypo, typo };
|
package/dist/styles.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// src/styles/color.ts
|
|
2
2
|
var color = {
|
|
3
3
|
primary: "#242535",
|
|
4
|
+
primaryB: "#515265",
|
|
4
5
|
primary2: "#9335FB",
|
|
6
|
+
primary2B: "#6323AA",
|
|
5
7
|
secondary: "#FADD32",
|
|
6
8
|
bgColor: "#F3F4F6",
|
|
7
9
|
error: "#EA2E2E",
|
|
@@ -145,9 +147,99 @@ var typo = {
|
|
|
145
147
|
letterSpacing: 0
|
|
146
148
|
}
|
|
147
149
|
};
|
|
150
|
+
var transformLineheight = (key) => {
|
|
151
|
+
return typo[key].lineHeight * typo[key].fontSize;
|
|
152
|
+
};
|
|
153
|
+
var mobileTypo = {
|
|
154
|
+
"h1-24b": {
|
|
155
|
+
...typo["h1-24b"],
|
|
156
|
+
lineHeight: transformLineheight("h1-24b")
|
|
157
|
+
},
|
|
158
|
+
"h1-24m": {
|
|
159
|
+
...typo["h1-24m"],
|
|
160
|
+
lineHeight: transformLineheight("h1-24m")
|
|
161
|
+
},
|
|
162
|
+
"h1-24": {
|
|
163
|
+
...typo["h1-24"],
|
|
164
|
+
lineHeight: transformLineheight("h1-24")
|
|
165
|
+
},
|
|
166
|
+
"h2-20b": {
|
|
167
|
+
...typo["h2-20b"],
|
|
168
|
+
lineHeight: transformLineheight("h2-20b")
|
|
169
|
+
},
|
|
170
|
+
"h2-20m": {
|
|
171
|
+
...typo["h2-20m"],
|
|
172
|
+
lineHeight: transformLineheight("h2-20m")
|
|
173
|
+
},
|
|
174
|
+
"h2-20": {
|
|
175
|
+
...typo["h2-20"],
|
|
176
|
+
lineHeight: transformLineheight("h2-20")
|
|
177
|
+
},
|
|
178
|
+
"h3-18b": {
|
|
179
|
+
...typo["h3-18b"],
|
|
180
|
+
lineHeight: transformLineheight("h3-18b")
|
|
181
|
+
},
|
|
182
|
+
"h3-18m": {
|
|
183
|
+
...typo["h3-18m"],
|
|
184
|
+
lineHeight: transformLineheight("h3-18m")
|
|
185
|
+
},
|
|
186
|
+
"h3-18": {
|
|
187
|
+
...typo["h3-18"],
|
|
188
|
+
lineHeight: transformLineheight("h3-18")
|
|
189
|
+
},
|
|
190
|
+
"b1-16b": {
|
|
191
|
+
...typo["b1-16b"],
|
|
192
|
+
lineHeight: transformLineheight("b1-16b")
|
|
193
|
+
},
|
|
194
|
+
"b1-16m": {
|
|
195
|
+
...typo["b1-16m"],
|
|
196
|
+
lineHeight: transformLineheight("b1-16m")
|
|
197
|
+
},
|
|
198
|
+
"b1-16": {
|
|
199
|
+
...typo["b1-16"],
|
|
200
|
+
lineHeight: transformLineheight("b1-16")
|
|
201
|
+
},
|
|
202
|
+
"b2-14b": {
|
|
203
|
+
...typo["b2-14b"],
|
|
204
|
+
lineHeight: transformLineheight("b2-14b")
|
|
205
|
+
},
|
|
206
|
+
"b2-14m": {
|
|
207
|
+
...typo["b2-14m"],
|
|
208
|
+
lineHeight: transformLineheight("b2-14m")
|
|
209
|
+
},
|
|
210
|
+
"b2-14": {
|
|
211
|
+
...typo["b2-14"],
|
|
212
|
+
lineHeight: transformLineheight("b2-14")
|
|
213
|
+
},
|
|
214
|
+
"b3-12b": {
|
|
215
|
+
...typo["b3-12b"],
|
|
216
|
+
lineHeight: transformLineheight("b3-12b")
|
|
217
|
+
},
|
|
218
|
+
"b3-12m": {
|
|
219
|
+
...typo["b3-12m"],
|
|
220
|
+
lineHeight: transformLineheight("b3-12m")
|
|
221
|
+
},
|
|
222
|
+
"b3-12": {
|
|
223
|
+
...typo["b3-12"],
|
|
224
|
+
lineHeight: transformLineheight("b3-12")
|
|
225
|
+
},
|
|
226
|
+
"s1-10b": {
|
|
227
|
+
...typo["s1-10b"],
|
|
228
|
+
lineHeight: transformLineheight("s1-10b")
|
|
229
|
+
},
|
|
230
|
+
"s1-10m": {
|
|
231
|
+
...typo["s1-10m"],
|
|
232
|
+
lineHeight: transformLineheight("s1-10m")
|
|
233
|
+
},
|
|
234
|
+
"s1-10": {
|
|
235
|
+
...typo["s1-10"],
|
|
236
|
+
lineHeight: transformLineheight("s1-10")
|
|
237
|
+
}
|
|
238
|
+
};
|
|
148
239
|
export {
|
|
149
240
|
color,
|
|
150
241
|
colorV2,
|
|
242
|
+
mobileTypo,
|
|
151
243
|
typo
|
|
152
244
|
};
|
|
153
245
|
//# sourceMappingURL=styles.js.map
|
package/dist/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["const color = {\n primary: '#242535',\n primary2: '#9335FB',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","
|
|
1
|
+
{"version":3,"sources":["../src/styles/color.ts","../src/styles/typo.ts"],"sourcesContent":["const color = {\n primary: '#242535',\n primaryB: '#515265',\n primary2: '#9335FB',\n primary2B: '#6323AA',\n secondary: '#FADD32',\n bgColor: '#F3F4F6',\n error: '#EA2E2E',\n\n white: '#FFFFFF',\n black: '#111111',\n gray1: '#424242',\n gray2: '#616161',\n gray3: '#8E8E8E',\n gray4: '#BDBDBD',\n gray5: '#E0E0E0',\n gray6: '#EDEDED',\n} as const;\n\n/**\n * @deprecated use color instead (작명 실수 ㅠ)\n */\n\nconst colorV2 = color;\n\nexport { colorV2, color };\n","type TypographyKey =\n | 'h1-24b'\n | 'h1-24m'\n | 'h1-24'\n | 'h2-20b'\n | 'h2-20m'\n | 'h2-20'\n | 'h3-18b'\n | 'h3-18m'\n | 'h3-18'\n | 'b1-16b'\n | 'b1-16m'\n | 'b1-16'\n | 'b2-14b'\n | 'b2-14m'\n | 'b2-14'\n | 'b3-12b'\n | 'b3-12m'\n | 'b3-12'\n | 's1-10b'\n | 's1-10m'\n | 's1-10';\ntype TypographyValue = {\n fontSize: number;\n fontWeight: number;\n lineHeight: number;\n letterSpacing: number;\n};\n\nconst typo = {\n 'h1-24b': {\n fontSize: 24,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24m': {\n fontSize: 24,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h1-24': {\n fontSize: 24,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'h2-20b': {\n fontSize: 20,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20m': {\n fontSize: 20,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h2-20': {\n fontSize: 20,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18b': {\n fontSize: 18,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18m': {\n fontSize: 18,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'h3-18': {\n fontSize: 18,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16b': {\n fontSize: 16,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16m': {\n fontSize: 16,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b1-16': {\n fontSize: 16,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b2-14b': {\n fontSize: 14,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14m': {\n fontSize: 14,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b2-14': {\n fontSize: 14,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 'b3-12b': {\n fontSize: 12,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12m': {\n fontSize: 12,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 'b3-12': {\n fontSize: 12,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n\n 's1-10b': {\n fontSize: 10,\n fontWeight: 700,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10m': {\n fontSize: 10,\n fontWeight: 500,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n 's1-10': {\n fontSize: 10,\n fontWeight: 400,\n lineHeight: 1.5,\n letterSpacing: 0,\n },\n} as const;\n\nconst transformLineheight = (key: TypographyKey) => {\n return typo[key].lineHeight * typo[key].fontSize;\n};\n\nconst mobileTypo = {\n 'h1-24b': {\n ...typo['h1-24b'],\n lineHeight: transformLineheight('h1-24b'),\n },\n\n 'h1-24m': {\n ...typo['h1-24m'],\n lineHeight: transformLineheight('h1-24m'),\n },\n\n 'h1-24': {\n ...typo['h1-24'],\n lineHeight: transformLineheight('h1-24'),\n },\n\n 'h2-20b': {\n ...typo['h2-20b'],\n lineHeight: transformLineheight('h2-20b'),\n },\n\n 'h2-20m': {\n ...typo['h2-20m'],\n lineHeight: transformLineheight('h2-20m'),\n },\n\n 'h2-20': {\n ...typo['h2-20'],\n lineHeight: transformLineheight('h2-20'),\n },\n\n 'h3-18b': {\n ...typo['h3-18b'],\n lineHeight: transformLineheight('h3-18b'),\n },\n\n 'h3-18m': {\n ...typo['h3-18m'],\n lineHeight: transformLineheight('h3-18m'),\n },\n\n 'h3-18': {\n ...typo['h3-18'],\n lineHeight: transformLineheight('h3-18'),\n },\n\n 'b1-16b': {\n ...typo['b1-16b'],\n lineHeight: transformLineheight('b1-16b'),\n },\n\n 'b1-16m': {\n ...typo['b1-16m'],\n lineHeight: transformLineheight('b1-16m'),\n },\n\n 'b1-16': {\n ...typo['b1-16'],\n lineHeight: transformLineheight('b1-16'),\n },\n\n 'b2-14b': {\n ...typo['b2-14b'],\n lineHeight: transformLineheight('b2-14b'),\n },\n\n 'b2-14m': {\n ...typo['b2-14m'],\n lineHeight: transformLineheight('b2-14m'),\n },\n\n 'b2-14': {\n ...typo['b2-14'],\n lineHeight: transformLineheight('b2-14'),\n },\n\n 'b3-12b': {\n ...typo['b3-12b'],\n lineHeight: transformLineheight('b3-12b'),\n },\n\n 'b3-12m': {\n ...typo['b3-12m'],\n lineHeight: transformLineheight('b3-12m'),\n },\n\n 'b3-12': {\n ...typo['b3-12'],\n lineHeight: transformLineheight('b3-12'),\n },\n\n 's1-10b': {\n ...typo['s1-10b'],\n lineHeight: transformLineheight('s1-10b'),\n },\n\n 's1-10m': {\n ...typo['s1-10m'],\n lineHeight: transformLineheight('s1-10m'),\n },\n\n 's1-10': {\n ...typo['s1-10'],\n lineHeight: transformLineheight('s1-10'),\n },\n} as const;\n\nexport { typo, mobileTypo };\n"],"mappings":";AAAA,IAAM,QAAQ;AAAA,EACZ,SAAS;AAAA,EACT,UAAU;AAAA,EACV,UAAU;AAAA,EACV,WAAW;AAAA,EACX,WAAW;AAAA,EACX,SAAS;AAAA,EACT,OAAO;AAAA,EAEP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AAAA,EACP,OAAO;AACT;AAMA,IAAM,UAAU;;;ACMhB,IAAM,OAAO;AAAA,EACX,UAAU;AAAA,IACR,UAAU;AAAA,IACV,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ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