react-tiling-workspace 0.0.0-stage → 0.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/LICENSE +21 -0
- package/README.md +147 -2
- package/dist/components/LayoutPickerDialog-C-Sb3uOl.cjs +517 -0
- package/dist/components/LayoutPickerDialog-C-Sb3uOl.cjs.map +1 -0
- package/dist/components/LayoutPickerDialog-STglqYFI.mjs +500 -0
- package/dist/components/LayoutPickerDialog-STglqYFI.mjs.map +1 -0
- package/dist/components/icons-0kjsH_LJ.cjs +144 -0
- package/dist/components/icons-0kjsH_LJ.cjs.map +1 -0
- package/dist/components/icons-BgtEPXL8.mjs +97 -0
- package/dist/components/icons-BgtEPXL8.mjs.map +1 -0
- package/dist/components/layout-picker.cjs +5 -0
- package/dist/components/layout-picker.d.cts +22 -0
- package/dist/components/layout-picker.d.mts +22 -0
- package/dist/components/layout-picker.mjs +2 -0
- package/dist/components/mobile.cjs +575 -0
- package/dist/components/mobile.cjs.map +1 -0
- package/dist/components/mobile.d.cts +42 -0
- package/dist/components/mobile.d.mts +42 -0
- package/dist/components/mobile.mjs +574 -0
- package/dist/components/mobile.mjs.map +1 -0
- package/dist/components/topbar.cjs +94 -0
- package/dist/components/topbar.cjs.map +1 -0
- package/dist/components/topbar.d.cts +38 -0
- package/dist/components/topbar.d.mts +38 -0
- package/dist/components/topbar.mjs +93 -0
- package/dist/components/topbar.mjs.map +1 -0
- package/dist/components/types-DkwWFcD5.d.mts +32 -0
- package/dist/components/types-qsXC_48o.d.cts +32 -0
- package/dist/index.cjs +3336 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +243 -0
- package/dist/index.d.mts +243 -0
- package/dist/index.mjs +3320 -0
- package/dist/index.mjs.map +1 -0
- package/dist/server/server.cjs +104 -0
- package/dist/server/server.cjs.map +1 -0
- package/dist/server/server.d.cts +71 -0
- package/dist/server/server.d.mts +71 -0
- package/dist/server/server.mjs +95 -0
- package/dist/server/server.mjs.map +1 -0
- package/dist/server/shortcuts.cjs +32 -0
- package/dist/server/shortcuts.cjs.map +1 -0
- package/dist/server/shortcuts.d.cts +6 -0
- package/dist/server/shortcuts.d.mts +6 -0
- package/dist/server/shortcuts.mjs +31 -0
- package/dist/server/shortcuts.mjs.map +1 -0
- package/dist/theme.css +119 -0
- package/package.json +113 -4
package/dist/theme.css
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Accent / brand color */
|
|
3
|
+
--rtw-accent: #6366f1;
|
|
4
|
+
--rtw-accent-hover: #4f46e5;
|
|
5
|
+
--rtw-accent-foreground: #ffffff;
|
|
6
|
+
--rtw-accent-tint: rgba(99, 102, 241, 0.12);
|
|
7
|
+
--rtw-accent-tint-strong: rgba(99, 102, 241, 0.2);
|
|
8
|
+
--rtw-accent-ring: rgba(99, 102, 241, 0.48);
|
|
9
|
+
--rtw-accent-ring-subtle: rgba(99, 102, 241, 0.28);
|
|
10
|
+
|
|
11
|
+
/* Surfaces */
|
|
12
|
+
--rtw-bg: #f1f4f9;
|
|
13
|
+
--rtw-surface: #ffffff;
|
|
14
|
+
--rtw-surface-header: #f8fafc;
|
|
15
|
+
--rtw-surface-muted: #f4f7fb;
|
|
16
|
+
--rtw-surface-subtle: #edf1f7;
|
|
17
|
+
--rtw-surface-hover: #e5ebf3;
|
|
18
|
+
--rtw-surface-drop: rgba(99, 102, 241, 0.08);
|
|
19
|
+
|
|
20
|
+
/* Borders */
|
|
21
|
+
--rtw-border: #dfe5ef;
|
|
22
|
+
--rtw-border-strong: #c9d3e2;
|
|
23
|
+
--rtw-border-muted: #eaedf4;
|
|
24
|
+
--rtw-border-dashed: #b9c5d6;
|
|
25
|
+
|
|
26
|
+
/* Text */
|
|
27
|
+
--rtw-text: #1e293b;
|
|
28
|
+
--rtw-text-strong: #0f172a;
|
|
29
|
+
--rtw-text-muted: #475569;
|
|
30
|
+
--rtw-text-subtle: #64748b;
|
|
31
|
+
--rtw-text-faint: #94a3b8;
|
|
32
|
+
|
|
33
|
+
/* Shadows & Radii */
|
|
34
|
+
--rtw-shadow-panel: 0 1px 2px rgba(15, 23, 42, 0.05), 0 4px 14px rgba(15, 23, 42, 0.03);
|
|
35
|
+
--rtw-shadow-dialog: 0 24px 64px -12px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(15, 23, 42, 0.06);
|
|
36
|
+
--rtw-radius-panel: 0.875rem;
|
|
37
|
+
--rtw-radius-dialog: 1rem;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@keyframes rtw-modal-in {
|
|
41
|
+
from {
|
|
42
|
+
opacity: 0;
|
|
43
|
+
transform: translateY(8px) scale(0.97);
|
|
44
|
+
}
|
|
45
|
+
to {
|
|
46
|
+
opacity: 1;
|
|
47
|
+
transform: translateY(0) scale(1);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
@keyframes rtw-backdrop-in {
|
|
52
|
+
from {
|
|
53
|
+
opacity: 0;
|
|
54
|
+
}
|
|
55
|
+
to {
|
|
56
|
+
opacity: 1;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@keyframes rtw-panel-in {
|
|
61
|
+
from {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
transform: scale(0.985);
|
|
64
|
+
}
|
|
65
|
+
to {
|
|
66
|
+
opacity: 1;
|
|
67
|
+
transform: scale(1);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes rtw-drop-in {
|
|
72
|
+
from {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
transform: scale(0.96);
|
|
75
|
+
}
|
|
76
|
+
to {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
transform: scale(1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.rtw-animate-modal {
|
|
83
|
+
animation: rtw-modal-in 190ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.rtw-animate-backdrop {
|
|
87
|
+
animation: rtw-backdrop-in 150ms ease-out both;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.rtw-animate-panel {
|
|
91
|
+
animation: rtw-panel-in 210ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.rtw-animate-drop {
|
|
95
|
+
animation: rtw-drop-in 140ms cubic-bezier(0.16, 1, 0.3, 1) both;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/* Smooth flex transitions for fold/unfold/equalize; disabled while actively dragging a divider */
|
|
99
|
+
.rtw-split-child {
|
|
100
|
+
transition:
|
|
101
|
+
flex-grow 210ms cubic-bezier(0.16, 1, 0.3, 1),
|
|
102
|
+
flex-basis 210ms cubic-bezier(0.16, 1, 0.3, 1),
|
|
103
|
+
opacity 180ms ease;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
[data-rtw-resizing="true"] .rtw-split-child {
|
|
107
|
+
transition: none !important;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@media (prefers-reduced-motion: reduce) {
|
|
111
|
+
.rtw-animate-modal,
|
|
112
|
+
.rtw-animate-backdrop,
|
|
113
|
+
.rtw-animate-panel,
|
|
114
|
+
.rtw-animate-drop,
|
|
115
|
+
.rtw-split-child {
|
|
116
|
+
animation: none !important;
|
|
117
|
+
transition: none !important;
|
|
118
|
+
}
|
|
119
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,115 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-tiling-workspace",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"description": "
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "Standalone, Tailwind-friendly React tiling workspace with draggable/resizable split columns, layout presets, CSS variable theming, and a liquid-morphing mobile bottom bar.",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"react",
|
|
8
|
+
"tiling",
|
|
9
|
+
"workspace",
|
|
10
|
+
"split-pane",
|
|
11
|
+
"layout",
|
|
12
|
+
"dashboard",
|
|
13
|
+
"tailwind",
|
|
14
|
+
"mobile-bottom-bar"
|
|
15
|
+
],
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"sideEffects": [
|
|
18
|
+
"**/*.css"
|
|
19
|
+
],
|
|
20
|
+
"main": "./dist/index.cjs",
|
|
21
|
+
"module": "./dist/index.mjs",
|
|
22
|
+
"types": "./dist/index.d.mts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": {
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./dist/index.d.mts",
|
|
27
|
+
"default": "./dist/index.mjs"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./dist/index.d.cts",
|
|
31
|
+
"default": "./dist/index.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./server": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./dist/server/server.d.mts",
|
|
37
|
+
"default": "./dist/server/server.mjs"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./dist/server/server.d.cts",
|
|
41
|
+
"default": "./dist/server/server.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./shortcuts": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./dist/server/shortcuts.d.mts",
|
|
47
|
+
"default": "./dist/server/shortcuts.mjs"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./dist/server/shortcuts.d.cts",
|
|
51
|
+
"default": "./dist/server/shortcuts.cjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./mobile": {
|
|
55
|
+
"import": {
|
|
56
|
+
"types": "./dist/components/mobile.d.mts",
|
|
57
|
+
"default": "./dist/components/mobile.mjs"
|
|
58
|
+
},
|
|
59
|
+
"require": {
|
|
60
|
+
"types": "./dist/components/mobile.d.cts",
|
|
61
|
+
"default": "./dist/components/mobile.cjs"
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"./layout-picker": {
|
|
65
|
+
"import": {
|
|
66
|
+
"types": "./dist/components/layout-picker.d.mts",
|
|
67
|
+
"default": "./dist/components/layout-picker.mjs"
|
|
68
|
+
},
|
|
69
|
+
"require": {
|
|
70
|
+
"types": "./dist/components/layout-picker.d.cts",
|
|
71
|
+
"default": "./dist/components/layout-picker.cjs"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"./topbar": {
|
|
75
|
+
"import": {
|
|
76
|
+
"types": "./dist/components/topbar.d.mts",
|
|
77
|
+
"default": "./dist/components/topbar.mjs"
|
|
78
|
+
},
|
|
79
|
+
"require": {
|
|
80
|
+
"types": "./dist/components/topbar.d.cts",
|
|
81
|
+
"default": "./dist/components/topbar.cjs"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"./theme.css": "./dist/theme.css"
|
|
85
|
+
},
|
|
86
|
+
"files": [
|
|
87
|
+
"dist",
|
|
88
|
+
"README.md",
|
|
89
|
+
"LICENSE"
|
|
90
|
+
],
|
|
91
|
+
"scripts": {
|
|
92
|
+
"build": "tsdown && tsdown --config tsdown.server.config.ts && tsdown --config tsdown.components.config.ts",
|
|
93
|
+
"dev": "npm --prefix demo run dev",
|
|
94
|
+
"dev:lib": "tsdown --watch",
|
|
95
|
+
"dev:server": "tsdown --config tsdown.server.config.ts --watch",
|
|
96
|
+
"dev:components": "tsdown --config tsdown.components.config.ts --watch",
|
|
97
|
+
"lint": "tsc --noEmit && npm --prefix demo exec tsc -- --noEmit",
|
|
98
|
+
"test": "npm run build && node --test",
|
|
99
|
+
"typecheck": "tsc --noEmit",
|
|
100
|
+
"demo:dev": "npm --prefix demo run dev",
|
|
101
|
+
"demo:build": "npm --prefix demo run build"
|
|
102
|
+
},
|
|
103
|
+
"peerDependencies": {
|
|
104
|
+
"react": ">=18.0.0",
|
|
105
|
+
"react-dom": ">=18.0.0"
|
|
106
|
+
},
|
|
107
|
+
"devDependencies": {
|
|
108
|
+
"@types/react": "^19.0.0",
|
|
109
|
+
"@types/react-dom": "^19.0.0",
|
|
110
|
+
"react": "^19.0.0",
|
|
111
|
+
"react-dom": "^19.0.0",
|
|
112
|
+
"tsdown": "^0.23.8",
|
|
113
|
+
"typescript": "^5.7.0"
|
|
114
|
+
}
|
|
115
|
+
}
|