oneslash-design-system 2.20.0 → 2.22.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 (167) hide show
  1. package/README.md +1 -1
  2. package/dist/DESIGN.md +34 -1
  3. package/dist/cases/about-page/profile.d.ts +1 -0
  4. package/dist/cases/about-page/profile.jsx +64 -0
  5. package/dist/cases/about-page.md +114 -0
  6. package/dist/cases/admin-inbox/list.d.ts +1 -0
  7. package/dist/cases/admin-inbox/list.jsx +104 -0
  8. package/dist/cases/admin-inbox/split.d.ts +1 -0
  9. package/dist/cases/admin-inbox/split.jsx +68 -0
  10. package/dist/cases/admin-inbox.md +254 -0
  11. package/dist/cases/api-keys.md +1 -1
  12. package/dist/cases/app-shell/top-tabs.jsx +10 -4
  13. package/dist/cases/app-shell.md +13 -5
  14. package/dist/cases/blog-index/cards.d.ts +1 -0
  15. package/dist/cases/blog-index/cards.jsx +45 -0
  16. package/dist/cases/blog-index/list.d.ts +1 -0
  17. package/dist/cases/blog-index/list.jsx +46 -0
  18. package/dist/cases/blog-index.md +160 -0
  19. package/dist/cases/changelog/by-month.d.ts +1 -0
  20. package/dist/cases/changelog/by-month.jsx +70 -0
  21. package/dist/cases/changelog/one-page.d.ts +1 -0
  22. package/dist/cases/changelog/one-page.jsx +70 -0
  23. package/dist/cases/changelog.md +200 -0
  24. package/dist/cases/code-sample/block.d.ts +1 -0
  25. package/dist/cases/code-sample/block.jsx +19 -0
  26. package/dist/cases/code-sample/command.d.ts +1 -0
  27. package/dist/cases/code-sample/command.jsx +17 -0
  28. package/dist/cases/code-sample.md +96 -0
  29. package/dist/cases/contact-page/form.d.ts +1 -0
  30. package/dist/cases/contact-page/form.jsx +83 -0
  31. package/dist/cases/contact-page/links.d.ts +1 -0
  32. package/dist/cases/contact-page/links.jsx +19 -0
  33. package/dist/cases/contact-page.md +142 -0
  34. package/dist/cases/docs-component-page/reference.d.ts +1 -0
  35. package/dist/cases/docs-component-page/reference.jsx +93 -0
  36. package/dist/cases/docs-component-page.md +144 -0
  37. package/dist/cases/faq/accordion.d.ts +1 -0
  38. package/dist/cases/faq/accordion.jsx +25 -0
  39. package/dist/cases/faq/open-list.d.ts +1 -0
  40. package/dist/cases/faq/open-list.jsx +27 -0
  41. package/dist/cases/faq.md +110 -0
  42. package/dist/cases/feature-grid/cards.d.ts +1 -0
  43. package/dist/cases/feature-grid/cards.jsx +33 -0
  44. package/dist/cases/feature-grid/rows.d.ts +1 -0
  45. package/dist/cases/feature-grid/rows.jsx +30 -0
  46. package/dist/cases/feature-grid.md +132 -0
  47. package/dist/cases/image-viewer/gallery.d.ts +1 -0
  48. package/dist/cases/image-viewer/gallery.jsx +32 -0
  49. package/dist/cases/image-viewer/single.d.ts +1 -0
  50. package/dist/cases/image-viewer/single.jsx +25 -0
  51. package/dist/cases/image-viewer.md +123 -0
  52. package/dist/cases/landing-hero/centered.d.ts +1 -0
  53. package/dist/cases/landing-hero/centered.jsx +22 -0
  54. package/dist/cases/landing-hero/split.d.ts +1 -0
  55. package/dist/cases/landing-hero/split.jsx +30 -0
  56. package/dist/cases/landing-hero.md +114 -0
  57. package/dist/cases/legal-page/sections.d.ts +1 -0
  58. package/dist/cases/legal-page/sections.jsx +61 -0
  59. package/dist/cases/legal-page.md +96 -0
  60. package/dist/cases/long-form-page/article.d.ts +1 -0
  61. package/dist/cases/long-form-page/article.jsx +58 -0
  62. package/dist/cases/long-form-page/with-contents.d.ts +1 -0
  63. package/dist/cases/long-form-page/with-contents.jsx +41 -0
  64. package/dist/cases/long-form-page.md +170 -0
  65. package/dist/cases/message-actions/hover-toolbar.jsx +11 -8
  66. package/dist/cases/message-actions/menu.jsx +10 -7
  67. package/dist/cases/message-actions.md +19 -13
  68. package/dist/cases/message-attachments/in-composer.jsx +2 -2
  69. package/dist/cases/message-attachments/in-message.jsx +16 -11
  70. package/dist/cases/message-attachments.md +29 -17
  71. package/dist/cases/one-main-action.md +33 -0
  72. package/dist/cases/overflow-menu/in-a-header.jsx +9 -6
  73. package/dist/cases/overflow-menu/on-a-row.jsx +9 -6
  74. package/dist/cases/overflow-menu.md +16 -10
  75. package/dist/cases/page-end/cta-band.d.ts +1 -0
  76. package/dist/cases/page-end/cta-band.jsx +24 -0
  77. package/dist/cases/page-end/next-link.d.ts +1 -0
  78. package/dist/cases/page-end/next-link.jsx +18 -0
  79. package/dist/cases/page-end.md +88 -0
  80. package/dist/cases/password-gate/inline.d.ts +1 -0
  81. package/dist/cases/password-gate/inline.jsx +94 -0
  82. package/dist/cases/password-gate/modal.d.ts +1 -0
  83. package/dist/cases/password-gate/modal.jsx +81 -0
  84. package/dist/cases/password-gate/page.d.ts +1 -0
  85. package/dist/cases/password-gate/page.jsx +82 -0
  86. package/dist/cases/password-gate.md +351 -0
  87. package/dist/cases/pricing-section/cards.d.ts +1 -0
  88. package/dist/cases/pricing-section/cards.jsx +41 -0
  89. package/dist/cases/pricing-section.md +87 -0
  90. package/dist/cases/product-cards/grid.d.ts +1 -0
  91. package/dist/cases/product-cards/grid.jsx +20 -0
  92. package/dist/cases/product-cards.md +71 -0
  93. package/dist/cases/reply-feedback/thumbs.jsx +11 -8
  94. package/dist/cases/reply-feedback/with-reason.jsx +11 -8
  95. package/dist/cases/reply-feedback.md +20 -14
  96. package/dist/cases/section-index/cards.d.ts +1 -0
  97. package/dist/cases/section-index/cards.jsx +25 -0
  98. package/dist/cases/section-index/list.d.ts +1 -0
  99. package/dist/cases/section-index/list.jsx +56 -0
  100. package/dist/cases/section-index.md +140 -0
  101. package/dist/cases/settings-page/top-tabs.jsx +9 -6
  102. package/dist/cases/settings-page.md +13 -7
  103. package/dist/cases/site-header.md +1 -1
  104. package/dist/cases/site-search/dialog.d.ts +1 -0
  105. package/dist/cases/site-search/dialog.jsx +131 -0
  106. package/dist/cases/site-search.md +176 -0
  107. package/dist/cases/tabbed-panels/tabs.d.ts +1 -0
  108. package/dist/cases/tabbed-panels/tabs.jsx +40 -0
  109. package/dist/cases/tabbed-panels.md +81 -0
  110. package/dist/cases.json +1177 -31
  111. package/dist/components/accordion.d.ts +31 -0
  112. package/dist/components/accordion.jsx +103 -0
  113. package/dist/components/button.d.ts +2 -0
  114. package/dist/components/button.jsx +2 -2
  115. package/dist/components/codeBlock.d.ts +26 -0
  116. package/dist/components/codeBlock.jsx +101 -0
  117. package/dist/components/lightbox.d.ts +34 -0
  118. package/dist/components/lightbox.jsx +206 -0
  119. package/dist/components/linkCard.d.ts +10 -1
  120. package/dist/components/linkCard.jsx +32 -6
  121. package/dist/components/menuItem.jsx +1 -1
  122. package/dist/components/modal.d.ts +10 -2
  123. package/dist/components/modal.jsx +17 -12
  124. package/dist/components/pageHeader.jsx +1 -1
  125. package/dist/components/searchDialog.d.ts +44 -0
  126. package/dist/components/searchDialog.jsx +152 -0
  127. package/dist/components/siteHeader.d.ts +13 -2
  128. package/dist/components/siteHeader.jsx +21 -12
  129. package/dist/components/tab.d.ts +5 -1
  130. package/dist/components/tab.jsx +2 -2
  131. package/dist/components/tabPanel.d.ts +16 -0
  132. package/dist/components/tabPanel.jsx +12 -0
  133. package/dist/components/tabsContainer.d.ts +5 -1
  134. package/dist/components/tabsContainer.jsx +2 -2
  135. package/dist/components/tag.d.ts +6 -1
  136. package/dist/components/tag.jsx +10 -5
  137. package/dist/index.d.ts +5 -0
  138. package/dist/index.js +5 -0
  139. package/dist/internal/accordion.d.ts +4 -0
  140. package/dist/internal/accordion.js +53 -0
  141. package/dist/internal/combobox.d.ts +20 -0
  142. package/dist/internal/combobox.js +28 -0
  143. package/dist/internal/highlight.d.ts +5 -0
  144. package/dist/internal/highlight.js +18 -0
  145. package/dist/native-mapping.json +31 -1
  146. package/dist/stories/Accordion.stories.d.ts +11 -0
  147. package/dist/stories/Accordion.stories.jsx +93 -0
  148. package/dist/stories/Button.stories.jsx +12 -8
  149. package/dist/stories/Cases.generated.stories.d.ts +34 -0
  150. package/dist/stories/Cases.generated.stories.jsx +68 -0
  151. package/dist/stories/CodeBlock.stories.d.ts +12 -0
  152. package/dist/stories/CodeBlock.stories.jsx +65 -0
  153. package/dist/stories/Lightbox.stories.d.ts +11 -0
  154. package/dist/stories/Lightbox.stories.jsx +83 -0
  155. package/dist/stories/LinkCard.stories.d.ts +6 -0
  156. package/dist/stories/LinkCard.stories.jsx +17 -0
  157. package/dist/stories/MenuItem.stories.d.ts +1 -0
  158. package/dist/stories/MenuItem.stories.jsx +8 -0
  159. package/dist/stories/PageHeader.stories.d.ts +2 -0
  160. package/dist/stories/PageHeader.stories.jsx +13 -0
  161. package/dist/stories/SearchDialog.stories.d.ts +17 -0
  162. package/dist/stories/SearchDialog.stories.jsx +111 -0
  163. package/dist/stories/SiteHeader.stories.d.ts +4 -0
  164. package/dist/stories/SiteHeader.stories.jsx +89 -0
  165. package/dist/stories/TabPanel.stories.d.ts +7 -0
  166. package/dist/stories/TabPanel.stories.jsx +31 -0
  167. package/package.json +1 -1
@@ -0,0 +1,132 @@
1
+ # Feature grid
2
+
3
+ A marketing page lists what the product does, so a visitor can see if it fits.
4
+
5
+ ## Do
6
+
7
+ - Follow the rule 'A marketing page asks for one main action, in the same words everywhere'. A feature section does not add its own action. The page's one Button stays in the header, the hero and the end.
8
+ - Open the section with `SectionIntro`: a name and one statement. Its name is the h2.
9
+ - Use `Grid columns={3}` of `Surface` for `cards`, each with an `Icon`, a level 3 `Heading` and one line in a `Paragraph`.
10
+ - Use `NumberedRow` with `visual` for `rows`. The picture is beside the words from the 2xl breakpoint, swaps sides each row, and sits under the words below it. Give the picture alt text that says what is in it.
11
+ - Keep to six cards or fewer, and four rows or fewer. A longer list is a page of its own.
12
+ - Make a card a link only when it goes somewhere. Then use `LinkCard`, and the card itself is one link.
13
+
14
+ ## Don't
15
+
16
+ - Do not put a Button in every card.
17
+ - Do not make a card look like a link when it is not one.
18
+ - Do not fill the grid with logos of other products.
19
+ - Do not mix cards and rows in one section.
20
+
21
+ ## Option: Cards of equal weight
22
+
23
+ Use when: Three to six features count the same, and each one fits an icon, a name and one line.
24
+
25
+ Uses: `Grid`, `Heading`, `Icon`, `PageSection`, `PageShell`, `Paragraph`, `SectionIntro`, `Stack`, `Surface`
26
+
27
+ ```tsx
28
+ 'use client';
29
+ import PageShell from 'oneslash-design-system/components/pageShell';
30
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
31
+ import Surface from 'oneslash-design-system/components/surface';
32
+ import Icon from 'oneslash-design-system/components/icon';
33
+ import Heading from 'oneslash-design-system/components/heading';
34
+ import Paragraph from 'oneslash-design-system/components/paragraph';
35
+ import { Grid, PageSection, Stack } from 'oneslash-design-system/components/layout';
36
+
37
+ const features = [
38
+ { icon: 'MessagesSquare', title: 'Channels', line: 'A channel for each subject, open to the whole team.' },
39
+ { icon: 'ListChecks', title: 'Task threads', line: 'Every task keeps its own replies.' },
40
+ { icon: 'BookOpen', title: 'Notes', line: 'Notes and decisions the whole team can search.' },
41
+ { icon: 'Bot', title: 'Agent answers', line: 'Ask a question and see where the answer came from.' },
42
+ { icon: 'Paperclip', title: 'Files', line: 'Keep a file next to the talk about it.' },
43
+ { icon: 'Search', title: 'Search', line: 'Find any message, task or file from one box.' },
44
+ ] as const;
45
+
46
+ export default function FeatureGridCards() {
47
+ return (
48
+ <PageShell>
49
+ <PageSection gap="xxlarge">
50
+ <SectionIntro id="features" name="Features" statement="Everything your team needs to stay on the same page." />
51
+ {/* Three across from md, one on a phone. Nothing here is a link, so nothing looks like one. */}
52
+ <Grid columns={3}>
53
+ {features.map((f) => (
54
+ <Surface key={f.title} padding="medium">
55
+ <Stack gap="medium">
56
+ <Icon name={f.icon} size="medium" color="secondary" />
57
+ <Heading level={3} size="h6">{f.title}</Heading>
58
+ <Paragraph tone="secondary" size="body2" measure="none">{f.line}</Paragraph>
59
+ </Stack>
60
+ </Surface>
61
+ ))}
62
+ </Grid>
63
+ </PageSection>
64
+ </PageShell>
65
+ );
66
+ }
67
+ ```
68
+
69
+ ## Option: Rows with a picture
70
+
71
+ Use when: Two to four features each need a picture to be understood.
72
+
73
+ Uses: `Image`, `NumberedRow`, `PageSection`, `PageShell`, `Paragraph`, `SectionIntro`, `Stack`
74
+
75
+ ```tsx
76
+ 'use client';
77
+ import PageShell from 'oneslash-design-system/components/pageShell';
78
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
79
+ import NumberedRow from 'oneslash-design-system/components/numberedRow';
80
+ import Paragraph from 'oneslash-design-system/components/paragraph';
81
+ import Image from 'oneslash-design-system/components/image';
82
+ import { PageSection, Stack } from 'oneslash-design-system/components/layout';
83
+
84
+ // Stand-ins for pictures of the product. A real page passes screenshots.
85
+ const channels =
86
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'%3E%3Crect width='480' height='320' fill='%23eef2f6'/%3E%3Crect x='30' y='30' width='120' height='260' rx='10' fill='%23dfe7ef'/%3E%3Crect x='170' y='40' width='200' height='36' rx='10' fill='%23ffffff'/%3E%3Crect x='230' y='96' width='220' height='36' rx='10' fill='%232f6b4f'/%3E%3Crect x='170' y='152' width='180' height='36' rx='10' fill='%23ffffff'/%3E%3Crect x='170' y='250' width='280' height='36' rx='10' fill='%23ffffff'/%3E%3C/svg%3E";
87
+ const knowledge =
88
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'%3E%3Crect width='480' height='320' fill='%23efe9df'/%3E%3Crect x='40' y='40' width='400' height='40' rx='10' fill='%23ffffff'/%3E%3Crect x='40' y='100' width='190' height='170' rx='10' fill='%23ffffff'/%3E%3Crect x='250' y='100' width='190' height='80' rx='10' fill='%23dfe7ef'/%3E%3Crect x='250' y='190' width='190' height='80' rx='10' fill='%23dfe7ef'/%3E%3C/svg%3E";
89
+ const agent =
90
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 320'%3E%3Crect width='480' height='320' fill='%23e6efe9'/%3E%3Crect x='40' y='40' width='260' height='40' rx='10' fill='%23ffffff'/%3E%3Crect x='180' y='100' width='260' height='60' rx='10' fill='%232f6b4f'/%3E%3Crect x='40' y='180' width='300' height='60' rx='10' fill='%23ffffff'/%3E%3Crect x='40' y='256' width='200' height='30' rx='10' fill='%23dfe7ef'/%3E%3C/svg%3E";
91
+
92
+ export default function FeatureGridRows() {
93
+ return (
94
+ <PageShell wide>
95
+ <PageSection gap="xxlarge">
96
+ <SectionIntro id="features" name="Features" statement="Three things Acme does for your team." />
97
+ {/* Each row is a number, a title, a few words and a picture. The picture is beside the words from 2xl and swaps sides each row, and under them below that. */}
98
+ <Stack gap="giant">
99
+ <NumberedRow
100
+ index={0}
101
+ title="Channels and threads"
102
+ proof="One place for talk and for tasks."
103
+ visual={<Image src={channels} alt="A channel with three messages and a list of channels beside it" width={480} height={320} />}
104
+ >
105
+ <Paragraph tone="secondary" measure="none">Talk in channels. Turn any message into a task with its own thread.</Paragraph>
106
+ </NumberedRow>
107
+ <NumberedRow
108
+ index={1}
109
+ title="Notes the whole team can search"
110
+ proof="Search finds a decision, not only a message."
111
+ visual={<Image src={knowledge} alt="A search box over a page of notes and two smaller notes" width={480} height={320} />}
112
+ >
113
+ <Paragraph tone="secondary" measure="none">Write a note once. Everyone on the team finds it in the same place.</Paragraph>
114
+ </NumberedRow>
115
+ <NumberedRow
116
+ index={2}
117
+ title="Answers that show their source"
118
+ proof="Its answers say where they came from."
119
+ visual={<Image src={agent} alt="The agent's reply to a question, with the message it used linked under it" width={480} height={320} />}
120
+ >
121
+ <Paragraph tone="secondary" measure="none">Ask a question. The agent answers and links to the message it used.</Paragraph>
122
+ </NumberedRow>
123
+ </Stack>
124
+ </PageSection>
125
+ </PageShell>
126
+ );
127
+ }
128
+ ```
129
+
130
+ ## Native
131
+
132
+ On Apple use a `List` of `Label`s, or a `TabView` of pages for a first-run tour. On Android use a list with leading icons.
@@ -0,0 +1 @@
1
+ export default function ImageViewerGallery(): import("react").JSX.Element;
@@ -0,0 +1,32 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import PageShell from '../../components/pageShell';
4
+ import SectionIntro from '../../components/sectionIntro';
5
+ import Lightbox, { LightboxThumbnail } from '../../components/lightbox';
6
+ import { Grid, PageSection } from '../../components/layout';
7
+ // Three drawings stand in for the photos. A real page passes its own files.
8
+ var hillside = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Crect width='160' height='120' fill='%23dfe9f2'/%3E%3Ccircle cx='120' cy='32' r='14' fill='%23f2c46d'/%3E%3Cpath d='M0 90 50 60l40 22 30-18 40 24v32H0z' fill='%232f6b4f'/%3E%3C/svg%3E";
9
+ var desk = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Crect width='160' height='120' fill='%23efe6da'/%3E%3Crect x='30' y='30' width='100' height='60' rx='6' fill='%23333d47'/%3E%3Crect x='38' y='38' width='84' height='44' rx='2' fill='%2389b4d9'/%3E%3Crect x='20' y='92' width='120' height='6' rx='3' fill='%238a6d4b'/%3E%3C/svg%3E";
10
+ var board = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 720'%3E%3Crect width='1280' height='720' fill='%23eef2f6'/%3E%3Crect x='120' y='120' width='460' height='480' rx='24' fill='%23ffffff'/%3E%3Crect x='680' y='120' width='480' height='220' rx='24' fill='%23dfe7ef'/%3E%3Crect x='680' y='380' width='480' height='220' rx='24' fill='%232f6b4f'/%3E%3Crect x='160' y='170' width='240' height='20' rx='10' fill='%23aab8c6'/%3E%3Crect x='160' y='220' width='360' height='16' rx='8' fill='%23c2cfdb'/%3E%3Crect x='160' y='260' width='320' height='16' rx='8' fill='%23c2cfdb'/%3E%3C/svg%3E";
11
+ var images = [
12
+ { src: hillside, alt: 'A green hillside under a pale sky with the sun on the right', caption: 'The hill behind the new office.' },
13
+ { src: desk, alt: 'A laptop on a wooden desk, its screen blue', caption: 'A desk set up for the first day.' },
14
+ { src: board, alt: 'A thread beside a note, with the decision marked in green', caption: 'A decision, with the notes that led to it.' },
15
+ ];
16
+ export default function ImageViewerGallery() {
17
+ var _a = useState(false), open = _a[0], setOpen = _a[1];
18
+ var _b = useState(0), index = _b[0], setIndex = _b[1];
19
+ return (<PageShell>
20
+ <PageSection gap="xlarge">
21
+ <SectionIntro id="image-viewer-gallery-intro" name="Pictures" statement="The office and a decision."/>
22
+ {/* Each thumbnail is a button named 'Open image: <alt>'. Closing the viewer gives focus back to the one that opened it. */}
23
+ <Grid compact columns={3}>
24
+ {images.map(function (image, i) { return (<LightboxThumbnail key={image.alt} image={image} onOpen={function () {
25
+ setIndex(i);
26
+ setOpen(true);
27
+ }}/>); })}
28
+ </Grid>
29
+ </PageSection>
30
+ <Lightbox images={images} index={index} onIndexChange={setIndex} isOpen={open} onClose={function () { return setOpen(false); }} aria-label="Pictures"/>
31
+ </PageShell>);
32
+ }
@@ -0,0 +1 @@
1
+ export default function ImageViewerSingle(): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import PageShell from '../../components/pageShell';
4
+ import SectionIntro from '../../components/sectionIntro';
5
+ import Paragraph from '../../components/paragraph';
6
+ import Lightbox, { LightboxThumbnail } from '../../components/lightbox';
7
+ import { Grid, PageSection } from '../../components/layout';
8
+ // One drawing stands in for the photo. A real page passes its own file.
9
+ var board = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 720'%3E%3Crect width='1280' height='720' fill='%23eef2f6'/%3E%3Crect x='120' y='120' width='460' height='480' rx='24' fill='%23ffffff'/%3E%3Crect x='680' y='120' width='480' height='220' rx='24' fill='%23dfe7ef'/%3E%3Crect x='680' y='380' width='480' height='220' rx='24' fill='%232f6b4f'/%3E%3Crect x='160' y='170' width='240' height='20' rx='10' fill='%23aab8c6'/%3E%3Crect x='160' y='220' width='360' height='16' rx='8' fill='%23c2cfdb'/%3E%3Crect x='160' y='260' width='320' height='16' rx='8' fill='%23c2cfdb'/%3E%3C/svg%3E";
10
+ var image = { src: board, alt: 'A thread beside a note, with the decision marked in green', caption: 'A decision, with the notes that led to it.' };
11
+ export default function ImageViewerSingle() {
12
+ var _a = useState(false), open = _a[0], setOpen = _a[1];
13
+ return (<PageShell>
14
+ <PageSection gap="xlarge">
15
+ <SectionIntro id="image-viewer-single-intro" name="A decision" statement="The thread and the note, side by side.">
16
+ <Paragraph tone="secondary">Open the picture to read it at full size.</Paragraph>
17
+ </SectionIntro>
18
+ {/* One image: the viewer shows no arrows and no count. */}
19
+ <Grid columns={2}>
20
+ <LightboxThumbnail image={image} onOpen={function () { return setOpen(true); }}/>
21
+ </Grid>
22
+ </PageSection>
23
+ <Lightbox images={[image]} index={0} onIndexChange={function () { }} isOpen={open} onClose={function () { return setOpen(false); }} aria-label="Decision picture"/>
24
+ </PageShell>);
25
+ }
@@ -0,0 +1,123 @@
1
+ # Image viewer
2
+
3
+ A page shows images small, and a person wants to see one larger without leaving the page.
4
+
5
+ ## Do
6
+
7
+ - Show each image as a `LightboxThumbnail` and keep the open state and the index of the shown image in your page. For `gallery`, put the thumbnails in a `Grid compact`, two across on a phone.
8
+ - Render one `Lightbox` for the page with the list of images, the `index`, `onIndexChange`, `isOpen` and `onClose`. Give it an `aria-label` that names the set, such as "Pictures".
9
+ - Write alt text that says what the image shows, such as "A laptop on a wooden desk, its screen blue". It names the thumbnail and stands in for an image that fails to load.
10
+ - Add a `caption` when the image needs words. The viewer shows it under the image and uses it as its title.
11
+ - Pass two or more images to get the arrows: the viewer shows 'Previous image', 'Next image' and '2 of 3' after the title. ArrowLeft, ArrowRight and a swipe step; the first and the last image stop there.
12
+ - Pass a single image in a list too, so the page keeps one way to open an image. The viewer then shows no arrows and no count.
13
+ - Let Escape, the backdrop and 'Close' close the viewer. Focus goes back to the thumbnail that opened it.
14
+ - Count on the viewer when an image fails to load: it shows 'This image could not be loaded.' with its alt text, and the arrows still work.
15
+ - Follow the case 'Attachments' for images that sit in a message.
16
+
17
+ ## Don't
18
+
19
+ - Do not open an image from a click on an `Image`. Use `LightboxThumbnail`, a button that a keyboard reaches.
20
+ - Do not leave the alt text empty on a thumbnail, or write "image" or a file name.
21
+ - Do not build a full-screen layer with a portal of your own. `Lightbox` is a dialog with a focus trap and the focus return.
22
+ - Do not handle Escape or the arrow keys with a listener of your own. The viewer does.
23
+ - Do not use the viewer for video, or for a page that has one image and nothing to see larger.
24
+ - Do not hide the arrows on a phone. A swipe is a second way to step, not the only one.
25
+
26
+ ## Option: Several images opened from thumbnails
27
+
28
+ Use when: Two or more images that a person may want to step through.
29
+
30
+ Uses: `Grid`, `Lightbox`, `LightboxThumbnail`, `PageSection`, `PageShell`, `SectionIntro`
31
+
32
+ ```tsx
33
+ 'use client';
34
+ import { useState } from 'react';
35
+ import PageShell from 'oneslash-design-system/components/pageShell';
36
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
37
+ import Lightbox, { LightboxThumbnail } from 'oneslash-design-system/components/lightbox';
38
+ import { Grid, PageSection } from 'oneslash-design-system/components/layout';
39
+
40
+ // Three drawings stand in for the photos. A real page passes its own files.
41
+ const hillside =
42
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Crect width='160' height='120' fill='%23dfe9f2'/%3E%3Ccircle cx='120' cy='32' r='14' fill='%23f2c46d'/%3E%3Cpath d='M0 90 50 60l40 22 30-18 40 24v32H0z' fill='%232f6b4f'/%3E%3C/svg%3E";
43
+ const desk =
44
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 120'%3E%3Crect width='160' height='120' fill='%23efe6da'/%3E%3Crect x='30' y='30' width='100' height='60' rx='6' fill='%23333d47'/%3E%3Crect x='38' y='38' width='84' height='44' rx='2' fill='%2389b4d9'/%3E%3Crect x='20' y='92' width='120' height='6' rx='3' fill='%238a6d4b'/%3E%3C/svg%3E";
45
+ const board =
46
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 720'%3E%3Crect width='1280' height='720' fill='%23eef2f6'/%3E%3Crect x='120' y='120' width='460' height='480' rx='24' fill='%23ffffff'/%3E%3Crect x='680' y='120' width='480' height='220' rx='24' fill='%23dfe7ef'/%3E%3Crect x='680' y='380' width='480' height='220' rx='24' fill='%232f6b4f'/%3E%3Crect x='160' y='170' width='240' height='20' rx='10' fill='%23aab8c6'/%3E%3Crect x='160' y='220' width='360' height='16' rx='8' fill='%23c2cfdb'/%3E%3Crect x='160' y='260' width='320' height='16' rx='8' fill='%23c2cfdb'/%3E%3C/svg%3E";
47
+
48
+ const images = [
49
+ { src: hillside, alt: 'A green hillside under a pale sky with the sun on the right', caption: 'The hill behind the new office.' },
50
+ { src: desk, alt: 'A laptop on a wooden desk, its screen blue', caption: 'A desk set up for the first day.' },
51
+ { src: board, alt: 'A thread beside a note, with the decision marked in green', caption: 'A decision, with the notes that led to it.' },
52
+ ];
53
+
54
+ export default function ImageViewerGallery() {
55
+ const [open, setOpen] = useState(false);
56
+ const [index, setIndex] = useState(0);
57
+ return (
58
+ <PageShell>
59
+ <PageSection gap="xlarge">
60
+ <SectionIntro id="image-viewer-gallery-intro" name="Pictures" statement="The office and a decision." />
61
+ {/* Each thumbnail is a button named 'Open image: <alt>'. Closing the viewer gives focus back to the one that opened it. */}
62
+ <Grid compact columns={3}>
63
+ {images.map((image, i) => (
64
+ <LightboxThumbnail
65
+ key={image.alt}
66
+ image={image}
67
+ onOpen={() => {
68
+ setIndex(i);
69
+ setOpen(true);
70
+ }}
71
+ />
72
+ ))}
73
+ </Grid>
74
+ </PageSection>
75
+ <Lightbox images={images} index={index} onIndexChange={setIndex} isOpen={open} onClose={() => setOpen(false)} aria-label="Pictures" />
76
+ </PageShell>
77
+ );
78
+ }
79
+ ```
80
+
81
+ ## Option: One image opened larger
82
+
83
+ Use when: One image whose detail is too small to read in the page.
84
+
85
+ Uses: `Grid`, `Lightbox`, `LightboxThumbnail`, `PageSection`, `PageShell`, `Paragraph`, `SectionIntro`
86
+
87
+ ```tsx
88
+ 'use client';
89
+ import { useState } from 'react';
90
+ import PageShell from 'oneslash-design-system/components/pageShell';
91
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
92
+ import Paragraph from 'oneslash-design-system/components/paragraph';
93
+ import Lightbox, { LightboxThumbnail } from 'oneslash-design-system/components/lightbox';
94
+ import { Grid, PageSection } from 'oneslash-design-system/components/layout';
95
+
96
+ // One drawing stands in for the photo. A real page passes its own file.
97
+ const board =
98
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 720'%3E%3Crect width='1280' height='720' fill='%23eef2f6'/%3E%3Crect x='120' y='120' width='460' height='480' rx='24' fill='%23ffffff'/%3E%3Crect x='680' y='120' width='480' height='220' rx='24' fill='%23dfe7ef'/%3E%3Crect x='680' y='380' width='480' height='220' rx='24' fill='%232f6b4f'/%3E%3Crect x='160' y='170' width='240' height='20' rx='10' fill='%23aab8c6'/%3E%3Crect x='160' y='220' width='360' height='16' rx='8' fill='%23c2cfdb'/%3E%3Crect x='160' y='260' width='320' height='16' rx='8' fill='%23c2cfdb'/%3E%3C/svg%3E";
99
+
100
+ const image = { src: board, alt: 'A thread beside a note, with the decision marked in green', caption: 'A decision, with the notes that led to it.' };
101
+
102
+ export default function ImageViewerSingle() {
103
+ const [open, setOpen] = useState(false);
104
+ return (
105
+ <PageShell>
106
+ <PageSection gap="xlarge">
107
+ <SectionIntro id="image-viewer-single-intro" name="A decision" statement="The thread and the note, side by side.">
108
+ <Paragraph tone="secondary">Open the picture to read it at full size.</Paragraph>
109
+ </SectionIntro>
110
+ {/* One image: the viewer shows no arrows and no count. */}
111
+ <Grid columns={2}>
112
+ <LightboxThumbnail image={image} onOpen={() => setOpen(true)} />
113
+ </Grid>
114
+ </PageSection>
115
+ <Lightbox images={[image]} index={0} onIndexChange={() => {}} isOpen={open} onClose={() => setOpen(false)} aria-label="Decision picture" />
116
+ </PageShell>
117
+ );
118
+ }
119
+ ```
120
+
121
+ ## Native
122
+
123
+ On Apple use a `fullScreenCover` with a `TabView` in `page` style, and `accessibilityLabel` on each image. On Android use a full-screen dialog with a `HorizontalPager` and a content description on each image.
@@ -0,0 +1 @@
1
+ export default function LandingHeroCentered(): import("react").JSX.Element;
@@ -0,0 +1,22 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import PageHeader from '../../components/pageHeader';
4
+ import Button from '../../components/button';
5
+ import Paragraph from '../../components/paragraph';
6
+ import { Cluster, Stack } from '../../components/layout';
7
+ export default function LandingHeroCentered() {
8
+ return (<PageShell>
9
+ <Stack gap="xxlarge">
10
+ {/* The only h1 on the page: level 1 is the default. */}
11
+ <PageHeader level={1} eyebrow="Team workspace with an AI agent" title="A shared workspace for your team and its agent" lede="Plan the work in threads, keep notes the whole team can search, and ask the agent when you need an answer."/>
12
+ {/* The rule's one main action first, then one secondary. They wrap on a phone. */}
13
+ <Stack gap="medium">
14
+ <Cluster>
15
+ <Button size="large" type="primary" state="enabled" label="Sign Up" href="#sign-up"/>
16
+ <Button size="large" type="secondary" state="enabled" label="See How It Works" href="#how-it-works"/>
17
+ </Cluster>
18
+ <Paragraph tone="secondary" size="body2" measure="none">Start on Free with 3 members. No card needed.</Paragraph>
19
+ </Stack>
20
+ </Stack>
21
+ </PageShell>);
22
+ }
@@ -0,0 +1 @@
1
+ export default function LandingHeroSplit(): import("react").JSX.Element;
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import PageHeader from '../../components/pageHeader';
4
+ import Button from '../../components/button';
5
+ import Paragraph from '../../components/paragraph';
6
+ import Figure from '../../components/figure';
7
+ import Image from '../../components/image';
8
+ import { Cluster, Grid, Stack } from '../../components/layout';
9
+ // A stand-in for a picture of the product. A real page passes a screenshot.
10
+ var appPicture = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Crect width='640' height='480' fill='%23eef2f6'/%3E%3Crect width='170' height='480' fill='%23dfe7ef'/%3E%3Crect x='20' y='28' width='90' height='12' rx='6' fill='%23aab8c6'/%3E%3Crect x='20' y='72' width='120' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='20' y='100' width='100' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='20' y='128' width='110' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='200' y='28' width='180' height='14' rx='7' fill='%23aab8c6'/%3E%3Crect x='200' y='80' width='300' height='44' rx='10' fill='%23ffffff'/%3E%3Crect x='260' y='148' width='340' height='44' rx='10' fill='%232f6b4f'/%3E%3Crect x='200' y='216' width='260' height='44' rx='10' fill='%23ffffff'/%3E%3Crect x='200' y='400' width='400' height='40' rx='10' fill='%23ffffff'/%3E%3C/svg%3E";
11
+ export default function LandingHeroSplit() {
12
+ return (<PageShell wide>
13
+ {/* Two columns from md. On a phone the words come first and the picture sits under them. */}
14
+ <Grid columns={2} gap="giant">
15
+ <Stack gap="xxlarge">
16
+ <PageHeader level={1} eyebrow="Team workspace with an AI agent" title="A shared workspace for your team and its agent" lede="Plan the work in threads, keep notes the whole team can search, and ask the agent when you need an answer."/>
17
+ <Stack gap="medium">
18
+ <Cluster>
19
+ <Button size="large" type="primary" state="enabled" label="Sign Up" href="#sign-up"/>
20
+ <Button size="large" type="secondary" state="enabled" label="See How It Works" href="#how-it-works"/>
21
+ </Cluster>
22
+ <Paragraph tone="secondary" size="body2" measure="none">Start on Free with 3 members. No card needed.</Paragraph>
23
+ </Stack>
24
+ </Stack>
25
+ <Figure crop={4 / 3}>
26
+ <Image src={appPicture} alt="The Acme workspace: a list of channels beside a conversation with the agent" width={640} height={480}/>
27
+ </Figure>
28
+ </Grid>
29
+ </PageShell>);
30
+ }
@@ -0,0 +1,114 @@
1
+ # Hero
2
+
3
+ A marketing page opens by saying what the product is and asking for one thing.
4
+
5
+ ## Do
6
+
7
+ - Follow the rule 'A marketing page asks for one main action, in the same words everywhere'.
8
+ - Use `PageHeader` with `level={1}`, an `eyebrow` that says what kind of product it is, a title and a lede. The page has one h1.
9
+ - Put the main action first, a primary `Button` labeled 'Sign Up', then one secondary action such as 'See How It Works'. Use `size="large"`.
10
+ - Put a short line under the actions that removes a doubt: 'Start on Free with 3 members. No card needed.'
11
+ - Put the two actions in a `Cluster`. On a phone they sit side by side, and the second moves to its own line when they do not fit.
12
+ - Keep the words left aligned, also in `centered`. A centered block of text is hard to read past two lines.
13
+ - Let the title wrap. A long word breaks inside the column and nothing scrolls sideways.
14
+ - Name the picture for a screen reader: say what is in it. Use `Figure` with `crop`, so the picture keeps its shape at every width.
15
+ - Show the words first and the picture under them on a phone. `Grid columns={2}` stacks the two parts in the order you write them.
16
+
17
+ ## Don't
18
+
19
+ - Do not add a second primary Button to the hero, or a third action.
20
+ - Do not put a second h1 on the page.
21
+ - Do not move the title or swap its words with a timer.
22
+ - Do not hide the main action under the picture on a phone.
23
+
24
+ ## Option: Words in one column
25
+
26
+ Use when: The words carry the page: the product is easy to say and a picture would add little.
27
+
28
+ Uses: `Button`, `Cluster`, `PageHeader`, `PageShell`, `Paragraph`, `Stack`
29
+
30
+ ```tsx
31
+ 'use client';
32
+ import PageShell from 'oneslash-design-system/components/pageShell';
33
+ import PageHeader from 'oneslash-design-system/components/pageHeader';
34
+ import Button from 'oneslash-design-system/components/button';
35
+ import Paragraph from 'oneslash-design-system/components/paragraph';
36
+ import { Cluster, Stack } from 'oneslash-design-system/components/layout';
37
+
38
+ export default function LandingHeroCentered() {
39
+ return (
40
+ <PageShell>
41
+ <Stack gap="xxlarge">
42
+ {/* The only h1 on the page: level 1 is the default. */}
43
+ <PageHeader
44
+ level={1}
45
+ eyebrow="Team workspace with an AI agent"
46
+ title="A shared workspace for your team and its agent"
47
+ lede="Plan the work in threads, keep notes the whole team can search, and ask the agent when you need an answer."
48
+ />
49
+ {/* The rule's one main action first, then one secondary. They wrap on a phone. */}
50
+ <Stack gap="medium">
51
+ <Cluster>
52
+ <Button size="large" type="primary" state="enabled" label="Sign Up" href="#sign-up" />
53
+ <Button size="large" type="secondary" state="enabled" label="See How It Works" href="#how-it-works" />
54
+ </Cluster>
55
+ <Paragraph tone="secondary" size="body2" measure="none">Start on Free with 3 members. No card needed.</Paragraph>
56
+ </Stack>
57
+ </Stack>
58
+ </PageShell>
59
+ );
60
+ }
61
+ ```
62
+
63
+ ## Option: Words beside a picture
64
+
65
+ Use when: A picture of the product explains it faster than words.
66
+
67
+ Uses: `Button`, `Cluster`, `Figure`, `Grid`, `Image`, `PageHeader`, `PageShell`, `Paragraph`, `Stack`
68
+
69
+ ```tsx
70
+ 'use client';
71
+ import PageShell from 'oneslash-design-system/components/pageShell';
72
+ import PageHeader from 'oneslash-design-system/components/pageHeader';
73
+ import Button from 'oneslash-design-system/components/button';
74
+ import Paragraph from 'oneslash-design-system/components/paragraph';
75
+ import Figure from 'oneslash-design-system/components/figure';
76
+ import Image from 'oneslash-design-system/components/image';
77
+ import { Cluster, Grid, Stack } from 'oneslash-design-system/components/layout';
78
+
79
+ // A stand-in for a picture of the product. A real page passes a screenshot.
80
+ const appPicture =
81
+ "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Crect width='640' height='480' fill='%23eef2f6'/%3E%3Crect width='170' height='480' fill='%23dfe7ef'/%3E%3Crect x='20' y='28' width='90' height='12' rx='6' fill='%23aab8c6'/%3E%3Crect x='20' y='72' width='120' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='20' y='100' width='100' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='20' y='128' width='110' height='10' rx='5' fill='%23c2cfdb'/%3E%3Crect x='200' y='28' width='180' height='14' rx='7' fill='%23aab8c6'/%3E%3Crect x='200' y='80' width='300' height='44' rx='10' fill='%23ffffff'/%3E%3Crect x='260' y='148' width='340' height='44' rx='10' fill='%232f6b4f'/%3E%3Crect x='200' y='216' width='260' height='44' rx='10' fill='%23ffffff'/%3E%3Crect x='200' y='400' width='400' height='40' rx='10' fill='%23ffffff'/%3E%3C/svg%3E";
82
+
83
+ export default function LandingHeroSplit() {
84
+ return (
85
+ <PageShell wide>
86
+ {/* Two columns from md. On a phone the words come first and the picture sits under them. */}
87
+ <Grid columns={2} gap="giant">
88
+ <Stack gap="xxlarge">
89
+ <PageHeader
90
+ level={1}
91
+ eyebrow="Team workspace with an AI agent"
92
+ title="A shared workspace for your team and its agent"
93
+ lede="Plan the work in threads, keep notes the whole team can search, and ask the agent when you need an answer."
94
+ />
95
+ <Stack gap="medium">
96
+ <Cluster>
97
+ <Button size="large" type="primary" state="enabled" label="Sign Up" href="#sign-up" />
98
+ <Button size="large" type="secondary" state="enabled" label="See How It Works" href="#how-it-works" />
99
+ </Cluster>
100
+ <Paragraph tone="secondary" size="body2" measure="none">Start on Free with 3 members. No card needed.</Paragraph>
101
+ </Stack>
102
+ </Stack>
103
+ <Figure crop={4 / 3}>
104
+ <Image src={appPicture} alt="The Acme workspace: a list of channels beside a conversation with the agent" width={640} height={480} />
105
+ </Figure>
106
+ </Grid>
107
+ </PageShell>
108
+ );
109
+ }
110
+ ```
111
+
112
+ ## Native
113
+
114
+ On Apple and Android an app has no hero. The first screen is the product, or a short sign-in.
@@ -0,0 +1 @@
1
+ export default function LegalPageSections(): import("react").JSX.Element;
@@ -0,0 +1,61 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import PageHeader from '../../components/pageHeader';
4
+ import OnThisPage from '../../components/onThisPage';
5
+ import Alert from '../../components/alert';
6
+ import Heading from '../../components/heading';
7
+ import Paragraph from '../../components/paragraph';
8
+ import List from '../../components/list';
9
+ import { Stack } from '../../components/layout';
10
+ // Generic sample text for a made-up service. A real page uses text written for the company.
11
+ var sections = [
12
+ { id: 'legal-page-using', title: '1. Using Acme' },
13
+ { id: 'legal-page-accounts', title: '2. Your account' },
14
+ { id: 'legal-page-content', title: '3. Your content' },
15
+ { id: 'legal-page-rules', title: '4. Rules of use' },
16
+ { id: 'legal-page-ending', title: '5. Deleting your account' },
17
+ { id: 'legal-page-contact', title: '6. Contact' },
18
+ ];
19
+ var items = sections.map(function (_a) {
20
+ var id = _a.id, title = _a.title;
21
+ return ({ id: id, label: title });
22
+ });
23
+ export default function LegalPageSections() {
24
+ return (<PageShell aside={<OnThisPage items={items}/>}>
25
+ <Stack gap="giant">
26
+ <Alert type="info" variant="inline" message="Sample text. This is not a real agreement." autoDismiss={false}/>
27
+ <PageHeader level={1} title="Terms of service" facts={[{ label: 'Last updated', value: 'Nov 16, 2026' }]}/>
28
+ <Stack gap="xxlarge">
29
+ <Stack gap="large">
30
+ <Heading level={2} size="h5" id="legal-page-using">1. Using Acme</Heading>
31
+ <Paragraph>These terms are between Acme and you. When you use the service, you agree to them. If you use it for a team, you say you may agree for that team.</Paragraph>
32
+ <Paragraph>We may change the service and these terms. We tell you before a change that matters to you.</Paragraph>
33
+ </Stack>
34
+ <Stack gap="large">
35
+ <Heading level={2} size="h5" id="legal-page-accounts">2. Your account</Heading>
36
+ <Paragraph>You keep your login details to yourself and tell us when you think someone else knows them. You answer for what happens under your account.</Paragraph>
37
+ <List marker="dot" size="body1" items={['Give true details when you sign up.', 'Use one account for yourself.', 'Tell us if you lose access.']}/>
38
+ </Stack>
39
+ <Stack gap="large">
40
+ <Heading level={2} size="h5" id="legal-page-content">3. Your content</Heading>
41
+ <Paragraph>What you write and upload stays yours. You let us store it and show it to the people you choose, so the service can work.</Paragraph>
42
+ <Paragraph>You can export your content or delete it at any time. Deleted content leaves our systems within 30 days.</Paragraph>
43
+ </Stack>
44
+ <Stack gap="large">
45
+ <Heading level={2} size="h5" id="legal-page-rules">4. Rules of use</Heading>
46
+ <Paragraph>Use Acme only for lawful work, and treat other people with respect. Do not:</Paragraph>
47
+ <List marker="dot" size="body1" items={['Break the law or ask others to.', 'Try to get into accounts that are not yours.', 'Send what harms the service or the people on it.']}/>
48
+ </Stack>
49
+ <Stack gap="large">
50
+ <Heading level={2} size="h5" id="legal-page-ending">5. Deleting your account</Heading>
51
+ <Paragraph>You can delete your account at any time from your settings. We may close it if you break these terms, and we tell you why when we do.</Paragraph>
52
+ <List marker="number" size="body1" items={['Open Settings and choose Delete Account.', 'Confirm, and the account is deleted.', 'Export your content first if you want to keep it.']}/>
53
+ </Stack>
54
+ <Stack gap="large">
55
+ <Heading level={2} size="h5" id="legal-page-contact">6. Contact</Heading>
56
+ <Paragraph>Write to help@acme.example with any question about these terms.</Paragraph>
57
+ </Stack>
58
+ </Stack>
59
+ </Stack>
60
+ </PageShell>);
61
+ }