@uni-design-system/uni-core 8.1.0 → 8.3.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 +726 -0
- package/dist/cjs/index.cjs +54 -3
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +54 -3
- 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/theme/themes/base.theme.d.ts +9 -1
- package/dist/types/concepts/theme/themes/base.theme.d.ts.map +1 -1
- package/package.json +3 -2
package/dist/esm/index.js
CHANGED
|
@@ -1261,6 +1261,7 @@ var buildComponents = (c) => ({
|
|
|
1261
1261
|
listColor: "primary-surface",
|
|
1262
1262
|
listShadow: "menu",
|
|
1263
1263
|
listBorderRadius: "xs",
|
|
1264
|
+
activeColor: "primary-container",
|
|
1264
1265
|
maxSuggestions: 8
|
|
1265
1266
|
} },
|
|
1266
1267
|
checkbox: { options: {
|
|
@@ -1343,6 +1344,22 @@ var buildComponents = (c) => ({
|
|
|
1343
1344
|
}
|
|
1344
1345
|
} }
|
|
1345
1346
|
},
|
|
1347
|
+
popover: { options: {
|
|
1348
|
+
color: "primary-surface",
|
|
1349
|
+
border: "quaternary",
|
|
1350
|
+
borderRadius: "xs",
|
|
1351
|
+
shadow: "raised",
|
|
1352
|
+
typeface: "label",
|
|
1353
|
+
padding: "6px 12px",
|
|
1354
|
+
maxWidth: "38ch",
|
|
1355
|
+
offset: 7,
|
|
1356
|
+
arrowSize: 8,
|
|
1357
|
+
closeSymbol: "close",
|
|
1358
|
+
headerTypeface: "title-small",
|
|
1359
|
+
tooltipPadding: "4px 8px",
|
|
1360
|
+
tooltipOpenDelay: 500,
|
|
1361
|
+
tooltipCloseDelay: 150
|
|
1362
|
+
} },
|
|
1346
1363
|
expand: { options: { transitionSpeed: .35 } },
|
|
1347
1364
|
footer: { options: {
|
|
1348
1365
|
height: 52,
|
|
@@ -1351,7 +1368,7 @@ var buildComponents = (c) => ({
|
|
|
1351
1368
|
logoPadding: "md"
|
|
1352
1369
|
} },
|
|
1353
1370
|
input: { options: {
|
|
1354
|
-
|
|
1371
|
+
typeface: "input",
|
|
1355
1372
|
color: "primary-surface",
|
|
1356
1373
|
textColor: "on-primary-surface",
|
|
1357
1374
|
disabledColor: "disabled-surface",
|
|
@@ -1462,6 +1479,7 @@ var buildComponents = (c) => ({
|
|
|
1462
1479
|
listColor: "primary-surface",
|
|
1463
1480
|
listShadow: "menu",
|
|
1464
1481
|
listBorderRadius: "xs",
|
|
1482
|
+
activeColor: "primary-container",
|
|
1465
1483
|
maxSuggestions: 8
|
|
1466
1484
|
} },
|
|
1467
1485
|
calendar: {
|
|
@@ -1497,6 +1515,17 @@ var buildComponents = (c) => ({
|
|
|
1497
1515
|
}
|
|
1498
1516
|
}
|
|
1499
1517
|
},
|
|
1518
|
+
combobox: { options: {
|
|
1519
|
+
toggleIcon: "chevronDown",
|
|
1520
|
+
clearIcon: "close",
|
|
1521
|
+
selectedIcon: "check",
|
|
1522
|
+
listColor: "primary-surface",
|
|
1523
|
+
listShadow: "menu",
|
|
1524
|
+
listBorderRadius: "xs",
|
|
1525
|
+
activeColor: "primary-container",
|
|
1526
|
+
maxVisibleOptions: 8,
|
|
1527
|
+
descriptionColor: "on-primary-surface-variant"
|
|
1528
|
+
} },
|
|
1500
1529
|
dateInput: { options: {
|
|
1501
1530
|
toggleSymbol: "calendar_month",
|
|
1502
1531
|
popupShadow: "menu",
|
|
@@ -1508,6 +1537,7 @@ var buildComponents = (c) => ({
|
|
|
1508
1537
|
listColor: "primary-surface",
|
|
1509
1538
|
listShadow: "menu",
|
|
1510
1539
|
listBorderRadius: "xs",
|
|
1540
|
+
activeColor: "primary-container",
|
|
1511
1541
|
maxVisibleOptions: 7
|
|
1512
1542
|
} },
|
|
1513
1543
|
dateTimeInput: { options: {
|
|
@@ -1815,6 +1845,27 @@ var buildComponents = (c) => ({
|
|
|
1815
1845
|
shadow: "raised",
|
|
1816
1846
|
color: "inverse-surface",
|
|
1817
1847
|
typeface: "label"
|
|
1848
|
+
} },
|
|
1849
|
+
callout: { options: {
|
|
1850
|
+
color: "primary-surface",
|
|
1851
|
+
borderRadius: "xs",
|
|
1852
|
+
shadow: "menu",
|
|
1853
|
+
width: "320px",
|
|
1854
|
+
padding: "16px",
|
|
1855
|
+
headerTypeface: "title-small",
|
|
1856
|
+
typeface: "label",
|
|
1857
|
+
closeSymbol: "close",
|
|
1858
|
+
arrowSize: 8,
|
|
1859
|
+
offset: 12,
|
|
1860
|
+
scrimColor: "rgba(0, 0, 0, 0.45)",
|
|
1861
|
+
spotlightPadding: 6,
|
|
1862
|
+
spotlightRadius: "xs",
|
|
1863
|
+
ringWidth: 2,
|
|
1864
|
+
transitionMs: 250
|
|
1865
|
+
} },
|
|
1866
|
+
tour: { options: {
|
|
1867
|
+
progressStyle: "dots",
|
|
1868
|
+
footerGap: "sm"
|
|
1818
1869
|
} }
|
|
1819
1870
|
});
|
|
1820
1871
|
var isRecord$1 = (value) => typeof value === "object" && value !== null && !Array.isArray(value);
|
|
@@ -1824,11 +1875,11 @@ var deepMerge = (base, override) => {
|
|
|
1824
1875
|
for (const [key, value] of Object.entries(override)) out[key] = isRecord$1(value) && isRecord$1(out[key]) ? deepMerge(out[key], value) : value;
|
|
1825
1876
|
return out;
|
|
1826
1877
|
};
|
|
1827
|
-
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, borders, thicknesses, components }) => ({
|
|
1878
|
+
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, typography, borders, thicknesses, components }) => ({
|
|
1828
1879
|
id,
|
|
1829
1880
|
name,
|
|
1830
1881
|
colors,
|
|
1831
|
-
typography: BaseTypography,
|
|
1882
|
+
typography: deepMerge(BaseTypography, typography),
|
|
1832
1883
|
borders: deepMerge(buildBorders(colors), borders),
|
|
1833
1884
|
radii,
|
|
1834
1885
|
shadows,
|