juxscript 1.1.4 → 1.1.6
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/index.d.ts +10 -10
- package/index.d.ts.map +1 -0
- package/lib/components/alert.d.ts +32 -0
- package/lib/components/alert.d.ts.map +1 -0
- package/lib/components/alert.js +153 -0
- package/lib/components/alert.ts +200 -0
- package/lib/components/app.d.ts +89 -0
- package/lib/components/app.d.ts.map +1 -0
- package/lib/components/app.js +175 -0
- package/lib/components/app.ts +247 -0
- package/lib/components/badge.d.ts +27 -0
- package/lib/components/badge.d.ts.map +1 -0
- package/lib/components/badge.js +70 -0
- package/lib/components/badge.ts +101 -0
- package/lib/components/base/BaseComponent.d.ts +142 -0
- package/lib/components/base/BaseComponent.d.ts.map +1 -0
- package/lib/components/base/BaseComponent.js +363 -0
- package/lib/components/base/BaseComponent.ts +421 -0
- package/lib/components/base/FormInput.d.ts +73 -0
- package/lib/components/base/FormInput.d.ts.map +1 -0
- package/lib/components/base/FormInput.js +163 -0
- package/lib/components/base/FormInput.ts +227 -0
- package/lib/components/button.d.ts +48 -0
- package/lib/components/button.d.ts.map +1 -0
- package/lib/components/button.js +121 -0
- package/lib/components/button.ts +178 -0
- package/lib/components/card.d.ts +34 -0
- package/lib/components/card.d.ts.map +1 -0
- package/lib/components/card.js +127 -0
- package/lib/components/card.ts +173 -0
- package/lib/components/chart.d.ts +45 -0
- package/lib/components/chart.d.ts.map +1 -0
- package/lib/components/chart.js +186 -0
- package/lib/components/chart.ts +231 -0
- package/lib/components/checkbox.d.ts +31 -0
- package/lib/components/checkbox.d.ts.map +1 -0
- package/lib/components/checkbox.js +185 -0
- package/lib/components/checkbox.ts +242 -0
- package/lib/components/code.d.ts +24 -0
- package/lib/components/code.d.ts.map +1 -0
- package/lib/components/code.js +88 -0
- package/lib/components/code.ts +123 -0
- package/lib/components/container.d.ts +42 -0
- package/lib/components/container.d.ts.map +1 -0
- package/lib/components/container.js +93 -0
- package/lib/components/container.ts +140 -0
- package/lib/components/data.d.ts +36 -0
- package/lib/components/data.d.ts.map +1 -0
- package/lib/components/data.js +110 -0
- package/lib/components/data.ts +135 -0
- package/lib/components/datepicker.d.ts +38 -0
- package/lib/components/datepicker.d.ts.map +1 -0
- package/lib/components/datepicker.js +177 -0
- package/lib/components/datepicker.ts +234 -0
- package/lib/components/dialog.d.ts +38 -0
- package/lib/components/dialog.d.ts.map +1 -0
- package/lib/components/dialog.js +126 -0
- package/lib/components/dialog.ts +172 -0
- package/lib/components/divider.d.ts +30 -0
- package/lib/components/divider.d.ts.map +1 -0
- package/lib/components/divider.js +69 -0
- package/lib/components/divider.ts +100 -0
- package/lib/components/dropdown.d.ts +39 -0
- package/lib/components/dropdown.d.ts.map +1 -0
- package/lib/components/dropdown.js +133 -0
- package/lib/components/dropdown.ts +186 -0
- package/lib/components/element.d.ts +50 -0
- package/lib/components/element.d.ts.map +1 -0
- package/lib/components/element.js +206 -0
- package/lib/components/element.ts +267 -0
- package/lib/components/fileupload.d.ts +40 -0
- package/lib/components/fileupload.d.ts.map +1 -0
- package/lib/components/fileupload.js +241 -0
- package/lib/components/fileupload.ts +309 -0
- package/lib/components/grid.d.ts +87 -0
- package/lib/components/grid.d.ts.map +1 -0
- package/lib/components/grid.js +205 -0
- package/lib/components/grid.ts +291 -0
- package/lib/components/guard.d.ts +41 -0
- package/lib/components/guard.d.ts.map +1 -0
- package/lib/components/guard.js +56 -0
- package/lib/components/guard.ts +92 -0
- package/lib/components/heading.d.ts +24 -0
- package/lib/components/heading.d.ts.map +1 -0
- package/lib/components/heading.js +67 -0
- package/lib/components/heading.ts +96 -0
- package/lib/components/helpers.d.ts +9 -0
- package/lib/components/helpers.d.ts.map +1 -0
- package/lib/components/helpers.js +30 -0
- package/lib/components/helpers.ts +41 -0
- package/lib/components/hero.d.ts +45 -0
- package/lib/components/hero.d.ts.map +1 -0
- package/lib/components/hero.js +165 -0
- package/lib/components/hero.ts +224 -0
- package/lib/components/icon.d.ts +35 -0
- package/lib/components/icon.d.ts.map +1 -0
- package/lib/components/icon.js +132 -0
- package/lib/components/icon.ts +178 -0
- package/lib/components/icons.d.ts +25 -0
- package/lib/components/icons.d.ts.map +1 -0
- package/lib/components/icons.js +440 -0
- package/lib/components/icons.ts +464 -0
- package/lib/components/include.d.ts +120 -0
- package/lib/components/include.d.ts.map +1 -0
- package/lib/components/include.js +350 -0
- package/lib/components/include.ts +410 -0
- package/lib/components/input.d.ts +83 -0
- package/lib/components/input.d.ts.map +1 -0
- package/lib/components/input.js +348 -0
- package/lib/components/input.ts +457 -0
- package/lib/components/list.d.ts +82 -0
- package/lib/components/list.d.ts.map +1 -0
- package/lib/components/list.js +311 -0
- package/lib/components/list.ts +419 -0
- package/lib/components/loading.d.ts +24 -0
- package/lib/components/loading.d.ts.map +1 -0
- package/lib/components/loading.js +73 -0
- package/lib/components/loading.ts +100 -0
- package/lib/components/menu.d.ts +37 -0
- package/lib/components/menu.d.ts.map +1 -0
- package/lib/components/menu.js +202 -0
- package/lib/components/menu.ts +275 -0
- package/lib/components/modal.d.ts +51 -0
- package/lib/components/modal.d.ts.map +1 -0
- package/lib/components/modal.js +227 -0
- package/lib/components/modal.ts +284 -0
- package/lib/components/nav.d.ts +45 -0
- package/lib/components/nav.d.ts.map +1 -0
- package/lib/components/nav.js +190 -0
- package/lib/components/nav.ts +257 -0
- package/lib/components/paragraph.d.ts +21 -0
- package/lib/components/paragraph.d.ts.map +1 -0
- package/lib/components/paragraph.js +70 -0
- package/lib/components/paragraph.ts +97 -0
- package/lib/components/progress.d.ts +39 -0
- package/lib/components/progress.d.ts.map +1 -0
- package/lib/components/progress.js +113 -0
- package/lib/components/progress.ts +159 -0
- package/lib/components/radio.d.ts +41 -0
- package/lib/components/radio.d.ts.map +1 -0
- package/lib/components/radio.js +203 -0
- package/lib/components/radio.ts +278 -0
- package/lib/components/req.d.ts +155 -0
- package/lib/components/req.d.ts.map +1 -0
- package/lib/components/req.js +253 -0
- package/lib/components/req.ts +303 -0
- package/lib/components/script.d.ts +14 -0
- package/lib/components/script.d.ts.map +1 -0
- package/lib/components/script.js +33 -0
- package/lib/components/script.ts +41 -0
- package/lib/components/select.d.ts +40 -0
- package/lib/components/select.d.ts.map +1 -0
- package/lib/components/select.js +183 -0
- package/lib/components/select.ts +252 -0
- package/lib/components/sidebar.d.ts +48 -0
- package/lib/components/sidebar.d.ts.map +1 -0
- package/lib/components/sidebar.js +207 -0
- package/lib/components/sidebar.ts +275 -0
- package/lib/components/style.d.ts +14 -0
- package/lib/components/style.d.ts.map +1 -0
- package/lib/components/style.js +33 -0
- package/lib/components/style.ts +41 -0
- package/lib/components/switch.d.ts +32 -0
- package/lib/components/switch.d.ts.map +1 -0
- package/lib/components/switch.js +186 -0
- package/lib/components/switch.ts +246 -0
- package/lib/components/table.d.ts +137 -0
- package/lib/components/table.d.ts.map +1 -0
- package/lib/components/table.js +1045 -0
- package/lib/components/table.ts +1249 -0
- package/lib/components/tabs.d.ts +36 -0
- package/lib/components/tabs.d.ts.map +1 -0
- package/lib/components/tabs.js +198 -0
- package/lib/components/tabs.ts +250 -0
- package/lib/components/theme-toggle.d.ts +44 -0
- package/lib/components/theme-toggle.d.ts.map +1 -0
- package/lib/components/theme-toggle.js +215 -0
- package/lib/components/theme-toggle.ts +293 -0
- package/lib/components/tooltip.d.ts +30 -0
- package/lib/components/tooltip.d.ts.map +1 -0
- package/lib/components/tooltip.js +109 -0
- package/lib/components/tooltip.ts +144 -0
- package/lib/components/view.d.ts +48 -0
- package/lib/components/view.d.ts.map +1 -0
- package/lib/components/view.js +149 -0
- package/lib/components/view.ts +190 -0
- package/lib/components/write.d.ts +107 -0
- package/lib/components/write.d.ts.map +1 -0
- package/lib/components/write.js +222 -0
- package/lib/components/write.ts +272 -0
- package/lib/layouts/default.css +260 -0
- package/lib/layouts/figma.css +334 -0
- package/lib/reactivity/state.d.ts +36 -0
- package/lib/reactivity/state.d.ts.map +1 -0
- package/lib/reactivity/state.js +67 -0
- package/lib/reactivity/state.ts +78 -0
- package/lib/utils/fetch.d.ts +176 -0
- package/lib/utils/fetch.d.ts.map +1 -0
- package/lib/utils/fetch.js +427 -0
- package/lib/utils/fetch.ts +553 -0
- package/machinery/compiler3.js +78 -0
- package/machinery/doc-generator.js +136 -0
- package/machinery/imports.js +155 -0
- package/machinery/ts-shim.js +46 -0
- package/package.json +9 -15
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
/* Default Layout Grid (Notion-style) */
|
|
2
|
+
|
|
3
|
+
#app {
|
|
4
|
+
|
|
5
|
+
display: grid;
|
|
6
|
+
grid-template-areas:
|
|
7
|
+
"header header"
|
|
8
|
+
"sidebar main"
|
|
9
|
+
"footer footer";
|
|
10
|
+
grid-template-columns: 250px 1fr;
|
|
11
|
+
grid-template-rows: auto 1fr auto;
|
|
12
|
+
min-height: 100vh;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/* Header */
|
|
16
|
+
#appheader {
|
|
17
|
+
grid-area: header;
|
|
18
|
+
position: sticky;
|
|
19
|
+
top: 0;
|
|
20
|
+
z-index: 100;
|
|
21
|
+
background: var(--color-surface-elevated);
|
|
22
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
padding: var(--space-md) var(--space-lg);
|
|
26
|
+
gap: var(--space-lg);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#appheader-logo {
|
|
30
|
+
flex-shrink: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
#appheader-nav {
|
|
34
|
+
flex: 1;
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: var(--space-md);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
#appheader-actions {
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
display: flex;
|
|
42
|
+
gap: var(--space-sm);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/* Subheader - Hidden in default layout */
|
|
46
|
+
#appsubheader {
|
|
47
|
+
display: none;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
#appsubheader-breadcrumbs,
|
|
51
|
+
#appsubheader-tabs,
|
|
52
|
+
#appsubheader-actions {
|
|
53
|
+
display: none;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/* Sidebar */
|
|
57
|
+
#appsidebar {
|
|
58
|
+
grid-area: sidebar;
|
|
59
|
+
overflow-y: auto;
|
|
60
|
+
background: var(--color-surface-base);
|
|
61
|
+
border-right: var(--border-width) solid var(--color-border);
|
|
62
|
+
transition: transform var(--transition-base);
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
#appsidebar-header {
|
|
68
|
+
padding: var(--space-md);
|
|
69
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
70
|
+
flex-shrink: 0;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
#appsidebar-content {
|
|
74
|
+
flex: 1;
|
|
75
|
+
overflow-y: auto;
|
|
76
|
+
padding: var(--space-sm);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
#appsidebar-footer {
|
|
80
|
+
padding: var(--space-md);
|
|
81
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
82
|
+
flex-shrink: 0;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/* Main */
|
|
86
|
+
#appmain {
|
|
87
|
+
grid-area: main;
|
|
88
|
+
overflow-y: auto;
|
|
89
|
+
padding: var(--space-xl);
|
|
90
|
+
background: var(--color-background);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/* Aside - Hidden in default layout */
|
|
94
|
+
#appaside {
|
|
95
|
+
display: none;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
#appaside-header,
|
|
99
|
+
#appaside-content,
|
|
100
|
+
#appaside-footer {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
/* Footer */
|
|
105
|
+
#appfooter {
|
|
106
|
+
grid-area: footer;
|
|
107
|
+
background: var(--color-surface-elevated);
|
|
108
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
109
|
+
padding: var(--space-lg) var(--space-xl);
|
|
110
|
+
display: flex;
|
|
111
|
+
justify-content: space-between;
|
|
112
|
+
align-items: center;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
#appfooter-content {
|
|
116
|
+
flex: 1;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#appfooter-legal {
|
|
120
|
+
flex-shrink: 0;
|
|
121
|
+
font-size: var(--font-size-sm);
|
|
122
|
+
color: var(--color-text-secondary);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Modal */
|
|
126
|
+
#appmodal {
|
|
127
|
+
position: fixed;
|
|
128
|
+
top: 0;
|
|
129
|
+
left: 0;
|
|
130
|
+
right: 0;
|
|
131
|
+
bottom: 0;
|
|
132
|
+
z-index: 2000;
|
|
133
|
+
display: none;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
#appmodal[aria-hidden="false"] {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
#appmodal-backdrop {
|
|
143
|
+
position: absolute;
|
|
144
|
+
inset: 0;
|
|
145
|
+
background: rgba(0, 0, 0, 0.6);
|
|
146
|
+
backdrop-filter: blur(4px);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
#appmodal-container {
|
|
150
|
+
position: relative;
|
|
151
|
+
background: var(--color-surface-elevated);
|
|
152
|
+
border-radius: var(--radius-lg);
|
|
153
|
+
box-shadow: var(--shadow-2xl);
|
|
154
|
+
max-width: 90vw;
|
|
155
|
+
max-height: 90vh;
|
|
156
|
+
display: flex;
|
|
157
|
+
flex-direction: column;
|
|
158
|
+
overflow: hidden;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
#appmodal-header {
|
|
162
|
+
padding: var(--space-lg);
|
|
163
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
164
|
+
flex-shrink: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
#appmodal-content {
|
|
168
|
+
flex: 1;
|
|
169
|
+
overflow-y: auto;
|
|
170
|
+
padding: var(--space-lg);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
#appmodal-footer {
|
|
174
|
+
padding: var(--space-lg);
|
|
175
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
176
|
+
flex-shrink: 0;
|
|
177
|
+
display: flex;
|
|
178
|
+
gap: var(--space-sm);
|
|
179
|
+
justify-content: flex-end;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/* Tablet (portrait) */
|
|
183
|
+
@media (max-width: 1024px) {
|
|
184
|
+
#app {
|
|
185
|
+
grid-template-columns: 200px 1fr;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
#appmain {
|
|
189
|
+
padding: var(--space-lg);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
#appheader {
|
|
193
|
+
padding: var(--space-sm) var(--space-md);
|
|
194
|
+
gap: var(--space-md);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
/* Mobile */
|
|
199
|
+
@media (max-width: 768px) {
|
|
200
|
+
#app {
|
|
201
|
+
grid-template-areas:
|
|
202
|
+
"header"
|
|
203
|
+
"main"
|
|
204
|
+
"footer";
|
|
205
|
+
grid-template-columns: 1fr;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
#appsidebar {
|
|
209
|
+
position: fixed;
|
|
210
|
+
top: 60px;
|
|
211
|
+
left: 0;
|
|
212
|
+
bottom: 0;
|
|
213
|
+
width: 280px;
|
|
214
|
+
max-width: 80vw;
|
|
215
|
+
z-index: 99;
|
|
216
|
+
transform: translateX(-100%);
|
|
217
|
+
box-shadow: var(--shadow-xl);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
#appsidebar.visible {
|
|
221
|
+
transform: translateX(0);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
#appmain {
|
|
225
|
+
padding: var(--space-md);
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
#appheader {
|
|
229
|
+
padding: var(--space-xs) var(--space-md);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
#appfooter {
|
|
233
|
+
padding: var(--space-md) var(--space-lg);
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
gap: var(--space-sm);
|
|
236
|
+
text-align: center;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
/* Small mobile */
|
|
241
|
+
@media (max-width: 480px) {
|
|
242
|
+
#appsidebar {
|
|
243
|
+
width: 100%;
|
|
244
|
+
max-width: 100vw;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
#appmain {
|
|
248
|
+
padding: var(--space-sm);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
#appfooter {
|
|
252
|
+
padding: var(--space-sm) var(--space-md);
|
|
253
|
+
font-size: var(--font-size-sm);
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
#appmodal-container {
|
|
257
|
+
max-width: 95vw;
|
|
258
|
+
max-height: 95vh;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
/* Figma Layout: All 7 containers */
|
|
2
|
+
#app {
|
|
3
|
+
display: grid;
|
|
4
|
+
grid-template-areas:
|
|
5
|
+
"header header header"
|
|
6
|
+
"subheader subheader subheader"
|
|
7
|
+
"sidebar main aside"
|
|
8
|
+
"footer footer footer";
|
|
9
|
+
grid-template-columns: 250px 1fr 300px;
|
|
10
|
+
grid-template-rows: 60px auto 1fr 60px;
|
|
11
|
+
min-height: 100vh;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
/* Header */
|
|
15
|
+
#appheader {
|
|
16
|
+
grid-area: header;
|
|
17
|
+
background: var(--color-surface-elevated);
|
|
18
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
padding: var(--space-sm) var(--space-lg);
|
|
22
|
+
gap: var(--space-lg);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
#appheader-logo {
|
|
26
|
+
flex-shrink: 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
#appheader-nav {
|
|
30
|
+
flex: 1;
|
|
31
|
+
display: flex;
|
|
32
|
+
gap: var(--space-md);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
#appheader-actions {
|
|
36
|
+
flex-shrink: 0;
|
|
37
|
+
display: flex;
|
|
38
|
+
gap: var(--space-sm);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/* Subheader */
|
|
42
|
+
#appsubheader {
|
|
43
|
+
grid-area: subheader;
|
|
44
|
+
background: var(--color-surface-base);
|
|
45
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
46
|
+
padding: var(--space-sm) var(--space-md);
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
gap: var(--space-lg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
#appsubheader-breadcrumbs {
|
|
53
|
+
flex: 0 0 auto;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
gap: var(--space-xs);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
#appsubheader-tabs {
|
|
60
|
+
flex: 1;
|
|
61
|
+
display: flex;
|
|
62
|
+
gap: var(--space-sm);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
#appsubheader-actions {
|
|
66
|
+
flex-shrink: 0;
|
|
67
|
+
display: flex;
|
|
68
|
+
gap: var(--space-sm);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Sidebar */
|
|
72
|
+
#appsidebar {
|
|
73
|
+
grid-area: sidebar;
|
|
74
|
+
overflow-y: auto;
|
|
75
|
+
background: var(--color-surface-base);
|
|
76
|
+
border-right: var(--border-width) solid var(--color-border);
|
|
77
|
+
transition: transform var(--transition-base);
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: column;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
#appsidebar-header {
|
|
83
|
+
padding: var(--space-md);
|
|
84
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
85
|
+
flex-shrink: 0;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
#appsidebar-content {
|
|
89
|
+
flex: 1;
|
|
90
|
+
overflow-y: auto;
|
|
91
|
+
padding: var(--space-sm);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
#appsidebar-footer {
|
|
95
|
+
padding: var(--space-md);
|
|
96
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
97
|
+
flex-shrink: 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Main */
|
|
101
|
+
#appmain {
|
|
102
|
+
grid-area: main;
|
|
103
|
+
overflow: auto;
|
|
104
|
+
background: var(--color-background);
|
|
105
|
+
padding: var(--space-xl);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/* Aside (Right Sidebar) */
|
|
109
|
+
#appaside {
|
|
110
|
+
grid-area: aside;
|
|
111
|
+
overflow-y: auto;
|
|
112
|
+
background: var(--color-surface-base);
|
|
113
|
+
border-left: var(--border-width) solid var(--color-border);
|
|
114
|
+
transition: transform var(--transition-base);
|
|
115
|
+
display: flex;
|
|
116
|
+
flex-direction: column;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#appaside-header {
|
|
120
|
+
padding: var(--space-md);
|
|
121
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
122
|
+
flex-shrink: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
#appaside-content {
|
|
126
|
+
flex: 1;
|
|
127
|
+
overflow-y: auto;
|
|
128
|
+
padding: var(--space-md);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
#appaside-footer {
|
|
132
|
+
padding: var(--space-md);
|
|
133
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
134
|
+
flex-shrink: 0;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/* Footer */
|
|
138
|
+
#appfooter {
|
|
139
|
+
grid-area: footer;
|
|
140
|
+
background: var(--color-surface-elevated);
|
|
141
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
142
|
+
padding: var(--space-sm) var(--space-md);
|
|
143
|
+
display: flex;
|
|
144
|
+
justify-content: space-between;
|
|
145
|
+
align-items: center;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
#appfooter-content {
|
|
149
|
+
flex: 1;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
#appfooter-legal {
|
|
153
|
+
flex-shrink: 0;
|
|
154
|
+
font-size: var(--font-size-sm);
|
|
155
|
+
color: var(--color-text-secondary);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/* Modal */
|
|
159
|
+
#appmodal {
|
|
160
|
+
position: fixed;
|
|
161
|
+
top: 0;
|
|
162
|
+
left: 0;
|
|
163
|
+
right: 0;
|
|
164
|
+
bottom: 0;
|
|
165
|
+
z-index: 2000;
|
|
166
|
+
display: none;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
#appmodal[aria-hidden="false"] {
|
|
170
|
+
display: flex;
|
|
171
|
+
align-items: center;
|
|
172
|
+
justify-content: center;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
#appmodal-backdrop {
|
|
176
|
+
position: absolute;
|
|
177
|
+
inset: 0;
|
|
178
|
+
background: rgba(0, 0, 0, 0.6);
|
|
179
|
+
backdrop-filter: blur(4px);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
#appmodal-container {
|
|
183
|
+
position: relative;
|
|
184
|
+
background: var(--color-surface-elevated);
|
|
185
|
+
border-radius: var(--radius-lg);
|
|
186
|
+
box-shadow: var(--shadow-2xl);
|
|
187
|
+
max-width: 90vw;
|
|
188
|
+
max-height: 90vh;
|
|
189
|
+
display: flex;
|
|
190
|
+
flex-direction: column;
|
|
191
|
+
overflow: hidden;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
#appmodal-header {
|
|
195
|
+
padding: var(--space-lg);
|
|
196
|
+
border-bottom: var(--border-width) solid var(--color-border);
|
|
197
|
+
flex-shrink: 0;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
#appmodal-content {
|
|
201
|
+
flex: 1;
|
|
202
|
+
overflow-y: auto;
|
|
203
|
+
padding: var(--space-lg);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
#appmodal-footer {
|
|
207
|
+
padding: var(--space-lg);
|
|
208
|
+
border-top: var(--border-width) solid var(--color-border);
|
|
209
|
+
flex-shrink: 0;
|
|
210
|
+
display: flex;
|
|
211
|
+
gap: var(--space-sm);
|
|
212
|
+
justify-content: flex-end;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Tablet (landscape) */
|
|
216
|
+
@media (max-width: 1280px) {
|
|
217
|
+
#app {
|
|
218
|
+
grid-template-columns: 200px 1fr 250px;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* Tablet (portrait) - hide aside */
|
|
223
|
+
@media (max-width: 1024px) {
|
|
224
|
+
#app {
|
|
225
|
+
grid-template-areas:
|
|
226
|
+
"header header"
|
|
227
|
+
"subheader subheader"
|
|
228
|
+
"sidebar main"
|
|
229
|
+
"footer footer";
|
|
230
|
+
grid-template-columns: 200px 1fr;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
#appaside {
|
|
234
|
+
position: fixed;
|
|
235
|
+
top: 120px;
|
|
236
|
+
right: 0;
|
|
237
|
+
bottom: 60px;
|
|
238
|
+
width: 280px;
|
|
239
|
+
z-index: 98;
|
|
240
|
+
transform: translateX(100%);
|
|
241
|
+
box-shadow: var(--shadow-xl);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
#appaside.visible {
|
|
245
|
+
transform: translateX(0);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
#appsubheader {
|
|
249
|
+
padding: var(--space-xs) var(--space-sm);
|
|
250
|
+
gap: var(--space-md);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/* Mobile */
|
|
255
|
+
@media (max-width: 768px) {
|
|
256
|
+
#app {
|
|
257
|
+
grid-template-areas:
|
|
258
|
+
"header"
|
|
259
|
+
"subheader"
|
|
260
|
+
"main"
|
|
261
|
+
"footer";
|
|
262
|
+
grid-template-columns: 1fr;
|
|
263
|
+
grid-template-rows: 60px auto 1fr 60px;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
#appsidebar {
|
|
267
|
+
position: fixed;
|
|
268
|
+
top: 60px;
|
|
269
|
+
left: 0;
|
|
270
|
+
bottom: 60px;
|
|
271
|
+
width: 280px;
|
|
272
|
+
max-width: 80vw;
|
|
273
|
+
z-index: 99;
|
|
274
|
+
transform: translateX(-100%);
|
|
275
|
+
box-shadow: var(--shadow-xl);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
#appsidebar.visible {
|
|
279
|
+
transform: translateX(0);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
#appaside {
|
|
283
|
+
top: 60px;
|
|
284
|
+
width: 280px;
|
|
285
|
+
max-width: 80vw;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
#appmain {
|
|
289
|
+
padding: var(--space-md);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
#appheader {
|
|
293
|
+
padding: var(--space-xs) var(--space-md);
|
|
294
|
+
gap: var(--space-md);
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
#appsubheader {
|
|
298
|
+
padding: var(--space-xs) var(--space-sm);
|
|
299
|
+
font-size: var(--font-size-sm);
|
|
300
|
+
flex-wrap: wrap;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
#appfooter {
|
|
304
|
+
padding: var(--space-xs) var(--space-sm);
|
|
305
|
+
font-size: var(--font-size-sm);
|
|
306
|
+
flex-direction: column;
|
|
307
|
+
gap: var(--space-xs);
|
|
308
|
+
text-align: center;
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
/* Small mobile */
|
|
313
|
+
@media (max-width: 480px) {
|
|
314
|
+
#appsidebar,
|
|
315
|
+
#appaside {
|
|
316
|
+
width: 100%;
|
|
317
|
+
max-width: 100vw;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
#appmain {
|
|
321
|
+
padding: var(--space-sm);
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
#appheader,
|
|
325
|
+
#appsubheader,
|
|
326
|
+
#appfooter {
|
|
327
|
+
padding: var(--space-xs) var(--space-sm);
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
#appmodal-container {
|
|
331
|
+
max-width: 95vw;
|
|
332
|
+
max-height: 95vh;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple reactive state container
|
|
3
|
+
*/
|
|
4
|
+
export declare class State<T> {
|
|
5
|
+
private _value;
|
|
6
|
+
private _subscribers;
|
|
7
|
+
constructor(initialValue: T);
|
|
8
|
+
/**
|
|
9
|
+
* Get current value
|
|
10
|
+
*/
|
|
11
|
+
get value(): T;
|
|
12
|
+
/**
|
|
13
|
+
* Set new value and notify subscribers
|
|
14
|
+
*/
|
|
15
|
+
set(newValue: T): void;
|
|
16
|
+
/**
|
|
17
|
+
* Subscribe to value changes
|
|
18
|
+
*/
|
|
19
|
+
subscribe(callback: (value: T) => void): () => void;
|
|
20
|
+
/**
|
|
21
|
+
* Notify all subscribers
|
|
22
|
+
*/
|
|
23
|
+
private _notify;
|
|
24
|
+
/**
|
|
25
|
+
* Helper methods for numeric state
|
|
26
|
+
*/
|
|
27
|
+
increment(): void;
|
|
28
|
+
decrement(): void;
|
|
29
|
+
add(amount: number): void;
|
|
30
|
+
subtract(amount: number): void;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Factory function to create reactive state
|
|
34
|
+
*/
|
|
35
|
+
export declare function state<T>(initialValue: T): State<T>;
|
|
36
|
+
//# sourceMappingURL=state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"state.d.ts","sourceRoot":"","sources":["state.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,qBAAa,KAAK,CAAC,CAAC;IAChB,OAAO,CAAC,MAAM,CAAI;IAClB,OAAO,CAAC,YAAY,CAAsC;gBAE9C,YAAY,EAAE,CAAC;IAI3B;;OAEG;IACH,IAAI,KAAK,IAAI,CAAC,CAEb;IAED;;OAEG;IACH,GAAG,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI;IAKtB;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,GAAG,MAAM,IAAI;IAQnD;;OAEG;IACH,OAAO,CAAC,OAAO;IAIf;;OAEG;IACH,SAAS,IAAI,IAAI;IAMjB,SAAS,IAAI,IAAI;IAMjB,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMzB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;CAKjC;AAED;;GAEG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAElD"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Simple reactive state container
|
|
3
|
+
*/
|
|
4
|
+
export class State {
|
|
5
|
+
constructor(initialValue) {
|
|
6
|
+
this._subscribers = new Set();
|
|
7
|
+
this._value = initialValue;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Get current value
|
|
11
|
+
*/
|
|
12
|
+
get value() {
|
|
13
|
+
return this._value;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Set new value and notify subscribers
|
|
17
|
+
*/
|
|
18
|
+
set(newValue) {
|
|
19
|
+
this._value = newValue;
|
|
20
|
+
this._notify();
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Subscribe to value changes
|
|
24
|
+
*/
|
|
25
|
+
subscribe(callback) {
|
|
26
|
+
this._subscribers.add(callback);
|
|
27
|
+
// Call immediately with current value
|
|
28
|
+
callback(this._value);
|
|
29
|
+
// Return unsubscribe function
|
|
30
|
+
return () => this._subscribers.delete(callback);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Notify all subscribers
|
|
34
|
+
*/
|
|
35
|
+
_notify() {
|
|
36
|
+
this._subscribers.forEach(callback => callback(this._value));
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Helper methods for numeric state
|
|
40
|
+
*/
|
|
41
|
+
increment() {
|
|
42
|
+
if (typeof this._value === 'number') {
|
|
43
|
+
this.set((this._value + 1));
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
decrement() {
|
|
47
|
+
if (typeof this._value === 'number') {
|
|
48
|
+
this.set((this._value - 1));
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
add(amount) {
|
|
52
|
+
if (typeof this._value === 'number') {
|
|
53
|
+
this.set((this._value + amount));
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
subtract(amount) {
|
|
57
|
+
if (typeof this._value === 'number') {
|
|
58
|
+
this.set((this._value - amount));
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Factory function to create reactive state
|
|
64
|
+
*/
|
|
65
|
+
export function state(initialValue) {
|
|
66
|
+
return new State(initialValue);
|
|
67
|
+
}
|