@adea-ai/ui 0.93.2 → 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 (68) 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/layout/side-rail/side-rail.d.ts +1 -1
  14. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  15. package/dist/components/layout/side-rail/side-rail.js +8 -8
  16. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  17. package/dist/components/ui/button/button.d.ts +2 -1
  18. package/dist/components/ui/button/button.d.ts.map +1 -1
  19. package/dist/components/ui/button/button.js +9 -3
  20. package/dist/components/ui/button/button.js.map +1 -1
  21. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  22. package/dist/components/ui/toggle/toggle.d.ts.map +1 -1
  23. package/dist/components/ui/toggle/toggle.js +3 -1
  24. package/dist/components/ui/toggle/toggle.js.map +1 -1
  25. package/dist/index.d.ts +1 -0
  26. package/dist/index.d.ts.map +1 -1
  27. package/dist/index.js +2 -1
  28. package/dist/lib/tokens.d.ts.map +1 -1
  29. package/dist/lib/tokens.js +11 -1
  30. package/dist/lib/tokens.js.map +1 -1
  31. package/dist/lib/utils.d.ts.map +1 -1
  32. package/dist/lib/utils.js +2 -0
  33. package/dist/lib/utils.js.map +1 -1
  34. package/dist/lib/variants.d.ts +5 -2
  35. package/dist/lib/variants.d.ts.map +1 -1
  36. package/dist/lib/variants.js +7 -3
  37. package/dist/lib/variants.js.map +1 -1
  38. package/dist/lint/index.d.ts.map +1 -1
  39. package/dist/lint.js +2 -1
  40. package/dist/lint.js.map +1 -1
  41. package/dist/r/registry.json +24 -0
  42. package/dist/r/scene-controls.json +24 -0
  43. package/dist/r/src/components/composites/action-button/action-button.tsx +2 -0
  44. package/dist/r/src/components/composites/scene-controls/index.ts +7 -0
  45. package/dist/r/src/components/composites/scene-controls/scene-controls.tsx +282 -0
  46. package/dist/r/src/components/layout/side-rail/side-rail.tsx +18 -10
  47. package/dist/r/src/components/ui/button/button.tsx +20 -2
  48. package/dist/r/src/components/ui/toggle/toggle.tsx +2 -0
  49. package/dist/r/src/lib/tokens.ts +11 -1
  50. package/dist/r/src/lib/utils.ts +2 -0
  51. package/dist/r/src/lib/variants.ts +5 -2
  52. package/dist/r/src/styles/base.css +29 -9
  53. package/dist/r/src/styles/theme.css +13 -6
  54. package/package.json +2 -1
  55. package/registry.json +24 -0
  56. package/src/components/composites/action-button/action-button.tsx +2 -0
  57. package/src/components/composites/scene-controls/index.ts +7 -0
  58. package/src/components/composites/scene-controls/scene-controls.tsx +282 -0
  59. package/src/components/layout/side-rail/side-rail.tsx +18 -10
  60. package/src/components/ui/button/button.tsx +20 -2
  61. package/src/components/ui/toggle/toggle.tsx +2 -0
  62. package/src/index.ts +1 -0
  63. package/src/lib/tokens.ts +11 -1
  64. package/src/lib/utils.ts +2 -0
  65. package/src/lib/variants.ts +5 -2
  66. package/src/lint/index.ts +1 -0
  67. package/src/styles/base.css +29 -9
  68. package/src/styles/theme.css +13 -6
@@ -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;
@@ -601,10 +603,11 @@
601
603
  precede every `[data-font]` block for the reason given there. */
602
604
 
603
605
  /* Shell geometry. One place to change how wide a rail or sidebar is, so the two
604
- consumer apps cannot disagree. 74px is the figure KiroCrew's own layout hook
605
- publishes as `RAIL_W_COLLAPSED`; an older comment in that codebase names 58px,
606
- which its shipped behaviour does not use. */
607
- --rail-width: 4.625rem; /* 74px */
606
+ consumer apps cannot disagree. 56px keeps the icon column to its content:
607
+ 20px glyphs centred in a 36px row need less chrome than the 74px the donor's
608
+ layout hook published, and the tighter column returns the difference to the
609
+ canvas. */
610
+ --rail-width: 3.5rem; /* 56px */
608
611
  --rail-width-expanded: 14.75rem; /* 236px */
609
612
  --rail-item-height: 2.25rem;
610
613
  --sidebar-width: 16rem; /* 256px */
@@ -645,14 +648,15 @@
645
648
  --z-toast: 180;
646
649
  }
647
650
 
648
- /* Compact density: the whole control ladder one rung tighter.
651
+ /* Compact density: the standard control ladder one rung tighter.
649
652
  *
650
653
  * It is a *shift* rather than a second set of numbers chosen by eye, so the
651
654
  * relationship between the rungs is identical at either density and a control keeps
652
655
  * its place in the ladder. Height moves by 4px per rung and padding by 2px, which is
653
656
  * the step each already uses, and the row heights move by the same 4px. A `sm`
654
657
  * control goes from 28px to 24px — the `xs` control's comfortable height. That is the
655
- * 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.
656
660
  *
657
661
  * 16px at `2xs` is the floor. One rung below it would be 12px, under the minimum
658
662
  * comfortable touch target, so the ladder compresses from the bottom rather than
@@ -832,6 +836,7 @@
832
836
  --height-control-md: var(--control-height-md);
833
837
  --height-control-lg: var(--control-height-lg);
834
838
  --height-control-xl: var(--control-height-xl);
839
+ --height-control-2xl: var(--control-height-2xl);
835
840
  /* Tailwind `size-*` prefers --size-* and then --spacing-*. Without this
836
841
  bridge, square icon controls use the padding ladder below for both axes.
837
842
  Height, square size and inline padding remain distinct semantic contracts. */
@@ -841,6 +846,7 @@
841
846
  --size-control-md: var(--control-height-md);
842
847
  --size-control-lg: var(--control-height-lg);
843
848
  --size-control-xl: var(--control-height-xl);
849
+ --size-control-2xl: var(--control-height-2xl);
844
850
  --height-row-sm: var(--row-height-sm);
845
851
  --height-row-md: var(--row-height-md);
846
852
  --height-row-lg: var(--row-height-lg);
@@ -854,6 +860,7 @@
854
860
  --spacing-control-md: var(--control-padding-md);
855
861
  --spacing-control-lg: var(--control-padding-lg);
856
862
  --spacing-control-xl: var(--control-padding-xl);
863
+ --spacing-control-2xl: var(--control-padding-2xl);
857
864
 
858
865
  --width-rail: var(--rail-width);
859
866
  --width-rail-expanded: var(--rail-width-expanded);