hazo_ui 5.1.1 → 6.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/CHANGE_LOG.md +27 -0
- package/package.json +3 -3
package/CHANGE_LOG.md
CHANGED
|
@@ -5,6 +5,33 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## v6.0.0 (2026-07-11)
|
|
9
|
+
|
|
10
|
+
Major — the P1 hazo_theme rehome. hazo_ui stops owning theme tokens, preset, and provider;
|
|
11
|
+
`hazo_theme` is now the single source and a **required** peer.
|
|
12
|
+
|
|
13
|
+
### Breaking
|
|
14
|
+
- **`useTheme()` return shape changed**: `{ theme, ... }` → `{ mode, setMode, themeSet, setThemeSet, ... }`.
|
|
15
|
+
Rename all `useTheme().theme` call sites to `.mode`.
|
|
16
|
+
- **Removed package exports** `hazo_ui/styles.css` and `hazo_ui/tailwind-preset`. Import
|
|
17
|
+
`hazo_theme/theme.css` (and use hazo_theme's tokens) instead.
|
|
18
|
+
- **`hazo_theme` peer flipped optional → required** (`^1.0.0`). Consumers must install hazo_theme.
|
|
19
|
+
- **Persisted-pref reset (one-time)**: theme `storageKey` default `"theme"` → `"hazo-theme"`, so a
|
|
20
|
+
user's saved mode resets to `system` once.
|
|
21
|
+
|
|
22
|
+
### Migration
|
|
23
|
+
- Replace `@import "hazo_ui/styles.css"` (and any `hazo_ui/tailwind-preset` usage) with
|
|
24
|
+
`@import "hazo_theme/theme.css"`; add `@source ".../hazo_theme/dist"` where you scan hazo_ui.
|
|
25
|
+
- `npm install hazo_theme@^1.0.0` alongside hazo_ui.
|
|
26
|
+
|
|
27
|
+
### New
|
|
28
|
+
- Chrome components sourced from hazo_theme's brand-identity contract: `AppFooter`, `AppHeader`,
|
|
29
|
+
`AppLogo`, and `HazoUiIconPicker`.
|
|
30
|
+
- `HazoThemeProvider` / `useTheme` / `ThemeScript` / `ThemeToggle` / `ThemeSetPicker` are now
|
|
31
|
+
re-exported from `hazo_theme/client`.
|
|
32
|
+
- `HazoUiDialog` header bar consumes hazo_theme's `--dialog-header-bar-*` tokens (no more hardcoded
|
|
33
|
+
colours).
|
|
34
|
+
|
|
8
35
|
## v5.1.0 (2026-07-10)
|
|
9
36
|
|
|
10
37
|
### New
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.0",
|
|
4
4
|
"description": "Set of UI components for common interaction elements in a SaaS app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
46
46
|
"hazo_core": "^1.2.1",
|
|
47
47
|
"hazo_state": "^0.1.2",
|
|
48
|
-
"hazo_theme": "^0.
|
|
48
|
+
"hazo_theme": "^1.0.0"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@dnd-kit/core": "^6.1.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"@types/react": "^18.3.3",
|
|
116
116
|
"@types/react-dom": "^18.3.0",
|
|
117
117
|
"hazo_core": "^1.2.1",
|
|
118
|
-
"hazo_theme": "^0.
|
|
118
|
+
"hazo_theme": "^1.0.0",
|
|
119
119
|
"postcss": "^8.4.49",
|
|
120
120
|
"react": "^18.3.1",
|
|
121
121
|
"react-dom": "^18.3.1",
|