@uni-design-system/uni-core 8.2.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @uni-design-system/uni-core
2
2
 
3
+ ## 8.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`eb8b7ae`](https://github.com/uni-design-system/uni/commit/eb8b7aebd900e647a8b35da791fce88a8c9a1217) Thanks [@gaenglish](https://github.com/gaenglish)! - `'combobox'` joins `ComponentName`, with a base-theme entry: `toggleIcon: 'chevronDown'`, `clearIcon: 'close'`, `selectedIcon: 'check'` (BaseIcons names rendered by `uni-icon` — not Material Symbol ligatures), the listbox surface trio (`listColor`/`listShadow`/`listBorderRadius`), `activeColor`, `descriptionColor`, and `maxVisibleOptions: 8` — a scroll height, never a cap. Field chrome comes from the `input` entry via `uni-input-box`, as everywhere.
8
+
9
+ - [`eb8b7ae`](https://github.com/uni-design-system/uni/commit/eb8b7aebd900e647a8b35da791fce88a8c9a1217) Thanks [@gaenglish](https://github.com/gaenglish)! - Listbox popups (`uni-search-input`, `uni-tag-input`, `uni-time-input`, `uni-combobox`): the active/hover option fill is now the themable `activeColor` option (default `'primary-container'`, on-color derived) instead of a hardcoded token pair. Set it when your theme maps `primary-container` and `primary-surface` to the same color — the keyboard highlight is otherwise invisible; a canvas/hover tint like the one your menus use is usually right (`searchInput: { options: { activeColor: 'tertiary-surface' } }`, and likewise `tagInput`/`timeInput`/`combobox`). The base theme carries the default explicitly so the option is discoverable in each component's Theme options table.
10
+
11
+ The four popups now share one style source, the exported `listboxPopupStyles(theme, options, { maxHeight? })` helper (`UniListboxPopupOptions`), so their surface trio and highlight can no longer drift apart. Rendering is unchanged under existing themes; the active row's text color now derives from `listColor`'s on-pair rather than assuming `on-primary-surface`.
12
+
13
+ - [`6f87212`](https://github.com/uni-design-system/uni/commit/6f87212da2ed421a8a4f2e57047ebcba485c0fd3) Thanks [@gaenglish](https://github.com/gaenglish)! - `'popover'`, `'callout'`, and `'tour'` join `ComponentName`, with base-theme entries. The popover defaults reproduce the previously hardcoded look (`primary-surface`, `quaternary` border, `xs` radius, `raised` shadow, `6px 12px` padding, 7px offset) plus the tooltip-mode options; the callout entry carries the scrim/spotlight geometry (`scrimColor`, `spotlightPadding`, `spotlightRadius`, `ringWidth` — the ring color is deliberately the `variant` role, not an option); the tour entry is just `progressStyle` and `footerGap`, since its skin is the callout's.
14
+
3
15
  ## 8.2.0
4
16
 
5
17
  ### Minor Changes
@@ -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,
@@ -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);