juxscript 1.0.34 → 1.0.36

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "juxscript",
3
- "version": "1.0.34",
3
+ "version": "1.0.36",
4
4
  "type": "module",
5
5
  "description": "A JavaScript UX authorship platform",
6
6
  "main": "lib/jux.js",
@@ -257,4 +257,150 @@ body {
257
257
  #appfooter {
258
258
  padding: var(--space-md) var(--space-lg);
259
259
  }
260
+ }
261
+
262
+ /* ============================================
263
+ COMPONENT STYLES
264
+ ============================================ */
265
+
266
+ /* Buttons */
267
+ .jux-button {
268
+ display: inline-flex;
269
+ align-items: center;
270
+ justify-content: center;
271
+ padding: 0 var(--space-lg);
272
+ height: 36px;
273
+ font-size: 0.875rem;
274
+ font-weight: 500;
275
+ font-family: var(--font-family-base);
276
+ color: #ffffff;
277
+ background: #0ea5e9;
278
+ border: none;
279
+ border-radius: var(--radius-md);
280
+ cursor: pointer;
281
+ transition: background-color var(--transition-base), transform 100ms ease;
282
+ user-select: none;
283
+ white-space: nowrap;
284
+ }
285
+
286
+ .jux-button:hover {
287
+ background: #0284c7;
288
+ }
289
+
290
+ .jux-button:active {
291
+ transform: scale(0.98);
292
+ }
293
+
294
+ .jux-button:focus {
295
+ outline: 2px solid #0ea5e9;
296
+ outline-offset: 2px;
297
+ }
298
+
299
+ .jux-button:disabled {
300
+ opacity: 0.5;
301
+ cursor: not-allowed;
302
+ }
303
+
304
+ /* Button variants */
305
+ .jux-button-secondary {
306
+ background: var(--color-surface-hover);
307
+ color: var(--color-text-primary);
308
+ border: var(--border-width) solid var(--color-border);
309
+ }
310
+
311
+ .jux-button-secondary:hover {
312
+ background: var(--color-surface-active);
313
+ border-color: var(--color-border-hover);
314
+ }
315
+
316
+ .jux-button-ghost {
317
+ background: transparent;
318
+ color: var(--color-text-secondary);
319
+ }
320
+
321
+ .jux-button-ghost:hover {
322
+ background: var(--color-surface-hover);
323
+ }
324
+
325
+ /* Button sizes */
326
+ .jux-button-small {
327
+ height: 28px;
328
+ padding: 0 var(--space-md);
329
+ font-size: 0.8125rem;
330
+ }
331
+
332
+ .jux-button-large {
333
+ height: 44px;
334
+ padding: 0 var(--space-2xl);
335
+ font-size: 1rem;
336
+ }
337
+
338
+ /* Code blocks */
339
+ .jux-code {
340
+ background: var(--color-surface-base);
341
+ border: var(--border-width) solid var(--color-border);
342
+ border-radius: var(--radius-lg);
343
+ padding: var(--space-lg);
344
+ font-family: var(--font-family-mono);
345
+ font-size: 0.8125rem;
346
+ line-height: 1.6;
347
+ overflow-x: auto;
348
+ margin: var(--space-xl) 0;
349
+ }
350
+
351
+ /* Hero */
352
+ .jux-hero {
353
+ margin-bottom: var(--space-3xl);
354
+ }
355
+
356
+ .jux-hero h1 {
357
+ font-size: 2.5rem;
358
+ font-weight: 700;
359
+ line-height: 1.2;
360
+ margin-bottom: var(--space-md);
361
+ letter-spacing: -0.02em;
362
+ }
363
+
364
+ .jux-hero p {
365
+ font-size: 1.125rem;
366
+ color: var(--color-text-secondary);
367
+ line-height: 1.6;
368
+ }
369
+
370
+ /* Dividers */
371
+ .jux-divider {
372
+ height: 1px;
373
+ background: var(--color-border);
374
+ border: none;
375
+ margin: var(--space-2xl) 0;
376
+ }
377
+
378
+ /* Headings */
379
+ h1, h2, h3, h4, h5, h6 {
380
+ font-weight: 600;
381
+ line-height: 1.3;
382
+ color: var(--color-text-primary);
383
+ }
384
+
385
+ h1 { font-size: 2rem; margin: var(--space-2xl) 0 var(--space-lg) 0; }
386
+ h2 { font-size: 1.5rem; margin: var(--space-2xl) 0 var(--space-md) 0; }
387
+ h3 { font-size: 1.25rem; margin: var(--space-xl) 0 var(--space-md) 0; }
388
+
389
+ /* Paragraphs */
390
+ p {
391
+ line-height: 1.6;
392
+ color: var(--color-text-secondary);
393
+ margin-bottom: var(--space-lg);
394
+ }
395
+
396
+ /* Lists */
397
+ ul, ol {
398
+ padding-left: var(--space-2xl);
399
+ margin-bottom: var(--space-xl);
400
+ }
401
+
402
+ li {
403
+ line-height: 1.6;
404
+ color: var(--color-text-secondary);
405
+ margin-bottom: var(--space-sm);
260
406
  }
package/presets/jux.jux CHANGED
@@ -58,7 +58,7 @@ const count = state(0);
58
58
 
59
59
  jux.button('increment')
60
60
  .label('Click me!')
61
- .bind('click', () => count.value++)
61
+ .bind('click', () => count.set(count.value + 1))
62
62
  .render('#app');
63
63
 
64
64
  jux.paragraph('counter')
@@ -71,7 +71,7 @@ const count = state(0);
71
71
 
72
72
  jux.button('increment')
73
73
  .label('Click me!')
74
- .bind('click', () => count.value++)
74
+ .bind('click', () => count.set(count.value + 1))
75
75
  .style('margin: 1rem 0;')
76
76
  .render('#appmain-content');
77
77