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,142 @@
1
+ # Contact page
2
+
3
+ A visitor wants to reach the person behind a site.
4
+
5
+ ## Do
6
+
7
+ - Use a `Form` for `form`, with Name, Email and Message, and follow the rules 'A form error shows next to the problem' and 'Success shows where the person is looking'.
8
+ - Show a problem with one field under that field. Say what to do: 'Enter an email address, like name@example.com.'
9
+ - Keep the label 'Send' while sending, and make the Button `loading`. Disable the fields.
10
+ - Show success in an inline success `Alert` with `autoDismiss={false}`: 'Message sent. I reply within two days.' Clear it on the next edit, and clear the fields.
11
+ - Say how long a reply takes, in the lede or in the confirmation.
12
+ - Add a spam-trap input named `website` in your own code, hidden from sight and from screen readers, with `tabIndex={-1}` and `autoComplete="off"`. The server drops a message that fills it. ODS has no hidden field, so the example leaves it out. Never show it as a visible `TextField`.
13
+ - Show a failed send above the fields in `<Alert type="error" variant="inline" showCloseButton>`: 'Could not send your message. Try again.' Keep what the visitor typed.
14
+ - Give the address in `links` as a `Link` with `mailto:` and as a `CopyField`, so a visitor with no mail app can copy it.
15
+ - Use one address only: 'hello@acme.example'.
16
+
17
+ ## Don't
18
+
19
+ - Do not change the Send label to Sending while it runs.
20
+ - Do not clear what the visitor typed after a failed send.
21
+ - Do not open the mail app from a Button with `window.open`. Use a link with `mailto:`.
22
+ - Do not close the confirmation on a timer. It stays until the next edit.
23
+ - Do not show both options on one page. Pick one.
24
+
25
+ ## Option: A message form
26
+
27
+ Use when: A visitor writes a message here, and the person reads and answers it.
28
+
29
+ Uses: `Alert`, `Button`, `Form`, `PageHeader`, `PageShell`, `Stack`, `TextField`, `Textarea`
30
+
31
+ ```tsx
32
+ 'use client';
33
+ import { useEffect, useRef, useState } from 'react';
34
+ import PageShell from 'oneslash-design-system/components/pageShell';
35
+ import PageHeader from 'oneslash-design-system/components/pageHeader';
36
+ import Form from 'oneslash-design-system/components/form';
37
+ import TextField from 'oneslash-design-system/components/textField';
38
+ import Textarea from 'oneslash-design-system/components/textarea';
39
+ import Alert from 'oneslash-design-system/components/alert';
40
+ import Button from 'oneslash-design-system/components/button';
41
+ import { Stack } from 'oneslash-design-system/components/layout';
42
+
43
+ // A small check: some text, an @, then some text.
44
+ function looksLikeEmail(value: string) {
45
+ return /^[^@\s]+@[^@\s]+$/.test(value);
46
+ }
47
+
48
+ export default function ContactPageForm() {
49
+ const [name, setName] = useState('');
50
+ const [email, setEmail] = useState('');
51
+ const [message, setMessage] = useState('');
52
+ const [errors, setErrors] = useState({ name: '', email: '', message: '' });
53
+ const [sent, setSent] = useState(false);
54
+ const [sending, setSending] = useState(false);
55
+ const timer = useRef<ReturnType<typeof setTimeout>>();
56
+
57
+ // Stops the request if the example goes away before it ends.
58
+ useEffect(() => () => clearTimeout(timer.current), []);
59
+
60
+ // Any edit clears the confirmation and the problem with that field.
61
+ function edit(field: 'name' | 'email' | 'message', set: (value: string) => void, value: string) {
62
+ set(value);
63
+ setSent(false);
64
+ setErrors((current) => ({ ...current, [field]: '' }));
65
+ }
66
+
67
+ function handleSubmit() {
68
+ if (sending) return;
69
+ setSent(false);
70
+ const next = {
71
+ name: name.trim() ? '' : 'Enter your name.',
72
+ email: !email.trim() ? 'Enter your email.' : looksLikeEmail(email.trim()) ? '' : 'Enter an email address, like name@example.com.',
73
+ message: message.trim() ? '' : 'Write a message.',
74
+ };
75
+ setErrors(next);
76
+ if (next.name || next.email || next.message) return;
77
+ setSending(true);
78
+ // A real page also has a hidden spam-trap input named `website`, in its own code. ODS has no hidden field, so the example leaves it out.
79
+ // Stands in for the request to the server.
80
+ timer.current = setTimeout(() => {
81
+ setSending(false);
82
+ setSent(true);
83
+ setName('');
84
+ setEmail('');
85
+ setMessage('');
86
+ }, 1200);
87
+ }
88
+
89
+ return (
90
+ <PageShell>
91
+ <Stack gap="xxlarge">
92
+ <PageHeader level={1} title="Contact" lede="I read every message and reply within two days." />
93
+ <Form aria-label="Contact" onSubmit={handleSubmit}>
94
+ {/* The confirmation stays until the next edit, so it has no close button and does not close on its own. */}
95
+ {sent && <Alert type="success" variant="inline" message="Message sent. I reply within two days." autoDismiss={false} />}
96
+ <TextField id="contact-page-name" label="Name" autoComplete="name" value={name} disabled={sending} error={Boolean(errors.name)} errorText={errors.name} onChange={(e) => edit('name', setName, e.target.value)} />
97
+ <TextField id="contact-page-email" label="Email" type="email" autoComplete="email" value={email} disabled={sending} error={Boolean(errors.email)} errorText={errors.email} onChange={(e) => edit('email', setEmail, e.target.value)} />
98
+ <Textarea id="contact-page-message" label="Message" maxRows={8} value={message} disabled={sending} error={Boolean(errors.message)} errorText={errors.message} onChange={(e) => edit('message', setMessage, e.target.value)} />
99
+ <Stack align="start">
100
+ <Button size="large" type="primary" state="enabled" label="Send" htmlType="submit" loading={sending} />
101
+ </Stack>
102
+ </Form>
103
+ </Stack>
104
+ </PageShell>
105
+ );
106
+ }
107
+ ```
108
+
109
+ ## Option: An address only
110
+
111
+ Use when: There is no inbox to read. The page gives an address and nothing else.
112
+
113
+ Uses: `CopyField`, `Link`, `PageHeader`, `PageShell`, `Stack`
114
+
115
+ ```tsx
116
+ 'use client';
117
+ import PageShell from 'oneslash-design-system/components/pageShell';
118
+ import PageHeader from 'oneslash-design-system/components/pageHeader';
119
+ import Link from 'oneslash-design-system/components/link';
120
+ import CopyField from 'oneslash-design-system/components/copyField';
121
+ import { Stack } from 'oneslash-design-system/components/layout';
122
+
123
+ export default function ContactPageLinks() {
124
+ return (
125
+ <PageShell>
126
+ <Stack gap="xxlarge">
127
+ <PageHeader level={1} title="Contact" lede="Write to me at this address. I reply within two days." />
128
+ <Stack gap="large">
129
+ {/* A mailto link opens the visitor's own mail app. */}
130
+ <Link href="mailto:hello@acme.example">hello@acme.example</Link>
131
+ {/* For a visitor with no mail app: copy the address. */}
132
+ <CopyField id="contact-page-address" label="Email address" value="hello@acme.example" />
133
+ </Stack>
134
+ </Stack>
135
+ </PageShell>
136
+ );
137
+ }
138
+ ```
139
+
140
+ ## Native
141
+
142
+ On Apple a message form is a grouped `Form` with a Send button in the toolbar. For an address only, use a `Link` with a `mailto:` address.
@@ -0,0 +1 @@
1
+ export default function DocsComponentPageReference(): import("react").JSX.Element;
@@ -0,0 +1,93 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import PageShell from '../../components/pageShell';
4
+ import PageHeader from '../../components/pageHeader';
5
+ import SectionIntro from '../../components/sectionIntro';
6
+ import OnThisPage from '../../components/onThisPage';
7
+ import Surface from '../../components/surface';
8
+ import TabsContainer from '../../components/tabsContainer';
9
+ import Tab from '../../components/tab';
10
+ import TabPanel from '../../components/tabPanel';
11
+ import CodeBlock from '../../components/codeBlock';
12
+ import TableContainer from '../../components/tableContainer';
13
+ import TableHeader from '../../components/tableHeader';
14
+ import TableHeaderCell from '../../components/tableHeaderCell';
15
+ import TableRow from '../../components/tableRow';
16
+ import TableCell from '../../components/tableCell';
17
+ import Tag from '../../components/tag';
18
+ import Heading from '../../components/heading';
19
+ import List from '../../components/list';
20
+ import { Grid, PageSection, Stack } from '../../components/layout';
21
+ // One part, documented. A real site builds the props and the code from the part's own source.
22
+ var sections = [
23
+ { id: 'docs-component-page-example', label: 'Example' },
24
+ { id: 'docs-component-page-props', label: 'Props' },
25
+ { id: 'docs-component-page-use', label: 'When to use it' },
26
+ ];
27
+ var code = "<Tag\n variant=\"contained\"\n size=\"medium\"\n color=\"success\"\n label=\"Paid\"\n/>";
28
+ // Prop, Type, Default, Description
29
+ var props = [
30
+ { name: 'variant', type: "'contained' | 'textOnly' | 'dot'", initial: 'None, required', text: 'How it is drawn: a filled pill, text only, or a dot before the text.' },
31
+ { name: 'size', type: "'medium' | 'small' | 'tiny'", initial: 'None, required', text: 'How large it is set.' },
32
+ { name: 'state', type: "'enabled' | 'selected'", initial: "'enabled'", text: 'Selected draws the tag as chosen, such as an active filter.' },
33
+ { name: 'label', type: 'ReactNode', initial: 'None, required', text: 'The words in the tag.' },
34
+ ];
35
+ export default function DocsComponentPageReference() {
36
+ var _a = useState('example'), view = _a[0], setView = _a[1];
37
+ return (<PageShell aside={<OnThisPage items={sections}/>}>
38
+ <Stack gap="giant">
39
+ <PageHeader level={1} eyebrow="Components" title="Tag" lede="A short label that says what state something is in, such as Paid or Draft."/>
40
+ <PageSection gap="xlarge">
41
+ <SectionIntro id="docs-component-page-example" name="Example"/>
42
+ <Stack gap="large">
43
+ {/* The tabs only switch what is shown. Both panels are in the server HTML. */}
44
+ <TabsContainer aria-label="Example views">
45
+ <Tab id="docs-component-page-tab-example" controls="docs-component-page-panel-example" size="small" label="Example" isSelected={view === 'example'} onClickTab={function () { return setView('example'); }}/>
46
+ <Tab id="docs-component-page-tab-code" controls="docs-component-page-panel-code" size="small" label="Code" isSelected={view === 'code'} onClickTab={function () { return setView('code'); }}/>
47
+ </TabsContainer>
48
+ <TabPanel id="docs-component-page-panel-example" labelledBy="docs-component-page-tab-example" selected={view === 'example'}>
49
+ <Surface align="center" minHeight="short">
50
+ <Tag variant="contained" size="medium" color="success" label="Paid"/>
51
+ </Surface>
52
+ </TabPanel>
53
+ <TabPanel id="docs-component-page-panel-code" labelledBy="docs-component-page-tab-code" selected={view === 'code'}>
54
+ <CodeBlock id="docs-component-page-code" label="Tag example" language="TypeScript" code={code}/>
55
+ </TabPanel>
56
+ </Stack>
57
+ </PageSection>
58
+ <PageSection gap="xlarge">
59
+ <SectionIntro id="docs-component-page-props" name="Props"/>
60
+ {/* The name says which part's props these are. A wide table scrolls inside this region, not the page. */}
61
+ <TableContainer aria-label="Tag props" minWidth="720px">
62
+ <TableHeader>
63
+ <TableRow>
64
+ <TableHeaderCell width="120px">Prop</TableHeaderCell>
65
+ <TableHeaderCell width="260px">Type</TableHeaderCell>
66
+ <TableHeaderCell width="140px">Default</TableHeaderCell>
67
+ <TableHeaderCell>Description</TableHeaderCell>
68
+ </TableRow>
69
+ </TableHeader>
70
+ {props.map(function (p) { return (<TableRow key={p.name}>
71
+ <TableCell width="120px">{p.name}</TableCell>
72
+ <TableCell width="260px">{p.type}</TableCell>
73
+ <TableCell width="140px">{p.initial}</TableCell>
74
+ <TableCell>{p.text}</TableCell>
75
+ </TableRow>); })}
76
+ </TableContainer>
77
+ </PageSection>
78
+ <PageSection gap="xlarge">
79
+ <SectionIntro id="docs-component-page-use" name="When to use it"/>
80
+ <Grid columns={2} gap="xxlarge">
81
+ <Stack gap="medium">
82
+ <Heading level={3} size="h6">Do</Heading>
83
+ <List marker="dot" items={['Say the state in the words, and use the color to back it up.', 'Keep a tag to one or two words.']}/>
84
+ </Stack>
85
+ <Stack gap="medium">
86
+ <Heading level={3} size="h6">Don't</Heading>
87
+ <List marker="dot" items={['Do not use a tag as a button. Use a Button.', 'Do not rely on the color alone to say the state.']}/>
88
+ </Stack>
89
+ </Grid>
90
+ </PageSection>
91
+ </Stack>
92
+ </PageShell>);
93
+ }
@@ -0,0 +1,144 @@
1
+ # Docs component page
2
+
3
+ A person opens the page of one part of a design system or a code library to see what it looks like, how to write it and what it takes.
4
+
5
+ ## Do
6
+
7
+ - Use `PageHeader` with `level={1}`: the part's name is the one level 1 heading, with an `eyebrow` for its group and a `lede` of one sentence that says what it is for.
8
+ - Show the part live first, in a `Surface` with `align="center"`, so a person sees it before reading about it.
9
+ - Put the code of that same example in a `CodeBlock` with a `label` such as 'Tag example', so the Copy Button and the scroll region have a name.
10
+ - Switch between the example and its code with `TabsContainer`, `Tab` and `TabPanel`: give each `Tab` an `id` and `controls`, and keep both panels in the page.
11
+ - Show the props in a `TableContainer` with an `aria-label` such as 'Tag props' and a `minWidth`, with the columns Prop, Type, Default and Description. A wide table then scrolls inside its own region.
12
+ - Write 'None, required' in Default for a prop that has no default, so an empty cell never means two things.
13
+ - Show Do and Don't as two lists side by side in a `Grid columns={2}`, each under a level 3 `Heading`. Start each Don't with "Do not".
14
+ - Put `OnThisPage` in the `aside` of `PageShell`, as the case 'On this page' says, with an `id` on each `SectionIntro`.
15
+
16
+ ## Don't
17
+
18
+ - Do not draw the example from a picture. A person must be able to click and tab it.
19
+ - Do not mount only the selected view. Keep both panels in the page with `TabPanel`, so the code is in the server HTML before scripts run.
20
+ - Do not let a wide props table scroll the page. Name the table so it scrolls inside its region.
21
+ - Do not leave a Default cell empty or write a dash.
22
+ - Do not copy the look or the wording of another documentation site. Use the parts and the words of this one.
23
+
24
+ ## Example: A page that documents one part
25
+
26
+ Uses: `CodeBlock`, `Grid`, `Heading`, `List`, `OnThisPage`, `PageHeader`, `PageSection`, `PageShell`, `SectionIntro`, `Stack`, `Surface`, `Tab`, `TabPanel`, `TableCell`, `TableContainer`, `TableHeader`, `TableHeaderCell`, `TableRow`, `TabsContainer`, `Tag`
27
+
28
+ ```tsx
29
+ 'use client';
30
+ import { useState } from 'react';
31
+ import PageShell from 'oneslash-design-system/components/pageShell';
32
+ import PageHeader from 'oneslash-design-system/components/pageHeader';
33
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
34
+ import OnThisPage from 'oneslash-design-system/components/onThisPage';
35
+ import Surface from 'oneslash-design-system/components/surface';
36
+ import TabsContainer from 'oneslash-design-system/components/tabsContainer';
37
+ import Tab from 'oneslash-design-system/components/tab';
38
+ import TabPanel from 'oneslash-design-system/components/tabPanel';
39
+ import CodeBlock from 'oneslash-design-system/components/codeBlock';
40
+ import TableContainer from 'oneslash-design-system/components/tableContainer';
41
+ import TableHeader from 'oneslash-design-system/components/tableHeader';
42
+ import TableHeaderCell from 'oneslash-design-system/components/tableHeaderCell';
43
+ import TableRow from 'oneslash-design-system/components/tableRow';
44
+ import TableCell from 'oneslash-design-system/components/tableCell';
45
+ import Tag from 'oneslash-design-system/components/tag';
46
+ import Heading from 'oneslash-design-system/components/heading';
47
+ import List from 'oneslash-design-system/components/list';
48
+ import { Grid, PageSection, Stack } from 'oneslash-design-system/components/layout';
49
+
50
+ // One part, documented. A real site builds the props and the code from the part's own source.
51
+ const sections = [
52
+ { id: 'docs-component-page-example', label: 'Example' },
53
+ { id: 'docs-component-page-props', label: 'Props' },
54
+ { id: 'docs-component-page-use', label: 'When to use it' },
55
+ ];
56
+
57
+ const code = `<Tag
58
+ variant="contained"
59
+ size="medium"
60
+ color="success"
61
+ label="Paid"
62
+ />`;
63
+
64
+ // Prop, Type, Default, Description
65
+ const props = [
66
+ { name: 'variant', type: "'contained' | 'textOnly' | 'dot'", initial: 'None, required', text: 'How it is drawn: a filled pill, text only, or a dot before the text.' },
67
+ { name: 'size', type: "'medium' | 'small' | 'tiny'", initial: 'None, required', text: 'How large it is set.' },
68
+ { name: 'state', type: "'enabled' | 'selected'", initial: "'enabled'", text: 'Selected draws the tag as chosen, such as an active filter.' },
69
+ { name: 'label', type: 'ReactNode', initial: 'None, required', text: 'The words in the tag.' },
70
+ ];
71
+
72
+ export default function DocsComponentPageReference() {
73
+ const [view, setView] = useState<'example' | 'code'>('example');
74
+ return (
75
+ <PageShell aside={<OnThisPage items={sections} />}>
76
+ <Stack gap="giant">
77
+ <PageHeader
78
+ level={1}
79
+ eyebrow="Components"
80
+ title="Tag"
81
+ lede="A short label that says what state something is in, such as Paid or Draft."
82
+ />
83
+ <PageSection gap="xlarge">
84
+ <SectionIntro id="docs-component-page-example" name="Example" />
85
+ <Stack gap="large">
86
+ {/* The tabs only switch what is shown. Both panels are in the server HTML. */}
87
+ <TabsContainer aria-label="Example views">
88
+ <Tab id="docs-component-page-tab-example" controls="docs-component-page-panel-example" size="small" label="Example" isSelected={view === 'example'} onClickTab={() => setView('example')} />
89
+ <Tab id="docs-component-page-tab-code" controls="docs-component-page-panel-code" size="small" label="Code" isSelected={view === 'code'} onClickTab={() => setView('code')} />
90
+ </TabsContainer>
91
+ <TabPanel id="docs-component-page-panel-example" labelledBy="docs-component-page-tab-example" selected={view === 'example'}>
92
+ <Surface align="center" minHeight="short">
93
+ <Tag variant="contained" size="medium" color="success" label="Paid" />
94
+ </Surface>
95
+ </TabPanel>
96
+ <TabPanel id="docs-component-page-panel-code" labelledBy="docs-component-page-tab-code" selected={view === 'code'}>
97
+ <CodeBlock id="docs-component-page-code" label="Tag example" language="TypeScript" code={code} />
98
+ </TabPanel>
99
+ </Stack>
100
+ </PageSection>
101
+ <PageSection gap="xlarge">
102
+ <SectionIntro id="docs-component-page-props" name="Props" />
103
+ {/* The name says which part's props these are. A wide table scrolls inside this region, not the page. */}
104
+ <TableContainer aria-label="Tag props" minWidth="720px">
105
+ <TableHeader>
106
+ <TableRow>
107
+ <TableHeaderCell width="120px">Prop</TableHeaderCell>
108
+ <TableHeaderCell width="260px">Type</TableHeaderCell>
109
+ <TableHeaderCell width="140px">Default</TableHeaderCell>
110
+ <TableHeaderCell>Description</TableHeaderCell>
111
+ </TableRow>
112
+ </TableHeader>
113
+ {props.map((p) => (
114
+ <TableRow key={p.name}>
115
+ <TableCell width="120px">{p.name}</TableCell>
116
+ <TableCell width="260px">{p.type}</TableCell>
117
+ <TableCell width="140px">{p.initial}</TableCell>
118
+ <TableCell>{p.text}</TableCell>
119
+ </TableRow>
120
+ ))}
121
+ </TableContainer>
122
+ </PageSection>
123
+ <PageSection gap="xlarge">
124
+ <SectionIntro id="docs-component-page-use" name="When to use it" />
125
+ <Grid columns={2} gap="xxlarge">
126
+ <Stack gap="medium">
127
+ <Heading level={3} size="h6">Do</Heading>
128
+ <List marker="dot" items={['Say the state in the words, and use the color to back it up.', 'Keep a tag to one or two words.']} />
129
+ </Stack>
130
+ <Stack gap="medium">
131
+ <Heading level={3} size="h6">Don't</Heading>
132
+ <List marker="dot" items={['Do not use a tag as a button. Use a Button.', 'Do not rely on the color alone to say the state.']} />
133
+ </Stack>
134
+ </Grid>
135
+ </PageSection>
136
+ </Stack>
137
+ </PageShell>
138
+ );
139
+ }
140
+ ```
141
+
142
+ ## Native
143
+
144
+ On Apple use a `List` with a `NavigationLink` to a detail view of the part, its preview on top. On Android use a detail screen under a top app bar, with the code in a text block that scrolls.
@@ -0,0 +1 @@
1
+ export default function FaqAccordion(): import("react").JSX.Element;
@@ -0,0 +1,25 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import SectionIntro from '../../components/sectionIntro';
4
+ import Accordion from '../../components/accordion';
5
+ import Paragraph from '../../components/paragraph';
6
+ import { PageSection } from '../../components/layout';
7
+ // Made-up questions about Acme. A real site writes the ones its visitors ask.
8
+ var questions = [
9
+ { id: 'members', title: 'Who can join a workspace?', content: 'Anyone you invite by email. A workspace on Free holds 3 members. Pro and Business have no limit.' },
10
+ { id: 'yearly', title: 'Is there a yearly price?', content: 'Not yet. Every plan bills monthly, per member on Pro and Business.' },
11
+ { id: 'responses', title: 'When do agent responses start again?', content: "Each answer the agent posts uses one of the plan's responses. They start again on the 1st of each month." },
12
+ { id: 'refunds', title: 'Can I get a refund?', content: 'Yes, within 30 days of a payment. Write to help@acme.example and say which workspace it was for.' },
13
+ { id: 'export', title: 'Can I take my notes with me?', content: 'Yes. Export a note or a whole workspace as PDF on Pro and Business. On Free, copy the text of any note.' },
14
+ { id: 'cancel', title: 'What happens when I cancel?', content: 'The workspace stays on its plan until the end of the period you paid for, then moves to Free. Nothing is deleted.' },
15
+ { id: 'storage', title: 'What happens when storage is full?', content: 'You can still read everything. New files wait until you remove some or move to a plan with more room.' },
16
+ ];
17
+ export default function FaqAccordion() {
18
+ return (<PageShell>
19
+ <PageSection gap="xxlarge">
20
+ <SectionIntro id="faq" name="Common questions" statement="What people ask before they sign up."/>
21
+ {/* The section's heading is an h2, so each question is an h3. `linkable` opens the item named by #faq-refunds and scrolls it under the header. */}
22
+ <Accordion id="faq" headingLevel={3} linkable items={questions.map(function (q) { return ({ id: q.id, title: q.title, content: <Paragraph tone="secondary" measure="none">{q.content}</Paragraph> }); })}/>
23
+ </PageSection>
24
+ </PageShell>);
25
+ }
@@ -0,0 +1 @@
1
+ export default function FaqOpenList(): import("react").JSX.Element;
@@ -0,0 +1,27 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import SectionIntro from '../../components/sectionIntro';
4
+ import Heading from '../../components/heading';
5
+ import Paragraph from '../../components/paragraph';
6
+ import { PageSection, Stack } from '../../components/layout';
7
+ // Four short answers that everyone should read, so none is hidden.
8
+ var questions = [
9
+ { id: 'free', question: 'Is there a free plan?', answer: 'Yes. Free holds 3 members and needs no card.' },
10
+ { id: 'members', question: 'Who can join a workspace?', answer: 'Anyone you invite by email.' },
11
+ { id: 'refunds', question: 'Can I get a refund?', answer: 'Yes, within 30 days of a payment. Write to help@acme.example.' },
12
+ { id: 'cancel', question: 'What happens when I cancel?', answer: 'The workspace moves to Free at the end of the period you paid for. Nothing is deleted.' },
13
+ ];
14
+ export default function FaqOpenList() {
15
+ return (<PageShell>
16
+ <PageSection gap="xxlarge">
17
+ <SectionIntro id="faq-open-list" name="Common questions" statement="What people ask before they sign up."/>
18
+ <Stack gap="xlarge">
19
+ {questions.map(function (q) { return (<Stack key={q.id} gap="small">
20
+ {/* The section's heading is an h2, so each question is an h3 and its answer is read in order. */}
21
+ <Heading level={3} size="h6">{q.question}</Heading>
22
+ <Paragraph tone="secondary" measure="none">{q.answer}</Paragraph>
23
+ </Stack>); })}
24
+ </Stack>
25
+ </PageSection>
26
+ </PageShell>);
27
+ }
@@ -0,0 +1,110 @@
1
+ # FAQ
2
+
3
+ A marketing page answers the questions a visitor asks before signing up.
4
+
5
+ ## Do
6
+
7
+ - Put the section's name in `SectionIntro`, so the section has a level 2 heading. Write each question as the visitor would ask it, in sentence case, ending in a question mark.
8
+ - Use `Accordion` for `accordion`, with the questions as the titles and `headingLevel={3}`, one level below the section's heading.
9
+ - Add `linkable` to the Accordion, so a link such as `#faq-refunds` opens that item and scrolls it under the `SiteHeader`, also on a page that only renders in the browser.
10
+ - Keep `multiple` on, its default, so a visitor can keep two answers open to compare. Use `multiple={false}` only when two open answers push the next question off the screen.
11
+ - Make each question a level 3 `Heading` for `open-list`, with its answer in a `Paragraph` under it.
12
+ - Write each answer as a `Paragraph` of one or two sentences. Name the one next step when there is one, such as the address to write to.
13
+ - Put a question that most visitors have first, and one that few have last.
14
+
15
+ ## Don't
16
+
17
+ - Do not build the open and close by hand. `Accordion` does the heading, the Button, `aria-expanded` and the keys.
18
+ - Do not use `<details>`, which has no heading and no deep link.
19
+ - Do not hide up to five short answers behind a click. Show them.
20
+ - Do not put a Button or a form inside an answer. An answer is for reading.
21
+ - Do not write answers that sound like a sales page.
22
+
23
+ ## Option: Questions that open
24
+
25
+ Use when: There are more than about five questions, or the answers are long, and a visitor reads only some of them.
26
+
27
+ Uses: `Accordion`, `PageSection`, `PageShell`, `Paragraph`, `SectionIntro`
28
+
29
+ ```tsx
30
+ 'use client';
31
+ import PageShell from 'oneslash-design-system/components/pageShell';
32
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
33
+ import Accordion from 'oneslash-design-system/components/accordion';
34
+ import Paragraph from 'oneslash-design-system/components/paragraph';
35
+ import { PageSection } from 'oneslash-design-system/components/layout';
36
+
37
+ // Made-up questions about Acme. A real site writes the ones its visitors ask.
38
+ const questions = [
39
+ { id: 'members', title: 'Who can join a workspace?', content: 'Anyone you invite by email. A workspace on Free holds 3 members. Pro and Business have no limit.' },
40
+ { id: 'yearly', title: 'Is there a yearly price?', content: 'Not yet. Every plan bills monthly, per member on Pro and Business.' },
41
+ { id: 'responses', title: 'When do agent responses start again?', content: "Each answer the agent posts uses one of the plan's responses. They start again on the 1st of each month." },
42
+ { id: 'refunds', title: 'Can I get a refund?', content: 'Yes, within 30 days of a payment. Write to help@acme.example and say which workspace it was for.' },
43
+ { id: 'export', title: 'Can I take my notes with me?', content: 'Yes. Export a note or a whole workspace as PDF on Pro and Business. On Free, copy the text of any note.' },
44
+ { id: 'cancel', title: 'What happens when I cancel?', content: 'The workspace stays on its plan until the end of the period you paid for, then moves to Free. Nothing is deleted.' },
45
+ { id: 'storage', title: 'What happens when storage is full?', content: 'You can still read everything. New files wait until you remove some or move to a plan with more room.' },
46
+ ];
47
+
48
+ export default function FaqAccordion() {
49
+ return (
50
+ <PageShell>
51
+ <PageSection gap="xxlarge">
52
+ <SectionIntro id="faq" name="Common questions" statement="What people ask before they sign up." />
53
+ {/* The section's heading is an h2, so each question is an h3. `linkable` opens the item named by #faq-refunds and scrolls it under the header. */}
54
+ <Accordion
55
+ id="faq"
56
+ headingLevel={3}
57
+ linkable
58
+ items={questions.map((q) => ({ id: q.id, title: q.title, content: <Paragraph tone="secondary" measure="none">{q.content}</Paragraph> }))}
59
+ />
60
+ </PageSection>
61
+ </PageShell>
62
+ );
63
+ }
64
+ ```
65
+
66
+ ## Option: Questions with their answers showing
67
+
68
+ Use when: There are up to five short answers that everyone should read.
69
+
70
+ Uses: `Heading`, `PageSection`, `PageShell`, `Paragraph`, `SectionIntro`, `Stack`
71
+
72
+ ```tsx
73
+ 'use client';
74
+ import PageShell from 'oneslash-design-system/components/pageShell';
75
+ import SectionIntro from 'oneslash-design-system/components/sectionIntro';
76
+ import Heading from 'oneslash-design-system/components/heading';
77
+ import Paragraph from 'oneslash-design-system/components/paragraph';
78
+ import { PageSection, Stack } from 'oneslash-design-system/components/layout';
79
+
80
+ // Four short answers that everyone should read, so none is hidden.
81
+ const questions = [
82
+ { id: 'free', question: 'Is there a free plan?', answer: 'Yes. Free holds 3 members and needs no card.' },
83
+ { id: 'members', question: 'Who can join a workspace?', answer: 'Anyone you invite by email.' },
84
+ { id: 'refunds', question: 'Can I get a refund?', answer: 'Yes, within 30 days of a payment. Write to help@acme.example.' },
85
+ { id: 'cancel', question: 'What happens when I cancel?', answer: 'The workspace moves to Free at the end of the period you paid for. Nothing is deleted.' },
86
+ ];
87
+
88
+ export default function FaqOpenList() {
89
+ return (
90
+ <PageShell>
91
+ <PageSection gap="xxlarge">
92
+ <SectionIntro id="faq-open-list" name="Common questions" statement="What people ask before they sign up." />
93
+ <Stack gap="xlarge">
94
+ {questions.map((q) => (
95
+ <Stack key={q.id} gap="small">
96
+ {/* The section's heading is an h2, so each question is an h3 and its answer is read in order. */}
97
+ <Heading level={3} size="h6">{q.question}</Heading>
98
+ <Paragraph tone="secondary" measure="none">{q.answer}</Paragraph>
99
+ </Stack>
100
+ ))}
101
+ </Stack>
102
+ </PageSection>
103
+ </PageShell>
104
+ );
105
+ }
106
+ ```
107
+
108
+ ## Native
109
+
110
+ On Apple use a `List` of `DisclosureGroup` rows. On Android use a list with an expandable row. A short list is plain text under a heading.
@@ -0,0 +1 @@
1
+ export default function FeatureGridCards(): import("react").JSX.Element;
@@ -0,0 +1,33 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import SectionIntro from '../../components/sectionIntro';
4
+ import Surface from '../../components/surface';
5
+ import Icon from '../../components/icon';
6
+ import Heading from '../../components/heading';
7
+ import Paragraph from '../../components/paragraph';
8
+ import { Grid, PageSection, Stack } from '../../components/layout';
9
+ var features = [
10
+ { icon: 'MessagesSquare', title: 'Channels', line: 'A channel for each subject, open to the whole team.' },
11
+ { icon: 'ListChecks', title: 'Task threads', line: 'Every task keeps its own replies.' },
12
+ { icon: 'BookOpen', title: 'Notes', line: 'Notes and decisions the whole team can search.' },
13
+ { icon: 'Bot', title: 'Agent answers', line: 'Ask a question and see where the answer came from.' },
14
+ { icon: 'Paperclip', title: 'Files', line: 'Keep a file next to the talk about it.' },
15
+ { icon: 'Search', title: 'Search', line: 'Find any message, task or file from one box.' },
16
+ ];
17
+ export default function FeatureGridCards() {
18
+ return (<PageShell>
19
+ <PageSection gap="xxlarge">
20
+ <SectionIntro id="features" name="Features" statement="Everything your team needs to stay on the same page."/>
21
+ {/* Three across from md, one on a phone. Nothing here is a link, so nothing looks like one. */}
22
+ <Grid columns={3}>
23
+ {features.map(function (f) { return (<Surface key={f.title} padding="medium">
24
+ <Stack gap="medium">
25
+ <Icon name={f.icon} size="medium" color="secondary"/>
26
+ <Heading level={3} size="h6">{f.title}</Heading>
27
+ <Paragraph tone="secondary" size="body2" measure="none">{f.line}</Paragraph>
28
+ </Stack>
29
+ </Surface>); })}
30
+ </Grid>
31
+ </PageSection>
32
+ </PageShell>);
33
+ }
@@ -0,0 +1 @@
1
+ export default function FeatureGridRows(): import("react").JSX.Element;
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ import PageShell from '../../components/pageShell';
3
+ import SectionIntro from '../../components/sectionIntro';
4
+ import NumberedRow from '../../components/numberedRow';
5
+ import Paragraph from '../../components/paragraph';
6
+ import Image from '../../components/image';
7
+ import { PageSection, Stack } from '../../components/layout';
8
+ // Stand-ins for pictures of the product. A real page passes screenshots.
9
+ var channels = "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";
10
+ var knowledge = "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";
11
+ var agent = "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";
12
+ export default function FeatureGridRows() {
13
+ return (<PageShell wide>
14
+ <PageSection gap="xxlarge">
15
+ <SectionIntro id="features" name="Features" statement="Three things Acme does for your team."/>
16
+ {/* 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. */}
17
+ <Stack gap="giant">
18
+ <NumberedRow index={0} title="Channels and threads" proof="One place for talk and for tasks." visual={<Image src={channels} alt="A channel with three messages and a list of channels beside it" width={480} height={320}/>}>
19
+ <Paragraph tone="secondary" measure="none">Talk in channels. Turn any message into a task with its own thread.</Paragraph>
20
+ </NumberedRow>
21
+ <NumberedRow index={1} title="Notes the whole team can search" proof="Search finds a decision, not only a message." visual={<Image src={knowledge} alt="A search box over a page of notes and two smaller notes" width={480} height={320}/>}>
22
+ <Paragraph tone="secondary" measure="none">Write a note once. Everyone on the team finds it in the same place.</Paragraph>
23
+ </NumberedRow>
24
+ <NumberedRow index={2} title="Answers that show their source" proof="Its answers say where they came from." visual={<Image src={agent} alt="The agent's reply to a question, with the message it used linked under it" width={480} height={320}/>}>
25
+ <Paragraph tone="secondary" measure="none">Ask a question. The agent answers and links to the message it used.</Paragraph>
26
+ </NumberedRow>
27
+ </Stack>
28
+ </PageSection>
29
+ </PageShell>);
30
+ }