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