@adea-ai/ui 0.94.0 → 0.95.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.
Files changed (62) hide show
  1. package/README.md +43 -1
  2. package/dist/NOTICE +10 -0
  3. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  4. package/dist/components/composites/action-button/action-button.js +2 -0
  5. package/dist/components/composites/action-button/action-button.js.map +1 -1
  6. package/dist/components/composites/scene-controls/index.d.ts +3 -0
  7. package/dist/components/composites/scene-controls/index.d.ts.map +1 -0
  8. package/dist/components/composites/scene-controls/index.js +2 -0
  9. package/dist/components/composites/scene-controls/scene-controls.d.ts +41 -0
  10. package/dist/components/composites/scene-controls/scene-controls.d.ts.map +1 -0
  11. package/dist/components/composites/scene-controls/scene-controls.js +291 -0
  12. package/dist/components/composites/scene-controls/scene-controls.js.map +1 -0
  13. package/dist/components/ui/button/button.d.ts +2 -1
  14. package/dist/components/ui/button/button.d.ts.map +1 -1
  15. package/dist/components/ui/button/button.js +9 -3
  16. package/dist/components/ui/button/button.js.map +1 -1
  17. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  18. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  19. package/dist/components/ui/toggle/toggle.js +3 -1
  20. package/dist/components/ui/toggle/toggle.js.map +1 -1
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -1
  24. package/dist/lib/tokens.d.ts.map +1 -1
  25. package/dist/lib/tokens.js +10 -0
  26. package/dist/lib/tokens.js.map +1 -1
  27. package/dist/lib/utils.d.ts.map +1 -1
  28. package/dist/lib/utils.js +2 -0
  29. package/dist/lib/utils.js.map +1 -1
  30. package/dist/lib/variants.d.ts +5 -2
  31. package/dist/lib/variants.d.ts.map +1 -1
  32. package/dist/lib/variants.js +7 -3
  33. package/dist/lib/variants.js.map +1 -1
  34. package/dist/lint/index.d.ts.map +1 -1
  35. package/dist/lint.js +2 -1
  36. package/dist/lint.js.map +1 -1
  37. package/dist/r/registry.json +24 -0
  38. package/dist/r/scene-controls.json +24 -0
  39. package/dist/r/src/components/composites/action-button/action-button.tsx +2 -0
  40. package/dist/r/src/components/composites/scene-controls/index.ts +7 -0
  41. package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +282 -0
  42. package/dist/r/src/components/ui/button/button.tsx +20 -2
  43. package/dist/r/src/components/ui/toggle/toggle.tsx +2 -0
  44. package/dist/r/src/lib/tokens.ts +10 -0
  45. package/dist/r/src/lib/utils.ts +2 -0
  46. package/dist/r/src/lib/variants.ts +5 -2
  47. package/dist/r/src/styles/base.css +29 -9
  48. package/dist/r/src/styles/theme.css +8 -2
  49. package/package.json +2 -1
  50. package/registry.json +24 -0
  51. package/src/components/composites/action-button/action-button.tsx +2 -0
  52. package/src/components/composites/scene-controls/index.ts +7 -0
  53. package/src/components/composites/scene-controls/scene-controls.tsx +282 -0
  54. package/src/components/ui/button/button.tsx +20 -2
  55. package/src/components/ui/toggle/toggle.tsx +2 -0
  56. package/src/index.ts +1 -0
  57. package/src/lib/tokens.ts +10 -0
  58. package/src/lib/utils.ts +2 -0
  59. package/src/lib/variants.ts +5 -2
  60. package/src/lint/index.ts +1 -0
  61. package/src/styles/base.css +29 -9
  62. package/src/styles/theme.css +8 -2
@@ -250,6 +250,18 @@
250
250
  }
251
251
  }
252
252
 
253
+ /**
254
+ * Opt into the stable 2xl control rung only when a coarse pointer is available.
255
+ * `any-pointer` intentionally includes hybrid devices without changing the
256
+ * glyph or desktop density of the selected Button size.
257
+ */
258
+ @utility touch-target-comfortable {
259
+ @media (any-pointer: coarse) {
260
+ min-inline-size: var(--control-height-2xl);
261
+ min-block-size: var(--control-height-2xl);
262
+ }
263
+ }
264
+
253
265
  /**
254
266
  * The drag region of a frameless desktop window.
255
267
  *
@@ -422,9 +434,9 @@
422
434
  }
423
435
  }
424
436
 
425
- /* The glass treatment used by the top bar, the rail, and floating overlays.
426
- `--glass-*` are private: a consumer chooses *whether* to be glassy through
427
- the component prop, not by reaching for these. */
437
+ /* Glass treatments used by the top bar, rail, scene-control groups and floating
438
+ overlays. Consumers use the owning component; shared composites use the
439
+ named utility instead of restyling a primitive. */
428
440
  @utility glass-panel {
429
441
  background: color-mix(in oklch, var(--chrome) calc(var(--chrome-alpha) * 100%), transparent);
430
442
  backdrop-filter: blur(18px) saturate(1.6);
@@ -438,6 +450,12 @@
438
450
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
439
451
  }
440
452
 
453
+ @utility glass-scrim {
454
+ background: color-mix(in oklch, var(--scrim) 20%, transparent);
455
+ backdrop-filter: blur(2px);
456
+ -webkit-backdrop-filter: blur(2px);
457
+ }
458
+
441
459
  /* The focus ring. Applied by components that cannot use the global outline
442
460
  because they need the ring to follow their own radius. */
443
461
  @utility focus-ring {
@@ -657,7 +675,8 @@
657
675
 
658
676
  @media (prefers-reduced-transparency: reduce) {
659
677
  .glass-panel,
660
- .glass-surface {
678
+ .glass-surface,
679
+ .glass-scrim {
661
680
  backdrop-filter: none !important;
662
681
  -webkit-backdrop-filter: none !important;
663
682
  background: var(--background) !important;
@@ -670,18 +689,19 @@
670
689
  }
671
690
 
672
691
  .glass-panel,
673
- .glass-surface {
692
+ .glass-surface,
693
+ .glass-scrim {
674
694
  background: var(--background) !important;
675
695
  border: 1px solid var(--foreground) !important;
676
696
  }
677
697
  }
678
698
 
679
- /* An engine without backdrop-filter would render the glass tint alone, which
680
- is 3-8% alpha — effectively a transparent panel. Fall back to a solid
681
- surface instead, keeping borders and shadows so panels stay delimited. */
699
+ /* Without backdrop-filter there is no blurred context behind a glass surface.
700
+ Fall back to a solid surface so glass panels and scrim groups stay legible. */
682
701
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
683
702
  .glass-panel,
684
- .glass-surface {
703
+ .glass-surface,
704
+ .glass-scrim {
685
705
  background: var(--background) !important;
686
706
  }
687
707
  }
@@ -582,6 +582,7 @@
582
582
  --control-height-md: 2rem; /* 32px — form default */
583
583
  --control-height-lg: 2.25rem; /* 36px */
584
584
  --control-height-xl: 2.5rem; /* 40px */
585
+ --control-height-2xl: 3rem; /* 48px — stable touch target */
585
586
 
586
587
  --control-padding-2xs: 0.375rem;
587
588
  --control-padding-xs: 0.5rem;
@@ -589,6 +590,7 @@
589
590
  --control-padding-md: 0.75rem;
590
591
  --control-padding-lg: 0.875rem;
591
592
  --control-padding-xl: 1rem;
593
+ --control-padding-2xl: 1.125rem;
592
594
 
593
595
  --row-height-sm: 1.75rem;
594
596
  --row-height-md: 2rem;
@@ -646,14 +648,15 @@
646
648
  --z-toast: 180;
647
649
  }
648
650
 
649
- /* Compact density: the whole control ladder one rung tighter.
651
+ /* Compact density: the standard control ladder one rung tighter.
650
652
  *
651
653
  * It is a *shift* rather than a second set of numbers chosen by eye, so the
652
654
  * relationship between the rungs is identical at either density and a control keeps
653
655
  * its place in the ladder. Height moves by 4px per rung and padding by 2px, which is
654
656
  * the step each already uses, and the row heights move by the same 4px. A `sm`
655
657
  * control goes from 28px to 24px — the `xs` control's comfortable height. That is the
656
- * intended meaning, not an oversight.
658
+ * intended meaning, not an oversight. The `2xl` touch target is intentionally
659
+ * omitted here so it stays at least 48px at either density.
657
660
  *
658
661
  * 16px at `2xs` is the floor. One rung below it would be 12px, under the minimum
659
662
  * comfortable touch target, so the ladder compresses from the bottom rather than
@@ -833,6 +836,7 @@
833
836
  --height-control-md: var(--control-height-md);
834
837
  --height-control-lg: var(--control-height-lg);
835
838
  --height-control-xl: var(--control-height-xl);
839
+ --height-control-2xl: var(--control-height-2xl);
836
840
  /* Tailwind `size-*` prefers --size-* and then --spacing-*. Without this
837
841
  bridge, square icon controls use the padding ladder below for both axes.
838
842
  Height, square size and inline padding remain distinct semantic contracts. */
@@ -842,6 +846,7 @@
842
846
  --size-control-md: var(--control-height-md);
843
847
  --size-control-lg: var(--control-height-lg);
844
848
  --size-control-xl: var(--control-height-xl);
849
+ --size-control-2xl: var(--control-height-2xl);
845
850
  --height-row-sm: var(--row-height-sm);
846
851
  --height-row-md: var(--row-height-md);
847
852
  --height-row-lg: var(--row-height-lg);
@@ -855,6 +860,7 @@
855
860
  --spacing-control-md: var(--control-padding-md);
856
861
  --spacing-control-lg: var(--control-padding-lg);
857
862
  --spacing-control-xl: var(--control-padding-xl);
863
+ --spacing-control-2xl: var(--control-padding-2xl);
858
864
 
859
865
  --width-rail: var(--rail-width);
860
866
  --width-rail-expanded: var(--rail-width-expanded);