react-dockable-desktop 1.2.0 → 2.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/dist/styles.css CHANGED
@@ -791,7 +791,7 @@ body.resizing-col-active * {
791
791
  }
792
792
 
793
793
  /* --- Theme Variables for Sidebar and Tabs --- */
794
- [data-bs-theme="dark"] {
794
+ [data-color-scheme="dark"] {
795
795
  --sidebar-bg: #1e2024;
796
796
  --sidebar-tabs-bg: #141619;
797
797
  --sidebar-border: rgba(255, 255, 255, 0.08);
@@ -812,7 +812,7 @@ body.resizing-col-active * {
812
812
  --tab-btn-active-bg: #1e2024; /* Seamless merge look */
813
813
  }
814
814
 
815
- [data-bs-theme="light"] {
815
+ [data-color-scheme="light"] {
816
816
  --bg-primary: #f8f9fa;
817
817
  --bg-workspace: #f1f5f9;
818
818
  --bg-panel: #ffffff;
@@ -922,7 +922,7 @@ body.resizing-col-active * {
922
922
  --panel-card-border: rgba(255, 255, 255, 0.08);
923
923
  }
924
924
 
925
- [data-workspace-skin="macos"][data-bs-theme="light"] {
925
+ [data-workspace-skin="macos"][data-color-scheme="light"] {
926
926
  --bg-primary: #f3f4f6;
927
927
  --bg-workspace: #e5e7eb;
928
928
  --bg-panel: rgba(255, 255, 255, 0.7);
@@ -1029,7 +1029,7 @@ body.resizing-col-active * {
1029
1029
  [data-workspace-skin="macos"] .btn-anchor-tab:not(:has(.anchor-sticky-right)):not(:has(.anchor-sticky-bottom)):not(:has(.anchor-sticky-both)) {
1030
1030
  background-color: #8e8e93 !important;
1031
1031
  }
1032
- [data-workspace-skin="macos"][data-bs-theme="light"] .btn-anchor-tab:not(:has(.anchor-sticky-right)):not(:has(.anchor-sticky-bottom)):not(:has(.anchor-sticky-both)) {
1032
+ [data-workspace-skin="macos"][data-color-scheme="light"] .btn-anchor-tab:not(:has(.anchor-sticky-right)):not(:has(.anchor-sticky-bottom)):not(:has(.anchor-sticky-both)) {
1033
1033
  background-color: #a4a4a8 !important;
1034
1034
  }
1035
1035
 
@@ -1106,7 +1106,7 @@ body.resizing-col-active * {
1106
1106
  --panel-text: #e8eaed;
1107
1107
  }
1108
1108
 
1109
- [data-workspace-skin="chrome"][data-bs-theme="light"] {
1109
+ [data-workspace-skin="chrome"][data-color-scheme="light"] {
1110
1110
  --bg-workspace: #dee1e6;
1111
1111
  --bg-panel: #ffffff;
1112
1112
  --bg-tab-bar: #dee1e6;
@@ -1164,7 +1164,7 @@ body.resizing-col-active * {
1164
1164
  --panel-text: #f8fafc;
1165
1165
  }
1166
1166
 
1167
- [data-workspace-skin="slate"][data-bs-theme="light"] {
1167
+ [data-workspace-skin="slate"][data-color-scheme="light"] {
1168
1168
  --bg-workspace: #f1f5f9;
1169
1169
  --bg-panel: #ffffff;
1170
1170
  --bg-tab-bar: #f1f5f9;
@@ -1218,7 +1218,7 @@ body.resizing-col-active * {
1218
1218
  --panel-text: #eceff4;
1219
1219
  }
1220
1220
 
1221
- [data-workspace-skin="nord"][data-bs-theme="light"] {
1221
+ [data-workspace-skin="nord"][data-color-scheme="light"] {
1222
1222
  --bg-workspace: #e5e9f0;
1223
1223
  --bg-panel: #eceff4;
1224
1224
  --bg-tab-bar: #e5e9f0;
@@ -1269,7 +1269,7 @@ body.resizing-col-active * {
1269
1269
  --panel-text: #ffffff;
1270
1270
  }
1271
1271
 
1272
- [data-workspace-skin="obsidian"][data-bs-theme="light"] {
1272
+ [data-workspace-skin="obsidian"][data-color-scheme="light"] {
1273
1273
  --bg-workspace: #ffffff;
1274
1274
  --bg-panel: #fafafa;
1275
1275
  --bg-tab-bar: #ffffff;
@@ -1302,10 +1302,10 @@ body.resizing-col-active * {
1302
1302
  [data-workspace-skin="obsidian"] .floating-window.v2-window-focused {
1303
1303
  box-shadow: 0 24px 50px rgba(255, 255, 255, 0.06), 0 0 1px rgba(255, 255, 255, 0.4) !important;
1304
1304
  }
1305
- [data-workspace-skin="obsidian"][data-bs-theme="light"] .floating-window {
1305
+ [data-workspace-skin="obsidian"][data-color-scheme="light"] .floating-window {
1306
1306
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.1) !important;
1307
1307
  }
1308
- [data-workspace-skin="obsidian"][data-bs-theme="light"] .floating-window.v2-window-focused {
1308
+ [data-workspace-skin="obsidian"][data-color-scheme="light"] .floating-window.v2-window-focused {
1309
1309
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 0 1px rgba(0, 0, 0, 0.2) !important;
1310
1310
  }
1311
1311
 
@@ -1336,7 +1336,7 @@ body.resizing-col-active * {
1336
1336
  --panel-text: #c0caf5;
1337
1337
  }
1338
1338
 
1339
- [data-workspace-skin="tokyo"][data-bs-theme="light"] {
1339
+ [data-workspace-skin="tokyo"][data-color-scheme="light"] {
1340
1340
  --bg-workspace: #e1e2e7;
1341
1341
  --bg-panel: #f2f4f8;
1342
1342
  --bg-tab-bar: #d5d6db;
@@ -1435,7 +1435,7 @@ body.resizing-col-active * {
1435
1435
  background-color: rgba(255, 255, 255, 0.05) !important;
1436
1436
  transform: scale(1.05);
1437
1437
  }
1438
- [data-bs-theme="light"] .sidebar-tab-btn:not(.active):hover {
1438
+ [data-color-scheme="light"] .sidebar-tab-btn:not(.active):hover {
1439
1439
  background-color: rgba(0, 0, 0, 0.04) !important;
1440
1440
  }
1441
1441
 
@@ -2200,12 +2200,12 @@ html:not(.enable-animations) *::after {
2200
2200
  color: var(--text-primary, #f1f5f9);
2201
2201
  }
2202
2202
 
2203
- [data-bs-theme="light"] .dw-btn-outline {
2203
+ [data-color-scheme="light"] .dw-btn-outline {
2204
2204
  border-color: #6c757d;
2205
2205
  color: #6c757d;
2206
2206
  }
2207
2207
 
2208
- [data-bs-theme="light"] .dw-btn-outline:hover {
2208
+ [data-color-scheme="light"] .dw-btn-outline:hover {
2209
2209
  background: rgba(0, 0, 0, 0.05);
2210
2210
  border-color: #495057;
2211
2211
  color: #495057;
@@ -2221,6 +2221,6 @@ html:not(.enable-animations) *::after {
2221
2221
  filter: brightness(1.1);
2222
2222
  }
2223
2223
 
2224
- [data-bs-theme="light"] .dw-btn-primary {
2224
+ [data-color-scheme="light"] .dw-btn-primary {
2225
2225
  color: #ffffff;
2226
2226
  }
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "react-dockable-desktop",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "A premium, state-of-the-art window manager and dockable layout engine for React. Supports fluid grid splits, tabbed groups, floating resizable windows, zero-unmount state preservation, context menus, and internationalization.",
5
- "main": "dist/index.js",
6
- "module": "dist/index.mjs",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
7
  "types": "dist/index.d.ts",
8
8
  "exports": {
9
9
  ".": {
10
10
  "types": "./dist/index.d.ts",
11
- "import": "./dist/index.mjs",
12
- "require": "./dist/index.js"
11
+ "import": "./dist/index.js",
12
+ "require": "./dist/index.cjs"
13
13
  },
14
14
  "./styles.css": "./dist/styles.css"
15
15
  },
@@ -30,7 +30,11 @@
30
30
  "dev:ria": "vite demo-luciadria",
31
31
  "dev:oldria": "vite demo-oldria",
32
32
  "build": "tsup && node -e \"require('fs').copyFileSync('src/index.css', 'dist/styles.css')\"",
33
- "demo:build": "vite build",
33
+ "demo:build": "vite build --base /react-dockable-desktop/demo/",
34
+ "docs:dev": "vitepress dev docs-site",
35
+ "docs:generate": "typedoc",
36
+ "docs:build": "vitepress build docs-site",
37
+ "docs:preview": "vitepress preview docs-site",
34
38
  "test": "vitest run",
35
39
  "test:watch": "vitest",
36
40
  "lint": "tsc --noEmit"
@@ -63,9 +67,12 @@
63
67
  "react-intl": "^10.1.12",
64
68
  "replace-react-contexify": "^1.1.0",
65
69
  "tsup": "^8.5.1",
70
+ "typedoc": "^0.28.19",
71
+ "typedoc-plugin-markdown": "^4.12.0",
66
72
  "typescript": "~6.0.2",
67
73
  "typescript-eslint": "^8.59.2",
68
74
  "vite": "^8.0.12",
75
+ "vitepress": "^1.6.4",
69
76
  "vitest": "^4.1.8"
70
77
  }
71
78
  }