@adea-ai/ui 0.18.2 → 0.18.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  /** The canonical Adea mark used by web, desktop, and dialogs. */
3
3
  export function WorkspaceLogo(props) {
4
- return (_jsxs("svg", { viewBox: "0 0 64 64", role: "img", "aria-label": "Adea", ...props, children: [_jsx("rect", { width: "64", height: "64", rx: "16", fill: "#111827" }), _jsx("path", { d: "M10 16h7v13h9V16h7v32h-7V36h-9v12h-7z", fill: "#f8fafc" }), _jsx("path", { d: "M45 16c-7.18 0-13 6-13 16s5.82 16 13 16c7.18 0 13-6 13-16s-5.82-16-13-16Zm0 7c3.42 0 6 3.46 6 9s-2.58 9-6 9-6-3.46-6-9 2.58-9 6-9Z", fill: "#f8fafc", fillRule: "evenodd" }), _jsx("path", { d: "m45 35 11 11-4 4-11-11z", fill: "#f8fafc" })] }));
4
+ return (_jsxs("svg", { viewBox: "0 0 64 64", role: "img", "aria-label": "Adea", ...props, children: [_jsx("rect", { width: "64", height: "64", rx: "16", className: "fill-[var(--workspace-logo-surface)]" }), _jsx("path", { d: "M10 16h7v13h9V16h7v32h-7V36h-9v12h-7z", className: "fill-[var(--workspace-logo-foreground)]" }), _jsx("path", { d: "M45 16c-7.18 0-13 6-13 16s5.82 16 13 16c7.18 0 13-6 13-16s-5.82-16-13-16Zm0 7c3.42 0 6 3.46 6 9s-2.58 9-6 9-6-3.46-6-9 2.58-9 6-9Z", fillRule: "evenodd", className: "fill-[var(--workspace-logo-foreground)]" }), _jsx("path", { d: "m45 35 11 11-4 4-11-11z", className: "fill-[var(--workspace-logo-foreground)]" })] }));
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/ui",
3
- "version": "0.18.2",
3
+ "version": "0.18.4",
4
4
  "description": "Shared UI kit for Adea: Base UI-backed shadcn primitives, workspace shells, and theme styles.",
5
5
  "keywords": [
6
6
  "base-ui",
@@ -4,14 +4,17 @@ import type { SVGProps } from 'react'
4
4
  export function WorkspaceLogo(props: SVGProps<SVGSVGElement>) {
5
5
  return (
6
6
  <svg viewBox="0 0 64 64" role="img" aria-label="Adea" {...props}>
7
- <rect width="64" height="64" rx="16" fill="#111827" />
8
- <path d="M10 16h7v13h9V16h7v32h-7V36h-9v12h-7z" fill="#f8fafc" />
7
+ <rect width="64" height="64" rx="16" className="fill-[var(--workspace-logo-surface)]" />
8
+ <path
9
+ d="M10 16h7v13h9V16h7v32h-7V36h-9v12h-7z"
10
+ className="fill-[var(--workspace-logo-foreground)]"
11
+ />
9
12
  <path
10
13
  d="M45 16c-7.18 0-13 6-13 16s5.82 16 13 16c7.18 0 13-6 13-16s-5.82-16-13-16Zm0 7c3.42 0 6 3.46 6 9s-2.58 9-6 9-6-3.46-6-9 2.58-9 6-9Z"
11
- fill="#f8fafc"
12
14
  fillRule="evenodd"
15
+ className="fill-[var(--workspace-logo-foreground)]"
13
16
  />
14
- <path d="m45 35 11 11-4 4-11-11z" fill="#f8fafc" />
17
+ <path d="m45 35 11 11-4 4-11-11z" className="fill-[var(--workspace-logo-foreground)]" />
15
18
  </svg>
16
19
  )
17
20
  }
@@ -60,7 +60,7 @@
60
60
  border-radius: 0.65rem;
61
61
  background: var(--popover);
62
62
  color: var(--popover-foreground);
63
- box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 0.18);
63
+ box-shadow: var(--hq-shell-shadow-popover);
64
64
  }
65
65
 
66
66
  .global-rail__workspace-menu > button {
@@ -183,6 +183,22 @@
183
183
  --cw-accent-contrast: var(--primary-foreground);
184
184
  --cw-danger: var(--destructive);
185
185
  --cw-focus: var(--ring);
186
+ /* Notice, priority, and status colors, plus elevation. These were literals
187
+ scattered through the rules below; a theme restates them here. The `-tint`
188
+ token feeds the mixed background so it keeps the light hue in both themes,
189
+ while the text token flips. */
190
+ --cw-notice: #d97706;
191
+ --cw-priority-high-tint: #a34f00;
192
+ --cw-priority-high: #a34f00;
193
+ --cw-warning-border: #b7791f;
194
+ --cw-warning-foreground: #8a4b08;
195
+ --cw-warning-surface: #fff4d6;
196
+ --cw-shadow-subtle: 0 0.15rem 0.4rem rgb(0 0 0 / 0.04);
197
+ --cw-shadow-raised: 0 0.35rem 1.2rem rgb(0 0 0 / 0.07);
198
+ --cw-shadow-floating: 0 12px 30px rgb(0 0 0 / 0.18);
199
+ --cw-shadow-modal: 0 24px 70px rgb(0 0 0 / 0.28);
200
+ --cw-shadow-drawer: 12px 0 38px rgb(0 0 0 / 0.25);
201
+ --cw-scrim: rgb(0 0 0 / 0.58);
186
202
  }
187
203
 
188
204
  .conventional-workspace {
@@ -644,15 +660,15 @@
644
660
  gap: 0.65rem;
645
661
  flex: none;
646
662
  padding: 0.65rem 1rem;
647
- border-bottom: 1px solid color-mix(in srgb, #d97706 45%, transparent);
648
- background: color-mix(in srgb, #d97706 12%, var(--cw-main));
663
+ border-bottom: 1px solid color-mix(in srgb, var(--cw-notice) 45%, transparent);
664
+ background: color-mix(in srgb, var(--cw-notice) 12%, var(--cw-main));
649
665
  color: var(--cw-text);
650
666
  }
651
667
  .conventional-session-notice > svg {
652
668
  width: 1.1rem;
653
669
  height: 1.1rem;
654
670
  margin-top: 0.15rem;
655
- color: #d97706;
671
+ color: var(--cw-notice);
656
672
  flex: none;
657
673
  }
658
674
  .conventional-session-notice h2 {
@@ -676,7 +692,7 @@
676
692
  cursor: pointer;
677
693
  }
678
694
  .conventional-session-notice button:hover {
679
- background: color-mix(in srgb, #d97706 18%, transparent);
695
+ background: color-mix(in srgb, var(--cw-notice) 18%, transparent);
680
696
  color: var(--cw-text);
681
697
  }
682
698
  .conventional-session-notice button svg {
@@ -942,7 +958,7 @@
942
958
  border: 1px solid var(--cw-border);
943
959
  border-radius: 0.2rem 1rem 1rem 1rem;
944
960
  background: var(--cw-surface);
945
- box-shadow: 0 0.15rem 0.4rem rgb(0 0 0 / 0.04);
961
+ box-shadow: var(--cw-shadow-subtle);
946
962
  }
947
963
  .conventional-message--user .conventional-message__bubble {
948
964
  margin-left: auto;
@@ -1109,7 +1125,7 @@
1109
1125
  border: 1px solid var(--cw-border);
1110
1126
  border-radius: 1.35rem;
1111
1127
  background: var(--cw-surface);
1112
- box-shadow: 0 0.35rem 1.2rem rgb(0 0 0 / 0.07);
1128
+ box-shadow: var(--cw-shadow-raised);
1113
1129
  }
1114
1130
  .conventional-composer__context {
1115
1131
  padding: 0.45rem 0.9rem;
@@ -1262,7 +1278,7 @@
1262
1278
  border: 1px solid var(--cw-border);
1263
1279
  border-radius: 0.5rem;
1264
1280
  background: var(--cw-surface);
1265
- box-shadow: 0 12px 30px rgb(0 0 0 / 0.18);
1281
+ box-shadow: var(--cw-shadow-floating);
1266
1282
  }
1267
1283
  .conventional-mention-menu button {
1268
1284
  display: flex;
@@ -1670,16 +1686,16 @@
1670
1686
  color: var(--cw-danger);
1671
1687
  }
1672
1688
  .conventional-priority--high {
1673
- background: color-mix(in srgb, #a34f00 12%, transparent);
1674
- color: #a34f00;
1689
+ background: color-mix(in srgb, var(--cw-priority-high-tint) 12%, transparent);
1690
+ color: var(--cw-priority-high);
1675
1691
  }
1676
1692
  /* Dark mode recesses the conversation surface below the elevated sidebars. */
1677
1693
  .dark .conventional-workspace,
1678
1694
  .dark .conventional-dialog {
1679
1695
  --cw-main: oklch(0.145 0 0);
1680
- }
1681
- .dark .conventional-priority--high {
1682
- color: #ffb86b;
1696
+ --cw-priority-high: #ffb86b;
1697
+ --cw-warning-foreground: #ffd28a;
1698
+ --cw-warning-surface: #3a2b14;
1683
1699
  }
1684
1700
 
1685
1701
  .conventional-detail-panel {
@@ -1893,7 +1909,7 @@
1893
1909
  border-radius: 0.7rem;
1894
1910
  background: var(--cw-surface);
1895
1911
  color: var(--cw-text);
1896
- box-shadow: 0 24px 70px rgb(0 0 0 / 0.28);
1912
+ box-shadow: var(--cw-shadow-modal);
1897
1913
  }
1898
1914
  .conventional-dialog > .conventional-dialog__header {
1899
1915
  display: flex;
@@ -2519,13 +2535,9 @@
2519
2535
  background: var(--cw-accent-soft);
2520
2536
  }
2521
2537
  .conventional-status-chip--warning {
2522
- border-color: #b7791f;
2523
- color: #8a4b08;
2524
- background: #fff4d6;
2525
- }
2526
- .dark .conventional-status-chip--warning {
2527
- color: #ffd28a;
2528
- background: #3a2b14;
2538
+ border-color: var(--cw-warning-border);
2539
+ color: var(--cw-warning-foreground);
2540
+ background: var(--cw-warning-surface);
2529
2541
  }
2530
2542
  .conventional-agent-customization {
2531
2543
  max-width: 52rem;
@@ -2757,7 +2769,7 @@
2757
2769
  width: min(19rem, calc(100% - 7rem));
2758
2770
  transform: translateX(-105%);
2759
2771
  transition: transform 0.18s ease;
2760
- box-shadow: 12px 0 38px rgb(0 0 0 / 0.25);
2772
+ box-shadow: var(--cw-shadow-drawer);
2761
2773
  grid-template-rows: auto auto minmax(0, 1fr);
2762
2774
  }
2763
2775
  .conventional-sidebar__resize {
@@ -2772,7 +2784,7 @@
2772
2784
  inset: 0 0 0 4rem;
2773
2785
  display: block;
2774
2786
  border: 0;
2775
- background: rgb(0 0 0 / 0.58);
2787
+ background: var(--cw-scrim);
2776
2788
  }
2777
2789
  .conventional-main {
2778
2790
  grid-column: 1;
@@ -53,6 +53,10 @@
53
53
  --border: oklch(0.922 0 0);
54
54
  --input: oklch(0.922 0 0);
55
55
  --ring: oklch(0.708 0 0);
56
+ /* The Adea mark keeps its own pairing in both themes; these are the two
57
+ values the logo used to hardcode. */
58
+ --workspace-logo-surface: #111827;
59
+ --workspace-logo-foreground: #f8fafc;
56
60
  }
57
61
 
58
62
  .dark {
@@ -12,6 +12,9 @@
12
12
  --hq-shell-accent-foreground: #fafafa;
13
13
  --hq-shell-focus: #a3a3a3;
14
14
  --hq-shell-active: #525252;
15
+ /* Elevation for chrome that lives outside the conventional workspace's own
16
+ token scope, such as the global rail's workspace menu. */
17
+ --hq-shell-shadow-popover: 0 0.8rem 2rem rgb(0 0 0 / 0.18);
15
18
  }
16
19
 
17
20
  .dark {