@xsolla/xui-core 0.131.0 → 0.132.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/index.d.mts +1 -0
- package/index.d.ts +1 -0
- package/index.js +30 -1
- package/index.js.map +1 -1
- package/index.mjs +30 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/index.mjs
CHANGED
|
@@ -1300,6 +1300,13 @@ var typographyTokens = {
|
|
|
1300
1300
|
fontWeight: 400,
|
|
1301
1301
|
accent: { fontWeight: 500 },
|
|
1302
1302
|
paragraph: { lineHeight: "18px", spacing: 8 }
|
|
1303
|
+
},
|
|
1304
|
+
"body-xxs": {
|
|
1305
|
+
fontSize: 10,
|
|
1306
|
+
lineHeight: "14px",
|
|
1307
|
+
fontWeight: 400,
|
|
1308
|
+
accent: { fontWeight: 500 },
|
|
1309
|
+
paragraph: { lineHeight: "14px", spacing: 6 }
|
|
1303
1310
|
}
|
|
1304
1311
|
}
|
|
1305
1312
|
},
|
|
@@ -1340,6 +1347,13 @@ var typographyTokens = {
|
|
|
1340
1347
|
fontWeight: 400,
|
|
1341
1348
|
accent: { fontWeight: 500 },
|
|
1342
1349
|
paragraph: { lineHeight: "18px", spacing: 8 }
|
|
1350
|
+
},
|
|
1351
|
+
"body-xxs": {
|
|
1352
|
+
fontSize: 10,
|
|
1353
|
+
lineHeight: "14px",
|
|
1354
|
+
fontWeight: 400,
|
|
1355
|
+
accent: { fontWeight: 500 },
|
|
1356
|
+
paragraph: { lineHeight: "14px", spacing: 6 }
|
|
1343
1357
|
}
|
|
1344
1358
|
}
|
|
1345
1359
|
},
|
|
@@ -1380,6 +1394,13 @@ var typographyTokens = {
|
|
|
1380
1394
|
fontWeight: 400,
|
|
1381
1395
|
accent: { fontWeight: 500 },
|
|
1382
1396
|
paragraph: { lineHeight: "14px", spacing: 6 }
|
|
1397
|
+
},
|
|
1398
|
+
"body-xxs": {
|
|
1399
|
+
fontSize: 10,
|
|
1400
|
+
lineHeight: "14px",
|
|
1401
|
+
fontWeight: 400,
|
|
1402
|
+
accent: { fontWeight: 500 },
|
|
1403
|
+
paragraph: { lineHeight: "14px", spacing: 6 }
|
|
1383
1404
|
}
|
|
1384
1405
|
}
|
|
1385
1406
|
},
|
|
@@ -1420,6 +1441,13 @@ var typographyTokens = {
|
|
|
1420
1441
|
fontWeight: 400,
|
|
1421
1442
|
accent: { fontWeight: 500 },
|
|
1422
1443
|
paragraph: { lineHeight: "22px", spacing: 12 }
|
|
1444
|
+
},
|
|
1445
|
+
"body-xxs": {
|
|
1446
|
+
fontSize: 16,
|
|
1447
|
+
lineHeight: "20px",
|
|
1448
|
+
fontWeight: 400,
|
|
1449
|
+
accent: { fontWeight: 500 },
|
|
1450
|
+
paragraph: { lineHeight: "22px", spacing: 12 }
|
|
1423
1451
|
}
|
|
1424
1452
|
}
|
|
1425
1453
|
}
|
|
@@ -1440,7 +1468,8 @@ var getTypographyVariant = (productContext, variant) => {
|
|
|
1440
1468
|
bodyLg: "body-lg",
|
|
1441
1469
|
bodyMd: "body-md",
|
|
1442
1470
|
bodySm: "body-sm",
|
|
1443
|
-
bodyXs: "body-xs"
|
|
1471
|
+
bodyXs: "body-xs",
|
|
1472
|
+
bodyXxs: "body-xxs"
|
|
1444
1473
|
};
|
|
1445
1474
|
const bodyKey = bodyVariantMap[variant.replace("Accent", "").replace("Paragraph", "")];
|
|
1446
1475
|
if (bodyKey && bodyKey in tokens.basic) {
|