juxscript 1.1.2 → 1.1.4

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.
Files changed (67) hide show
  1. package/machinery/build3.js +7 -91
  2. package/machinery/compiler3.js +3 -209
  3. package/machinery/config.js +93 -6
  4. package/machinery/serve.js +255 -0
  5. package/machinery/watcher.js +49 -161
  6. package/package.json +19 -5
  7. package/lib/components/alert.ts +0 -200
  8. package/lib/components/app.ts +0 -247
  9. package/lib/components/badge.ts +0 -101
  10. package/lib/components/base/BaseComponent.ts +0 -421
  11. package/lib/components/base/FormInput.ts +0 -227
  12. package/lib/components/button.ts +0 -178
  13. package/lib/components/card.ts +0 -173
  14. package/lib/components/chart.ts +0 -231
  15. package/lib/components/checkbox.ts +0 -242
  16. package/lib/components/code.ts +0 -123
  17. package/lib/components/container.ts +0 -140
  18. package/lib/components/data.ts +0 -135
  19. package/lib/components/datepicker.ts +0 -234
  20. package/lib/components/dialog.ts +0 -172
  21. package/lib/components/divider.ts +0 -100
  22. package/lib/components/dropdown.ts +0 -186
  23. package/lib/components/element.ts +0 -267
  24. package/lib/components/fileupload.ts +0 -309
  25. package/lib/components/grid.ts +0 -291
  26. package/lib/components/guard.ts +0 -92
  27. package/lib/components/heading.ts +0 -96
  28. package/lib/components/helpers.ts +0 -41
  29. package/lib/components/hero.ts +0 -224
  30. package/lib/components/icon.ts +0 -178
  31. package/lib/components/icons.ts +0 -464
  32. package/lib/components/include.ts +0 -410
  33. package/lib/components/input.ts +0 -457
  34. package/lib/components/list.ts +0 -419
  35. package/lib/components/loading.ts +0 -100
  36. package/lib/components/menu.ts +0 -275
  37. package/lib/components/modal.ts +0 -284
  38. package/lib/components/nav.ts +0 -257
  39. package/lib/components/paragraph.ts +0 -97
  40. package/lib/components/progress.ts +0 -159
  41. package/lib/components/radio.ts +0 -278
  42. package/lib/components/req.ts +0 -303
  43. package/lib/components/script.ts +0 -41
  44. package/lib/components/select.ts +0 -252
  45. package/lib/components/sidebar.ts +0 -275
  46. package/lib/components/style.ts +0 -41
  47. package/lib/components/switch.ts +0 -246
  48. package/lib/components/table.ts +0 -1249
  49. package/lib/components/tabs.ts +0 -250
  50. package/lib/components/theme-toggle.ts +0 -293
  51. package/lib/components/tooltip.ts +0 -144
  52. package/lib/components/view.ts +0 -190
  53. package/lib/components/write.ts +0 -272
  54. package/lib/layouts/default.css +0 -260
  55. package/lib/layouts/figma.css +0 -334
  56. package/lib/reactivity/state.ts +0 -78
  57. package/lib/utils/fetch.ts +0 -553
  58. package/machinery/ast.js +0 -347
  59. package/machinery/build.js +0 -466
  60. package/machinery/bundleAssets.js +0 -0
  61. package/machinery/bundleJux.js +0 -0
  62. package/machinery/bundleVendors.js +0 -0
  63. package/machinery/doc-generator.js +0 -136
  64. package/machinery/imports.js +0 -155
  65. package/machinery/server.js +0 -166
  66. package/machinery/ts-shim.js +0 -46
  67. package/machinery/validators/file-validator.js +0 -123
@@ -1,334 +0,0 @@
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
- }
@@ -1,78 +0,0 @@
1
- /**
2
- * Simple reactive state container
3
- */
4
- export class State<T> {
5
- private _value: T;
6
- private _subscribers: Set<(value: T) => void> = new Set();
7
-
8
- constructor(initialValue: T) {
9
- this._value = initialValue;
10
- }
11
-
12
- /**
13
- * Get current value
14
- */
15
- get value(): T {
16
- return this._value;
17
- }
18
-
19
- /**
20
- * Set new value and notify subscribers
21
- */
22
- set(newValue: T): void {
23
- this._value = newValue;
24
- this._notify();
25
- }
26
-
27
- /**
28
- * Subscribe to value changes
29
- */
30
- subscribe(callback: (value: T) => void): () => void {
31
- this._subscribers.add(callback);
32
- // Call immediately with current value
33
- callback(this._value);
34
- // Return unsubscribe function
35
- return () => this._subscribers.delete(callback);
36
- }
37
-
38
- /**
39
- * Notify all subscribers
40
- */
41
- private _notify(): void {
42
- this._subscribers.forEach(callback => callback(this._value));
43
- }
44
-
45
- /**
46
- * Helper methods for numeric state
47
- */
48
- increment(): void {
49
- if (typeof this._value === 'number') {
50
- this.set((this._value + 1) as T);
51
- }
52
- }
53
-
54
- decrement(): void {
55
- if (typeof this._value === 'number') {
56
- this.set((this._value - 1) as T);
57
- }
58
- }
59
-
60
- add(amount: number): void {
61
- if (typeof this._value === 'number') {
62
- this.set((this._value + amount) as T);
63
- }
64
- }
65
-
66
- subtract(amount: number): void {
67
- if (typeof this._value === 'number') {
68
- this.set((this._value - amount) as T);
69
- }
70
- }
71
- }
72
-
73
- /**
74
- * Factory function to create reactive state
75
- */
76
- export function state<T>(initialValue: T): State<T> {
77
- return new State(initialValue);
78
- }