@uni-design-system/uni-core 10.4.0 → 11.0.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/CHANGELOG.md +103 -0
- package/dist/cjs/index.cjs +59 -26
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +59 -26
- package/dist/esm/index.js.map +1 -1
- package/dist/types/concepts/component/component.types.d.ts +1 -1
- package/dist/types/concepts/component/component.types.d.ts.map +1 -1
- package/dist/types/concepts/iconography/icon.records.d.ts +4 -0
- package/dist/types/concepts/iconography/icon.records.d.ts.map +1 -1
- package/dist/types/concepts/theme/themes/base.theme.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/esm/index.js
CHANGED
|
@@ -740,6 +740,10 @@ var BaseIcons = {
|
|
|
740
740
|
chevronRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m517.85-480-184-184L376-706.15 602.15-480 376-253.85 333.85-296l184-184Z'/%3e%3c/svg%3e",
|
|
741
741
|
arrowLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m294.92-450 227.85 227.85L480-180 180-480l300-300 42.77 42.15L294.92-510H780v60H294.92Z'/%3e%3c/svg%3e",
|
|
742
742
|
arrowRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M665.08-450H180v-60h485.08L437.23-737.85 480-780l300 300-300 300-42.77-42.15L665.08-450Z'/%3e%3c/svg%3e",
|
|
743
|
+
arrowUp: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-180v-485.08L222.15-437.23 180-480l300-300 300 300-42.15 42.77L510-665.08V-180h-60Z'/%3e%3c/svg%3e",
|
|
744
|
+
arrowDown: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-780v485.08L222.15-522.77 180-480l300 300 300-300-42.15-42.77L510-294.92V-780h-60Z'/%3e%3c/svg%3e",
|
|
745
|
+
chevronsLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M445-253.85 218.85-480 445-706.15 487.15-664 303.77-480l183.38 184L445-253.85Zm254 0L472.85-480 699-706.15 741.15-664 557.77-480l183.38 184L699-253.85Z'/%3e%3c/svg%3e",
|
|
746
|
+
chevronsRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M402.23-480 218.85-664 261-706.15 487.15-480 261-253.85 218.85-296l183.38-184Zm254 0L472.85-664 515-706.15 741.15-480 515-253.85 472.85-296l183.38-184Z'/%3e%3c/svg%3e",
|
|
743
747
|
home: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M240-200h133.85v-237.69h212.3V-200H720v-360L480-740.77 240-560v360Zm-60 60v-450l300-225.77L780-590v450H526.15v-237.69h-92.3V-140H180Zm300-330.38Z'/%3e%3c/svg%3e",
|
|
744
748
|
building: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M130-136.92v-540h160v-160h380v320h160v380H530v-160H430v160H130Zm60-60h100v-100H190v100Zm0-160h100v-100H190v100Zm0-160h100v-100H190v100Zm160 160h100v-100H350v100Zm0-160h100v-100H350v100Zm0-160h100v-100H350v100Zm160 320h100v-100H510v100Zm0-160h100v-100H510v100Zm0-160h100v-100H510v100Zm160 480h100v-100H670v100Zm0-160h100v-100H670v100Z'/%3e%3c/svg%3e",
|
|
745
749
|
externalLink: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M212.31-140Q182-140 161-161q-21-21-21-51.31v-535.38Q140-778 161-799q21-21 51.31-21h252.3v60h-252.3q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v535.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h535.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-252.3h60v252.3Q820-182 799-161q-21 21-51.31 21H212.31Zm176.46-206.62-42.15-42.15L717.85-760H560v-60h260v260h-60v-157.85L388.77-346.62Z'/%3e%3c/svg%3e",
|
|
@@ -1028,6 +1032,10 @@ var BaseMotion = {
|
|
|
1028
1032
|
control: {
|
|
1029
1033
|
duration: 300,
|
|
1030
1034
|
easing: "ease"
|
|
1035
|
+
},
|
|
1036
|
+
snap: {
|
|
1037
|
+
duration: 120,
|
|
1038
|
+
easing: "ease"
|
|
1031
1039
|
}
|
|
1032
1040
|
};
|
|
1033
1041
|
/**
|
|
@@ -1114,7 +1122,7 @@ var buildComponents = (c) => ({
|
|
|
1114
1122
|
typeface: "label",
|
|
1115
1123
|
color: "on-background-variant",
|
|
1116
1124
|
currentColor: "on-background",
|
|
1117
|
-
|
|
1125
|
+
separatorIcon: "chevronRight",
|
|
1118
1126
|
gap: "xs"
|
|
1119
1127
|
} },
|
|
1120
1128
|
appBar: { options: {
|
|
@@ -1162,7 +1170,7 @@ var buildComponents = (c) => ({
|
|
|
1162
1170
|
options: {
|
|
1163
1171
|
borderRadius: "max",
|
|
1164
1172
|
typeface: "subtitle-2",
|
|
1165
|
-
|
|
1173
|
+
fallbackIcon: "profile"
|
|
1166
1174
|
},
|
|
1167
1175
|
variants: {
|
|
1168
1176
|
primary: {
|
|
@@ -1219,8 +1227,8 @@ var buildComponents = (c) => ({
|
|
|
1219
1227
|
ringWidth: 2
|
|
1220
1228
|
} },
|
|
1221
1229
|
searchInput: { options: {
|
|
1222
|
-
|
|
1223
|
-
|
|
1230
|
+
searchIcon: "search",
|
|
1231
|
+
clearIcon: "close",
|
|
1224
1232
|
listColor: "primary-surface",
|
|
1225
1233
|
listShadow: "menu",
|
|
1226
1234
|
listBorderRadius: "xs",
|
|
@@ -1229,6 +1237,7 @@ var buildComponents = (c) => ({
|
|
|
1229
1237
|
} },
|
|
1230
1238
|
checkbox: {
|
|
1231
1239
|
options: {
|
|
1240
|
+
motion: "control",
|
|
1232
1241
|
size: 20,
|
|
1233
1242
|
boxColor: "surface",
|
|
1234
1243
|
borderRadius: 2,
|
|
@@ -1278,6 +1287,22 @@ var buildComponents = (c) => ({
|
|
|
1278
1287
|
closeButtonIcon: "close",
|
|
1279
1288
|
closeButtonSize: "md"
|
|
1280
1289
|
} },
|
|
1290
|
+
select: { options: {
|
|
1291
|
+
toggleIcon: "chevronDown",
|
|
1292
|
+
toggleColor: "on-background-variant",
|
|
1293
|
+
toggleSize: 20
|
|
1294
|
+
} },
|
|
1295
|
+
buttonGroup: { options: {
|
|
1296
|
+
border: "quaternary",
|
|
1297
|
+
borderRadius: 4
|
|
1298
|
+
} },
|
|
1299
|
+
progressBar: { options: {
|
|
1300
|
+
trackColor: "primary-surface",
|
|
1301
|
+
fillColor: "secondary-surface",
|
|
1302
|
+
completeColor: "secondary",
|
|
1303
|
+
borderColor: "on-background-variant",
|
|
1304
|
+
strokeWidth: 1
|
|
1305
|
+
} },
|
|
1281
1306
|
dropdown: { options: {
|
|
1282
1307
|
border: "none",
|
|
1283
1308
|
borderRadius: "xxs",
|
|
@@ -1305,7 +1330,7 @@ var buildComponents = (c) => ({
|
|
|
1305
1330
|
typeface: "label",
|
|
1306
1331
|
textColor: void 0,
|
|
1307
1332
|
hoverColor: "primary-container",
|
|
1308
|
-
|
|
1333
|
+
activeIcon: "check",
|
|
1309
1334
|
motion: "control"
|
|
1310
1335
|
},
|
|
1311
1336
|
variants: {
|
|
@@ -1329,7 +1354,7 @@ var buildComponents = (c) => ({
|
|
|
1329
1354
|
maxWidth: "38ch",
|
|
1330
1355
|
offset: 7,
|
|
1331
1356
|
arrowSize: 8,
|
|
1332
|
-
|
|
1357
|
+
closeIcon: "close",
|
|
1333
1358
|
headerTypeface: "title-small",
|
|
1334
1359
|
tooltipPadding: "4px 8px",
|
|
1335
1360
|
tooltipOpenDelay: 500,
|
|
@@ -1337,12 +1362,6 @@ var buildComponents = (c) => ({
|
|
|
1337
1362
|
motion: "panel"
|
|
1338
1363
|
} },
|
|
1339
1364
|
expand: { options: { motion: "reveal" } },
|
|
1340
|
-
footer: { options: {
|
|
1341
|
-
height: 52,
|
|
1342
|
-
color: "primary",
|
|
1343
|
-
logoHeight: 18.6,
|
|
1344
|
-
logoPadding: "md"
|
|
1345
|
-
} },
|
|
1346
1365
|
input: { options: {
|
|
1347
1366
|
typeface: "input",
|
|
1348
1367
|
color: "primary-surface",
|
|
@@ -1401,6 +1420,7 @@ var buildComponents = (c) => ({
|
|
|
1401
1420
|
}
|
|
1402
1421
|
},
|
|
1403
1422
|
tabs: { options: {
|
|
1423
|
+
motion: "snap",
|
|
1404
1424
|
typeface: "title-small",
|
|
1405
1425
|
textColor: "on-surface-variant",
|
|
1406
1426
|
activeTextColor: "primary",
|
|
@@ -1428,14 +1448,14 @@ var buildComponents = (c) => ({
|
|
|
1428
1448
|
typeface: "tag",
|
|
1429
1449
|
gap: "xs",
|
|
1430
1450
|
removeIcon: "close",
|
|
1431
|
-
selectedIcon: "check"
|
|
1451
|
+
selectedIcon: "check",
|
|
1452
|
+
motion: "control"
|
|
1432
1453
|
},
|
|
1433
1454
|
fixed: {
|
|
1434
1455
|
display: "inline-flex",
|
|
1435
1456
|
alignItems: "center",
|
|
1436
1457
|
maxWidth: "100%",
|
|
1437
|
-
border: "1px solid transparent"
|
|
1438
|
-
transition: "background-color .2s ease, color .2s ease"
|
|
1458
|
+
border: "1px solid transparent"
|
|
1439
1459
|
},
|
|
1440
1460
|
variants: {
|
|
1441
1461
|
...tagVariant(c, "primary"),
|
|
@@ -1501,8 +1521,8 @@ var buildComponents = (c) => ({
|
|
|
1501
1521
|
dayBorderRadius: "max",
|
|
1502
1522
|
typeface: "label",
|
|
1503
1523
|
gap: "xxs",
|
|
1504
|
-
|
|
1505
|
-
|
|
1524
|
+
navPrevIcon: "chevronLeft",
|
|
1525
|
+
navNextIcon: "chevronRight",
|
|
1506
1526
|
weekdayFormat: "short",
|
|
1507
1527
|
showOutsideDays: false,
|
|
1508
1528
|
todayStyle: "outline"
|
|
@@ -1541,13 +1561,13 @@ var buildComponents = (c) => ({
|
|
|
1541
1561
|
descriptionColor: "on-primary-surface-variant"
|
|
1542
1562
|
} },
|
|
1543
1563
|
dateInput: { options: {
|
|
1544
|
-
|
|
1564
|
+
toggleIcon: "calendar",
|
|
1545
1565
|
popupShadow: "menu",
|
|
1546
1566
|
popupBorderRadius: "xs",
|
|
1547
1567
|
popupColor: "primary-surface"
|
|
1548
1568
|
} },
|
|
1549
1569
|
timeInput: { options: {
|
|
1550
|
-
|
|
1570
|
+
toggleIcon: "clock",
|
|
1551
1571
|
listColor: "primary-surface",
|
|
1552
1572
|
listShadow: "menu",
|
|
1553
1573
|
listBorderRadius: "xs",
|
|
@@ -1561,15 +1581,15 @@ var buildComponents = (c) => ({
|
|
|
1561
1581
|
button: {
|
|
1562
1582
|
options: {
|
|
1563
1583
|
borderRadius: "max",
|
|
1564
|
-
typeface: "button"
|
|
1584
|
+
typeface: "button",
|
|
1585
|
+
motion: "control"
|
|
1565
1586
|
},
|
|
1566
1587
|
fixed: {
|
|
1567
1588
|
position: "relative",
|
|
1568
1589
|
overflow: "hidden",
|
|
1569
1590
|
outline: "0",
|
|
1570
1591
|
border: "0",
|
|
1571
|
-
cursor: "pointer"
|
|
1572
|
-
transition: "all 0.28s ease"
|
|
1592
|
+
cursor: "pointer"
|
|
1573
1593
|
},
|
|
1574
1594
|
variantOptions: {
|
|
1575
1595
|
primary: { focusColor: "primary" },
|
|
@@ -1650,7 +1670,10 @@ var buildComponents = (c) => ({
|
|
|
1650
1670
|
}
|
|
1651
1671
|
},
|
|
1652
1672
|
iconButton: {
|
|
1653
|
-
options: {
|
|
1673
|
+
options: {
|
|
1674
|
+
borderRadius: "max",
|
|
1675
|
+
motion: "control"
|
|
1676
|
+
},
|
|
1654
1677
|
variantOptions: {
|
|
1655
1678
|
primary: { focusColor: "primary" },
|
|
1656
1679
|
secondary: { focusColor: "secondary" },
|
|
@@ -1727,6 +1750,13 @@ var buildComponents = (c) => ({
|
|
|
1727
1750
|
}
|
|
1728
1751
|
}
|
|
1729
1752
|
},
|
|
1753
|
+
inlineButton: { options: {
|
|
1754
|
+
linkColor: "primary",
|
|
1755
|
+
underline: false,
|
|
1756
|
+
underlineOnHover: true,
|
|
1757
|
+
underlineOffset: "0.15em",
|
|
1758
|
+
gap: "xxs"
|
|
1759
|
+
} },
|
|
1730
1760
|
progressGauge: {
|
|
1731
1761
|
fixed: { textFill: c["on-background"] },
|
|
1732
1762
|
variants: {
|
|
@@ -1762,7 +1792,8 @@ var buildComponents = (c) => ({
|
|
|
1762
1792
|
options: { borderRadius: "xs" },
|
|
1763
1793
|
fixed: {
|
|
1764
1794
|
overflow: "hidden",
|
|
1765
|
-
backgroundColor: c.background
|
|
1795
|
+
backgroundColor: c.background,
|
|
1796
|
+
color: c["on-background"]
|
|
1766
1797
|
}
|
|
1767
1798
|
},
|
|
1768
1799
|
cardHeader: {
|
|
@@ -1798,6 +1829,7 @@ var buildComponents = (c) => ({
|
|
|
1798
1829
|
placeholderColor: "disabled"
|
|
1799
1830
|
} },
|
|
1800
1831
|
dataTable: { options: {
|
|
1832
|
+
motion: "control",
|
|
1801
1833
|
color: "primary-surface",
|
|
1802
1834
|
border: "light",
|
|
1803
1835
|
borderRadius: "sm",
|
|
@@ -1861,7 +1893,7 @@ var buildComponents = (c) => ({
|
|
|
1861
1893
|
tooltipTextColor: "on-inverse-surface",
|
|
1862
1894
|
tooltipShadow: "menu",
|
|
1863
1895
|
tooltipBorderRadius: "xs",
|
|
1864
|
-
|
|
1896
|
+
motion: "snap"
|
|
1865
1897
|
} },
|
|
1866
1898
|
skeleton: { options: {
|
|
1867
1899
|
color: "surface-variant",
|
|
@@ -1910,6 +1942,7 @@ var buildComponents = (c) => ({
|
|
|
1910
1942
|
}
|
|
1911
1943
|
},
|
|
1912
1944
|
tooltip: { options: {
|
|
1945
|
+
motion: "notification",
|
|
1913
1946
|
border: void 0,
|
|
1914
1947
|
borderRadius: "xs",
|
|
1915
1948
|
shadow: "raised",
|
|
@@ -1924,7 +1957,7 @@ var buildComponents = (c) => ({
|
|
|
1924
1957
|
padding: "16px",
|
|
1925
1958
|
headerTypeface: "title-small",
|
|
1926
1959
|
typeface: "label",
|
|
1927
|
-
|
|
1960
|
+
closeIcon: "close",
|
|
1928
1961
|
arrowSize: 8,
|
|
1929
1962
|
offset: 12,
|
|
1930
1963
|
scrimColor: "rgba(0, 0, 0, 0.45)",
|