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