@uni-design-system/uni-core 9.0.1 → 10.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/CHANGELOG.md +301 -0
- package/dist/cjs/index.cjs +100 -10
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.js +100 -10
- 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.map +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1098,7 +1098,30 @@ var buildComponents = (c) => ({
|
|
|
1098
1098
|
divider: "light",
|
|
1099
1099
|
elevation: "menu",
|
|
1100
1100
|
padding: "md",
|
|
1101
|
-
backdrop: { background: "rgba(0, 0, 0, 0.4)" }
|
|
1101
|
+
backdrop: { background: "rgba(0, 0, 0, 0.4)" },
|
|
1102
|
+
scrim: true,
|
|
1103
|
+
background: "solid"
|
|
1104
|
+
} },
|
|
1105
|
+
drawerHeader: { options: {
|
|
1106
|
+
color: void 0,
|
|
1107
|
+
height: 56,
|
|
1108
|
+
padding: "md",
|
|
1109
|
+
textRole: "title-medium",
|
|
1110
|
+
textAlign: "left",
|
|
1111
|
+
divider: "light",
|
|
1112
|
+
closeButtonIcon: "close",
|
|
1113
|
+
closeButtonSize: "md"
|
|
1114
|
+
} },
|
|
1115
|
+
drawerButtons: { options: {
|
|
1116
|
+
gap: "sm",
|
|
1117
|
+
padding: "md",
|
|
1118
|
+
justifyContent: "flex-end",
|
|
1119
|
+
confirmButtonVariant: "primary",
|
|
1120
|
+
cancelButtonVariant: "quaternary",
|
|
1121
|
+
buttonSize: "md",
|
|
1122
|
+
divider: "light",
|
|
1123
|
+
stretch: false,
|
|
1124
|
+
reverseOrder: false
|
|
1102
1125
|
} },
|
|
1103
1126
|
avatar: {
|
|
1104
1127
|
options: {
|
|
@@ -1293,6 +1316,44 @@ var buildComponents = (c) => ({
|
|
|
1293
1316
|
rows: 3,
|
|
1294
1317
|
resize: "vertical"
|
|
1295
1318
|
} },
|
|
1319
|
+
numberInput: { options: {
|
|
1320
|
+
stepperLayout: "stacked",
|
|
1321
|
+
incrementIcon: "plus",
|
|
1322
|
+
decrementIcon: "minus",
|
|
1323
|
+
stepUpIcon: "chevronUp",
|
|
1324
|
+
stepDownIcon: "chevronDown",
|
|
1325
|
+
stepperWidth: 32,
|
|
1326
|
+
minTouchTarget: 24,
|
|
1327
|
+
affixColor: "on-primary-surface-variant",
|
|
1328
|
+
affixGap: "xs",
|
|
1329
|
+
align: "start",
|
|
1330
|
+
tabularNumerals: true,
|
|
1331
|
+
repeatDelayMs: 500,
|
|
1332
|
+
repeatIntervalMs: 100,
|
|
1333
|
+
repeatFastIntervalMs: 25,
|
|
1334
|
+
repeatRampMs: 2e3
|
|
1335
|
+
} },
|
|
1336
|
+
numberRangeInput: { options: {
|
|
1337
|
+
partGap: "sm",
|
|
1338
|
+
dividerText: "–",
|
|
1339
|
+
dividerColor: "outline",
|
|
1340
|
+
affixColor: "on-primary-surface-variant",
|
|
1341
|
+
affixGap: "xs"
|
|
1342
|
+
} },
|
|
1343
|
+
quantityStepper: {
|
|
1344
|
+
options: {
|
|
1345
|
+
incrementIcon: "plus",
|
|
1346
|
+
decrementIcon: "minus",
|
|
1347
|
+
deleteIcon: "delete",
|
|
1348
|
+
tabularNumerals: true,
|
|
1349
|
+
valueWidth: "3ch"
|
|
1350
|
+
},
|
|
1351
|
+
sizes: {
|
|
1352
|
+
sm: { height: 24 },
|
|
1353
|
+
md: { height: 32 },
|
|
1354
|
+
lg: { height: 40 }
|
|
1355
|
+
}
|
|
1356
|
+
},
|
|
1296
1357
|
tabs: { options: {
|
|
1297
1358
|
typeface: "title-small",
|
|
1298
1359
|
textColor: "on-surface-variant",
|
|
@@ -1716,11 +1777,21 @@ var buildComponents = (c) => ({
|
|
|
1716
1777
|
gap: "xxs"
|
|
1717
1778
|
} },
|
|
1718
1779
|
slider: { options: {
|
|
1719
|
-
color: "primary",
|
|
1720
|
-
trackColor: "surface-variant",
|
|
1721
|
-
borderRadius: "max",
|
|
1722
1780
|
trackHeight: 4,
|
|
1723
|
-
|
|
1781
|
+
trackColor: "primary-container",
|
|
1782
|
+
borderRadius: "max",
|
|
1783
|
+
thumbSize: 16,
|
|
1784
|
+
thumbBorderRadius: "max",
|
|
1785
|
+
minTouchTarget: 24,
|
|
1786
|
+
markSize: 3,
|
|
1787
|
+
markColor: "on-primary-container",
|
|
1788
|
+
labelTypeface: "label",
|
|
1789
|
+
labelColor: "on-surface-variant",
|
|
1790
|
+
tooltipColor: "inverse-surface",
|
|
1791
|
+
tooltipTextColor: "on-inverse-surface",
|
|
1792
|
+
tooltipShadow: "menu",
|
|
1793
|
+
tooltipBorderRadius: "xs",
|
|
1794
|
+
transitionMs: 120
|
|
1724
1795
|
} },
|
|
1725
1796
|
skeleton: { options: {
|
|
1726
1797
|
color: "surface-variant",
|
|
@@ -1743,11 +1814,30 @@ var buildComponents = (c) => ({
|
|
|
1743
1814
|
grade: 0,
|
|
1744
1815
|
opticalSize: 24
|
|
1745
1816
|
} },
|
|
1746
|
-
toggle: {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1817
|
+
toggle: {
|
|
1818
|
+
options: {
|
|
1819
|
+
trackColor: "surface-variant",
|
|
1820
|
+
knobColor: "surface",
|
|
1821
|
+
motion: "control"
|
|
1822
|
+
},
|
|
1823
|
+
sizes: {
|
|
1824
|
+
sm: {
|
|
1825
|
+
width: 28,
|
|
1826
|
+
height: 16,
|
|
1827
|
+
padding: 3
|
|
1828
|
+
},
|
|
1829
|
+
md: {
|
|
1830
|
+
width: 32,
|
|
1831
|
+
height: 18,
|
|
1832
|
+
padding: 3
|
|
1833
|
+
},
|
|
1834
|
+
lg: {
|
|
1835
|
+
width: 40,
|
|
1836
|
+
height: 20,
|
|
1837
|
+
padding: 2
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
},
|
|
1751
1841
|
tooltip: { options: {
|
|
1752
1842
|
border: void 0,
|
|
1753
1843
|
borderRadius: "xs",
|