@adia-ai/web-modules 0.3.6 → 0.4.1

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 (47) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +29 -15
  3. package/chat/chat-shell/chat-shell.js +28 -40
  4. package/chat/chat-shell/css/chat-shell.empty.css +3 -3
  5. package/chat/chat-shell/css/chat-shell.layout.css +2 -2
  6. package/editor/editor-canvas/editor-canvas.examples.html +65 -0
  7. package/editor/editor-canvas/editor-canvas.html +43 -0
  8. package/editor/editor-canvas-empty/editor-canvas-empty.examples.html +65 -0
  9. package/editor/editor-canvas-empty/editor-canvas-empty.html +42 -0
  10. package/editor/editor-shell/css/editor-shell.bespoke.css +67 -2
  11. package/editor/editor-shell/css/editor-shell.layout.css +6 -6
  12. package/editor/editor-shell/editor-shell.js +19 -17
  13. package/editor/editor-sidebar/editor-sidebar.a2ui.json +5 -0
  14. package/editor/editor-sidebar/editor-sidebar.examples.html +65 -0
  15. package/editor/editor-sidebar/editor-sidebar.html +43 -0
  16. package/editor/editor-sidebar/editor-sidebar.js +30 -6
  17. package/editor/editor-sidebar/editor-sidebar.test.js +19 -0
  18. package/editor/editor-sidebar/editor-sidebar.yaml +8 -0
  19. package/editor/editor-statusbar/editor-statusbar.examples.html +65 -0
  20. package/editor/editor-statusbar/editor-statusbar.html +42 -0
  21. package/editor/editor-toolbar/editor-toolbar.examples.html +65 -0
  22. package/editor/editor-toolbar/editor-toolbar.html +43 -0
  23. package/index.js +1 -0
  24. package/package.json +8 -5
  25. package/shell/admin-shell/admin-shell.js +27 -243
  26. package/shell/admin-shell/css/admin-shell.bespoke.css +22 -26
  27. package/shell/admin-shell/css/admin-shell.main.css +2 -2
  28. package/shell/admin-shell/css/admin-shell.shell.css +2 -2
  29. package/shell/admin-shell/css/admin-shell.sidebar.css +35 -33
  30. package/simple/index.js +2 -0
  31. package/simple/simple-content/simple-content.a2ui.json +67 -0
  32. package/simple/simple-content/simple-content.css +29 -0
  33. package/simple/simple-content/simple-content.examples.html +13 -0
  34. package/simple/simple-content/simple-content.html +42 -0
  35. package/simple/simple-content/simple-content.yaml +54 -0
  36. package/simple/simple-hero/simple-hero.a2ui.json +76 -0
  37. package/simple/simple-hero/simple-hero.css +45 -0
  38. package/simple/simple-hero/simple-hero.examples.html +33 -0
  39. package/simple/simple-hero/simple-hero.html +42 -0
  40. package/simple/simple-hero/simple-hero.yaml +57 -0
  41. package/simple/simple-shell/simple-shell.a2ui.json +87 -0
  42. package/simple/simple-shell/simple-shell.css +40 -0
  43. package/simple/simple-shell/simple-shell.examples.html +42 -0
  44. package/simple/simple-shell/simple-shell.html +42 -0
  45. package/simple/simple-shell/simple-shell.js +47 -0
  46. package/simple/simple-shell/simple-shell.test.js +83 -0
  47. package/simple/simple-shell/simple-shell.yaml +78 -0
@@ -0,0 +1,67 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://adiaui.dev/a2ui/v0_9/components/SimpleContent.json",
4
+ "title": "SimpleContent",
5
+ "description": "Module-tier article-body container. CSS-only — no JS, no state.\nSits inside <simple-shell> as the main content surface with\ntoken-correct vertical rhythm and prose-friendly max-width.\n\nCompanion to <simple-hero> (optional top strip) per ADR-0023\nbespoke shell-tier children.\n",
6
+ "type": "object",
7
+ "allOf": [
8
+ {
9
+ "$ref": "common_types.json#/$defs/ComponentCommon"
10
+ },
11
+ {
12
+ "$ref": "common_types.json#/$defs/CatalogComponentCommon"
13
+ }
14
+ ],
15
+ "properties": {
16
+ "component": {
17
+ "const": "SimpleContent"
18
+ }
19
+ },
20
+ "required": [
21
+ "component"
22
+ ],
23
+ "unevaluatedProperties": false,
24
+ "x-adiaui": {
25
+ "anti_patterns": [],
26
+ "category": "shells",
27
+ "events": {},
28
+ "examples": [],
29
+ "keywords": [
30
+ "simple-content",
31
+ "article",
32
+ "body",
33
+ "prose",
34
+ "main-content",
35
+ "landing-body",
36
+ "marketing-body"
37
+ ],
38
+ "name": "SimpleContent",
39
+ "related": [
40
+ "SimpleShell",
41
+ "SimpleHero"
42
+ ],
43
+ "slots": {
44
+ "default": {
45
+ "description": "Article body content — prose, code blocks, illustrations. Authors compose freely; <simple-content> provides only the container with sensible defaults (vertical rhythm, max-width, typography token application)."
46
+ }
47
+ },
48
+ "states": [
49
+ {
50
+ "description": "Default, visible.",
51
+ "name": "idle"
52
+ }
53
+ ],
54
+ "synonyms": {
55
+ "simple-content": [
56
+ "page-content",
57
+ "article-body",
58
+ "prose-container",
59
+ "main-body"
60
+ ]
61
+ },
62
+ "tag": "simple-content",
63
+ "tokens": {},
64
+ "traits": [],
65
+ "version": 1
66
+ }
67
+ }
@@ -0,0 +1,29 @@
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ simple-content — Article body container
3
+
4
+ CSS-only structural child of <simple-shell>. Provides token-correct
5
+ vertical rhythm + prose-friendly max-width for article body content.
6
+ ═══════════════════════════════════════════════════════════════ */
7
+
8
+ @scope (simple-content) {
9
+ :scope {
10
+ display: flex;
11
+ flex-direction: column;
12
+ gap: var(--a-density-4, 1.5rem);
13
+ width: 100%;
14
+ color: var(--a-text);
15
+ }
16
+
17
+ /* Typographic rhythm for prose children */
18
+ :scope > h1,
19
+ :scope > h2,
20
+ :scope > h3 {
21
+ margin: 0;
22
+ color: var(--a-text-heading, var(--a-text));
23
+ }
24
+
25
+ :scope > p {
26
+ margin: 0;
27
+ line-height: var(--a-line-height-prose, 1.6);
28
+ }
29
+ }
@@ -0,0 +1,13 @@
1
+ <h1>simple-content — article body container</h1>
2
+
3
+ <p>CSS-only structural child of <code>&lt;simple-shell&gt;</code>. Provides vertical rhythm and prose-friendly max-width.</p>
4
+
5
+ <simple-shell style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 50dvh;">
6
+ <simple-content>
7
+ <h1>Article body</h1>
8
+ <p>simple-content is the main article surface. It applies token-correct vertical rhythm (the gap between children uses <code>--a-density-4</code>) and uses prose typography for paragraphs and headings.</p>
9
+ <h2>Section heading</h2>
10
+ <p>Headings cascade naturally. h1 / h2 / h3 receive heading colors via <code>--a-text-heading</code>.</p>
11
+ <p>Body paragraphs use a prose line-height (<code>--a-line-height-prose</code>) for comfortable reading.</p>
12
+ </simple-content>
13
+ </simple-shell>
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" data-theme="auto">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Simple Content — AdiaUI</title>
7
+
8
+ <link rel="stylesheet" href="../../../web-components/styles/resets.css">
9
+ <link rel="stylesheet" href="../../../web-components/styles/tokens.css">
10
+ <link rel="stylesheet" href="../simple-shell/simple-shell.css">
11
+ <link rel="stylesheet" href="../simple-content/simple-content.css">
12
+ <link rel="stylesheet" href="../simple-hero/simple-hero.css">
13
+ <link rel="stylesheet" href="../../../web-components/components/button/button.css">
14
+
15
+ <script type="module" src="../simple-shell/simple-shell.js"></script>
16
+ <script type="module" src="../../../web-components/components/button/button.js"></script>
17
+
18
+ <style>
19
+ :where(html, body) { margin: 0; min-height: 100vh; background: var(--a-bg); color: var(--a-fg); font-family: var(--a-font); }
20
+ main { max-width: 960px; margin-inline: auto; padding: var(--a-space-6) var(--a-space-5); }
21
+ </style>
22
+ </head>
23
+ <body>
24
+
25
+ <main id="demo-root">
26
+ <p>Loading examples…</p>
27
+ </main>
28
+
29
+ <script type="module">
30
+ const root = document.getElementById('demo-root');
31
+ try {
32
+ const res = await fetch('./simple-content.examples.html');
33
+ if (!res.ok) throw new Error(`fetch failed (${res.status})`);
34
+ root.innerHTML = await res.text();
35
+ } catch (err) {
36
+ root.innerHTML = `<p style="color:var(--a-danger-strong);">Failed to load simple-content.examples.html — ${err.message}</p>`;
37
+ console.error('[simple-content.html]', err);
38
+ }
39
+ </script>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,54 @@
1
+ # Edit this file; run `npm run build:components` to regenerate a2ui.json.
2
+ $schema: ../../../../scripts/schemas/component.yaml.schema.json
3
+ name: SimpleContent
4
+ tag: simple-content
5
+ component: SimpleContent
6
+ category: shells
7
+ version: 1
8
+ description: |
9
+ Module-tier article-body container. CSS-only — no JS, no state.
10
+ Sits inside <simple-shell> as the main content surface with
11
+ token-correct vertical rhythm and prose-friendly max-width.
12
+
13
+ Companion to <simple-hero> (optional top strip) per ADR-0023
14
+ bespoke shell-tier children.
15
+
16
+ props: {}
17
+
18
+ events: {}
19
+
20
+ slots:
21
+ default:
22
+ description: >-
23
+ Article body content — prose, code blocks, illustrations.
24
+ Authors compose freely; <simple-content> provides only the
25
+ container with sensible defaults (vertical rhythm, max-width,
26
+ typography token application).
27
+
28
+ states:
29
+ - name: idle
30
+ description: Default, visible.
31
+
32
+ traits: []
33
+
34
+ a2ui:
35
+ rules:
36
+ - >-
37
+ simple-content is the article surface inside simple-shell. Use
38
+ for primary page body. Sibling to <simple-hero> (optional).
39
+
40
+ keywords:
41
+ - simple-content
42
+ - article
43
+ - body
44
+ - prose
45
+ - main-content
46
+ - landing-body
47
+ - marketing-body
48
+
49
+ synonyms:
50
+ simple-content: [page-content, article-body, prose-container, main-body]
51
+
52
+ related:
53
+ - SimpleShell
54
+ - SimpleHero
@@ -0,0 +1,76 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://adiaui.dev/a2ui/v0_9/components/SimpleHero.json",
4
+ "title": "SimpleHero",
5
+ "description": "Module-tier hero strip for the top of marketing / landing / error\npages. CSS-only — no JS, no state. Three named slots (heading, lede,\nactions) carry the canonical hero composition.\n\nSits inside <simple-shell> above <simple-content>. Companion to\n<simple-content> per ADR-0023 bespoke shell-tier children.\n",
6
+ "type": "object",
7
+ "allOf": [
8
+ {
9
+ "$ref": "common_types.json#/$defs/ComponentCommon"
10
+ },
11
+ {
12
+ "$ref": "common_types.json#/$defs/CatalogComponentCommon"
13
+ }
14
+ ],
15
+ "properties": {
16
+ "component": {
17
+ "const": "SimpleHero"
18
+ }
19
+ },
20
+ "required": [
21
+ "component"
22
+ ],
23
+ "unevaluatedProperties": false,
24
+ "x-adiaui": {
25
+ "anti_patterns": [],
26
+ "category": "shells",
27
+ "events": {},
28
+ "examples": [],
29
+ "keywords": [
30
+ "simple-hero",
31
+ "hero",
32
+ "splash",
33
+ "landing-hero",
34
+ "marketing-hero",
35
+ "intro",
36
+ "page-title"
37
+ ],
38
+ "name": "SimpleHero",
39
+ "related": [
40
+ "SimpleShell",
41
+ "SimpleContent"
42
+ ],
43
+ "slots": {
44
+ "default": {
45
+ "description": "Optional inline content if the named slots are insufficient."
46
+ },
47
+ "actions": {
48
+ "description": "Action row (button-ui, link-ui) for primary CTAs."
49
+ },
50
+ "heading": {
51
+ "description": "Large display heading (h1) — the page title."
52
+ },
53
+ "lede": {
54
+ "description": "Lead paragraph below heading — short summary or CTA tagline."
55
+ }
56
+ },
57
+ "states": [
58
+ {
59
+ "description": "Default, visible.",
60
+ "name": "idle"
61
+ }
62
+ ],
63
+ "synonyms": {
64
+ "simple-hero": [
65
+ "page-hero",
66
+ "splash-hero",
67
+ "landing-hero",
68
+ "intro-strip"
69
+ ]
70
+ },
71
+ "tag": "simple-hero",
72
+ "tokens": {},
73
+ "traits": [],
74
+ "version": 1
75
+ }
76
+ }
@@ -0,0 +1,45 @@
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ simple-hero — Optional top strip for landing / error / splash pages
3
+
4
+ CSS-only. Three named slots (heading, lede, actions) compose the
5
+ canonical hero layout. Authors can omit any slot.
6
+ ═══════════════════════════════════════════════════════════════ */
7
+
8
+ @scope (simple-hero) {
9
+ :scope {
10
+ display: flex;
11
+ flex-direction: column;
12
+ align-items: center;
13
+ text-align: center;
14
+ gap: var(--a-density-3, 1rem);
15
+ width: 100%;
16
+ padding-block: var(--a-density-6, 3rem);
17
+ }
18
+
19
+ /* Heading slot — large display size */
20
+ :scope [slot="heading"] {
21
+ margin: 0;
22
+ font-size: var(--a-font-size-display, 2.5rem);
23
+ line-height: var(--a-line-height-tight, 1.2);
24
+ color: var(--a-text-heading, var(--a-text));
25
+ font-weight: var(--a-font-weight-bold, 600);
26
+ }
27
+
28
+ /* Lede slot — muted, larger than body */
29
+ :scope [slot="lede"] {
30
+ margin: 0;
31
+ font-size: var(--a-font-size-lede, 1.25rem);
32
+ line-height: var(--a-line-height-prose, 1.5);
33
+ color: var(--a-text-muted);
34
+ max-width: 42rem;
35
+ }
36
+
37
+ /* Actions slot — flex row */
38
+ :scope [slot="actions"] {
39
+ display: flex;
40
+ flex-wrap: wrap;
41
+ gap: var(--a-density-2, 0.75rem);
42
+ justify-content: center;
43
+ margin-top: var(--a-density-2, 0.75rem);
44
+ }
45
+ }
@@ -0,0 +1,33 @@
1
+ <h1>simple-hero — hero strip for landing / error / splash pages</h1>
2
+
3
+ <p>CSS-only. Three named slots: heading, lede, actions. Authors can omit any slot.</p>
4
+
5
+ <h2>All three slots</h2>
6
+
7
+ <simple-shell style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 50dvh;">
8
+ <simple-hero>
9
+ <h1 slot="heading">Build with AdiaUI</h1>
10
+ <p slot="lede">Zero dependencies. Production-ready primitives. LLM-native generative UI.</p>
11
+ <div slot="actions">
12
+ <button-ui variant="solid" color="accent">Get started</button-ui>
13
+ <button-ui variant="outline">Read the docs</button-ui>
14
+ </div>
15
+ </simple-hero>
16
+ </simple-shell>
17
+
18
+ <h2>Heading + lede only</h2>
19
+
20
+ <simple-shell style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 40dvh;">
21
+ <simple-hero>
22
+ <h1 slot="heading">Thank you</h1>
23
+ <p slot="lede">Your message has been received. We'll get back to you within 24 hours.</p>
24
+ </simple-hero>
25
+ </simple-shell>
26
+
27
+ <h2>Heading only — minimal error page</h2>
28
+
29
+ <simple-shell centered style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 30dvh;">
30
+ <simple-hero>
31
+ <h1 slot="heading">Maintenance in progress</h1>
32
+ </simple-hero>
33
+ </simple-shell>
@@ -0,0 +1,42 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en" data-theme="auto">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title>Simple Hero — AdiaUI</title>
7
+
8
+ <link rel="stylesheet" href="../../../web-components/styles/resets.css">
9
+ <link rel="stylesheet" href="../../../web-components/styles/tokens.css">
10
+ <link rel="stylesheet" href="../simple-shell/simple-shell.css">
11
+ <link rel="stylesheet" href="../simple-content/simple-content.css">
12
+ <link rel="stylesheet" href="../simple-hero/simple-hero.css">
13
+ <link rel="stylesheet" href="../../../web-components/components/button/button.css">
14
+
15
+ <script type="module" src="../simple-shell/simple-shell.js"></script>
16
+ <script type="module" src="../../../web-components/components/button/button.js"></script>
17
+
18
+ <style>
19
+ :where(html, body) { margin: 0; min-height: 100vh; background: var(--a-bg); color: var(--a-fg); font-family: var(--a-font); }
20
+ main { max-width: 960px; margin-inline: auto; padding: var(--a-space-6) var(--a-space-5); }
21
+ </style>
22
+ </head>
23
+ <body>
24
+
25
+ <main id="demo-root">
26
+ <p>Loading examples…</p>
27
+ </main>
28
+
29
+ <script type="module">
30
+ const root = document.getElementById('demo-root');
31
+ try {
32
+ const res = await fetch('./simple-hero.examples.html');
33
+ if (!res.ok) throw new Error(`fetch failed (${res.status})`);
34
+ root.innerHTML = await res.text();
35
+ } catch (err) {
36
+ root.innerHTML = `<p style="color:var(--a-danger-strong);">Failed to load simple-hero.examples.html — ${err.message}</p>`;
37
+ console.error('[simple-hero.html]', err);
38
+ }
39
+ </script>
40
+
41
+ </body>
42
+ </html>
@@ -0,0 +1,57 @@
1
+ # Edit this file; run `npm run build:components` to regenerate a2ui.json.
2
+ $schema: ../../../../scripts/schemas/component.yaml.schema.json
3
+ name: SimpleHero
4
+ tag: simple-hero
5
+ component: SimpleHero
6
+ category: shells
7
+ version: 1
8
+ description: |
9
+ Module-tier hero strip for the top of marketing / landing / error
10
+ pages. CSS-only — no JS, no state. Three named slots (heading, lede,
11
+ actions) carry the canonical hero composition.
12
+
13
+ Sits inside <simple-shell> above <simple-content>. Companion to
14
+ <simple-content> per ADR-0023 bespoke shell-tier children.
15
+
16
+ props: {}
17
+
18
+ events: {}
19
+
20
+ slots:
21
+ heading:
22
+ description: Large display heading (h1) — the page title.
23
+ lede:
24
+ description: Lead paragraph below heading — short summary or CTA tagline.
25
+ actions:
26
+ description: Action row (button-ui, link-ui) for primary CTAs.
27
+ default:
28
+ description: Optional inline content if the named slots are insufficient.
29
+
30
+ states:
31
+ - name: idle
32
+ description: Default, visible.
33
+
34
+ traits: []
35
+
36
+ a2ui:
37
+ rules:
38
+ - >-
39
+ simple-hero is the optional top strip inside simple-shell. Use
40
+ for marketing splashes, error-page reassurance text, or single-
41
+ flow page intros. Always followed by <simple-content> for body.
42
+
43
+ keywords:
44
+ - simple-hero
45
+ - hero
46
+ - splash
47
+ - landing-hero
48
+ - marketing-hero
49
+ - intro
50
+ - page-title
51
+
52
+ synonyms:
53
+ simple-hero: [page-hero, splash-hero, landing-hero, intro-strip]
54
+
55
+ related:
56
+ - SimpleShell
57
+ - SimpleContent
@@ -0,0 +1,87 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://adiaui.dev/a2ui/v0_9/components/SimpleShell.json",
4
+ "title": "SimpleShell",
5
+ "description": "Module-tier minimal shell for marketing / landing / error pages.\nBehavior-only orchestrator with two reflected attributes — [centered]\nfor vertical centering, [full-bleed] for dropping the max-width\nconstraint.\n\nThe 4th cluster in the bespoke shell family per ADR-0023, designed\ndeliberately small (1 host + 2 CSS-only children) to demonstrate\nthe pattern works without ceremony for thin clusters.\n\nUse cases: marketing splashes, error pages (404 / 500 / maintenance),\nthank-you pages, single-card flows (sign-in, password reset).\n",
6
+ "type": "object",
7
+ "allOf": [
8
+ {
9
+ "$ref": "common_types.json#/$defs/ComponentCommon"
10
+ },
11
+ {
12
+ "$ref": "common_types.json#/$defs/CatalogComponentCommon"
13
+ }
14
+ ],
15
+ "properties": {
16
+ "centered": {
17
+ "description": "Reflected — vertically centers content in viewport.",
18
+ "type": "boolean",
19
+ "default": false
20
+ },
21
+ "component": {
22
+ "const": "SimpleShell"
23
+ },
24
+ "full-bleed": {
25
+ "description": "Reflected — drops the default max-width so content fills full viewport.",
26
+ "type": "boolean",
27
+ "default": false
28
+ }
29
+ },
30
+ "required": [
31
+ "component"
32
+ ],
33
+ "unevaluatedProperties": false,
34
+ "x-adiaui": {
35
+ "anti_patterns": [],
36
+ "category": "shells",
37
+ "events": {},
38
+ "examples": [],
39
+ "keywords": [
40
+ "simple-shell",
41
+ "landing",
42
+ "marketing",
43
+ "error-page",
44
+ "splash",
45
+ "confirmation",
46
+ "minimal-shell"
47
+ ],
48
+ "name": "SimpleShell",
49
+ "related": [
50
+ "SimpleHero",
51
+ "SimpleContent",
52
+ "AdminShell"
53
+ ],
54
+ "slots": {
55
+ "default": {
56
+ "description": "Bespoke children (<simple-hero>, <simple-content>) compose here. The author owns layout order."
57
+ }
58
+ },
59
+ "states": [
60
+ {
61
+ "description": "Default layout — top-aligned, max-width container.",
62
+ "name": "idle"
63
+ },
64
+ {
65
+ "description": "When [centered] is set — vertically centers the content stack.",
66
+ "name": "centered"
67
+ },
68
+ {
69
+ "description": "When [full-bleed] is set — drops max-width so content fills the viewport.",
70
+ "name": "full-bleed"
71
+ }
72
+ ],
73
+ "synonyms": {
74
+ "simple-shell": [
75
+ "marketing-shell",
76
+ "landing-shell",
77
+ "minimal-shell",
78
+ "splash-shell",
79
+ "error-shell"
80
+ ]
81
+ },
82
+ "tag": "simple-shell",
83
+ "tokens": {},
84
+ "traits": [],
85
+ "version": 1
86
+ }
87
+ }
@@ -0,0 +1,40 @@
1
+ /* ═══════════════════════════════════════════════════════════════
2
+ simple-shell — Module CSS (minimal shell for marketing / landing / error pages)
3
+
4
+ Single-file CSS — simple-shell is deliberately minimal so all rules
5
+ live here rather than fanning out into layered files. If complexity
6
+ grows, split into css/simple-shell.{tokens,layout,bespoke}.css per
7
+ admin/chat/editor convention.
8
+ ═══════════════════════════════════════════════════════════════ */
9
+
10
+ @scope (simple-shell) {
11
+ :scope {
12
+ display: flex;
13
+ flex-direction: column;
14
+ align-items: center;
15
+ box-sizing: border-box;
16
+ min-height: 100dvh;
17
+ width: 100%;
18
+ padding-inline: var(--a-density-4, 1.5rem);
19
+ padding-block: var(--a-density-6, 3rem);
20
+ gap: var(--a-density-4, 1.5rem);
21
+ background: var(--a-canvas-1);
22
+ color: var(--a-text);
23
+ }
24
+
25
+ /* Vertically center when [centered] */
26
+ :scope[centered] {
27
+ justify-content: center;
28
+ }
29
+
30
+ /* Children width: bounded by content max-width by default */
31
+ :scope > * {
32
+ width: 100%;
33
+ max-width: var(--a-content-max-width, 56rem);
34
+ }
35
+
36
+ /* Full-bleed drops the max-width on children */
37
+ :scope[full-bleed] > * {
38
+ max-width: none;
39
+ }
40
+ }
@@ -0,0 +1,42 @@
1
+ <h1>simple-shell — minimal shell for marketing / landing / error pages</h1>
2
+
3
+ <p>The 4th cluster in the bespoke shell family per ADR-0023. Designed deliberately small (1 host + 2 CSS-only children) to demonstrate the pattern works for thin clusters without ceremony.</p>
4
+
5
+ <h2>Default — top-aligned with hero + content</h2>
6
+
7
+ <simple-shell style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 60dvh; padding-block: var(--a-density-4);">
8
+ <simple-hero>
9
+ <h1 slot="heading">Welcome to AdiaUI</h1>
10
+ <p slot="lede">A zero-dependency vanilla JS web component library for modern interfaces.</p>
11
+ <div slot="actions">
12
+ <button-ui variant="solid" color="accent">Get started</button-ui>
13
+ <button-ui variant="ghost">View on GitHub</button-ui>
14
+ </div>
15
+ </simple-hero>
16
+ <simple-content>
17
+ <h2>Quick example</h2>
18
+ <p>Drop primitives into any HTML page — no build tools needed.</p>
19
+ <p>Components are framework-agnostic. Use them in vanilla HTML, React, Vue, Svelte, or anywhere else.</p>
20
+ </simple-content>
21
+ </simple-shell>
22
+
23
+ <h2>[centered] — vertically centered content</h2>
24
+
25
+ <simple-shell centered style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 60dvh;">
26
+ <simple-hero>
27
+ <h1 slot="heading">404 — Page Not Found</h1>
28
+ <p slot="lede">The page you're looking for doesn't exist or has been moved.</p>
29
+ <div slot="actions">
30
+ <button-ui variant="solid" color="accent">Back to home</button-ui>
31
+ </div>
32
+ </simple-hero>
33
+ </simple-shell>
34
+
35
+ <h2>[full-bleed] — drops the max-width constraint</h2>
36
+
37
+ <simple-shell full-bleed style="border: 1px solid var(--a-border); border-radius: var(--a-radius-3); min-height: 40dvh; background: var(--a-canvas-0);">
38
+ <simple-content>
39
+ <h2>Full-bleed content</h2>
40
+ <p>When [full-bleed] is set, children stretch to the viewport width instead of being bounded by the default max-width (~56rem). Use for hero sections that want edge-to-edge background, or marketing pages with full-width imagery.</p>
41
+ </simple-content>
42
+ </simple-shell>