sinwan-ui-core 1.0.0 → 1.1.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 +6 -0
- package/dist/chunks/{chunk-xaegn57w.js → chunk-3zrktrd2.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this package are documented in this file. The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this package uses [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [1.1.0]
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- `cazview` palette: `Palette` now accepts `"cazview"` and `ThemeProvider`'s default `palettes` list is `["credit-blue", "jomlaty", "cazview"]`. Pair it with the registry stylesheet, which defines the `html[data-palette="cazview"]` tokens (midnight `#111E2E` text, `#1A73E8` → `#3B52D9` → `#7B2CBF` brand gradient, `#FAFAFA` surface).
|
|
10
|
+
|
|
5
11
|
## [1.0.0]
|
|
6
12
|
|
|
7
13
|
Initial release: the headless primitives extracted from `sinwan-ui` 0.1.0, published separately so registry components copied into apps can depend on them.
|
|
@@ -18,7 +18,7 @@ var _$tmpl_0 = {
|
|
|
18
18
|
{ path: [], type: "child" }
|
|
19
19
|
]
|
|
20
20
|
};
|
|
21
|
-
var DEFAULT_PALETTES = ["credit-blue", "jomlaty"];
|
|
21
|
+
var DEFAULT_PALETTES = ["credit-blue", "jomlaty", "cazview"];
|
|
22
22
|
var ThemeKey2 = Symbol("sinwan-ui.theme");
|
|
23
23
|
function isTheme(value) {
|
|
24
24
|
return value === "light" || value === "dark" || value === "system";
|
package/dist/index.js
CHANGED
package/dist/theme.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { type InjectionKey, type SinwanNode } from "sinwan/component";
|
|
|
2
2
|
import { type Signal } from "sinwan/reactivity";
|
|
3
3
|
export type Theme = "light" | "dark" | "system";
|
|
4
4
|
export type ResolvedTheme = "light" | "dark";
|
|
5
|
-
export type Palette = "credit-blue" | "jomlaty";
|
|
5
|
+
export type Palette = "credit-blue" | "jomlaty" | "cazview";
|
|
6
6
|
export type ThemeApi = {
|
|
7
7
|
theme: Signal<Theme>;
|
|
8
8
|
resolved: Signal<ResolvedTheme>;
|
package/dist/theme.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sinwan-ui-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Headless behaviour primitives for Sinwan UI components: overlays, floating positioning, dismiss layers, controls, slots, theme and direction.",
|
|
5
5
|
"author": "Mohammed Ben Cheikh",
|
|
6
6
|
"license": "MIT",
|