@adea-ai/ui 0.97.4 → 0.97.6

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.
@@ -12,6 +12,8 @@ export type HelpCenterProps = {
12
12
  shortcuts: readonly HelpShortcut[];
13
13
  links: readonly HelpLink[];
14
14
  openExternal?: (url: string) => Promise<void>;
15
+ /** Hides the page heading and introduction when a host dialog supplies them. */
16
+ showHeader?: boolean;
15
17
  class?: string;
16
18
  };
17
19
  /** A shared help page: real keyboard shortcuts and the application's project resources. */
@@ -1 +1 @@
1
- {"version":3,"file":"help-center.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/help-center/help-center.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAA;AACrE,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAC3E,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,SAAS,YAAY,EAAE,CAAA;IAClC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,kCAqFhD"}
1
+ {"version":3,"file":"help-center.d.ts","sourceRoot":"","sources":["../../../../src/components/composites/help-center/help-center.tsx"],"names":[],"mappings":"AAQA,MAAM,MAAM,YAAY,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAA;AACrE,MAAM,MAAM,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAA;AAC3E,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,SAAS,YAAY,EAAE,CAAA;IAClC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAC7C,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,2FAA2F;AAC3F,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,kCAuFhD"}
@@ -7,14 +7,15 @@ import { className, createComponent, effect, insert, memo, template } from "soli
7
7
  import { ExternalLink } from "lucide-solid";
8
8
  import { For, Show, createSignal, onCleanup } from "solid-js";
9
9
  //#region src/components/composites/help-center/help-center.tsx
10
- var _tmpl$ = /*#__PURE__*/ template(`<h2 class="text-base font-semibold text-foreground">Keyboard shortcuts`);
11
- var _tmpl$2 = /*#__PURE__*/ template(`<ul class="flex flex-col gap-3">`);
12
- var _tmpl$3 = /*#__PURE__*/ template(`<h2 class="text-base font-semibold text-foreground">Project links`);
13
- var _tmpl$4 = /*#__PURE__*/ template(`<ul class="flex flex-col gap-4">`);
14
- var _tmpl$5 = /*#__PURE__*/ template(`<div><div class="flex flex-col gap-2"><h1 class="text-xl font-semibold tracking-tight">Help Center</h1><p class="text-sm text-muted-foreground">Keyboard shortcuts and resources for <!>.`);
15
- var _tmpl$6 = /*#__PURE__*/ template(`<li class="flex flex-wrap items-center justify-between gap-2"><span class=text-sm>`);
16
- var _tmpl$7 = /*#__PURE__*/ template(`<p class="text-sm text-muted-foreground">`);
17
- var _tmpl$8 = /*#__PURE__*/ template(`<li class="flex min-w-0 flex-col items-start gap-1">`);
10
+ var _tmpl$ = /*#__PURE__*/ template(`<div class="flex flex-col gap-2"><h1 class="text-xl font-semibold tracking-tight">Help Center</h1><p class="text-sm text-muted-foreground">Keyboard shortcuts and resources for <!>.`);
11
+ var _tmpl$2 = /*#__PURE__*/ template(`<h2 class="text-base font-semibold text-foreground">Keyboard shortcuts`);
12
+ var _tmpl$3 = /*#__PURE__*/ template(`<ul class="flex flex-col gap-3">`);
13
+ var _tmpl$4 = /*#__PURE__*/ template(`<h2 class="text-base font-semibold text-foreground">Project links`);
14
+ var _tmpl$5 = /*#__PURE__*/ template(`<ul class="flex flex-col gap-4">`);
15
+ var _tmpl$6 = /*#__PURE__*/ template(`<div>`);
16
+ var _tmpl$7 = /*#__PURE__*/ template(`<li class="flex flex-wrap items-center justify-between gap-2"><span class=text-sm>`);
17
+ var _tmpl$8 = /*#__PURE__*/ template(`<p class="text-sm text-muted-foreground">`);
18
+ var _tmpl$9 = /*#__PURE__*/ template(`<li class="flex min-w-0 flex-col items-start gap-1">`);
18
19
  /** A shared help page: real keyboard shortcuts and the application's project resources. */
19
20
  function HelpCenter(props) {
20
21
  const [error, setError] = createSignal("");
@@ -31,20 +32,29 @@ function HelpCenter(props) {
31
32
  }
32
33
  };
33
34
  return (() => {
34
- var _el$ = _tmpl$5(), _el$4 = _el$.firstChild.firstChild.nextSibling, _el$7 = _el$4.firstChild.nextSibling;
35
- _el$7.nextSibling;
36
- insert(_el$4, () => props.appName, _el$7);
35
+ var _el$ = _tmpl$6();
36
+ insert(_el$, createComponent(Show, {
37
+ get when() {
38
+ return props.showHeader !== false;
39
+ },
40
+ get children() {
41
+ var _el$2 = _tmpl$(), _el$4 = _el$2.firstChild.nextSibling, _el$7 = _el$4.firstChild.nextSibling;
42
+ _el$7.nextSibling;
43
+ insert(_el$4, () => props.appName, _el$7);
44
+ return _el$2;
45
+ }
46
+ }), null);
37
47
  insert(_el$, createComponent(Card, { get children() {
38
48
  return [createComponent(CardHeader, { get children() {
39
- return _tmpl$();
49
+ return _tmpl$2();
40
50
  } }), createComponent(CardContent, { get children() {
41
- var _el$9 = _tmpl$2();
51
+ var _el$9 = _tmpl$3();
42
52
  insert(_el$9, createComponent(For, {
43
53
  get each() {
44
54
  return props.shortcuts;
45
55
  },
46
56
  children: (shortcut) => (() => {
47
- var _el$10 = _tmpl$6(), _el$11 = _el$10.firstChild;
57
+ var _el$10 = _tmpl$7(), _el$11 = _el$10.firstChild;
48
58
  insert(_el$11, () => shortcut.label);
49
59
  insert(_el$10, createComponent(KbdGroup, { get children() {
50
60
  return createComponent(For, {
@@ -62,15 +72,15 @@ function HelpCenter(props) {
62
72
  } }), null);
63
73
  insert(_el$, createComponent(Card, { get children() {
64
74
  return [createComponent(CardHeader, { get children() {
65
- return _tmpl$3();
75
+ return _tmpl$4();
66
76
  } }), createComponent(CardContent, { get children() {
67
- var _el$1 = _tmpl$4();
77
+ var _el$1 = _tmpl$5();
68
78
  insert(_el$1, createComponent(For, {
69
79
  get each() {
70
80
  return props.links;
71
81
  },
72
82
  children: (link) => (() => {
73
- var _el$12 = _tmpl$8();
83
+ var _el$12 = _tmpl$9();
74
84
  insert(_el$12, createComponent(ActionButton, {
75
85
  as: "a",
76
86
  variant: "link",
@@ -99,7 +109,7 @@ function HelpCenter(props) {
99
109
  return link.description;
100
110
  },
101
111
  get children() {
102
- var _el$13 = _tmpl$7();
112
+ var _el$13 = _tmpl$8();
103
113
  insert(_el$13, () => link.description);
104
114
  return _el$13;
105
115
  }
@@ -1 +1 @@
1
- {"version":3,"file":"help-center.js","names":["createSignal","For","onCleanup","Show","ExternalLink","cn","ActionButton","Alert","AlertDescription","Card","CardContent","CardHeader","Kbd","KbdGroup","HelpShortcut","label","keys","HelpLink","description","url","HelpCenterProps","appName","shortcuts","links","openExternal","Promise","class","HelpCenter","props","error","setError","disposed","openLink","_el$","_tmpl$5","_el$2","firstChild","_el$3","_el$4","nextSibling","_el$5","_el$7","_el$6","_$insert","_$createComponent","children","_tmpl$","_el$9","_tmpl$2","each","shortcut","_el$10","_tmpl$6","_el$11","key","_tmpl$3","_el$1","_tmpl$4","link","_el$12","_tmpl$8","as","variant","size","href","target","rel","tooltip","onClick","event","preventDefault","_$memo","when","_el$13","_tmpl$7","role","_$effect","_$className","_$createComponent","_$memo","_$className"],"sources":["../../../../src/components/composites/help-center/help-center.tsx"],"sourcesContent":["import { createSignal, For, onCleanup, Show } from 'solid-js'\nimport { ExternalLink } from 'lucide-solid'\nimport { cn } from '#lib/utils'\nimport { ActionButton } from '../action-button'\nimport { Alert, AlertDescription } from '../../ui/alert'\nimport { Card, CardContent, CardHeader } from '../../ui/card'\nimport { Kbd, KbdGroup } from '../../ui/kbd'\n\nexport type HelpShortcut = { label: string; keys: readonly string[] }\nexport type HelpLink = { label: string; description?: string; url: string }\nexport type HelpCenterProps = {\n appName: string\n shortcuts: readonly HelpShortcut[]\n links: readonly HelpLink[]\n openExternal?: (url: string) => Promise<void>\n class?: string\n}\n\n/** A shared help page: real keyboard shortcuts and the application's project resources. */\nexport function HelpCenter(props: HelpCenterProps) {\n const [error, setError] = createSignal('')\n let disposed = false\n onCleanup(() => {\n disposed = true\n })\n const openLink = async (url: string) => {\n setError('')\n try {\n await props.openExternal?.(url)\n } catch {\n if (!disposed) setError('Could not open this help resource. Please try again.')\n }\n }\n return (\n <div class={cn('flex min-w-0 flex-col gap-5', props.class)}>\n <div class=\"flex flex-col gap-2\">\n <h1 class=\"text-xl font-semibold tracking-tight\">Help Center</h1>\n <p class=\"text-sm text-muted-foreground\">\n Keyboard shortcuts and resources for {props.appName}.\n </p>\n </div>\n <Card>\n <CardHeader>\n <h2 class=\"text-base font-semibold text-foreground\">Keyboard shortcuts</h2>\n </CardHeader>\n <CardContent>\n <ul class=\"flex flex-col gap-3\">\n <For each={props.shortcuts}>\n {(shortcut) => (\n <li class=\"flex flex-wrap items-center justify-between gap-2\">\n <span class=\"text-sm\">{shortcut.label}</span>\n <KbdGroup>\n <For each={shortcut.keys}>{(key) => <Kbd>{key}</Kbd>}</For>\n </KbdGroup>\n </li>\n )}\n </For>\n </ul>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <h2 class=\"text-base font-semibold text-foreground\">Project links</h2>\n </CardHeader>\n <CardContent>\n <ul class=\"flex flex-col gap-4\">\n <For each={props.links}>\n {(link) => (\n <li class=\"flex min-w-0 flex-col items-start gap-1\">\n <ActionButton\n as=\"a\"\n variant=\"link\"\n size=\"sm\"\n class=\"text-foreground decoration-primary\"\n href={link.url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n tooltip={`Open ${link.label} in your browser.`}\n onClick={(event) => {\n if (props.openExternal) {\n event.preventDefault()\n void openLink(link.url)\n }\n }}\n >\n {link.label}\n <ExternalLink aria-hidden=\"true\" />\n </ActionButton>\n <Show when={link.description}>\n <p class=\"text-sm text-muted-foreground\">{link.description}</p>\n </Show>\n </li>\n )}\n </For>\n </ul>\n </CardContent>\n </Card>\n <Show when={error()}>\n <Alert variant=\"destructive\" role=\"alert\">\n <AlertDescription>{error()}</AlertDescription>\n </Alert>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmBA,SAAgB2B,WAAWC,OAAwB;CACjD,MAAM,CAACC,OAAOC,YAAY9B,aAAa,EAAE;CACzC,IAAI+B,WAAW;CACf7B,gBAAgB;EACd6B,WAAW;CACb,CAAC;CACD,MAAMC,WAAW,OAAOb,QAAgB;EACtCW,SAAS,EAAE;EACX,IAAI;GACF,MAAMF,MAAMJ,eAAeL,GAAG;EAChC,QAAQ;GACN,IAAI,CAACY,UAAUD,SAAS,sDAAsD;EAChF;CACF;CACA,cAAA;EAAA,IAAAG,OAAAC,QAAA,GAAAI,QAAAL,KAAAG,WAAAA,WAAAG,aAAAE,QAAAH,MAAAF,WAAAG;EAAAE,MAAAF;EAAAI,OAAAL,aAK8CV,MAAMP,SAAOoB,KAAA;EAAAE,OAAAV,MAAAW,gBAGtDnC,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8C,QAAM;OACNC,KAAG;OAAA,IACHC,UAAO;QAAA,OAAE,QAAQT,KAAK3C,MAAK;OAAmB;OAC9CqD,UAAUC,UAAU;QAClB,IAAIzC,MAAMJ,cAAc;SACtB6C,MAAMC,eAAe;SACrB,SAAcZ,KAAKvC,GAAG;QACxB;OACF;OAAC,IAAA0B,WAAA;QAAA,OAAA,CAAA0B,WAEAb,KAAK3C,KAAK,GAAA6B,gBACVxC,cAAY,EAAA,eAAA,OAAA,CAAA,CAAA;OAAA;MAAA,CAAA,GAAA,IAAA;MAAAuC,OAAAgB,QAAAf,gBAEdzC,MAAI;OAAA,IAACqE,OAAI;QAAA,OAAEd,KAAKxC;OAAW;OAAA,IAAA2B,WAAA;QAAA,IAAA4B,SAAAC,QAAA;QAAA/B,OAAA8B,cACgBf,KAAKxC,WAAW;QAAA,OAAAuD;OAAA;MAAA,CAAA,GAAA,IAAA;MAAA,OAAAd;KAAA,EAAA,CAAA;IAG/D,CAAA,CAAA;IAAA,OAAAH;GAAA,EAAA,CAAA,CAAA;EAAA,EAAA,CAAA,GAAA,IAAA;EAAAb,OAAAV,MAAAW,gBAKRzC,MAAI;GAAA,IAACqE,OAAI;IAAA,OAAE3C,MAAM;GAAC;GAAA,IAAAgB,WAAA;IAAA,OAAAD,gBAChBrC,OAAK;KAACuD,SAAO;KAAea,MAAI;KAAA,IAAA9B,WAAA;MAAA,OAAAD,gBAC9BpC,kBAAgB,EAAA,IAAAqC,WAAA;OAAA,OAAEhB,MAAM;MAAC,EAAA,CAAA;KAAA;IAAA,CAAA;GAAA;EAAA,CAAA,GAAA,IAAA;EAAA+C,aAAAC,UAAA5C,MAjEpB5B,GAAG,+BAA+BuB,MAAMF,KAAK,CAAC,CAAA;EAAA,OAAAO;CAAA,EAAA,CAAA;AAsE9D"}
1
+ {"version":3,"file":"help-center.js","names":["createSignal","For","onCleanup","Show","ExternalLink","cn","ActionButton","Alert","AlertDescription","Card","CardContent","CardHeader","Kbd","KbdGroup","HelpShortcut","label","keys","HelpLink","description","url","HelpCenterProps","appName","shortcuts","links","openExternal","Promise","showHeader","class","HelpCenter","props","error","setError","disposed","openLink","_el$","_tmpl$6","_$insert","_$createComponent","when","children","_el$2","_tmpl$","_el$3","firstChild","_el$4","nextSibling","_el$5","_el$7","_el$6","_tmpl$2","_el$9","_tmpl$3","each","shortcut","_el$10","_tmpl$7","_el$11","key","_tmpl$4","_el$1","_tmpl$5","link","_el$12","_tmpl$9","as","variant","size","href","target","rel","tooltip","onClick","event","preventDefault","_$memo","_el$13","_tmpl$8","role","_$effect","_$className","_$createComponent","_$memo","_$className"],"sources":["../../../../src/components/composites/help-center/help-center.tsx"],"sourcesContent":["import { createSignal, For, onCleanup, Show } from 'solid-js'\nimport { ExternalLink } from 'lucide-solid'\nimport { cn } from '#lib/utils'\nimport { ActionButton } from '../action-button'\nimport { Alert, AlertDescription } from '../../ui/alert'\nimport { Card, CardContent, CardHeader } from '../../ui/card'\nimport { Kbd, KbdGroup } from '../../ui/kbd'\n\nexport type HelpShortcut = { label: string; keys: readonly string[] }\nexport type HelpLink = { label: string; description?: string; url: string }\nexport type HelpCenterProps = {\n appName: string\n shortcuts: readonly HelpShortcut[]\n links: readonly HelpLink[]\n openExternal?: (url: string) => Promise<void>\n /** Hides the page heading and introduction when a host dialog supplies them. */\n showHeader?: boolean\n class?: string\n}\n\n/** A shared help page: real keyboard shortcuts and the application's project resources. */\nexport function HelpCenter(props: HelpCenterProps) {\n const [error, setError] = createSignal('')\n let disposed = false\n onCleanup(() => {\n disposed = true\n })\n const openLink = async (url: string) => {\n setError('')\n try {\n await props.openExternal?.(url)\n } catch {\n if (!disposed) setError('Could not open this help resource. Please try again.')\n }\n }\n return (\n <div class={cn('flex min-w-0 flex-col gap-5', props.class)}>\n <Show when={props.showHeader !== false}>\n <div class=\"flex flex-col gap-2\">\n <h1 class=\"text-xl font-semibold tracking-tight\">Help Center</h1>\n <p class=\"text-sm text-muted-foreground\">\n Keyboard shortcuts and resources for {props.appName}.\n </p>\n </div>\n </Show>\n <Card>\n <CardHeader>\n <h2 class=\"text-base font-semibold text-foreground\">Keyboard shortcuts</h2>\n </CardHeader>\n <CardContent>\n <ul class=\"flex flex-col gap-3\">\n <For each={props.shortcuts}>\n {(shortcut) => (\n <li class=\"flex flex-wrap items-center justify-between gap-2\">\n <span class=\"text-sm\">{shortcut.label}</span>\n <KbdGroup>\n <For each={shortcut.keys}>{(key) => <Kbd>{key}</Kbd>}</For>\n </KbdGroup>\n </li>\n )}\n </For>\n </ul>\n </CardContent>\n </Card>\n <Card>\n <CardHeader>\n <h2 class=\"text-base font-semibold text-foreground\">Project links</h2>\n </CardHeader>\n <CardContent>\n <ul class=\"flex flex-col gap-4\">\n <For each={props.links}>\n {(link) => (\n <li class=\"flex min-w-0 flex-col items-start gap-1\">\n <ActionButton\n as=\"a\"\n variant=\"link\"\n size=\"sm\"\n class=\"text-foreground decoration-primary\"\n href={link.url}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n tooltip={`Open ${link.label} in your browser.`}\n onClick={(event) => {\n if (props.openExternal) {\n event.preventDefault()\n void openLink(link.url)\n }\n }}\n >\n {link.label}\n <ExternalLink aria-hidden=\"true\" />\n </ActionButton>\n <Show when={link.description}>\n <p class=\"text-sm text-muted-foreground\">{link.description}</p>\n </Show>\n </li>\n )}\n </For>\n </ul>\n </CardContent>\n </Card>\n <Show when={error()}>\n <Alert variant=\"destructive\" role=\"alert\">\n <AlertDescription>{error()}</AlertDescription>\n </Alert>\n </Show>\n </div>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAqBA,SAAgB4B,WAAWC,OAAwB;CACjD,MAAM,CAACC,OAAOC,YAAY/B,aAAa,EAAE;CACzC,IAAIgC,WAAW;CACf9B,gBAAgB;EACd8B,WAAW;CACb,CAAC;CACD,MAAMC,WAAW,OAAOd,QAAgB;EACtCY,SAAS,EAAE;EACX,IAAI;GACF,MAAMF,MAAML,eAAeL,GAAG;EAChC,QAAQ;GACN,IAAI,CA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SAAO;KAAeY,MAAI;KAAA,IAAAtC,WAAA;MAAA,OAAAF,gBAC9B7B,kBAAgB,EAAA,IAAA+B,WAAA;OAAA,OAAET,MAAM;MAAC,EAAA,CAAA;KAAA;IAAA,CAAA;GAAA;EAAA,CAAA,GAAA,IAAA;EAAAgD,aAAAC,UAAA7C,MAnEpB7B,GAAG,+BAA+BwB,MAAMF,KAAK,CAAC,CAAA;EAAA,OAAAO;CAAA,EAAA,CAAA;AAwE9D"}
@@ -13,6 +13,8 @@ export type HelpCenterProps = {
13
13
  shortcuts: readonly HelpShortcut[]
14
14
  links: readonly HelpLink[]
15
15
  openExternal?: (url: string) => Promise<void>
16
+ /** Hides the page heading and introduction when a host dialog supplies them. */
17
+ showHeader?: boolean
16
18
  class?: string
17
19
  }
18
20
 
@@ -33,12 +35,14 @@ export function HelpCenter(props: HelpCenterProps) {
33
35
  }
34
36
  return (
35
37
  <div class={cn('flex min-w-0 flex-col gap-5', props.class)}>
36
- <div class="flex flex-col gap-2">
37
- <h1 class="text-xl font-semibold tracking-tight">Help Center</h1>
38
- <p class="text-sm text-muted-foreground">
39
- Keyboard shortcuts and resources for {props.appName}.
40
- </p>
41
- </div>
38
+ <Show when={props.showHeader !== false}>
39
+ <div class="flex flex-col gap-2">
40
+ <h1 class="text-xl font-semibold tracking-tight">Help Center</h1>
41
+ <p class="text-sm text-muted-foreground">
42
+ Keyboard shortcuts and resources for {props.appName}.
43
+ </p>
44
+ </div>
45
+ </Show>
42
46
  <Card>
43
47
  <CardHeader>
44
48
  <h2 class="text-base font-semibold text-foreground">Keyboard shortcuts</h2>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adea-ai/ui",
3
- "version": "0.97.4",
3
+ "version": "0.97.6",
4
4
  "description": "The Adea design system: Kobalte-backed Solid components, semantic OKLCH tokens, and the app-shell layout primitives shared by Adea and Cortana.",
5
5
  "keywords": [
6
6
  "adea",
@@ -13,6 +13,8 @@ export type HelpCenterProps = {
13
13
  shortcuts: readonly HelpShortcut[]
14
14
  links: readonly HelpLink[]
15
15
  openExternal?: (url: string) => Promise<void>
16
+ /** Hides the page heading and introduction when a host dialog supplies them. */
17
+ showHeader?: boolean
16
18
  class?: string
17
19
  }
18
20
 
@@ -33,12 +35,14 @@ export function HelpCenter(props: HelpCenterProps) {
33
35
  }
34
36
  return (
35
37
  <div class={cn('flex min-w-0 flex-col gap-5', props.class)}>
36
- <div class="flex flex-col gap-2">
37
- <h1 class="text-xl font-semibold tracking-tight">Help Center</h1>
38
- <p class="text-sm text-muted-foreground">
39
- Keyboard shortcuts and resources for {props.appName}.
40
- </p>
41
- </div>
38
+ <Show when={props.showHeader !== false}>
39
+ <div class="flex flex-col gap-2">
40
+ <h1 class="text-xl font-semibold tracking-tight">Help Center</h1>
41
+ <p class="text-sm text-muted-foreground">
42
+ Keyboard shortcuts and resources for {props.appName}.
43
+ </p>
44
+ </div>
45
+ </Show>
42
46
  <Card>
43
47
  <CardHeader>
44
48
  <h2 class="text-base font-semibold text-foreground">Keyboard shortcuts</h2>