oneslash-design-system 2.17.0 → 2.19.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 (282) hide show
  1. package/README.md +2 -2
  2. package/dist/DESIGN.md +55 -14
  3. package/dist/cases/accept-invite.md +1 -5
  4. package/dist/cases/account-menu/menu.d.ts +1 -0
  5. package/dist/cases/account-menu/menu.jsx +99 -0
  6. package/dist/cases/account-menu.md +164 -0
  7. package/dist/cases/agent-asks-before-risky-action.md +0 -4
  8. package/dist/cases/agent-cancels-when-unanswered.md +0 -4
  9. package/dist/cases/agent-options.md +0 -4
  10. package/dist/cases/agent-pending-reply.md +0 -4
  11. package/dist/cases/agent-plan-proposal.md +0 -4
  12. package/dist/cases/agent-question.md +0 -4
  13. package/dist/cases/agent-refuses-clearly.md +0 -4
  14. package/dist/cases/agent-says-what-it-is.md +0 -2
  15. package/dist/cases/agent-settings/form.d.ts +1 -0
  16. package/dist/cases/agent-settings/form.jsx +164 -0
  17. package/dist/cases/agent-settings.md +259 -0
  18. package/dist/cases/agent-shows-progress.md +0 -2
  19. package/dist/cases/agent-shows-sources.md +0 -2
  20. package/dist/cases/api-keys/list.d.ts +1 -0
  21. package/dist/cases/api-keys/list.jsx +162 -0
  22. package/dist/cases/api-keys.md +229 -0
  23. package/dist/cases/app-shell/sidebar.d.ts +1 -0
  24. package/dist/cases/app-shell/sidebar.jsx +124 -0
  25. package/dist/cases/app-shell/top-tabs.d.ts +1 -0
  26. package/dist/cases/app-shell/top-tabs.jsx +106 -0
  27. package/dist/cases/app-shell.md +364 -0
  28. package/dist/cases/artifact-card/card.jsx +32 -6
  29. package/dist/cases/artifact-card.md +55 -11
  30. package/dist/cases/auth-gate-loading.md +0 -4
  31. package/dist/cases/check-your-email.md +0 -4
  32. package/dist/cases/collapsible-search/popover.d.ts +1 -0
  33. package/dist/cases/collapsible-search/popover.jsx +74 -0
  34. package/dist/cases/collapsible-search.md +143 -0
  35. package/dist/cases/composer-limit.md +0 -4
  36. package/dist/cases/confirm-destructive-action.md +0 -4
  37. package/dist/cases/confirm-dialogs.md +0 -4
  38. package/dist/cases/conversation-starters.md +0 -4
  39. package/dist/cases/create-modal.md +0 -4
  40. package/dist/cases/danger-zone/collapsed.d.ts +1 -0
  41. package/dist/cases/danger-zone/collapsed.jsx +75 -0
  42. package/dist/cases/danger-zone/shown.d.ts +1 -0
  43. package/dist/cases/danger-zone/shown.jsx +95 -0
  44. package/dist/cases/danger-zone.md +263 -0
  45. package/dist/cases/device-login.md +0 -4
  46. package/dist/cases/email-confirmed.md +0 -4
  47. package/dist/cases/empty-list.md +0 -4
  48. package/dist/cases/empty-lists.md +0 -4
  49. package/dist/cases/empty-not-set-up.md +0 -4
  50. package/dist/cases/empty-search.md +0 -4
  51. package/dist/cases/error-page/in-shell.jsx +26 -17
  52. package/dist/cases/error-page.md +42 -25
  53. package/dist/cases/feedback-form.md +0 -4
  54. package/dist/cases/filter-menu/presets.d.ts +1 -0
  55. package/dist/cases/filter-menu/presets.jsx +53 -0
  56. package/dist/cases/filter-menu/with-clear.d.ts +1 -0
  57. package/dist/cases/filter-menu/with-clear.jsx +56 -0
  58. package/dist/cases/filter-menu.md +204 -0
  59. package/dist/cases/forgot-password.md +0 -4
  60. package/dist/cases/form-errors.md +0 -4
  61. package/dist/cases/import-checklist.md +0 -4
  62. package/dist/cases/inline-form-feedback.md +0 -4
  63. package/dist/cases/integrations-list/nested.d.ts +1 -0
  64. package/dist/cases/integrations-list/nested.jsx +164 -0
  65. package/dist/cases/integrations-list/rows.d.ts +1 -0
  66. package/dist/cases/integrations-list/rows.jsx +134 -0
  67. package/dist/cases/integrations-list.md +379 -0
  68. package/dist/cases/invite-member.md +0 -4
  69. package/dist/cases/load-failure.md +0 -4
  70. package/dist/cases/log-out-confirm.md +0 -4
  71. package/dist/cases/login-page.md +0 -4
  72. package/dist/cases/master-detail/list-then-page.d.ts +1 -0
  73. package/dist/cases/master-detail/list-then-page.jsx +65 -0
  74. package/dist/cases/master-detail/split.d.ts +1 -0
  75. package/dist/cases/master-detail/split.jsx +49 -0
  76. package/dist/cases/master-detail.md +213 -0
  77. package/dist/cases/members-list/rows.d.ts +1 -0
  78. package/dist/cases/members-list/rows.jsx +318 -0
  79. package/dist/cases/members-list/table.d.ts +1 -0
  80. package/dist/cases/members-list/table.jsx +351 -0
  81. package/dist/cases/members-list.md +799 -0
  82. package/dist/cases/mention-list.md +0 -4
  83. package/dist/cases/message-actions.md +0 -4
  84. package/dist/cases/message-attachments.md +0 -4
  85. package/dist/cases/message-composer.md +0 -4
  86. package/dist/cases/message-edit.md +0 -4
  87. package/dist/cases/message-reactions.md +0 -4
  88. package/dist/cases/message-row.md +0 -4
  89. package/dist/cases/mobile-menu/links.d.ts +1 -0
  90. package/dist/cases/mobile-menu/links.jsx +24 -0
  91. package/dist/cases/mobile-menu/sections.d.ts +1 -0
  92. package/dist/cases/mobile-menu/sections.jsx +61 -0
  93. package/dist/cases/mobile-menu.md +170 -0
  94. package/dist/cases/not-found-page/in-shell.jsx +26 -17
  95. package/dist/cases/not-found-page.md +41 -24
  96. package/dist/cases/notification-menu/menu.d.ts +1 -0
  97. package/dist/cases/notification-menu/menu.jsx +74 -0
  98. package/dist/cases/notification-menu.md +135 -0
  99. package/dist/cases/oauth-consent.md +0 -4
  100. package/dist/cases/on-off-settings/list.d.ts +1 -0
  101. package/dist/cases/on-off-settings/list.jsx +97 -0
  102. package/dist/cases/on-off-settings.md +116 -0
  103. package/dist/cases/on-this-page/aside.d.ts +1 -0
  104. package/dist/cases/on-this-page/aside.jsx +39 -0
  105. package/dist/cases/on-this-page.md +80 -0
  106. package/dist/cases/overflow-menu/in-a-header.d.ts +1 -0
  107. package/dist/cases/overflow-menu/in-a-header.jsx +128 -0
  108. package/dist/cases/overflow-menu/on-a-row.d.ts +1 -0
  109. package/dist/cases/overflow-menu/on-a-row.jsx +183 -0
  110. package/dist/cases/overflow-menu.md +410 -0
  111. package/dist/cases/page-header/actions.d.ts +1 -0
  112. package/dist/cases/page-header/actions.jsx +65 -0
  113. package/dist/cases/page-header/sub-page.d.ts +1 -0
  114. package/dist/cases/page-header/sub-page.jsx +37 -0
  115. package/dist/cases/page-header.md +195 -0
  116. package/dist/cases/phone-navigation.md +32 -0
  117. package/dist/cases/profile-form/form.d.ts +1 -0
  118. package/dist/cases/profile-form/form.jsx +153 -0
  119. package/dist/cases/profile-form.md +236 -0
  120. package/dist/cases/quick-switcher/modal.d.ts +1 -0
  121. package/dist/cases/quick-switcher/modal.jsx +114 -0
  122. package/dist/cases/quick-switcher.md +205 -0
  123. package/dist/cases/range-switch/segmented.d.ts +1 -0
  124. package/dist/cases/range-switch/segmented.jsx +30 -0
  125. package/dist/cases/range-switch.md +67 -0
  126. package/dist/cases/rename.md +0 -4
  127. package/dist/cases/reply-feedback.md +0 -4
  128. package/dist/cases/reply-sources.md +0 -4
  129. package/dist/cases/route-loading/region.jsx +27 -18
  130. package/dist/cases/route-loading.md +42 -23
  131. package/dist/cases/scope-picker/menu.d.ts +1 -0
  132. package/dist/cases/scope-picker/menu.jsx +47 -0
  133. package/dist/cases/scope-picker.md +97 -0
  134. package/dist/cases/set-new-password.md +0 -4
  135. package/dist/cases/settings-page/side-nav.d.ts +1 -0
  136. package/dist/cases/settings-page/side-nav.jsx +171 -0
  137. package/dist/cases/settings-page/top-tabs.d.ts +1 -0
  138. package/dist/cases/settings-page/top-tabs.jsx +129 -0
  139. package/dist/cases/settings-page.md +378 -0
  140. package/dist/cases/settings-save.md +35 -0
  141. package/dist/cases/side-pane/beside.d.ts +1 -0
  142. package/dist/cases/side-pane/beside.jsx +79 -0
  143. package/dist/cases/side-pane/over.d.ts +1 -0
  144. package/dist/cases/side-pane/over.jsx +58 -0
  145. package/dist/cases/side-pane.md +238 -0
  146. package/dist/cases/sidebar-nav/flat.d.ts +1 -0
  147. package/dist/cases/sidebar-nav/flat.jsx +81 -0
  148. package/dist/cases/sidebar-nav/nested.d.ts +1 -0
  149. package/dist/cases/sidebar-nav/nested.jsx +122 -0
  150. package/dist/cases/sidebar-nav.md +261 -0
  151. package/dist/cases/sign-up-page.md +1 -5
  152. package/dist/cases/site-footer/columns.d.ts +1 -0
  153. package/dist/cases/site-footer/columns.jsx +51 -0
  154. package/dist/cases/site-footer/simple.d.ts +1 -0
  155. package/dist/cases/site-footer/simple.jsx +24 -0
  156. package/dist/cases/site-footer.md +133 -0
  157. package/dist/cases/site-header/links.d.ts +1 -0
  158. package/dist/cases/site-header/links.jsx +26 -0
  159. package/dist/cases/site-header/sections.d.ts +1 -0
  160. package/dist/cases/site-header/sections.jsx +64 -0
  161. package/dist/cases/site-header.md +183 -0
  162. package/dist/cases/slash-command-list.md +0 -4
  163. package/dist/cases/success-feedback.md +0 -4
  164. package/dist/cases/tag-filter/tags.d.ts +1 -0
  165. package/dist/cases/tag-filter/tags.jsx +226 -0
  166. package/dist/cases/tag-filter.md +298 -0
  167. package/dist/cases/theme-switcher/menu.d.ts +1 -0
  168. package/dist/cases/theme-switcher/menu.jsx +47 -0
  169. package/dist/cases/theme-switcher/segmented.d.ts +1 -0
  170. package/dist/cases/theme-switcher/segmented.jsx +26 -0
  171. package/dist/cases/theme-switcher.md +149 -0
  172. package/dist/cases/type-to-confirm.md +0 -4
  173. package/dist/cases/typing-and-status.md +0 -4
  174. package/dist/cases/unsaved-changes-guard.md +0 -4
  175. package/dist/cases/upgrade-prompt.md +0 -4
  176. package/dist/cases.json +1737 -315
  177. package/dist/components/alert.d.ts +3 -1
  178. package/dist/components/alert.jsx +2 -2
  179. package/dist/components/appShell.d.ts +44 -0
  180. package/dist/components/appShell.jsx +121 -0
  181. package/dist/components/button.jsx +5 -2
  182. package/dist/components/checkBox.d.ts +5 -1
  183. package/dist/components/checkBox.jsx +2 -2
  184. package/dist/components/copyField.d.ts +20 -0
  185. package/dist/components/copyField.jsx +99 -0
  186. package/dist/components/drawer.d.ts +31 -0
  187. package/dist/components/drawer.jsx +121 -0
  188. package/dist/components/formField.d.ts +34 -0
  189. package/dist/components/formField.jsx +28 -0
  190. package/dist/components/heading.d.ts +5 -1
  191. package/dist/components/heading.jsx +2 -2
  192. package/dist/components/link.d.ts +6 -1
  193. package/dist/components/link.jsx +11 -3
  194. package/dist/components/menu.jsx +2 -2
  195. package/dist/components/menuItem.d.ts +10 -2
  196. package/dist/components/menuItem.jsx +4 -3
  197. package/dist/components/modal.jsx +12 -23
  198. package/dist/components/navigation.d.ts +9 -1
  199. package/dist/components/navigation.jsx +15 -3
  200. package/dist/components/onThisPage.d.ts +29 -0
  201. package/dist/components/onThisPage.jsx +151 -0
  202. package/dist/components/pageShell.d.ts +7 -1
  203. package/dist/components/pageShell.jsx +14 -1
  204. package/dist/components/popover.jsx +4 -0
  205. package/dist/components/radioGroup.d.ts +5 -1
  206. package/dist/components/radioGroup.jsx +2 -2
  207. package/dist/components/segmentedControl.d.ts +22 -0
  208. package/dist/components/segmentedControl.jsx +54 -0
  209. package/dist/components/select.d.ts +5 -1
  210. package/dist/components/select.jsx +2 -2
  211. package/dist/components/settingsSection.d.ts +36 -0
  212. package/dist/components/settingsSection.jsx +65 -0
  213. package/dist/components/sidePane.d.ts +32 -0
  214. package/dist/components/sidePane.jsx +128 -0
  215. package/dist/components/siteFooter.d.ts +24 -0
  216. package/dist/components/siteFooter.jsx +48 -0
  217. package/dist/components/siteHeader.d.ts +55 -0
  218. package/dist/components/siteHeader.jsx +125 -0
  219. package/dist/components/slidingIndicator.d.ts +50 -0
  220. package/dist/components/slidingIndicator.jsx +102 -0
  221. package/dist/components/switch.d.ts +25 -0
  222. package/dist/components/switch.jsx +55 -0
  223. package/dist/components/tab.jsx +5 -11
  224. package/dist/components/tabsContainer.jsx +5 -67
  225. package/dist/components/textField.d.ts +12 -2
  226. package/dist/components/textField.jsx +11 -4
  227. package/dist/components/textarea.d.ts +5 -1
  228. package/dist/components/textarea.jsx +3 -3
  229. package/dist/components/titleBar.d.ts +17 -0
  230. package/dist/components/titleBar.jsx +17 -0
  231. package/dist/components/useHotkey.d.ts +7 -0
  232. package/dist/components/useHotkey.js +24 -0
  233. package/dist/index.d.ts +13 -0
  234. package/dist/index.js +13 -0
  235. package/dist/internal/copyField.d.ts +5 -0
  236. package/dist/internal/copyField.js +61 -0
  237. package/dist/internal/hotkey.d.ts +16 -0
  238. package/dist/internal/hotkey.js +20 -0
  239. package/dist/internal/overlayStack.d.ts +24 -0
  240. package/dist/internal/overlayStack.js +71 -0
  241. package/dist/internal/resize.d.ts +9 -0
  242. package/dist/internal/resize.js +31 -0
  243. package/dist/internal/scrollSpy.d.ts +24 -0
  244. package/dist/internal/scrollSpy.js +53 -0
  245. package/dist/internal/siteBrand.d.ts +6 -0
  246. package/dist/internal/siteBrand.jsx +11 -0
  247. package/dist/internal/switch.d.ts +5 -0
  248. package/dist/internal/switch.js +9 -0
  249. package/dist/native-mapping.json +72 -0
  250. package/dist/stories/AppShell.stories.d.ts +15 -0
  251. package/dist/stories/AppShell.stories.jsx +137 -0
  252. package/dist/stories/Cases.generated.stories.d.ts +42 -0
  253. package/dist/stories/Cases.generated.stories.jsx +84 -0
  254. package/dist/stories/CopyField.stories.d.ts +11 -0
  255. package/dist/stories/CopyField.stories.jsx +65 -0
  256. package/dist/stories/Drawer.stories.d.ts +10 -0
  257. package/dist/stories/Drawer.stories.jsx +123 -0
  258. package/dist/stories/FormField.stories.d.ts +6 -0
  259. package/dist/stories/FormField.stories.jsx +44 -0
  260. package/dist/stories/Link.stories.d.ts +1 -0
  261. package/dist/stories/Link.stories.jsx +8 -0
  262. package/dist/stories/Navigation.stories.d.ts +1 -0
  263. package/dist/stories/Navigation.stories.jsx +17 -1
  264. package/dist/stories/OnThisPage.stories.d.ts +10 -0
  265. package/dist/stories/OnThisPage.stories.jsx +105 -0
  266. package/dist/stories/SegmentedControl.stories.d.ts +8 -0
  267. package/dist/stories/SegmentedControl.stories.jsx +33 -0
  268. package/dist/stories/SettingsSection.stories.d.ts +12 -0
  269. package/dist/stories/SettingsSection.stories.jsx +91 -0
  270. package/dist/stories/SidePane.stories.d.ts +6 -0
  271. package/dist/stories/SidePane.stories.jsx +37 -0
  272. package/dist/stories/SiteFooter.stories.d.ts +7 -0
  273. package/dist/stories/SiteFooter.stories.jsx +63 -0
  274. package/dist/stories/SiteHeader.stories.d.ts +10 -0
  275. package/dist/stories/SiteHeader.stories.jsx +94 -0
  276. package/dist/stories/Switch.stories.d.ts +14 -0
  277. package/dist/stories/Switch.stories.jsx +87 -0
  278. package/dist/stories/TextField.stories.d.ts +1 -0
  279. package/dist/stories/TextField.stories.jsx +13 -0
  280. package/dist/stories/TitleBar.stories.d.ts +6 -0
  281. package/dist/stories/TitleBar.stories.jsx +34 -0
  282. package/package.json +5 -1
@@ -0,0 +1 @@
1
+ export default function QuickSwitcherModal(): import("react").JSX.Element;
@@ -0,0 +1,114 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import Modal from '../../components/modal';
4
+ import Heading from '../../components/heading';
5
+ import Paragraph from '../../components/paragraph';
6
+ import TextField from '../../components/textField';
7
+ import Button from '../../components/button';
8
+ import EmptyBox from '../../components/emptyBox';
9
+ import Menu from '../../components/menu';
10
+ import MenuItem from '../../components/menuItem';
11
+ import useHotkey from '../../components/useHotkey';
12
+ import { Center, Cluster, Stack } from '../../components/layout';
13
+ var places = [
14
+ { id: 'launch-plan', title: 'launch-plan', kind: 'channel', workspace: 'Acme Design' },
15
+ { id: 'press-kit', title: 'Update the press kit', kind: 'task', workspace: 'Acme Design' },
16
+ { id: 'pricing-notes', title: 'Pricing notes', kind: 'doc', workspace: 'Acme Marketing' },
17
+ { id: 'launch-checklist', title: 'Launch checklist', kind: 'doc', workspace: 'Acme Design' },
18
+ { id: 'design-review', title: 'design-review', kind: 'channel', workspace: 'Acme Design' },
19
+ { id: 'hiring-plan', title: 'Hiring plan', kind: 'doc', workspace: 'Acme Engineering' },
20
+ ];
21
+ var icons = { channel: 'Hash', task: 'SquareCheck', doc: 'FileText' };
22
+ // At most this many rows show, so the list never needs to scroll; typing more letters narrows it.
23
+ var MAX_RESULTS = 6;
24
+ var listId = 'quick-switcher-results';
25
+ var optionId = function (p) { return "quick-switcher-option-".concat(p.id); };
26
+ // Places with a word that starts with what was typed. With nothing typed it shows the most recent.
27
+ function matches(query) {
28
+ var q = query.trim().toLowerCase();
29
+ if (!q)
30
+ return places.slice(0, MAX_RESULTS);
31
+ return places.filter(function (p) { return p.title.toLowerCase().split(/[\s-]+/).some(function (w) { return w.startsWith(q); }); }).slice(0, MAX_RESULTS);
32
+ }
33
+ export default function QuickSwitcherModal() {
34
+ // Opens with the switcher showing, as if the person just pressed Cmd+K.
35
+ var _a = useState(true), open = _a[0], setOpen = _a[1];
36
+ var _b = useState('la'), query = _b[0], setQuery = _b[1];
37
+ var _c = useState(0), active = _c[0], setActive = _c[1];
38
+ var _d = useState(places[0]), here = _d[0], setHere = _d[1];
39
+ // Bumped by 'Clear Search'. It remounts the search field with `autoFocus`, so focus goes back to the field
40
+ // instead of being lost with the Button that the list replaces.
41
+ var _e = useState(0), fieldKey = _e[0], setFieldKey = _e[1];
42
+ var results = matches(query);
43
+ var listOpen = results.length > 0;
44
+ function openSwitcher() {
45
+ setQuery('');
46
+ setActive(0);
47
+ setOpen(true);
48
+ }
49
+ // The shortcut works from anywhere on the page except a text field. Cmd+K inside the switcher's own field does nothing.
50
+ useHotkey('k', function () {
51
+ if (!open)
52
+ openSwitcher();
53
+ });
54
+ function change(value) {
55
+ setQuery(value);
56
+ setActive(0);
57
+ }
58
+ // A real app goes to the place here. Closing hands focus back to what had it before the switcher opened.
59
+ function go(place) {
60
+ setHere(place);
61
+ setOpen(false);
62
+ }
63
+ function clearSearch() {
64
+ setQuery('');
65
+ setActive(0);
66
+ setFieldKey(function (k) { return k + 1; });
67
+ }
68
+ // Focus stays in the field; the arrows move the highlight and Enter opens it. Escape is the Modal's.
69
+ function keyDown(e) {
70
+ // An input method (Korean, Japanese, Chinese) uses Enter and the arrows while it composes: leave them to it.
71
+ if (e.nativeEvent.isComposing || e.keyCode === 229)
72
+ return;
73
+ if (!listOpen)
74
+ return;
75
+ if (e.key === 'ArrowDown') {
76
+ e.preventDefault();
77
+ setActive(function (i) { return Math.min(i + 1, results.length - 1); });
78
+ }
79
+ else if (e.key === 'ArrowUp') {
80
+ e.preventDefault();
81
+ setActive(function (i) { return Math.max(i - 1, 0); });
82
+ }
83
+ else if (e.key === 'Enter') {
84
+ e.preventDefault();
85
+ go(results[active]);
86
+ }
87
+ }
88
+ return (<Center width="page">
89
+ <Stack gap="large">
90
+ <Cluster justify="between">
91
+ <Heading level={1} size="h5">{here.title}</Heading>
92
+ {/* A shortcut alone is not found by most people, so a Button opens it too. */}
93
+ <Button size="small" type="secondary" state="enabled" label="Go to" decoIcon="Search" aria-haspopup="dialog" aria-keyshortcuts="Meta+K Control+K" onClickButton={openSwitcher}/>
94
+ </Cluster>
95
+ <Paragraph tone="secondary" size="body2" measure="none">
96
+ {here.workspace}. Press Cmd+K, or Ctrl+K on Windows, to go to a channel, task or document.
97
+ </Paragraph>
98
+ </Stack>
99
+ <Modal isOpen={open} size="small" title="Go to" initialFocus="body" onClose={function () { return setOpen(false); }}>
100
+ <Stack gap="medium">
101
+ <TextField key={fieldKey} id="quick-switcher-query" type="search"
102
+ // The Modal focuses the field when it opens. `autoFocus` only after 'Clear Search', which remounts the field.
103
+ autoFocus={fieldKey > 0} aria-label="Go to" placeholder="Search channels, tasks and documents" value={query} onChange={function (e) { return change(e.target.value); }} onKeyDown={keyDown}
104
+ // Focus stays in the field; the field points at the list and at the highlighted row.
105
+ role="combobox" aria-autocomplete="list" aria-expanded={listOpen} aria-controls={listOpen ? listId : undefined} aria-activedescendant={listOpen ? optionId(results[active]) : undefined}/>
106
+ {listOpen ? (<Menu role="listbox" id={listId} aria-label="Places" width="100%">
107
+ {results.map(function (p, i) { return (<MenuItem key={p.id} id={optionId(p)} role="option" tabIndex={-1} isActive={i === active} aria-selected={i === active} size="small" iconName={icons[p.kind]} label={p.title} secondLabel={p.workspace} onClick={function () { return go(p); }}/>); })}
108
+ </Menu>) : (
109
+ // The case 'Empty search' says what to show: the words searched for, and a way to clear them.
110
+ <EmptyBox size="small" icon="Search" text={"No places match \"".concat(query.trim(), "\"")} secondText="Check the spelling, or search for fewer words." action={<Button size="medium" type="secondary" state="enabled" label="Clear Search" onClickButton={clearSearch}/>}/>)}
111
+ </Stack>
112
+ </Modal>
113
+ </Center>);
114
+ }
@@ -0,0 +1,205 @@
1
+ # Quick switcher
2
+
3
+ A person jumps to a channel, task or document by typing part of its name, from anywhere in the product.
4
+
5
+ ## Do
6
+
7
+ - Open it with Cmd+K, or Ctrl+K on Windows, and with a visible 'Go to' Button. A shortcut alone is not found.
8
+ - Add the shortcut with `useHotkey('k', …)`. It is removed when the page goes away, and it does nothing while the person types in a field.
9
+ - Open a small `Modal` with `initialFocus="body"`, so focus lands in the search field. Closing gives focus back to where it was.
10
+ - Build it as a combobox, as the case 'Mention list' says. The field gets `role="combobox"`, `aria-expanded`, `aria-controls` and `aria-activedescendant`.
11
+ - Make the list a `Menu role="listbox"` of `MenuItem role="option"` rows, with `isActive` and `aria-selected` on the highlighted one.
12
+ - Name the field with `aria-label="Go to"`, since it has no visible label.
13
+ - Show the most recent places, at most 6, before the person types.
14
+ - Show each place with its icon and name, and where it lives in `secondLabel`.
15
+ - Move the highlight with the arrow keys. Enter opens the highlighted place and closes the Modal. Escape closes it.
16
+ - Leave Enter and the arrow keys to an input method while it is still composing.
17
+ - Follow the case 'Empty search' when nothing matches: the words searched for and a 'Clear Search' Button, which puts focus back in the field.
18
+
19
+ ## Don't
20
+
21
+ - Do not use the shortcut as the only way in.
22
+ - Do not take Cmd+K while the person types in a field. Some fields use it for their own commands.
23
+ - Do not move focus into the list. The person keeps typing in the field.
24
+ - Do not keep the last search. It opens empty.
25
+ - Do not show a toast after going to a place. The page changing says it.
26
+
27
+ ## Example: Small Modal with a search field and a list
28
+
29
+ Uses: `Button`, `Center`, `Cluster`, `EmptyBox`, `Heading`, `Menu`, `MenuItem`, `Modal`, `Paragraph`, `Stack`, `TextField`, `useHotkey`
30
+
31
+ ```tsx
32
+ 'use client';
33
+ import { useState, type KeyboardEvent } from 'react';
34
+ import Modal from 'oneslash-design-system/components/modal';
35
+ import Heading from 'oneslash-design-system/components/heading';
36
+ import Paragraph from 'oneslash-design-system/components/paragraph';
37
+ import TextField from 'oneslash-design-system/components/textField';
38
+ import Button from 'oneslash-design-system/components/button';
39
+ import EmptyBox from 'oneslash-design-system/components/emptyBox';
40
+ import Menu from 'oneslash-design-system/components/menu';
41
+ import MenuItem from 'oneslash-design-system/components/menuItem';
42
+ import useHotkey from 'oneslash-design-system/components/useHotkey';
43
+ import { Center, Cluster, Stack } from 'oneslash-design-system/components/layout';
44
+
45
+ // A real app reads these from the server. The most recent place comes first.
46
+ type Place = { id: string; title: string; kind: 'channel' | 'task' | 'doc'; workspace: string };
47
+ const places: Place[] = [
48
+ { id: 'launch-plan', title: 'launch-plan', kind: 'channel', workspace: 'Acme Design' },
49
+ { id: 'press-kit', title: 'Update the press kit', kind: 'task', workspace: 'Acme Design' },
50
+ { id: 'pricing-notes', title: 'Pricing notes', kind: 'doc', workspace: 'Acme Marketing' },
51
+ { id: 'launch-checklist', title: 'Launch checklist', kind: 'doc', workspace: 'Acme Design' },
52
+ { id: 'design-review', title: 'design-review', kind: 'channel', workspace: 'Acme Design' },
53
+ { id: 'hiring-plan', title: 'Hiring plan', kind: 'doc', workspace: 'Acme Engineering' },
54
+ ];
55
+ const icons = { channel: 'Hash', task: 'SquareCheck', doc: 'FileText' } as const;
56
+
57
+ // At most this many rows show, so the list never needs to scroll; typing more letters narrows it.
58
+ const MAX_RESULTS = 6;
59
+ const listId = 'quick-switcher-results';
60
+ const optionId = (p: Place) => `quick-switcher-option-${p.id}`;
61
+
62
+ // Places with a word that starts with what was typed. With nothing typed it shows the most recent.
63
+ function matches(query: string) {
64
+ const q = query.trim().toLowerCase();
65
+ if (!q) return places.slice(0, MAX_RESULTS);
66
+ return places.filter((p) => p.title.toLowerCase().split(/[\s-]+/).some((w) => w.startsWith(q))).slice(0, MAX_RESULTS);
67
+ }
68
+
69
+ export default function QuickSwitcherModal() {
70
+ // Opens with the switcher showing, as if the person just pressed Cmd+K.
71
+ const [open, setOpen] = useState(true);
72
+ const [query, setQuery] = useState('la');
73
+ const [active, setActive] = useState(0);
74
+ const [here, setHere] = useState<Place>(places[0]);
75
+ // Bumped by 'Clear Search'. It remounts the search field with `autoFocus`, so focus goes back to the field
76
+ // instead of being lost with the Button that the list replaces.
77
+ const [fieldKey, setFieldKey] = useState(0);
78
+
79
+ const results = matches(query);
80
+ const listOpen = results.length > 0;
81
+
82
+ function openSwitcher() {
83
+ setQuery('');
84
+ setActive(0);
85
+ setOpen(true);
86
+ }
87
+
88
+ // The shortcut works from anywhere on the page except a text field. Cmd+K inside the switcher's own field does nothing.
89
+ useHotkey('k', () => {
90
+ if (!open) openSwitcher();
91
+ });
92
+
93
+ function change(value: string) {
94
+ setQuery(value);
95
+ setActive(0);
96
+ }
97
+
98
+ // A real app goes to the place here. Closing hands focus back to what had it before the switcher opened.
99
+ function go(place: Place) {
100
+ setHere(place);
101
+ setOpen(false);
102
+ }
103
+
104
+ function clearSearch() {
105
+ setQuery('');
106
+ setActive(0);
107
+ setFieldKey((k) => k + 1);
108
+ }
109
+
110
+ // Focus stays in the field; the arrows move the highlight and Enter opens it. Escape is the Modal's.
111
+ function keyDown(e: KeyboardEvent<HTMLInputElement | HTMLTextAreaElement>) {
112
+ // An input method (Korean, Japanese, Chinese) uses Enter and the arrows while it composes: leave them to it.
113
+ if (e.nativeEvent.isComposing || e.keyCode === 229) return;
114
+ if (!listOpen) return;
115
+ if (e.key === 'ArrowDown') {
116
+ e.preventDefault();
117
+ setActive((i) => Math.min(i + 1, results.length - 1));
118
+ } else if (e.key === 'ArrowUp') {
119
+ e.preventDefault();
120
+ setActive((i) => Math.max(i - 1, 0));
121
+ } else if (e.key === 'Enter') {
122
+ e.preventDefault();
123
+ go(results[active]);
124
+ }
125
+ }
126
+
127
+ return (
128
+ <Center width="page">
129
+ <Stack gap="large">
130
+ <Cluster justify="between">
131
+ <Heading level={1} size="h5">{here.title}</Heading>
132
+ {/* A shortcut alone is not found by most people, so a Button opens it too. */}
133
+ <Button
134
+ size="small"
135
+ type="secondary"
136
+ state="enabled"
137
+ label="Go to"
138
+ decoIcon="Search"
139
+ aria-haspopup="dialog"
140
+ aria-keyshortcuts="Meta+K Control+K"
141
+ onClickButton={openSwitcher}
142
+ />
143
+ </Cluster>
144
+ <Paragraph tone="secondary" size="body2" measure="none">
145
+ {here.workspace}. Press Cmd+K, or Ctrl+K on Windows, to go to a channel, task or document.
146
+ </Paragraph>
147
+ </Stack>
148
+ <Modal isOpen={open} size="small" title="Go to" initialFocus="body" onClose={() => setOpen(false)}>
149
+ <Stack gap="medium">
150
+ <TextField
151
+ key={fieldKey}
152
+ id="quick-switcher-query"
153
+ type="search"
154
+ // The Modal focuses the field when it opens. `autoFocus` only after 'Clear Search', which remounts the field.
155
+ autoFocus={fieldKey > 0}
156
+ aria-label="Go to"
157
+ placeholder="Search channels, tasks and documents"
158
+ value={query}
159
+ onChange={(e) => change(e.target.value)}
160
+ onKeyDown={keyDown}
161
+ // Focus stays in the field; the field points at the list and at the highlighted row.
162
+ role="combobox"
163
+ aria-autocomplete="list"
164
+ aria-expanded={listOpen}
165
+ aria-controls={listOpen ? listId : undefined}
166
+ aria-activedescendant={listOpen ? optionId(results[active]) : undefined}
167
+ />
168
+ {listOpen ? (
169
+ <Menu role="listbox" id={listId} aria-label="Places" width="100%">
170
+ {results.map((p, i) => (
171
+ <MenuItem
172
+ key={p.id}
173
+ id={optionId(p)}
174
+ role="option"
175
+ tabIndex={-1}
176
+ isActive={i === active}
177
+ aria-selected={i === active}
178
+ size="small"
179
+ iconName={icons[p.kind]}
180
+ label={p.title}
181
+ secondLabel={p.workspace}
182
+ onClick={() => go(p)}
183
+ />
184
+ ))}
185
+ </Menu>
186
+ ) : (
187
+ // The case 'Empty search' says what to show: the words searched for, and a way to clear them.
188
+ <EmptyBox
189
+ size="small"
190
+ icon="Search"
191
+ text={`No places match "${query.trim()}"`}
192
+ secondText="Check the spelling, or search for fewer words."
193
+ action={<Button size="medium" type="secondary" state="enabled" label="Clear Search" onClickButton={clearSearch} />}
194
+ />
195
+ )}
196
+ </Stack>
197
+ </Modal>
198
+ </Center>
199
+ );
200
+ }
201
+ ```
202
+
203
+ ## Native
204
+
205
+ On Apple use a sheet with a `TextField` over a `List`, opened with `.keyboardShortcut("k")`, and `ContentUnavailableView.search(text:)` when nothing matches. A phone needs no switcher: use the search tab.
@@ -0,0 +1 @@
1
+ export default function RangeSwitchSegmented(): import("react").JSX.Element;
@@ -0,0 +1,30 @@
1
+ 'use client';
2
+ import { useState } from 'react';
3
+ import Heading from '../../components/heading';
4
+ import Paragraph from '../../components/paragraph';
5
+ import SegmentedControl from '../../components/segmentedControl';
6
+ import { Center, Cluster, Stack } from '../../components/layout';
7
+ // A real app counts these on the server.
8
+ var ranges = [
9
+ { value: 'week', label: 'Week', count: 18 },
10
+ { value: 'month', label: 'Month', count: 64 },
11
+ { value: 'quarter', label: 'Quarter', count: 171 },
12
+ ];
13
+ export default function RangeSwitchSegmented() {
14
+ var _a;
15
+ var _b = useState('week'), range = _b[0], setRange = _b[1];
16
+ var current = (_a = ranges.find(function (r) { return r.value === range; })) !== null && _a !== void 0 ? _a : ranges[0];
17
+ return (<Center width="page">
18
+ <Stack gap="large">
19
+ <Cluster justify="between">
20
+ <Heading level={1} size="h5">Overview</Heading>
21
+ <SegmentedControl size="small" width="fit" aria-label="Range" options={ranges.map(function (_a) {
22
+ var value = _a.value, label = _a.label;
23
+ return ({ value: value, label: label });
24
+ })} value={range} onChange={setRange}/>
25
+ </Cluster>
26
+ {/* The chart or list below changes with the range. This page stays the same. */}
27
+ <Paragraph size="body2" measure="none">{current.count} comments this {current.label.toLowerCase()}.</Paragraph>
28
+ </Stack>
29
+ </Center>);
30
+ }
@@ -0,0 +1,67 @@
1
+ # Range switch
2
+
3
+ A person changes the time range of a chart or a list on the same page, such as Week, Month or Quarter.
4
+
5
+ ## Do
6
+
7
+ - Use `SegmentedControl` with `size="small"` and `aria-label="Range"`: 'Week', 'Month', 'Quarter'.
8
+ - Put it beside the heading of the chart or list it changes, with `width="fit"` so it is as wide as its options.
9
+ - Keep one option on at all times. Start on 'Week', the newest numbers, unless the page is about a longer period.
10
+ - Change the numbers in place and keep the page, the heading and the scroll position.
11
+ - Move between options with the arrow keys. They select as they move.
12
+
13
+ ## Don't
14
+
15
+ - Do not use tabs. Tabs switch panels, and this changes one value on the same page.
16
+ - Do not use more than four options. Use a menu, as the case 'Filter menu' says.
17
+ - Do not let the person turn every option off.
18
+ - Do not hide a range of three choices behind a menu.
19
+
20
+ ## Example: Segmented control
21
+
22
+ Uses: `Center`, `Cluster`, `Heading`, `Paragraph`, `SegmentedControl`, `Stack`
23
+
24
+ ```tsx
25
+ 'use client';
26
+ import { useState } from 'react';
27
+ import Heading from 'oneslash-design-system/components/heading';
28
+ import Paragraph from 'oneslash-design-system/components/paragraph';
29
+ import SegmentedControl from 'oneslash-design-system/components/segmentedControl';
30
+ import { Center, Cluster, Stack } from 'oneslash-design-system/components/layout';
31
+
32
+ // A real app counts these on the server.
33
+ const ranges = [
34
+ { value: 'week', label: 'Week', count: 18 },
35
+ { value: 'month', label: 'Month', count: 64 },
36
+ { value: 'quarter', label: 'Quarter', count: 171 },
37
+ ];
38
+
39
+ export default function RangeSwitchSegmented() {
40
+ const [range, setRange] = useState('week');
41
+ const current = ranges.find((r) => r.value === range) ?? ranges[0];
42
+
43
+ return (
44
+ <Center width="page">
45
+ <Stack gap="large">
46
+ <Cluster justify="between">
47
+ <Heading level={1} size="h5">Overview</Heading>
48
+ <SegmentedControl
49
+ size="small"
50
+ width="fit"
51
+ aria-label="Range"
52
+ options={ranges.map(({ value, label }) => ({ value, label }))}
53
+ value={range}
54
+ onChange={setRange}
55
+ />
56
+ </Cluster>
57
+ {/* The chart or list below changes with the range. This page stays the same. */}
58
+ <Paragraph size="body2" measure="none">{current.count} comments this {current.label.toLowerCase()}.</Paragraph>
59
+ </Stack>
60
+ </Center>
61
+ );
62
+ }
63
+ ```
64
+
65
+ ## Native
66
+
67
+ On Apple use a `Picker` with the `.segmented` style, and on Android a `SingleChoiceSegmentedButtonRow`.
@@ -2,8 +2,6 @@
2
2
 
3
3
  A person renames something, such as a project or a channel.
4
4
 
5
- **Not built yet:** Commentify's two renames disagree on what leaving the field does: a project name cancels, a tag name saves. Scindo on the web labels its rename Modals' action 'Save', shows 'Saving...' while it runs, and writes a taken name as a red caption by hand.
6
-
7
5
  ## Do
8
6
 
9
7
  - Title the Modal 'Rename' and the thing, such as 'Rename Project', and give its action the same verb: 'Rename'.
@@ -201,5 +199,3 @@ export default function RenameInline() {
201
199
  ## Native
202
200
 
203
201
  On Apple rename in place in a list with a `TextField` and `.onSubmit`. Use an `.alert` with a `TextField` when the name is not on screen.
204
-
205
- Seen in: Commentify, Scindo.
@@ -2,8 +2,6 @@
2
2
 
3
3
  The agent has replied, and the person can say whether the reply helped.
4
4
 
5
- **Not built yet:** Scindo on the web shows thumbs down only, with no thumbs up and no Copy, and the button goes away once pressed. Its thanks reads 'Noted, we'll improve.' Its reasons are Buttons, Skip is a cross, and Regenerate sits in the hover toolbar. Scindo's Apple app has no feedback buttons and no Regenerate.
6
-
7
5
  ## Do
8
6
 
9
7
  - Put a row of small `IconButton`s with Tooltips in the agent reply's `footer`: thumbs up, thumbs down, Copy, then Regenerate.
@@ -548,5 +546,3 @@ export default function ReplyFeedbackWithReason() {
548
546
  );
549
547
  }
550
548
  ```
551
-
552
- Seen in: Scindo.
@@ -2,8 +2,6 @@
2
2
 
3
3
  The agent answered from things it read, and the person may want to check them.
4
4
 
5
- **Not built yet:** Scindo cannot hide the sources again once they are all shown, and its button reads 'Show N more', in sentence case. The meta of a card that cannot be opened does not say why.
6
-
7
5
  ## Do
8
6
 
9
7
  - Follow the rule 'An agent shows its sources': put the sources in the reply's `footer`, directly under the reply.
@@ -243,5 +241,3 @@ export default function ReplySourcesTagOnly() {
243
241
  ## Native
244
242
 
245
243
  On Apple the cards fill as many columns as fit. A card with a link opens it in the browser, and a card with nothing to open cannot be tapped.
246
-
247
- Seen in: Scindo.
@@ -1,26 +1,35 @@
1
1
  'use client';
2
- import Image from '../../components/image';
3
- import TabsContainer from '../../components/tabsContainer';
4
- import Tab from '../../components/tab';
2
+ import { useState } from 'react';
3
+ import AppShell from '../../components/appShell';
4
+ import Navigation, { NavigationGroup } from '../../components/navigation';
5
+ import MenuItem from '../../components/menuItem';
6
+ import Paragraph from '../../components/paragraph';
5
7
  import Surface from '../../components/surface';
6
8
  import LoadingScreen from '../../components/loadingScreen';
7
- import { Cluster, Stack } from '../../components/layout';
8
- // The product's mark. A real app passes its own file.
9
- var productMark = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='10' fill='%232f6b4f'/%3E%3Cpath d='M20 9 31 31h-6l-5-11-5 11H9z' fill='%23fff'/%3E%3C/svg%3E";
10
- // A real app passes the router from its framework, such as Next's useRouter().
11
- var router = { push: function (url) { return console.info("Go to ".concat(url)); } };
9
+ // The places, and the projects the person made. The page that failed or loads is the current one.
10
+ var places = [
11
+ { label: 'Home', icon: 'House', href: '/' },
12
+ { label: 'Settings', icon: 'Settings', href: '/settings' },
13
+ ];
14
+ var projects = [
15
+ { label: 'Website', icon: 'Globe', href: '/projects/website' },
16
+ { label: 'Mobile App', icon: 'Smartphone', href: '/projects/mobile-app' },
17
+ ];
18
+ var current = '/projects/website';
19
+ var row = function (p) { return (<MenuItem key={p.href} size="small" label={p.label} iconName={p.icon} href={p.href} isSelected={p.href === current} aria-current={p.href === current ? 'page' : undefined}
20
+ // A real app lets the link go to its page.
21
+ onClick={function (event) { return event.preventDefault(); }}/>); };
22
+ var sidebar = (<Navigation aria-label="Main">
23
+ <Paragraph size="body1" measure="none">Acme</Paragraph>
24
+ {places.map(row)}
25
+ <NavigationGroup label="Projects">{projects.map(row)}</NavigationGroup>
26
+ </Navigation>);
12
27
  export default function RouteLoadingRegion() {
13
- return (<Stack gap="large">
14
- <Cluster gap="large">
15
- <Image src={productMark} alt="Acme" width={32} height={32}/>
16
- <TabsContainer>
17
- <Tab label="Home" isSelected={false} href="/" router={router} onClickTab={function () { }}/>
18
- <Tab label="Projects" isSelected href="/projects" router={router} onClickTab={function () { }}/>
19
- <Tab label="Settings" isSelected={false} href="/settings" router={router} onClickTab={function () { }}/>
20
- </TabsContainer>
21
- </Cluster>
28
+ // Below md the sidebar is a Drawer; this says whether it is open.
29
+ var _a = useState(false), navOpen = _a[0], setNavOpen = _a[1];
30
+ return (<AppShell title="Website" navOpen={navOpen} onNavOpenChange={setNavOpen} sidebar={sidebar}>
22
31
  <Surface minHeight="tall" align="center">
23
32
  <LoadingScreen />
24
33
  </Surface>
25
- </Stack>);
34
+ </AppShell>);
26
35
  }
@@ -40,39 +40,60 @@ export default function RouteLoadingFullScreen() {
40
40
 
41
41
  Use when: The shell shows and one pane loads.
42
42
 
43
- Uses: `Cluster`, `Image`, `LoadingScreen`, `Stack`, `Surface`, `Tab`, `TabsContainer`
43
+ Uses: `AppShell`, `LoadingScreen`, `MenuItem`, `Navigation`, `NavigationGroup`, `Paragraph`, `Surface`
44
44
 
45
45
  ```tsx
46
46
  'use client';
47
- import Image from 'oneslash-design-system/components/image';
48
- import TabsContainer from 'oneslash-design-system/components/tabsContainer';
49
- import Tab from 'oneslash-design-system/components/tab';
47
+ import { useState } from 'react';
48
+ import AppShell from 'oneslash-design-system/components/appShell';
49
+ import Navigation, { NavigationGroup } from 'oneslash-design-system/components/navigation';
50
+ import MenuItem from 'oneslash-design-system/components/menuItem';
51
+ import Paragraph from 'oneslash-design-system/components/paragraph';
50
52
  import Surface from 'oneslash-design-system/components/surface';
51
53
  import LoadingScreen from 'oneslash-design-system/components/loadingScreen';
52
- import { Cluster, Stack } from 'oneslash-design-system/components/layout';
53
54
 
54
- // The product's mark. A real app passes its own file.
55
- const productMark =
56
- "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Crect width='40' height='40' rx='10' fill='%232f6b4f'/%3E%3Cpath d='M20 9 31 31h-6l-5-11-5 11H9z' fill='%23fff'/%3E%3C/svg%3E";
57
-
58
- // A real app passes the router from its framework, such as Next's useRouter().
59
- const router = { push: (url: string) => console.info(`Go to ${url}`) };
55
+ // The places, and the projects the person made. The page that failed or loads is the current one.
56
+ const places = [
57
+ { label: 'Home', icon: 'House', href: '/' },
58
+ { label: 'Settings', icon: 'Settings', href: '/settings' },
59
+ ];
60
+ const projects = [
61
+ { label: 'Website', icon: 'Globe', href: '/projects/website' },
62
+ { label: 'Mobile App', icon: 'Smartphone', href: '/projects/mobile-app' },
63
+ ];
64
+ const current = '/projects/website';
65
+
66
+ const row = (p: { label: string; icon: string; href: string }) => (
67
+ <MenuItem
68
+ key={p.href}
69
+ size="small"
70
+ label={p.label}
71
+ iconName={p.icon}
72
+ href={p.href}
73
+ isSelected={p.href === current}
74
+ aria-current={p.href === current ? 'page' : undefined}
75
+ // A real app lets the link go to its page.
76
+ onClick={(event: { preventDefault: () => void }) => event.preventDefault()}
77
+ />
78
+ );
79
+
80
+ const sidebar = (
81
+ <Navigation aria-label="Main">
82
+ <Paragraph size="body1" measure="none">Acme</Paragraph>
83
+ {places.map(row)}
84
+ <NavigationGroup label="Projects">{projects.map(row)}</NavigationGroup>
85
+ </Navigation>
86
+ );
60
87
 
61
88
  export default function RouteLoadingRegion() {
89
+ // Below md the sidebar is a Drawer; this says whether it is open.
90
+ const [navOpen, setNavOpen] = useState(false);
62
91
  return (
63
- <Stack gap="large">
64
- <Cluster gap="large">
65
- <Image src={productMark} alt="Acme" width={32} height={32} />
66
- <TabsContainer>
67
- <Tab label="Home" isSelected={false} href="/" router={router} onClickTab={() => {}} />
68
- <Tab label="Projects" isSelected href="/projects" router={router} onClickTab={() => {}} />
69
- <Tab label="Settings" isSelected={false} href="/settings" router={router} onClickTab={() => {}} />
70
- </TabsContainer>
71
- </Cluster>
92
+ <AppShell title="Website" navOpen={navOpen} onNavOpenChange={setNavOpen} sidebar={sidebar}>
72
93
  <Surface minHeight="tall" align="center">
73
94
  <LoadingScreen />
74
95
  </Surface>
75
- </Stack>
96
+ </AppShell>
76
97
  );
77
98
  }
78
99
  ```
@@ -80,5 +101,3 @@ export default function RouteLoadingRegion() {
80
101
  ## Native
81
102
 
82
103
  On Apple use `ProgressView()` with no label, centered in the pane.
83
-
84
- Seen in: Commentify, Scindo.
@@ -0,0 +1 @@
1
+ export default function ScopePickerMenu(): import("react").JSX.Element;