@uni-design-system/uni-core 8.0.0 → 8.1.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/dist/cjs/index.cjs +60 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +60 -4
- 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/theme.model.d.ts +2 -1
- package/dist/types/concepts/theme/theme.model.d.ts.map +1 -1
- package/dist/types/concepts/theme/themes/base.theme.d.ts +8 -2
- package/dist/types/concepts/theme/themes/base.theme.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1266,12 +1266,15 @@ var buildComponents = (c) => ({
|
|
|
1266
1266
|
} },
|
|
1267
1267
|
checkbox: { options: {
|
|
1268
1268
|
size: 20,
|
|
1269
|
-
boxColor: "surface"
|
|
1269
|
+
boxColor: "surface",
|
|
1270
|
+
borderRadius: 2,
|
|
1271
|
+
focusRingGap: 2
|
|
1270
1272
|
} },
|
|
1271
1273
|
radio: { options: {
|
|
1272
1274
|
size: 20,
|
|
1273
1275
|
ringColor: "outline",
|
|
1274
|
-
fillColor: "surface"
|
|
1276
|
+
fillColor: "surface",
|
|
1277
|
+
transitionSpeed: .3
|
|
1275
1278
|
} },
|
|
1276
1279
|
dialog: { options: {
|
|
1277
1280
|
borderRadius: "lg",
|
|
@@ -1462,6 +1465,56 @@ var buildComponents = (c) => ({
|
|
|
1462
1465
|
listBorderRadius: "xs",
|
|
1463
1466
|
maxSuggestions: 8
|
|
1464
1467
|
} },
|
|
1468
|
+
calendar: {
|
|
1469
|
+
options: {
|
|
1470
|
+
dayBorderRadius: "max",
|
|
1471
|
+
typeface: "label",
|
|
1472
|
+
gap: "xxs",
|
|
1473
|
+
navPrevSymbol: "chevron_left",
|
|
1474
|
+
navNextSymbol: "chevron_right",
|
|
1475
|
+
weekdayFormat: "short",
|
|
1476
|
+
showOutsideDays: false,
|
|
1477
|
+
todayStyle: "outline"
|
|
1478
|
+
},
|
|
1479
|
+
fixed: {
|
|
1480
|
+
display: "inline-block",
|
|
1481
|
+
userSelect: "none"
|
|
1482
|
+
},
|
|
1483
|
+
sizes: {
|
|
1484
|
+
sm: {
|
|
1485
|
+
width: 28,
|
|
1486
|
+
height: 28,
|
|
1487
|
+
fontSize: 12
|
|
1488
|
+
},
|
|
1489
|
+
md: {
|
|
1490
|
+
width: 34,
|
|
1491
|
+
height: 34,
|
|
1492
|
+
fontSize: 13
|
|
1493
|
+
},
|
|
1494
|
+
lg: {
|
|
1495
|
+
width: 40,
|
|
1496
|
+
height: 40,
|
|
1497
|
+
fontSize: 15
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
dateInput: { options: {
|
|
1502
|
+
toggleSymbol: "calendar_month",
|
|
1503
|
+
popupShadow: "menu",
|
|
1504
|
+
popupBorderRadius: "xs",
|
|
1505
|
+
popupColor: "primary-surface"
|
|
1506
|
+
} },
|
|
1507
|
+
timeInput: { options: {
|
|
1508
|
+
toggleSymbol: "schedule",
|
|
1509
|
+
listColor: "primary-surface",
|
|
1510
|
+
listShadow: "menu",
|
|
1511
|
+
listBorderRadius: "xs",
|
|
1512
|
+
maxVisibleOptions: 7
|
|
1513
|
+
} },
|
|
1514
|
+
dateTimeInput: { options: {
|
|
1515
|
+
partGap: "sm",
|
|
1516
|
+
dividerColor: "outline"
|
|
1517
|
+
} },
|
|
1465
1518
|
button: {
|
|
1466
1519
|
options: {
|
|
1467
1520
|
borderRadius: "max",
|
|
@@ -1772,7 +1825,7 @@ var deepMerge = (base, override) => {
|
|
|
1772
1825
|
for (const [key, value] of Object.entries(override)) out[key] = isRecord$1(value) && isRecord$1(out[key]) ? deepMerge(out[key], value) : value;
|
|
1773
1826
|
return out;
|
|
1774
1827
|
};
|
|
1775
|
-
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, borders, components }) => ({
|
|
1828
|
+
var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, borders, thicknesses, components }) => ({
|
|
1776
1829
|
id,
|
|
1777
1830
|
name,
|
|
1778
1831
|
colors,
|
|
@@ -1781,7 +1834,10 @@ var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows =
|
|
|
1781
1834
|
radii,
|
|
1782
1835
|
shadows,
|
|
1783
1836
|
spacing: BaseSpacing,
|
|
1784
|
-
thicknesses:
|
|
1837
|
+
thicknesses: {
|
|
1838
|
+
...BaseThicknesses,
|
|
1839
|
+
...thicknesses
|
|
1840
|
+
},
|
|
1785
1841
|
icons: {
|
|
1786
1842
|
...BaseIcons,
|
|
1787
1843
|
...icons
|