@adia-ai/web-modules 0.0.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 (42) hide show
  1. package/CHANGELOG.md +292 -0
  2. package/README.md +119 -0
  3. package/chat/chat-shell/chat-shell.a2ui.json +149 -0
  4. package/chat/chat-shell/chat-shell.css +10 -0
  5. package/chat/chat-shell/chat-shell.js +297 -0
  6. package/chat/chat-shell/chat-shell.yaml +119 -0
  7. package/chat/chat-shell/css/chat-shell.empty.css +12 -0
  8. package/chat/chat-shell/css/chat-shell.layout.css +60 -0
  9. package/chat/chat-shell/css/chat-shell.markdown.css +74 -0
  10. package/chat/chat-shell/css/chat-shell.messages.css +87 -0
  11. package/chat/chat-shell/css/chat-shell.streaming.css +30 -0
  12. package/chat/chat-shell/css/chat-shell.tokens.css +95 -0
  13. package/chat/index.js +1 -0
  14. package/editor/editor-shell/css/editor-shell.layout.css +171 -0
  15. package/editor/editor-shell/css/editor-shell.tokens.css +28 -0
  16. package/editor/editor-shell/editor-shell.a2ui.json +73 -0
  17. package/editor/editor-shell/editor-shell.css +6 -0
  18. package/editor/editor-shell/editor-shell.js +56 -0
  19. package/editor/editor-shell/editor-shell.yaml +59 -0
  20. package/editor/index.js +1 -0
  21. package/index.js +14 -0
  22. package/package.json +48 -0
  23. package/runtime/a2ui-root/a2ui-root.a2ui.json +125 -0
  24. package/runtime/a2ui-root/a2ui-root.js +191 -0
  25. package/runtime/a2ui-root/a2ui-root.yaml +87 -0
  26. package/runtime/gen-root/gen-root.a2ui.json +72 -0
  27. package/runtime/gen-root/gen-root.css +83 -0
  28. package/runtime/gen-root/gen-root.js +136 -0
  29. package/runtime/gen-root/gen-root.yaml +43 -0
  30. package/runtime/index.js +2 -0
  31. package/shell/admin-shell/admin-shell.a2ui.json +129 -0
  32. package/shell/admin-shell/admin-shell.css +14 -0
  33. package/shell/admin-shell/admin-shell.js +261 -0
  34. package/shell/admin-shell/admin-shell.yaml +89 -0
  35. package/shell/admin-shell/css/admin-shell.collapsed.css +86 -0
  36. package/shell/admin-shell/css/admin-shell.helpers.css +42 -0
  37. package/shell/admin-shell/css/admin-shell.main.css +182 -0
  38. package/shell/admin-shell/css/admin-shell.shell.css +48 -0
  39. package/shell/admin-shell/css/admin-shell.sidebar.css +165 -0
  40. package/shell/admin-shell/css/admin-shell.templates.css +215 -0
  41. package/shell/admin-shell/css/admin-shell.tokens.css +119 -0
  42. package/shell/index.js +1 -0
@@ -0,0 +1,119 @@
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ App Shell — Design tokens
3
+
4
+ Declared on :where(admin-shell) for zero specificity.
5
+ All children (main + sidebars) inherit these.
6
+
7
+ Token groups:
8
+ --page-* — shell, borders, backgrounds
9
+ --page-header-* — topbar/footer bars
10
+ --page-sidebar-* — sidebar geometry
11
+ --page-content-* — scroll area, sticky header, typography
12
+ --page-section-* — form section headings
13
+ ═══════════════════════════════════════════════════════════════ */
14
+
15
+ :where(admin-shell) {
16
+ /* Shell — root backgrounds and border shorthand */
17
+ --page-bg: var(--a-canvas-1); /* chrome/sidebar bg */
18
+ --page-border: 1px solid var(--a-border-subtle); /* chrome borders (killed by "borderless") */
19
+ --page-main-border: var(--page-border); /* main inline borders (separate so modes can override) */
20
+
21
+ /* Header / footer bars — shared by topbar + bottombar */
22
+ --page-header-height: var(--a-chrome-app-header-height);
23
+ --page-header-px: var(--a-space-3);
24
+ --page-header-gap: var(--a-space-3);
25
+ --page-header-font: var(--a-ui-size);
26
+ --page-header-fg-muted: var(--a-fg-muted); /* footer text, section labels */
27
+
28
+ /* Sidebar — geometry and constraints */
29
+ --page-sidebar-px: var(--a-space-1); /* inner padding for header/footer/section */
30
+ --page-sidebar-gap: var(--a-space-1); /* gap between sidebar header/footer items */
31
+ --page-sidebar-font: var(--a-ui-size);
32
+ --page-sidebar-min-width: 48px; /* collapsed icon-only width */
33
+ --page-sidebar-max-width: 480px; /* drag resize upper bound */
34
+ --page-sidebar-resize-accent: var(--a-accent); /* resize handle color */
35
+ --page-sidebar-divider-bg: var(--a-border-subtle); /* hr divider inside sidebar */
36
+ --page-sidebar-width-leading: clamp(var(--page-sidebar-min-width), 200px, 240px);
37
+ --page-sidebar-width-trailing: clamp(var(--page-sidebar-min-width), 200px, 240px);
38
+
39
+ /* Content area — scroll region inside main */
40
+ --page-content-bg: var(--a-canvas-0); /* content surface (lighter than chrome) */
41
+ --page-content-radius: var(--a-radius-lg); /* used by "rounded" mode */
42
+ --page-content-inset: var(--a-space-10); /* padding for header/body/footer */
43
+ --page-content-max-width: 1540px; /* max-width for content children */
44
+ --page-content-border: 1px solid var(--a-border-subtle); /* content dividers (persists in "borderless") */
45
+ --page-content-shadow: var(--a-shadow-sm); /* soft lift on the content surface */
46
+
47
+ /* Section labels (e.g. "WORKSPACE") — maps to "kicker" typography role */
48
+ --page-section-gap: var(--a-space-6);
49
+ /* Within-section block rhythm (h2 / [data-note] / code-ui / artifact stack). */
50
+ --page-block-gap: var(--a-space-4);
51
+ /* h2 → immediately-following deck/subtitle pair (auto-stamped <header>). */
52
+ --page-deck-gap: var(--a-space-1);
53
+ --page-section-size: var(--a-kicker-size);
54
+ --page-section-weight: var(--a-kicker-weight);
55
+ --page-section-leading: var(--a-kicker-leading);
56
+ --page-section-tracking: var(--a-kicker-tracking);
57
+ --page-section-case: var(--a-kicker-case);
58
+ --page-section-color: var(--a-kicker-color);
59
+ --page-section-mb: var(--a-space-3);
60
+ --page-section-pb: var(--a-space-2);
61
+
62
+ /* Sub-section labels (e.g. "Details") — maps to "subsection" typography role */
63
+ --page-subsection-size: var(--a-subsection-size);
64
+ --page-subsection-weight: var(--a-subsection-weight);
65
+ --page-subsection-color: var(--a-subsection-color);
66
+
67
+ /* Sidebar collapsed — icon/avatar sizes when sidebar is narrow */
68
+ --page-sidebar-collapsed-icon: 1.0625rem; /* select leading icon */
69
+ --page-sidebar-collapsed-avatar: 1.5rem; /* select leading avatar */
70
+
71
+ /* Helpers — layout utility spacing */
72
+ --page-actions-gap: var(--a-space-2); /* inline action group gap */
73
+ --page-grid-gap: var(--a-space-3); /* grid/col/row default gap */
74
+
75
+ /* Animation */
76
+ --page-duration: var(--a-duration);
77
+ --page-duration-fast: var(--a-duration-fast);
78
+ --page-easing: var(--a-easing);
79
+
80
+ /* Shell typography */
81
+ --page-font-family: var(--a-font-family);
82
+ --page-body-size: var(--a-body-size);
83
+
84
+ /* Nav — root container tokens */
85
+ --nav-duration: var(--a-duration);
86
+ --nav-duration-fast: var(--a-duration-fast);
87
+ --nav-easing: var(--a-easing);
88
+ --nav-label-px: var(--a-space-2);
89
+ --nav-label-py: var(--a-space-1);
90
+ --nav-label-font-size: var(--a-kicker-sm);
91
+ --nav-label-weight: var(--a-weight-medium);
92
+ --nav-label-fg: var(--a-fg-muted);
93
+ --nav-divider-bg: var(--a-border-subtle);
94
+ --nav-divider-my: var(--a-space-1);
95
+
96
+ /* Nav — group tokens */
97
+ --nav-group-indent-rail-bg: var(--a-border-subtle);
98
+ --nav-group-icon-font-size: var(--a-ui-size);
99
+ --nav-group-text-weight: var(--a-weight-medium);
100
+ --nav-group-badge-bg: var(--a-bg-muted);
101
+ --nav-group-badge-px: var(--a-space-1);
102
+ --nav-group-badge-radius: var(--a-radius-full);
103
+
104
+ /* Nav — item tokens */
105
+ --nav-item-icon-font-size: var(--a-ui-size);
106
+ --nav-item-selected-weight: var(--a-weight-medium);
107
+ --nav-item-badge-fg: var(--a-fg-muted);
108
+ --nav-item-badge-bg: var(--a-bg-muted);
109
+ --nav-item-badge-px: var(--a-space-1);
110
+ --nav-item-badge-radius: var(--a-radius-full);
111
+ --nav-item-trailing-font: var(--a-ui-sm);
112
+ --nav-item-trailing-fg: var(--a-fg-muted);
113
+ --nav-item-trailing-border: var(--a-border-subtle);
114
+ --nav-item-trailing-radius: var(--a-radius-sm);
115
+ --nav-item-trailing-px: var(--a-space-0-5);
116
+
117
+ /* Global icon size bump */
118
+ --a-icon-size: 18px;
119
+ }
package/shell/index.js ADDED
@@ -0,0 +1 @@
1
+ export { AdminShell } from './admin-shell/admin-shell.js';