Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .changeset/color-mode-hook.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/quiet-fields-speak.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/reach-and-translate.md

This file was deleted.

5 changes: 5 additions & 0 deletions packages/tokens/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# @maxcwolf/ui-tokens

## 2.0.0

No changes in this release.
2 changes: 1 addition & 1 deletion packages/tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxcwolf/ui-tokens",
"version": "2.0.0-alpha.0",
"version": "2.0.0",
"description": "Design tokens for Wolf UI: color palette, spacing, radii and type scales. No runtime dependencies.",
"license": "MIT",
"author": "Max Wolf <maxcharleswolf@gmail.com>",
Expand Down
28 changes: 28 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# @maxcwolf/ui-react-native

## 2.0.0

### Minor Changes

- 8511da0: `Button`, `Pressable` and `TextInput` take a `ref` (`ButtonRef`, `PressableRef`, `TextInputRef`),
so a form can move focus with `ref.current?.focus()`.
`Button` can be icon-only: `<Button icon="close" accessibilityLabel="Close" />`. Its props are
now a union, so a button has either a visible label or an `icon` with a required
`accessibilityLabel`.
The built-in screen reader strings can be translated: `loadingLabel` on `Button` (default
"Loading") and `revealLabels={{ show, hide }}` on `TextInput` (default "Show password" /
"Hide password").

### Patch Changes

- 8521f2c: Theme switching is now `useColorMode()`, which returns `{ mode, setMode, name, names, theme }`.
It replaces `useThemeSwitcher()` (`preference`, `setPreference`). `ThemeProvider`'s props are now
`mode`, `defaultMode` and `onModeChange`, and the `ThemePreference` type is `ColorMode`.
`useTheme()` is unchanged.
- c4c8cdb: Screen readers hear less noise and more context. `Button` sets `aria-busy` only while loading,
so it no longer says "not busy". On the web, `TextInput` is described by its helper or error text
(`aria-describedby`) and is marked `aria-invalid` when it has an error; iOS and Android keep
reading that text as the accessibility hint.
`TextInput` errors now appear inside a live region that is always mounted, so VoiceOver in Safari
announces them when they appear (it skipped the region when it was mounted with the text).
- @maxcwolf/ui-tokens@2.0.0
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@maxcwolf/ui-react-native",
"version": "2.0.0-alpha.0",
"version": "2.0.0",
"description": "Themeable, type-safe React Native components built on Restyle. Bare React Native, Expo and react-native-web.",
"license": "MIT",
"author": "Max Wolf <maxcharleswolf@gmail.com>",
Expand Down