@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.esm.js
CHANGED
|
@@ -1161,6 +1161,9 @@ const defaultThemeConfig = {
|
|
|
1161
1161
|
_version: 2,
|
|
1162
1162
|
avatar: {
|
|
1163
1163
|
sizes: [{
|
|
1164
|
+
distance: -4,
|
|
1165
|
+
size: 19
|
|
1166
|
+
}, {
|
|
1164
1167
|
distance: -4,
|
|
1165
1168
|
size: 25
|
|
1166
1169
|
}, {
|
|
@@ -1398,35 +1401,42 @@ const defaultThemeFonts = {
|
|
|
1398
1401
|
sizes: [{
|
|
1399
1402
|
ascenderHeight: 2,
|
|
1400
1403
|
descenderHeight: 2,
|
|
1401
|
-
fontSize:
|
|
1404
|
+
fontSize: 8.1,
|
|
1405
|
+
iconSize: 13,
|
|
1406
|
+
lineHeight: 10,
|
|
1407
|
+
letterSpacing: 0.5
|
|
1408
|
+
}, {
|
|
1409
|
+
ascenderHeight: 2,
|
|
1410
|
+
descenderHeight: 2,
|
|
1411
|
+
fontSize: 9.5,
|
|
1402
1412
|
iconSize: 15,
|
|
1403
1413
|
lineHeight: 11,
|
|
1404
1414
|
letterSpacing: 0.5
|
|
1405
1415
|
}, {
|
|
1406
1416
|
ascenderHeight: 2,
|
|
1407
1417
|
descenderHeight: 2,
|
|
1408
|
-
fontSize:
|
|
1418
|
+
fontSize: 10.8,
|
|
1409
1419
|
iconSize: 17,
|
|
1410
1420
|
lineHeight: 12,
|
|
1411
1421
|
letterSpacing: 0.5
|
|
1412
1422
|
}, {
|
|
1413
1423
|
ascenderHeight: 2,
|
|
1414
1424
|
descenderHeight: 2,
|
|
1415
|
-
fontSize: 12.
|
|
1425
|
+
fontSize: 12.25,
|
|
1416
1426
|
iconSize: 19,
|
|
1417
1427
|
lineHeight: 13,
|
|
1418
1428
|
letterSpacing: 0.5
|
|
1419
1429
|
}, {
|
|
1420
1430
|
ascenderHeight: 2,
|
|
1421
1431
|
descenderHeight: 2,
|
|
1422
|
-
fontSize:
|
|
1432
|
+
fontSize: 13.6,
|
|
1423
1433
|
iconSize: 21,
|
|
1424
1434
|
lineHeight: 14,
|
|
1425
1435
|
letterSpacing: 0.5
|
|
1426
1436
|
}, {
|
|
1427
1437
|
ascenderHeight: 2,
|
|
1428
1438
|
descenderHeight: 2,
|
|
1429
|
-
fontSize: 15
|
|
1439
|
+
fontSize: 15,
|
|
1430
1440
|
iconSize: 23,
|
|
1431
1441
|
lineHeight: 15,
|
|
1432
1442
|
letterSpacing: 0.5
|