@uni-design-system/uni-angular 10.3.0 → 11.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-design-system/uni-angular",
3
- "version": "10.3.0",
3
+ "version": "11.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,11 +18,11 @@
18
18
  "save": "dependencies"
19
19
  },
20
20
  "peerDependencies": {
21
- "@angular/common": "^21.2.0",
22
- "@angular/core": "^21.2.0",
23
- "@angular/forms": "^21.2.0",
21
+ "@angular/common": "^22.0.0",
22
+ "@angular/core": "^22.0.0",
23
+ "@angular/forms": "^22.0.0",
24
24
  "@emotion/css": "^11.0.0",
25
- "@uni-design-system/uni-core": "^10.3.0"
25
+ "@uni-design-system/uni-core": "^11.0.0"
26
26
  },
27
27
  "module": "fesm2022/uni-design-system-uni-angular.mjs",
28
28
  "typings": "types/uni-design-system-uni-angular.d.ts",
@@ -39,5 +39,6 @@
39
39
  "type": "module",
40
40
  "dependencies": {
41
41
  "tslib": "^2.3.0"
42
- }
42
+ },
43
+ "scripts": {}
43
44
  }
@@ -589,6 +589,10 @@ var BaseIcons = {
589
589
  chevronRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m517.85-480-184-184L376-706.15 602.15-480 376-253.85 333.85-296l184-184Z'/%3e%3c/svg%3e",
590
590
  arrowLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='m294.92-450 227.85 227.85L480-180 180-480l300-300 42.77 42.15L294.92-510H780v60H294.92Z'/%3e%3c/svg%3e",
591
591
  arrowRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M665.08-450H180v-60h485.08L437.23-737.85 480-780l300 300-300 300-42.77-42.15L665.08-450Z'/%3e%3c/svg%3e",
592
+ arrowUp: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-180v-485.08L222.15-437.23 180-480l300-300 300 300-42.15 42.77L510-665.08V-180h-60Z'/%3e%3c/svg%3e",
593
+ arrowDown: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M450-780v485.08L222.15-522.77 180-480l300 300 300-300-42.15-42.77L510-294.92V-780h-60Z'/%3e%3c/svg%3e",
594
+ chevronsLeft: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M445-253.85 218.85-480 445-706.15 487.15-664 303.77-480l183.38 184L445-253.85Zm254 0L472.85-480 699-706.15 741.15-664 557.77-480l183.38 184L699-253.85Z'/%3e%3c/svg%3e",
595
+ chevronsRight: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M402.23-480 218.85-664 261-706.15 487.15-480 261-253.85 218.85-296l183.38-184Zm254 0L472.85-664 515-706.15 741.15-480 515-253.85 472.85-296l183.38-184Z'/%3e%3c/svg%3e",
592
596
  home: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M240-200h133.85v-237.69h212.3V-200H720v-360L480-740.77 240-560v360Zm-60 60v-450l300-225.77L780-590v450H526.15v-237.69h-92.3V-140H180Zm300-330.38Z'/%3e%3c/svg%3e",
593
597
  building: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M130-136.92v-540h160v-160h380v320h160v380H530v-160H430v160H130Zm60-60h100v-100H190v100Zm0-160h100v-100H190v100Zm0-160h100v-100H190v100Zm160 160h100v-100H350v100Zm0-160h100v-100H350v100Zm0-160h100v-100H350v100Zm160 320h100v-100H510v100Zm0-160h100v-100H510v100Zm0-160h100v-100H510v100Zm160 480h100v-100H670v100Zm0-160h100v-100H670v100Z'/%3e%3c/svg%3e",
594
598
  externalLink: "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3e%3cpath d='M212.31-140Q182-140 161-161q-21-21-21-51.31v-535.38Q140-778 161-799q21-21 51.31-21h252.3v60h-252.3q-4.62 0-8.46 3.85-3.85 3.84-3.85 8.46v535.38q0 4.62 3.85 8.46 3.84 3.85 8.46 3.85h535.38q4.62 0 8.46-3.85 3.85-3.84 3.85-8.46v-252.3h60v252.3Q820-182 799-161q-21 21-51.31 21H212.31Zm176.46-206.62-42.15-42.15L717.85-760H560v-60h260v260h-60v-157.85L388.77-346.62Z'/%3e%3c/svg%3e",
@@ -873,8 +877,22 @@ var BaseMotion = {
873
877
  control: {
874
878
  duration: 300,
875
879
  easing: "ease"
880
+ },
881
+ snap: {
882
+ duration: 120,
883
+ easing: "ease"
876
884
  }
877
885
  };
886
+ /**
887
+ * The one wash every modal surface lays over the page it covers. Dialog and
888
+ * drawer both point at `scrim` by name, so a theme redresses them together —
889
+ * before this they owned a `backdrop` blob each and had drifted apart, the
890
+ * dialog washing the page white and blurred while the drawer dimmed it dark.
891
+ */
892
+ var BaseBackdrops = { scrim: {
893
+ background: "rgba(255, 255, 255, 0.6)",
894
+ backdropFilter: "blur(2px)"
895
+ } };
878
896
  var BaseRadii = {
879
897
  none: "none",
880
898
  xxs: "4px",
@@ -949,7 +967,7 @@ var buildComponents = (c) => ({
949
967
  typeface: "label",
950
968
  color: "on-background-variant",
951
969
  currentColor: "on-background",
952
- separatorSymbol: "chevron_right",
970
+ separatorIcon: "chevronRight",
953
971
  gap: "xs"
954
972
  } },
955
973
  appBar: { options: {
@@ -967,9 +985,10 @@ var buildComponents = (c) => ({
967
985
  divider: "light",
968
986
  elevation: "menu",
969
987
  padding: "md",
970
- backdrop: { background: "rgba(0, 0, 0, 0.4)" },
988
+ backdrop: "scrim",
971
989
  scrim: true,
972
- background: "solid"
990
+ background: "solid",
991
+ motion: "panel"
973
992
  } },
974
993
  drawerHeader: { options: {
975
994
  color: void 0,
@@ -996,7 +1015,7 @@ var buildComponents = (c) => ({
996
1015
  options: {
997
1016
  borderRadius: "max",
998
1017
  typeface: "subtitle-2",
999
- fallbackSymbol: "person"
1018
+ fallbackIcon: "profile"
1000
1019
  },
1001
1020
  variants: {
1002
1021
  primary: {
@@ -1053,8 +1072,8 @@ var buildComponents = (c) => ({
1053
1072
  ringWidth: 2
1054
1073
  } },
1055
1074
  searchInput: { options: {
1056
- searchSymbol: "search",
1057
- clearSymbol: "close",
1075
+ searchIcon: "search",
1076
+ clearIcon: "close",
1058
1077
  listColor: "primary-surface",
1059
1078
  listShadow: "menu",
1060
1079
  listBorderRadius: "xs",
@@ -1063,6 +1082,7 @@ var buildComponents = (c) => ({
1063
1082
  } },
1064
1083
  checkbox: {
1065
1084
  options: {
1085
+ motion: "control",
1066
1086
  size: 20,
1067
1087
  boxColor: "surface",
1068
1088
  borderRadius: 2,
@@ -1084,17 +1104,18 @@ var buildComponents = (c) => ({
1084
1104
  color: "primary-surface",
1085
1105
  border: "quaternary",
1086
1106
  padding: "sm",
1107
+ bodyPadding: void 0,
1108
+ inset: "lg",
1087
1109
  elevation: "dialog",
1088
- backdrop: {
1089
- background: "rgba(255, 255, 255, 0.6)",
1090
- backdropFilter: "blur(2px)"
1091
- }
1110
+ backdrop: "scrim",
1111
+ motion: "panel"
1092
1112
  } },
1093
1113
  dialogButtons: { options: {
1094
1114
  gap: "md",
1095
1115
  padding: "md",
1096
1116
  paddingBottom: "lg",
1097
1117
  justifyContent: "center",
1118
+ divider: void 0,
1098
1119
  confirmButtonVariant: "primary",
1099
1120
  cancelButtonVariant: "warn",
1100
1121
  buttonSize: "lg",
@@ -1107,9 +1128,26 @@ var buildComponents = (c) => ({
1107
1128
  height: 48,
1108
1129
  textRole: "title-large",
1109
1130
  textAlign: "center",
1131
+ divider: void 0,
1110
1132
  closeButtonIcon: "close",
1111
1133
  closeButtonSize: "md"
1112
1134
  } },
1135
+ select: { options: {
1136
+ toggleIcon: "chevronDown",
1137
+ toggleColor: "on-background-variant",
1138
+ toggleSize: 20
1139
+ } },
1140
+ buttonGroup: { options: {
1141
+ border: "quaternary",
1142
+ borderRadius: 4
1143
+ } },
1144
+ progressBar: { options: {
1145
+ trackColor: "primary-surface",
1146
+ fillColor: "secondary-surface",
1147
+ completeColor: "secondary",
1148
+ borderColor: "on-background-variant",
1149
+ strokeWidth: 1
1150
+ } },
1113
1151
  dropdown: { options: {
1114
1152
  border: "none",
1115
1153
  borderRadius: "xxs",
@@ -1137,7 +1175,7 @@ var buildComponents = (c) => ({
1137
1175
  typeface: "label",
1138
1176
  textColor: void 0,
1139
1177
  hoverColor: "primary-container",
1140
- activeSymbol: "check",
1178
+ activeIcon: "check",
1141
1179
  motion: "control"
1142
1180
  },
1143
1181
  variants: {
@@ -1161,7 +1199,7 @@ var buildComponents = (c) => ({
1161
1199
  maxWidth: "38ch",
1162
1200
  offset: 7,
1163
1201
  arrowSize: 8,
1164
- closeSymbol: "close",
1202
+ closeIcon: "close",
1165
1203
  headerTypeface: "title-small",
1166
1204
  tooltipPadding: "4px 8px",
1167
1205
  tooltipOpenDelay: 500,
@@ -1169,12 +1207,6 @@ var buildComponents = (c) => ({
1169
1207
  motion: "panel"
1170
1208
  } },
1171
1209
  expand: { options: { motion: "reveal" } },
1172
- footer: { options: {
1173
- height: 52,
1174
- color: "primary",
1175
- logoHeight: 18.6,
1176
- logoPadding: "md"
1177
- } },
1178
1210
  input: { options: {
1179
1211
  typeface: "input",
1180
1212
  color: "primary-surface",
@@ -1233,6 +1265,7 @@ var buildComponents = (c) => ({
1233
1265
  }
1234
1266
  },
1235
1267
  tabs: { options: {
1268
+ motion: "snap",
1236
1269
  typeface: "title-small",
1237
1270
  textColor: "on-surface-variant",
1238
1271
  activeTextColor: "primary",
@@ -1260,14 +1293,14 @@ var buildComponents = (c) => ({
1260
1293
  typeface: "tag",
1261
1294
  gap: "xs",
1262
1295
  removeIcon: "close",
1263
- selectedIcon: "check"
1296
+ selectedIcon: "check",
1297
+ motion: "control"
1264
1298
  },
1265
1299
  fixed: {
1266
1300
  display: "inline-flex",
1267
1301
  alignItems: "center",
1268
1302
  maxWidth: "100%",
1269
- border: "1px solid transparent",
1270
- transition: "background-color .2s ease, color .2s ease"
1303
+ border: "1px solid transparent"
1271
1304
  },
1272
1305
  variants: {
1273
1306
  ...tagVariant(c, "primary"),
@@ -1333,8 +1366,8 @@ var buildComponents = (c) => ({
1333
1366
  dayBorderRadius: "max",
1334
1367
  typeface: "label",
1335
1368
  gap: "xxs",
1336
- navPrevSymbol: "chevron_left",
1337
- navNextSymbol: "chevron_right",
1369
+ navPrevIcon: "chevronLeft",
1370
+ navNextIcon: "chevronRight",
1338
1371
  weekdayFormat: "short",
1339
1372
  showOutsideDays: false,
1340
1373
  todayStyle: "outline"
@@ -1373,13 +1406,13 @@ var buildComponents = (c) => ({
1373
1406
  descriptionColor: "on-primary-surface-variant"
1374
1407
  } },
1375
1408
  dateInput: { options: {
1376
- toggleSymbol: "calendar_month",
1409
+ toggleIcon: "calendar",
1377
1410
  popupShadow: "menu",
1378
1411
  popupBorderRadius: "xs",
1379
1412
  popupColor: "primary-surface"
1380
1413
  } },
1381
1414
  timeInput: { options: {
1382
- toggleSymbol: "schedule",
1415
+ toggleIcon: "clock",
1383
1416
  listColor: "primary-surface",
1384
1417
  listShadow: "menu",
1385
1418
  listBorderRadius: "xs",
@@ -1393,15 +1426,15 @@ var buildComponents = (c) => ({
1393
1426
  button: {
1394
1427
  options: {
1395
1428
  borderRadius: "max",
1396
- typeface: "button"
1429
+ typeface: "button",
1430
+ motion: "control"
1397
1431
  },
1398
1432
  fixed: {
1399
1433
  position: "relative",
1400
1434
  overflow: "hidden",
1401
1435
  outline: "0",
1402
1436
  border: "0",
1403
- cursor: "pointer",
1404
- transition: "all 0.28s ease"
1437
+ cursor: "pointer"
1405
1438
  },
1406
1439
  variantOptions: {
1407
1440
  primary: { focusColor: "primary" },
@@ -1482,7 +1515,10 @@ var buildComponents = (c) => ({
1482
1515
  }
1483
1516
  },
1484
1517
  iconButton: {
1485
- options: { borderRadius: "max" },
1518
+ options: {
1519
+ borderRadius: "max",
1520
+ motion: "control"
1521
+ },
1486
1522
  variantOptions: {
1487
1523
  primary: { focusColor: "primary" },
1488
1524
  secondary: { focusColor: "secondary" },
@@ -1559,6 +1595,13 @@ var buildComponents = (c) => ({
1559
1595
  }
1560
1596
  }
1561
1597
  },
1598
+ inlineButton: { options: {
1599
+ linkColor: "primary",
1600
+ underline: false,
1601
+ underlineOnHover: true,
1602
+ underlineOffset: "0.15em",
1603
+ gap: "xxs"
1604
+ } },
1562
1605
  progressGauge: {
1563
1606
  fixed: { textFill: c["on-background"] },
1564
1607
  variants: {
@@ -1594,7 +1637,8 @@ var buildComponents = (c) => ({
1594
1637
  options: { borderRadius: "xs" },
1595
1638
  fixed: {
1596
1639
  overflow: "hidden",
1597
- backgroundColor: c.background
1640
+ backgroundColor: c.background,
1641
+ color: c["on-background"]
1598
1642
  }
1599
1643
  },
1600
1644
  cardHeader: {
@@ -1630,6 +1674,7 @@ var buildComponents = (c) => ({
1630
1674
  placeholderColor: "disabled"
1631
1675
  } },
1632
1676
  dataTable: { options: {
1677
+ motion: "control",
1633
1678
  color: "primary-surface",
1634
1679
  border: "light",
1635
1680
  borderRadius: "sm",
@@ -1693,7 +1738,7 @@ var buildComponents = (c) => ({
1693
1738
  tooltipTextColor: "on-inverse-surface",
1694
1739
  tooltipShadow: "menu",
1695
1740
  tooltipBorderRadius: "xs",
1696
- transitionMs: 120
1741
+ motion: "snap"
1697
1742
  } },
1698
1743
  skeleton: { options: {
1699
1744
  color: "surface-variant",
@@ -1742,6 +1787,7 @@ var buildComponents = (c) => ({
1742
1787
  }
1743
1788
  },
1744
1789
  tooltip: { options: {
1790
+ motion: "notification",
1745
1791
  border: void 0,
1746
1792
  borderRadius: "xs",
1747
1793
  shadow: "raised",
@@ -1756,7 +1802,7 @@ var buildComponents = (c) => ({
1756
1802
  padding: "16px",
1757
1803
  headerTypeface: "title-small",
1758
1804
  typeface: "label",
1759
- closeSymbol: "close",
1805
+ closeIcon: "close",
1760
1806
  arrowSize: 8,
1761
1807
  offset: 12,
1762
1808
  scrimColor: "rgba(0, 0, 0, 0.45)",
@@ -1777,7 +1823,7 @@ var deepMerge = (base, override) => {
1777
1823
  for (const [key, value] of Object.entries(override)) out[key] = isRecord$1(value) && isRecord$1(out[key]) ? deepMerge(out[key], value) : value;
1778
1824
  return out;
1779
1825
  };
1780
- var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, motion, typography, borders, thicknesses, spacing, components }) => ({
1826
+ var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows = BaseShadows, motion, backdrops, typography, borders, thicknesses, spacing, components }) => ({
1781
1827
  id,
1782
1828
  name,
1783
1829
  colors,
@@ -1793,6 +1839,10 @@ var createTheme = ({ id, name, colors, icons = {}, radii = BaseRadii, shadows =
1793
1839
  ...BaseMotion,
1794
1840
  ...motion
1795
1841
  },
1842
+ backdrops: {
1843
+ ...BaseBackdrops,
1844
+ ...backdrops
1845
+ },
1796
1846
  thicknesses: {
1797
1847
  ...BaseThicknesses,
1798
1848
  ...thicknesses
@@ -2183,7 +2233,7 @@ var UniThemes = {
2183
2233
  Object.keys(UniThemes)[0];
2184
2234
  //#endregion
2185
2235
  //#region package.json
2186
- var version = "10.3.0";
2236
+ var version = "11.0.0";
2187
2237
  //#endregion
2188
2238
  //#region schematics-src/ng-add/transforms.ts
2189
2239
  var addDependencies = (packageJsonText, deps) => {
@@ -0,0 +1 @@
1
+ {"type":"commonjs"}