@tearleads/windowing 0.2.35 → 0.2.36
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/docs/appearance.md +5 -0
- package/package.json +5 -1
- package/theme/index.d.ts +4 -0
- package/theme/index.js +7 -0
- package/theme/index.js.map +1 -0
package/docs/appearance.md
CHANGED
|
@@ -49,6 +49,11 @@ the browser paints and removes them on unmount; under a dark scheme,
|
|
|
49
49
|
[`tokens.css`][tokens] sets `color-scheme: dark`. Tearleads sets its themes per
|
|
50
50
|
host profile in [`packages/app/src/host/AppHostConfig.ts`][host-profile].
|
|
51
51
|
|
|
52
|
+
A host with no windows, such as a static site, can import `ThemeProvider`,
|
|
53
|
+
`ThemeSwitch`, the theme hooks, their types, and the switch's
|
|
54
|
+
`ThemeInvertIcon` from `@tearleads/windowing/theme`. That entry leaves out the
|
|
55
|
+
window chrome and its stylesheets, which the package entry imports.
|
|
56
|
+
|
|
52
57
|
## Wallpapers and Display Properties
|
|
53
58
|
|
|
54
59
|
A host offers its own desktop wallpapers. A `WallpaperDefinition` is
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tearleads/windowing",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36",
|
|
4
4
|
"description": "App-agnostic window management for React: window state, window chrome, and the menu and sidebar primitives it renders with.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"repository": {
|
|
@@ -16,6 +16,10 @@
|
|
|
16
16
|
"types": "./index.d.ts",
|
|
17
17
|
"default": "./index.js"
|
|
18
18
|
},
|
|
19
|
+
"./theme": {
|
|
20
|
+
"types": "./theme/index.d.ts",
|
|
21
|
+
"default": "./theme/index.js"
|
|
22
|
+
},
|
|
19
23
|
"./*.css": "./*.css"
|
|
20
24
|
},
|
|
21
25
|
"sideEffects": [
|
package/theme/index.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { ThemeInvertIcon } from "../icons/ThemeInvertIcon.js";
|
|
2
|
+
export { ThemeProvider, useOptionalTheme, useTheme } from "./ThemeProvider.js";
|
|
3
|
+
export { ThemeSwitch } from "./ThemeSwitch.js";
|
|
4
|
+
export type { DefaultTheme, ThemeDefinition, ThemeScheme } from "./themes.js";
|
package/theme/index.js
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// The `@tearleads/windowing/theme` entry: the color theme alone, for a host
|
|
2
|
+
// that has no windows, such as a static site. It leaves out the window chrome
|
|
3
|
+
// and its stylesheets, which the package entry pulls in.
|
|
4
|
+
export { ThemeInvertIcon } from "../icons/ThemeInvertIcon.js";
|
|
5
|
+
export { ThemeProvider, useOptionalTheme, useTheme } from "./ThemeProvider.js";
|
|
6
|
+
export { ThemeSwitch } from "./ThemeSwitch.js";
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../home/runner/work/tearleads/tearleads/packages/windowing/src/theme/index.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,8EAA8E;AAC9E,yDAAyD;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC","sourcesContent":["// The `@tearleads/windowing/theme` entry: the color theme alone, for a host\n// that has no windows, such as a static site. It leaves out the window chrome\n// and its stylesheets, which the package entry pulls in.\nexport { ThemeInvertIcon } from \"../icons/ThemeInvertIcon\";\nexport { ThemeProvider, useOptionalTheme, useTheme } from \"./ThemeProvider\";\nexport { ThemeSwitch } from \"./ThemeSwitch\";\nexport type { DefaultTheme, ThemeDefinition, ThemeScheme } from \"./themes\";\n"]}
|