@sanity/ui 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +92 -80
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +92 -80
- package/dist/index.js.map +1 -1
- package/dist/theme.esm.js +15 -5
- package/dist/theme.esm.js.map +1 -1
- package/dist/theme.js +15 -5
- package/dist/theme.js.map +1 -1
- package/package.json +1 -1
- package/src/core/__workshop__/constants.ts +3 -2
- package/src/core/primitives/avatar/__workshop__/asButton.tsx +1 -1
- package/src/core/primitives/avatar/__workshop__/stack.tsx +1 -1
- package/src/core/primitives/avatar/avatar.tsx +14 -4
- package/src/core/primitives/avatar/avatarCounter.tsx +16 -5
- package/src/core/primitives/avatar/avatarStack.tsx +2 -2
- package/src/core/primitives/tooltip/tooltip.tsx +1 -1
- package/src/core/types/avatar.ts +1 -1
- package/src/theme/defaults/config.ts +1 -0
- package/src/theme/defaults/fonts.ts +13 -5
package/dist/theme.js
CHANGED
|
@@ -1166,6 +1166,9 @@ const defaultThemeConfig = {
|
|
|
1166
1166
|
_version: 2,
|
|
1167
1167
|
avatar: {
|
|
1168
1168
|
sizes: [{
|
|
1169
|
+
distance: -4,
|
|
1170
|
+
size: 19
|
|
1171
|
+
}, {
|
|
1169
1172
|
distance: -4,
|
|
1170
1173
|
size: 25
|
|
1171
1174
|
}, {
|
|
@@ -1403,35 +1406,42 @@ const defaultThemeFonts = {
|
|
|
1403
1406
|
sizes: [{
|
|
1404
1407
|
ascenderHeight: 2,
|
|
1405
1408
|
descenderHeight: 2,
|
|
1406
|
-
fontSize:
|
|
1409
|
+
fontSize: 8.1,
|
|
1410
|
+
iconSize: 13,
|
|
1411
|
+
lineHeight: 10,
|
|
1412
|
+
letterSpacing: 0.5
|
|
1413
|
+
}, {
|
|
1414
|
+
ascenderHeight: 2,
|
|
1415
|
+
descenderHeight: 2,
|
|
1416
|
+
fontSize: 9.5,
|
|
1407
1417
|
iconSize: 15,
|
|
1408
1418
|
lineHeight: 11,
|
|
1409
1419
|
letterSpacing: 0.5
|
|
1410
1420
|
}, {
|
|
1411
1421
|
ascenderHeight: 2,
|
|
1412
1422
|
descenderHeight: 2,
|
|
1413
|
-
fontSize:
|
|
1423
|
+
fontSize: 10.8,
|
|
1414
1424
|
iconSize: 17,
|
|
1415
1425
|
lineHeight: 12,
|
|
1416
1426
|
letterSpacing: 0.5
|
|
1417
1427
|
}, {
|
|
1418
1428
|
ascenderHeight: 2,
|
|
1419
1429
|
descenderHeight: 2,
|
|
1420
|
-
fontSize: 12.
|
|
1430
|
+
fontSize: 12.25,
|
|
1421
1431
|
iconSize: 19,
|
|
1422
1432
|
lineHeight: 13,
|
|
1423
1433
|
letterSpacing: 0.5
|
|
1424
1434
|
}, {
|
|
1425
1435
|
ascenderHeight: 2,
|
|
1426
1436
|
descenderHeight: 2,
|
|
1427
|
-
fontSize:
|
|
1437
|
+
fontSize: 13.6,
|
|
1428
1438
|
iconSize: 21,
|
|
1429
1439
|
lineHeight: 14,
|
|
1430
1440
|
letterSpacing: 0.5
|
|
1431
1441
|
}, {
|
|
1432
1442
|
ascenderHeight: 2,
|
|
1433
1443
|
descenderHeight: 2,
|
|
1434
|
-
fontSize: 15
|
|
1444
|
+
fontSize: 15,
|
|
1435
1445
|
iconSize: 23,
|
|
1436
1446
|
lineHeight: 15,
|
|
1437
1447
|
letterSpacing: 0.5
|