@uni-design-system/uni-react 8.4.0 → 9.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/CHANGELOG.md CHANGED
@@ -1,5 +1,74 @@
1
1
  # @uni-design-system/uni-react
2
2
 
3
+ ## 9.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`8250162`](https://github.com/uni-design-system/uni/commit/8250162c35e418f976080904df4c20783feeb6e2) Thanks [@gaenglish](https://github.com/gaenglish)! - Every deprecated API is removed. The library now carries no `@deprecated`
8
+ symbols at all.
9
+
10
+ **Per-component duration options → the `motion` scale.** Six components carried
11
+ their own duration knob that predated the motion scale and _won over_ it:
12
+ `expand.transitionSpeed`, `callout.transitionMs`, `radio.transitionSpeed`,
13
+ `menuItem.transitionSpeed`, `alert.transitionSpeed` and
14
+ `snackbar.transitionDelay`. All are gone, along with the precedence branch each
15
+ one required — timing now comes from the token, full stop.
16
+
17
+ Retime the token instead; one edit covers every component pointing at it. To
18
+ retime a single component, define a token of your own and point that
19
+ component's `motion` option at it:
20
+
21
+ ```ts
22
+ createTheme({
23
+ …,
24
+ motion: { productive: { duration: 110, easing: 'ease' } },
25
+ components: { menuItem: { options: { motion: 'productive' } } },
26
+ });
27
+ ```
28
+
29
+ A `duration: 0` token is how a theme opts out of motion — that is what
30
+ `transitionSpeed: 0` used to mean. Both showcase themes are migrated this way
31
+ (Carbon to a 110ms `productive` token, Wellsourced to an `instant` one).
32
+
33
+ **Options that never did anything.** `card.transitionSpeed` and
34
+ `inputBox.transitionSpeed` were read by nothing and never had been. Delete them
35
+ from your theme; nothing replaces them.
36
+
37
+ **Renames and obsolete APIs**
38
+ - `inputBox.typeFace` → `typeface` (the casing every other component uses).
39
+ - `uni-tooltip`'s `appendToBody` input — inert since the tooltip moved to the
40
+ native top layer, which escapes any overflow context by itself.
41
+ - Box's `elevation` input → `shadow`, in both the Angular and React packages.
42
+ It was a second name for the same thing.
43
+ - The Angular `icons` re-export → import `BaseIcons` from
44
+ `@uni-design-system/uni-core`. The default set ships with every theme.
45
+
46
+ **The HSL color legacy is gone from uni-core.** `uniColor`, `randomRangeValue`,
47
+ `CategorySaturation` and `CategoryLightness` are removed, superseded by the
48
+ deterministic OKLCH engine (`generateThemes` / `generatePalette`) — same input,
49
+ same theme, WCAG-checked. `RoleHues` and the `UniColor` type go with them: they
50
+ were reachable only through `uniColor`, and `RoleHues` had gone stale enough to
51
+ hold saturation values in a table of hues.
52
+
53
+ **Deferred output renames.** Three outputs were held back because renaming is
54
+ breaking; this is that release. Each also drops an eslint escape it needed for
55
+ shadowing a native event name or using an `on` prefix.
56
+
57
+ | Component | Before | After |
58
+ | -------------------- | ----------------- | ---------------- |
59
+ | `uni-debounce-input` | `(change)` | `(valueChange)` |
60
+ | `uni-search-input` | `(change)` | `(searchChange)` |
61
+ | `uni-search-input` | `(search)` | `(searchSubmit)` |
62
+ | `dragAndDrop` | `(onFileDropped)` | `(fileDropped)` |
63
+
64
+ **`uni-dropdown`'s `color` input → `containerColor`,** completing the rule the
65
+ layout directives set: every container-pair input in the library is now
66
+ `containerColor`, and plain `color` always means the CSS property.
67
+
68
+ **`ThemeService.getSpacing('none')` now returns `0`, not the string `'none'`.**
69
+ `'none'` is not a valid length, so it was silently dropped wherever it landed —
70
+ `uni-menu` carried a comment working around exactly that, which is now deleted.
71
+
3
72
  ## 8.4.0
4
73
 
5
74
  ### Minor Changes
@@ -19751,7 +19751,6 @@ const BOX_STYLE_PROP_KEYS = [
19751
19751
  "gridColumn",
19752
19752
  "gridRow",
19753
19753
  "overflow",
19754
- "elevation",
19755
19754
  "shadow",
19756
19755
  "gap",
19757
19756
  "fullWidth",
@@ -19796,7 +19795,6 @@ function boxClassName(props, styles) {
19796
19795
  ...styles.paddingRight(props.paddingRight),
19797
19796
  ...styles.paddingTop(props.paddingTop),
19798
19797
  ...styles.paddingBottom(props.paddingBottom),
19799
- ...styles.boxShadow(props.elevation),
19800
19798
  ...styles.boxShadow(props.shadow),
19801
19799
  ...styles.radius(props.borderRadius),
19802
19800
  ...styles.getRadiusLeft(props.borderRadiusLeft),