@surdeddd/wmkit 0.9.1 → 0.10.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/dist/react.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
  var react = require('react');
6
6
 
7
7
  function useWindowManager(options) {
8
- const [wm] = react.useState(() => chunkZWUVWRUS_cjs.createWindowManager(options));
8
+ const [wm] = react.useState(() => chunkVHS2YX3A_cjs.createWindowManager(options));
9
9
  react.useEffect(() => () => wm.destroy(), [wm]);
10
10
  return wm;
11
11
  }
@@ -18,7 +18,7 @@ function useWmWindow(wm, id) {
18
18
  }
19
19
  function useDesktop(wm, options) {
20
20
  const optionsRef = react.useRef(options);
21
- const binder = react.useMemo(() => chunkZWUVWRUS_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
21
+ const binder = react.useMemo(() => chunkVHS2YX3A_cjs.createDesktopBinder(wm, optionsRef.current), [wm]);
22
22
  react.useEffect(() => () => binder.destroy(), [binder]);
23
23
  const cleanupRef = react.useRef(null);
24
24
  const ref = react.useCallback(
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
  import { useState, useEffect, useSyncExternalStore, useCallback, useRef, useMemo } from 'react';
4
4
 
package/dist/solid.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
  var solidJs = require('solid-js');
6
6
 
@@ -8,7 +8,7 @@ function disposeWithOwner(dispose) {
8
8
  if (solidJs.getOwner()) solidJs.onCleanup(dispose);
9
9
  }
10
10
  function useWindowManager(options) {
11
- const wm = chunkZWUVWRUS_cjs.createWindowManager(options);
11
+ const wm = chunkVHS2YX3A_cjs.createWindowManager(options);
12
12
  disposeWithOwner(() => wm.destroy());
13
13
  return wm;
14
14
  }
@@ -22,7 +22,7 @@ function useWmWindow(wm, id) {
22
22
  return () => state().windows[typeof id === "function" ? id() : id];
23
23
  }
24
24
  function createDesktop(wm, options) {
25
- const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
25
+ const binder = chunkVHS2YX3A_cjs.createDesktopBinder(wm, options);
26
26
  disposeWithOwner(() => binder.destroy());
27
27
  return {
28
28
  binder,
package/dist/solid.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
  import { createSignal, getOwner, onCleanup } from 'solid-js';
4
4
 
package/dist/svelte.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkZWUVWRUS_cjs = require('./chunk-ZWUVWRUS.cjs');
3
+ var chunkVHS2YX3A_cjs = require('./chunk-VHS2YX3A.cjs');
4
4
  require('./chunk-BDHFXEJN.cjs');
5
5
 
6
6
  // src/adapters/svelte.ts
7
7
  function createManager(options) {
8
- return chunkZWUVWRUS_cjs.createWindowManager(options);
8
+ return chunkVHS2YX3A_cjs.createWindowManager(options);
9
9
  }
10
10
  function wmStore(wm) {
11
11
  return {
@@ -31,7 +31,7 @@ function wmWindowStore(wm, id) {
31
31
  };
32
32
  }
33
33
  function createDesktop(wm, options) {
34
- const binder = chunkZWUVWRUS_cjs.createDesktopBinder(wm, options);
34
+ const binder = chunkVHS2YX3A_cjs.createDesktopBinder(wm, options);
35
35
  return {
36
36
  binder,
37
37
  desktop(node) {
package/dist/svelte.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createWindowManager, createDesktopBinder } from './chunk-TUGQX3CX.js';
1
+ import { createWindowManager, createDesktopBinder } from './chunk-V7OTLDVK.js';
2
2
  import './chunk-5XVIC5LH.js';
3
3
 
4
4
  // src/adapters/svelte.ts
@@ -8,8 +8,9 @@
8
8
  --wm-shadow-focused: 0 0 26px rgba(255, 176, 46, 0.22);
9
9
  --wm-titlebar-bg: rgba(255, 176, 46, 0.09);
10
10
  --wm-text: #ffc356;
11
- --wm-text-dim: rgba(255, 195, 86, 0.55);
11
+ --wm-text-dim: rgba(255, 195, 86, 0.72);
12
12
  --wm-accent: #ffb02e;
13
+ --wm-accent-ink: #ffb02e;
13
14
  --wm-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
14
15
  --wm-title-font: var(--wm-mono);
15
16
  --wm-title-size: 12px;
@@ -1,6 +1,6 @@
1
1
  [data-wm-desktop] {
2
2
  --wm-radius: 10px;
3
- --wm-bg: rgba(238, 241, 246, 0.86);
3
+ --wm-bg: rgba(238, 241, 246, 0.94);
4
4
  --wm-bg-focused: rgba(246, 248, 252, 0.96);
5
5
  --wm-border: rgba(60, 80, 110, 0.28);
6
6
  --wm-border-focused: rgba(40, 70, 120, 0.45);
@@ -8,8 +8,9 @@
8
8
  --wm-shadow-focused: 0 16px 40px rgba(20, 40, 80, 0.32);
9
9
  --wm-titlebar-bg: linear-gradient(180deg, #fdfdfe 0%, #e4eaf3 48%, #d4dced 52%, #e8edf5 100%);
10
10
  --wm-text: #1d2733;
11
- --wm-text-dim: rgba(29, 39, 51, 0.62);
11
+ --wm-text-dim: rgba(29, 39, 51, 0.7);
12
12
  --wm-accent: #2f6fd0;
13
+ --wm-accent-ink: #2962b7;
13
14
  --wm-blur: 14px;
14
15
  --wm-title-size: 13px;
15
16
  --wm-title-weight: 600;
@@ -8,8 +8,9 @@
8
8
  --wm-shadow-focused: 0 0 0 1px rgba(215, 235, 255, 0.45);
9
9
  --wm-titlebar-bg: rgba(190, 220, 255, 0.1);
10
10
  --wm-text: #e8f2ff;
11
- --wm-text-dim: rgba(232, 242, 255, 0.6);
11
+ --wm-text-dim: rgba(232, 242, 255, 0.74);
12
12
  --wm-accent: #9ecbff;
13
+ --wm-accent-ink: #9ecbff;
13
14
  --wm-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
14
15
  --wm-title-font: var(--wm-mono);
15
16
  --wm-title-size: 12px;
@@ -11,6 +11,7 @@
11
11
  --wm-text: #111111;
12
12
  --wm-text-dim: rgba(17, 17, 17, 0.6);
13
13
  --wm-accent: #ff3b00;
14
+ --wm-accent-ink: #cf3000;
14
15
  --wm-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
15
16
  --wm-title-font: var(--wm-mono);
16
17
  --wm-title-size: 12px;
@@ -8,8 +8,9 @@
8
8
  --wm-shadow-focused: 0 18px 44px rgba(236, 130, 175, 0.3);
9
9
  --wm-titlebar-bg: linear-gradient(90deg, rgba(255, 214, 233, 0.9), rgba(214, 233, 255, 0.9));
10
10
  --wm-text: #5b3a52;
11
- --wm-text-dim: rgba(91, 58, 82, 0.6);
11
+ --wm-text-dim: rgba(91, 58, 82, 0.82);
12
12
  --wm-accent: #ec82af;
13
+ --wm-accent-ink: #c81e66;
13
14
  --wm-title-size: 13px;
14
15
  --wm-title-weight: 700;
15
16
  --wm-titlebar-padding: 11px 16px;
@@ -10,6 +10,7 @@
10
10
  --wm-text: #f4f4f4;
11
11
  --wm-text-dim: #a8a8a8;
12
12
  --wm-accent: #4589ff;
13
+ --wm-accent-ink: #4589ff;
13
14
  --wm-title-size: 13px;
14
15
  --wm-title-weight: 500;
15
16
  --wm-title-tracking: 0;
@@ -10,6 +10,7 @@
10
10
  --wm-text: #e6f0e2;
11
11
  --wm-text-dim: rgba(230, 240, 226, 0.58);
12
12
  --wm-accent: #9abe8c;
13
+ --wm-accent-ink: #9abe8c;
13
14
  --wm-serif: "Iowan Old Style", Palatino, Georgia, serif;
14
15
  --wm-title-font: var(--wm-serif);
15
16
  --wm-title-size: 14px;
@@ -1,15 +1,16 @@
1
1
  [data-wm-desktop] {
2
2
  --wm-radius: 18px;
3
- --wm-bg: rgba(255, 255, 255, 0.48);
4
- --wm-bg-focused: rgba(255, 255, 255, 0.66);
3
+ --wm-bg: rgba(255, 255, 255, 0.82);
4
+ --wm-bg-focused: rgba(255, 255, 255, 0.96);
5
5
  --wm-border: rgba(255, 255, 255, 0.6);
6
6
  --wm-border-focused: rgba(255, 255, 255, 0.92);
7
7
  --wm-shadow: 0 8px 30px rgba(80, 110, 150, 0.18);
8
8
  --wm-shadow-focused: 0 20px 60px rgba(80, 110, 150, 0.3);
9
9
  --wm-titlebar-bg: rgba(255, 255, 255, 0.3);
10
10
  --wm-text: #20303f;
11
- --wm-text-dim: rgba(32, 48, 63, 0.55);
11
+ --wm-text-dim: rgba(32, 48, 63, 0.75);
12
12
  --wm-accent: #0ea5e9;
13
+ --wm-accent-ink: #086087;
13
14
  --wm-blur: 28px;
14
15
  --wm-title-size: 13px;
15
16
  --wm-title-weight: 600;
@@ -10,6 +10,7 @@
10
10
  --wm-text: rgba(240, 242, 250, 0.92);
11
11
  --wm-text-dim: rgba(240, 242, 250, 0.55);
12
12
  --wm-accent: #7c6cff;
13
+ --wm-accent-ink: #7c6cff;
13
14
  --wm-blur: 22px;
14
15
  --wm-transition: 240ms cubic-bezier(0.32, 0.72, 0, 1);
15
16
  position: relative;
@@ -1,15 +1,16 @@
1
1
  [data-wm-desktop] {
2
2
  --wm-radius: 12px;
3
- --wm-bg: rgba(255, 255, 255, 0.78);
4
- --wm-bg-focused: rgba(255, 255, 255, 0.94);
3
+ --wm-bg: rgba(255, 255, 255, 0.9);
4
+ --wm-bg-focused: rgba(255, 255, 255, 0.96);
5
5
  --wm-border: rgba(15, 23, 42, 0.1);
6
6
  --wm-border-focused: rgba(15, 23, 42, 0.22);
7
7
  --wm-shadow: 0 6px 22px rgba(15, 23, 42, 0.12);
8
8
  --wm-shadow-focused: 0 16px 44px rgba(15, 23, 42, 0.2);
9
9
  --wm-titlebar-bg: rgba(15, 23, 42, 0.03);
10
10
  --wm-text: rgba(15, 23, 42, 0.92);
11
- --wm-text-dim: rgba(15, 23, 42, 0.55);
11
+ --wm-text-dim: rgba(15, 23, 42, 0.64);
12
12
  --wm-accent: #4f46e5;
13
+ --wm-accent-ink: #4f46e5;
13
14
  --wm-blur: 18px;
14
15
  --wm-transition: 240ms cubic-bezier(0.32, 0.72, 0, 1);
15
16
  position: relative;
@@ -10,6 +10,7 @@
10
10
  --wm-text: #f3e9ff;
11
11
  --wm-text-dim: rgba(243, 233, 255, 0.55);
12
12
  --wm-accent: #ec4899;
13
+ --wm-accent-ink: #ec4899;
13
14
  --wm-accent-alt: #38bdf8;
14
15
  --wm-blur: 20px;
15
16
  --wm-transition: 260ms cubic-bezier(0.32, 0.72, 0, 1);
@@ -10,6 +10,7 @@
10
10
  --wm-text: #ffffff;
11
11
  --wm-text-dim: rgba(255, 255, 255, 0.55);
12
12
  --wm-accent: #ffffff;
13
+ --wm-accent-ink: #ffffff;
13
14
  --wm-title-size: 11px;
14
15
  --wm-title-weight: 600;
15
16
  --wm-title-tracking: 0.24em;
@@ -8,8 +8,9 @@
8
8
  --wm-shadow-focused: 4px 6px 0 rgba(84, 71, 51, 0.16);
9
9
  --wm-titlebar-bg: rgba(84, 71, 51, 0.05);
10
10
  --wm-text: #3f382c;
11
- --wm-text-dim: rgba(63, 56, 44, 0.6);
11
+ --wm-text-dim: rgba(63, 56, 44, 0.73);
12
12
  --wm-accent: #a8571b;
13
+ --wm-accent-ink: #a8571b;
13
14
  --wm-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
14
15
  --wm-transition: 220ms cubic-bezier(0.32, 0.72, 0, 1);
15
16
  position: relative;
@@ -4,12 +4,14 @@
4
4
  --wm-face-dark: #808080;
5
5
  --wm-face-darker: #404040;
6
6
  --wm-title-active-a: #000080;
7
- --wm-title-active-b: #1084d0;
8
- --wm-title-inactive: #808080;
7
+ --wm-title-active-b: #0f6fb0;
8
+ --wm-title-inactive: #8c8c8c;
9
9
  --wm-text: #000000;
10
10
  --wm-text-dim: #404040;
11
11
  --wm-accent: #000080;
12
+ --wm-accent-ink: #000080;
12
13
  --wm-title-text: #ffffff;
14
+ --wm-title-text-inactive: #1a1a1a;
13
15
  position: relative;
14
16
  overflow: hidden;
15
17
  background: #008080;
@@ -67,13 +69,17 @@
67
69
  flex: 1;
68
70
  font-size: 12px;
69
71
  font-weight: 700;
70
- color: var(--wm-title-text);
72
+ color: var(--wm-title-text-inactive);
71
73
  white-space: nowrap;
72
74
  overflow: hidden;
73
75
  text-overflow: ellipsis;
74
76
  letter-spacing: 0;
75
77
  }
76
78
 
79
+ [data-wm-window][data-wm-focused] [data-wm-title] {
80
+ color: var(--wm-title-text);
81
+ }
82
+
77
83
  [data-wm-window] [data-wm-controls] {
78
84
  display: flex;
79
85
  gap: 8px;
@@ -10,6 +10,7 @@
10
10
  --wm-text: #ffeaf7;
11
11
  --wm-text-dim: rgba(255, 234, 247, 0.62);
12
12
  --wm-accent: #ff7ac6;
13
+ --wm-accent-ink: #ff7ac6;
13
14
  --wm-blur: 16px;
14
15
  --wm-title-size: 12px;
15
16
  --wm-title-weight: 700;
@@ -10,6 +10,7 @@
10
10
  --wm-text: #b8f5cd;
11
11
  --wm-text-dim: rgba(184, 245, 205, 0.55);
12
12
  --wm-accent: #4ade80;
13
+ --wm-accent-ink: #4ade80;
13
14
  --wm-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
14
15
  --wm-transition: 120ms linear;
15
16
  position: relative;