@stacksjs/desktop 0.2.46 → 0.2.54
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/dist/index.js +23 -2
- package/dist/index.js.map +4 -4
- package/dist/types.d.ts +10 -3
- package/package.json +4 -4
package/dist/types.d.ts
CHANGED
|
@@ -25,10 +25,11 @@ export declare interface SidebarSection {
|
|
|
25
25
|
collapsed?: boolean
|
|
26
26
|
items: SidebarItem[]
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
29
|
-
* Native sidebar configuration
|
|
30
|
-
*/
|
|
31
28
|
export declare interface SidebarConfig {
|
|
29
|
+
variant?: SidebarVariant
|
|
30
|
+
material?: SidebarMaterial
|
|
31
|
+
backgroundEffect?: SidebarBackgroundEffect
|
|
32
|
+
allowsVibrancy?: boolean
|
|
32
33
|
sections: SidebarSection[]
|
|
33
34
|
minWidth?: number
|
|
34
35
|
maxWidth?: number
|
|
@@ -142,6 +143,12 @@ export declare interface ModalResult {
|
|
|
142
143
|
buttonIndex: number
|
|
143
144
|
cancelled: boolean
|
|
144
145
|
}
|
|
146
|
+
/**
|
|
147
|
+
* Native sidebar configuration
|
|
148
|
+
*/
|
|
149
|
+
export type SidebarVariant = 'tahoe' | 'vibrancy' | 'solid' | 'transparent' | 'workspace' | 'desktop';
|
|
150
|
+
export type SidebarMaterial = 'auto' | 'sidebar' | 'hud' | 'popover' | 'content';
|
|
151
|
+
export type SidebarBackgroundEffect = 'none' | 'vibrancy' | 'shimmer';
|
|
145
152
|
/**
|
|
146
153
|
* System tray menu item
|
|
147
154
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/desktop",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.54",
|
|
5
5
|
"description": "Native desktop application framework for stx (powered by Craft)",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
],
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "bun --bun build.ts",
|
|
48
|
-
"lint": "
|
|
49
|
-
"lint:fix": "
|
|
50
|
-
"fresh": "
|
|
48
|
+
"lint": "bun x --bun pickier lint",
|
|
49
|
+
"lint:fix": "bun x --bun pickier lint --fix",
|
|
50
|
+
"fresh": "bun x rimraf node_modules/ bun.lock && bun i",
|
|
51
51
|
"prepublishOnly": "bun run build",
|
|
52
52
|
"test": "bun test --preload ../../test-utils/happy-dom.ts",
|
|
53
53
|
"test:watch": "bun test --watch --preload ../../test-utils/happy-dom.ts",
|