@velocity-astro/cms-ui 0.1.0-beta.1 → 0.1.0-beta.11

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 (256) hide show
  1. package/component-registry.json +93 -8
  2. package/dist/components/BarChart/BarChart.d.ts +23 -0
  3. package/dist/components/BarChart/BarChart.d.ts.map +1 -0
  4. package/dist/components/BarChart/BarChart.js +19 -0
  5. package/dist/components/BarChart/BarChart.js.map +1 -0
  6. package/dist/components/BarChart/BarChart.variants.d.ts +29 -0
  7. package/dist/components/BarChart/BarChart.variants.d.ts.map +1 -0
  8. package/dist/components/BarChart/BarChart.variants.js +81 -0
  9. package/dist/components/BarChart/BarChart.variants.js.map +1 -0
  10. package/dist/components/BarChart/index.d.ts +2 -0
  11. package/dist/components/BarChart/index.d.ts.map +1 -0
  12. package/dist/components/BarChart/index.js +2 -0
  13. package/dist/components/BarChart/index.js.map +1 -0
  14. package/dist/components/Button/Button.d.ts +6 -1
  15. package/dist/components/Button/Button.d.ts.map +1 -1
  16. package/dist/components/Button/Button.js +5 -3
  17. package/dist/components/Button/Button.js.map +1 -1
  18. package/dist/components/Button/Button.variants.d.ts +6 -1
  19. package/dist/components/Button/Button.variants.d.ts.map +1 -1
  20. package/dist/components/Button/Button.variants.js +13 -1
  21. package/dist/components/Button/Button.variants.js.map +1 -1
  22. package/dist/components/Card/Card.d.ts +3 -1
  23. package/dist/components/Card/Card.d.ts.map +1 -1
  24. package/dist/components/Card/Card.js +3 -3
  25. package/dist/components/Card/Card.js.map +1 -1
  26. package/dist/components/Card/Card.variants.d.ts +4 -1
  27. package/dist/components/Card/Card.variants.d.ts.map +1 -1
  28. package/dist/components/Card/Card.variants.js +6 -1
  29. package/dist/components/Card/Card.variants.js.map +1 -1
  30. package/dist/components/ColorPicker/ColorPicker.d.ts +30 -0
  31. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -0
  32. package/dist/components/ColorPicker/ColorPicker.js +32 -0
  33. package/dist/components/ColorPicker/ColorPicker.js.map +1 -0
  34. package/dist/components/ColorPicker/ColorPicker.variants.d.ts +24 -0
  35. package/dist/components/ColorPicker/ColorPicker.variants.d.ts.map +1 -0
  36. package/dist/components/ColorPicker/ColorPicker.variants.js +42 -0
  37. package/dist/components/ColorPicker/ColorPicker.variants.js.map +1 -0
  38. package/dist/components/ColorPicker/index.d.ts +2 -0
  39. package/dist/components/ColorPicker/index.d.ts.map +1 -0
  40. package/dist/components/ColorPicker/index.js +2 -0
  41. package/dist/components/ColorPicker/index.js.map +1 -0
  42. package/dist/components/FileButton/FileButton.d.ts +3 -1
  43. package/dist/components/FileButton/FileButton.d.ts.map +1 -1
  44. package/dist/components/FileButton/FileButton.js +2 -2
  45. package/dist/components/FileButton/FileButton.js.map +1 -1
  46. package/dist/components/Grid/Grid.variants.d.ts +1 -0
  47. package/dist/components/Grid/Grid.variants.d.ts.map +1 -1
  48. package/dist/components/Grid/Grid.variants.js +4 -3
  49. package/dist/components/Grid/Grid.variants.js.map +1 -1
  50. package/dist/components/Heading/Heading.d.ts +1 -1
  51. package/dist/components/Heading/Heading.d.ts.map +1 -1
  52. package/dist/components/Heading/Heading.js +2 -2
  53. package/dist/components/Heading/Heading.js.map +1 -1
  54. package/dist/components/Heading/Heading.variants.d.ts +1 -0
  55. package/dist/components/Heading/Heading.variants.d.ts.map +1 -1
  56. package/dist/components/Heading/Heading.variants.js +2 -0
  57. package/dist/components/Heading/Heading.variants.js.map +1 -1
  58. package/dist/components/LoadingMark/LoadingMark.d.ts +11 -0
  59. package/dist/components/LoadingMark/LoadingMark.d.ts.map +1 -0
  60. package/dist/components/LoadingMark/LoadingMark.js +17 -0
  61. package/dist/components/LoadingMark/LoadingMark.js.map +1 -0
  62. package/dist/components/LoadingMark/LoadingMark.variants.d.ts +22 -0
  63. package/dist/components/LoadingMark/LoadingMark.variants.d.ts.map +1 -0
  64. package/dist/components/LoadingMark/LoadingMark.variants.js +18 -0
  65. package/dist/components/LoadingMark/LoadingMark.variants.js.map +1 -0
  66. package/dist/components/LoadingMark/index.d.ts +2 -0
  67. package/dist/components/LoadingMark/index.d.ts.map +1 -0
  68. package/dist/components/LoadingMark/index.js +2 -0
  69. package/dist/components/LoadingMark/index.js.map +1 -0
  70. package/dist/components/Logo/Logo.d.ts +10 -2
  71. package/dist/components/Logo/Logo.d.ts.map +1 -1
  72. package/dist/components/Logo/Logo.js +11 -3
  73. package/dist/components/Logo/Logo.js.map +1 -1
  74. package/dist/components/Logo/Logo.variants.d.ts +5 -2
  75. package/dist/components/Logo/Logo.variants.d.ts.map +1 -1
  76. package/dist/components/Logo/Logo.variants.js +10 -1
  77. package/dist/components/Logo/Logo.variants.js.map +1 -1
  78. package/dist/components/Meter/Meter.d.ts +13 -0
  79. package/dist/components/Meter/Meter.d.ts.map +1 -0
  80. package/dist/components/Meter/Meter.js +8 -0
  81. package/dist/components/Meter/Meter.js.map +1 -0
  82. package/dist/components/Meter/Meter.variants.d.ts +14 -0
  83. package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
  84. package/dist/components/Meter/Meter.variants.js +39 -0
  85. package/dist/components/Meter/Meter.variants.js.map +1 -0
  86. package/dist/components/Meter/index.d.ts +2 -0
  87. package/dist/components/Meter/index.d.ts.map +1 -0
  88. package/dist/components/Meter/index.js +2 -0
  89. package/dist/components/Meter/index.js.map +1 -0
  90. package/dist/components/Segmented/Segmented.d.ts +14 -1
  91. package/dist/components/Segmented/Segmented.d.ts.map +1 -1
  92. package/dist/components/Segmented/Segmented.js +14 -5
  93. package/dist/components/Segmented/Segmented.js.map +1 -1
  94. package/dist/components/Segmented/Segmented.variants.d.ts +14 -1
  95. package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -1
  96. package/dist/components/Segmented/Segmented.variants.js +19 -3
  97. package/dist/components/Segmented/Segmented.variants.js.map +1 -1
  98. package/dist/components/Spotlight/Spotlight.d.ts +16 -0
  99. package/dist/components/Spotlight/Spotlight.d.ts.map +1 -0
  100. package/dist/components/Spotlight/Spotlight.js +28 -0
  101. package/dist/components/Spotlight/Spotlight.js.map +1 -0
  102. package/dist/components/Spotlight/Spotlight.variants.d.ts +8 -0
  103. package/dist/components/Spotlight/Spotlight.variants.d.ts.map +1 -0
  104. package/dist/components/Spotlight/Spotlight.variants.js +15 -0
  105. package/dist/components/Spotlight/Spotlight.variants.js.map +1 -0
  106. package/dist/components/Spotlight/index.d.ts +2 -0
  107. package/dist/components/Spotlight/index.d.ts.map +1 -0
  108. package/dist/components/Spotlight/index.js +2 -0
  109. package/dist/components/Spotlight/index.js.map +1 -0
  110. package/dist/components/Table/Table.d.ts +8 -1
  111. package/dist/components/Table/Table.d.ts.map +1 -1
  112. package/dist/components/Table/Table.js +4 -4
  113. package/dist/components/Table/Table.js.map +1 -1
  114. package/dist/components/Table/Table.variants.d.ts +6 -2
  115. package/dist/components/Table/Table.variants.d.ts.map +1 -1
  116. package/dist/components/Table/Table.variants.js +11 -5
  117. package/dist/components/Table/Table.variants.js.map +1 -1
  118. package/dist/components/index.d.ts +5 -0
  119. package/dist/components/index.d.ts.map +1 -1
  120. package/dist/components/index.js +5 -0
  121. package/dist/components/index.js.map +1 -1
  122. package/dist/components/scales.d.ts +2 -2
  123. package/dist/components/scales.d.ts.map +1 -1
  124. package/dist/components/scales.js +4 -2
  125. package/dist/components/scales.js.map +1 -1
  126. package/dist/patterns/AppShell/AppShell.d.ts +33 -8
  127. package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
  128. package/dist/patterns/AppShell/AppShell.js +39 -7
  129. package/dist/patterns/AppShell/AppShell.js.map +1 -1
  130. package/dist/patterns/AppShell/AppShell.variants.d.ts +72 -20
  131. package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
  132. package/dist/patterns/AppShell/AppShell.variants.js +118 -23
  133. package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
  134. package/dist/patterns/AppShell/index.d.ts +1 -1
  135. package/dist/patterns/AppShell/index.d.ts.map +1 -1
  136. package/dist/patterns/AppShell/index.js.map +1 -1
  137. package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
  138. package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
  139. package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
  140. package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
  141. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
  142. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
  143. package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
  144. package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
  145. package/dist/patterns/CommandPalette/index.d.ts +2 -0
  146. package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
  147. package/dist/patterns/CommandPalette/index.js +2 -0
  148. package/dist/patterns/CommandPalette/index.js.map +1 -0
  149. package/dist/patterns/ImagePicker/ImagePicker.d.ts +9 -1
  150. package/dist/patterns/ImagePicker/ImagePicker.d.ts.map +1 -1
  151. package/dist/patterns/ImagePicker/ImagePicker.js +13 -8
  152. package/dist/patterns/ImagePicker/ImagePicker.js.map +1 -1
  153. package/dist/patterns/OptionPicker/OptionPicker.d.ts +2 -0
  154. package/dist/patterns/OptionPicker/OptionPicker.d.ts.map +1 -1
  155. package/dist/patterns/OptionPicker/OptionPicker.js +8 -3
  156. package/dist/patterns/OptionPicker/OptionPicker.js.map +1 -1
  157. package/dist/patterns/OptionPicker/OptionPicker.variants.d.ts +10 -4
  158. package/dist/patterns/OptionPicker/OptionPicker.variants.d.ts.map +1 -1
  159. package/dist/patterns/OptionPicker/OptionPicker.variants.js +29 -6
  160. package/dist/patterns/OptionPicker/OptionPicker.variants.js.map +1 -1
  161. package/dist/patterns/Outline/Outline.d.ts +26 -0
  162. package/dist/patterns/Outline/Outline.d.ts.map +1 -0
  163. package/dist/patterns/Outline/Outline.js +21 -0
  164. package/dist/patterns/Outline/Outline.js.map +1 -0
  165. package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
  166. package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
  167. package/dist/patterns/Outline/Outline.variants.js +21 -0
  168. package/dist/patterns/Outline/Outline.variants.js.map +1 -0
  169. package/dist/patterns/Outline/index.d.ts +2 -0
  170. package/dist/patterns/Outline/index.d.ts.map +1 -0
  171. package/dist/patterns/Outline/index.js +2 -0
  172. package/dist/patterns/Outline/index.js.map +1 -0
  173. package/dist/patterns/PageHeader/PageHeader.d.ts +33 -4
  174. package/dist/patterns/PageHeader/PageHeader.d.ts.map +1 -1
  175. package/dist/patterns/PageHeader/PageHeader.js +31 -6
  176. package/dist/patterns/PageHeader/PageHeader.js.map +1 -1
  177. package/dist/patterns/PageHeader/PageHeader.variants.d.ts +23 -2
  178. package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -1
  179. package/dist/patterns/PageHeader/PageHeader.variants.js +33 -2
  180. package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -1
  181. package/dist/patterns/PagePreview/PagePreview.d.ts +138 -4
  182. package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -1
  183. package/dist/patterns/PagePreview/PagePreview.js +159 -13
  184. package/dist/patterns/PagePreview/PagePreview.js.map +1 -1
  185. package/dist/patterns/PagePreview/PagePreview.variants.d.ts +15 -2
  186. package/dist/patterns/PagePreview/PagePreview.variants.d.ts.map +1 -1
  187. package/dist/patterns/PagePreview/PagePreview.variants.js +22 -6
  188. package/dist/patterns/PagePreview/PagePreview.variants.js.map +1 -1
  189. package/dist/patterns/PagePreview/index.d.ts +1 -1
  190. package/dist/patterns/PagePreview/index.d.ts.map +1 -1
  191. package/dist/patterns/PagePreview/index.js.map +1 -1
  192. package/dist/patterns/SaveBar/SaveBar.d.ts +20 -4
  193. package/dist/patterns/SaveBar/SaveBar.d.ts.map +1 -1
  194. package/dist/patterns/SaveBar/SaveBar.js +22 -4
  195. package/dist/patterns/SaveBar/SaveBar.js.map +1 -1
  196. package/dist/patterns/SaveBar/SaveBar.variants.d.ts +27 -5
  197. package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -1
  198. package/dist/patterns/SaveBar/SaveBar.variants.js +39 -6
  199. package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -1
  200. package/dist/patterns/SectionList/SectionList.d.ts.map +1 -1
  201. package/dist/patterns/SectionList/SectionList.js +2 -2
  202. package/dist/patterns/SectionList/SectionList.js.map +1 -1
  203. package/dist/patterns/SectionList/SectionList.variants.d.ts +4 -1
  204. package/dist/patterns/SectionList/SectionList.variants.d.ts.map +1 -1
  205. package/dist/patterns/SectionList/SectionList.variants.js +5 -2
  206. package/dist/patterns/SectionList/SectionList.variants.js.map +1 -1
  207. package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
  208. package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
  209. package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
  210. package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
  211. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
  212. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
  213. package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
  214. package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
  215. package/dist/patterns/SiteWindow/index.d.ts +2 -0
  216. package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
  217. package/dist/patterns/SiteWindow/index.js +2 -0
  218. package/dist/patterns/SiteWindow/index.js.map +1 -0
  219. package/dist/patterns/Split/Split.variants.d.ts +2 -2
  220. package/dist/patterns/Split/Split.variants.d.ts.map +1 -1
  221. package/dist/patterns/Split/Split.variants.js +2 -2
  222. package/dist/patterns/Split/Split.variants.js.map +1 -1
  223. package/dist/patterns/Welcome/Welcome.d.ts +18 -0
  224. package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
  225. package/dist/patterns/Welcome/Welcome.js +20 -0
  226. package/dist/patterns/Welcome/Welcome.js.map +1 -0
  227. package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
  228. package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
  229. package/dist/patterns/Welcome/Welcome.variants.js +12 -0
  230. package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
  231. package/dist/patterns/Welcome/index.d.ts +2 -0
  232. package/dist/patterns/Welcome/index.d.ts.map +1 -0
  233. package/dist/patterns/Welcome/index.js +2 -0
  234. package/dist/patterns/Welcome/index.js.map +1 -0
  235. package/dist/patterns/Workbench/Workbench.d.ts +35 -4
  236. package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
  237. package/dist/patterns/Workbench/Workbench.js +59 -4
  238. package/dist/patterns/Workbench/Workbench.js.map +1 -1
  239. package/dist/patterns/Workbench/Workbench.variants.d.ts +56 -4
  240. package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
  241. package/dist/patterns/Workbench/Workbench.variants.js +111 -4
  242. package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
  243. package/dist/patterns/Workbench/index.d.ts +1 -1
  244. package/dist/patterns/Workbench/index.d.ts.map +1 -1
  245. package/dist/patterns/Workbench/index.js.map +1 -1
  246. package/dist/patterns/index.d.ts +4 -0
  247. package/dist/patterns/index.d.ts.map +1 -1
  248. package/dist/patterns/index.js +4 -0
  249. package/dist/patterns/index.js.map +1 -1
  250. package/dist/patterns/page-bar.d.ts +17 -0
  251. package/dist/patterns/page-bar.d.ts.map +1 -0
  252. package/dist/patterns/page-bar.js +22 -0
  253. package/dist/patterns/page-bar.js.map +1 -0
  254. package/package.json +2 -1
  255. package/src/styles.css +136 -0
  256. package/src/tokens/tokens.css +26 -1
@@ -1,5 +1,5 @@
1
1
  import { type LucideIcon } from 'lucide-react';
2
- import type { ReactNode } from 'react';
2
+ import { type ReactNode } from 'react';
3
3
  import { type MenuAction } from '../../components/Menu/index.js';
4
4
  export interface AppShellNavItem {
5
5
  readonly id: string;
@@ -8,11 +8,20 @@ export interface AppShellNavItem {
8
8
  readonly icon?: LucideIcon;
9
9
  /** The screen being shown is this one, or inside it. */
10
10
  readonly isCurrent?: boolean;
11
+ /** A short number beside it: how many it holds, or how many are new. */
12
+ readonly count?: string;
13
+ /**
14
+ * The places inside a section, such as each kind of content under "Content". While the section is
15
+ * the current one they are listed in a column beside the rail, under the section's name.
16
+ */
17
+ readonly children?: readonly AppShellNavGroup[];
11
18
  }
12
19
  export interface AppShellNavGroup {
13
20
  readonly id: string;
14
21
  /** A small heading over the group, such as "Content". The first group usually has none. */
15
22
  readonly label?: string;
23
+ /** `end` puts the group at the bottom of the rail: the sections a person visits least. */
24
+ readonly place?: 'start' | 'end';
16
25
  readonly items: readonly AppShellNavItem[];
17
26
  }
18
27
  export interface AppShellAccount {
@@ -25,23 +34,39 @@ export interface AppShellAccount {
25
34
  readonly actions: readonly MenuAction[];
26
35
  readonly onAction: (id: string) => void;
27
36
  }
37
+ export interface AppShellSearch {
38
+ /** What the button says and is called: "Search, jump to or create…". */
39
+ readonly label: string;
40
+ /** The keys that open it too, as they are shown: "⌘K". */
41
+ readonly shortcut?: string;
42
+ readonly onPress: () => void;
43
+ }
28
44
  export interface AppShellProps {
29
- /** The mark at the top of the sidebar: a `Logo`. */
30
- readonly logo?: ReactNode;
31
- /** The site's name, at the top of the sidebar. */
45
+ /** What the mark at the top of the rail stands for, such as "Velocity", for screen readers. */
46
+ readonly logoLabel: string;
47
+ /** The site's name, at the top of a section's column and of the panel of a narrow window. */
32
48
  readonly siteName: string;
33
- /** Under the site's name: its template, or its address. */
49
+ /** Under the site's name: its address, or its template. */
34
50
  readonly siteDetail?: string;
35
51
  /** Names the navigation for screen readers, such as "Main". */
36
52
  readonly navLabel: string;
53
+ /** The sections of the rail, in groups. A section may hold places of its own (`children`). */
37
54
  readonly nav: readonly AppShellNavGroup[];
55
+ /** The name of the button that opens the navigation on a narrow window, such as "Open the menu". */
56
+ readonly menuLabel: string;
38
57
  /** The words of the link that jumps past the navigation, such as "Skip to content". */
39
58
  readonly skipLabel: string;
40
- /** The signed-in person, at the bottom of the sidebar, with their menu. */
59
+ /** The button at the end of the bar that opens the search. */
60
+ readonly search?: AppShellSearch;
61
+ /** The signed-in person, at the bottom of the rail, with their menu. */
41
62
  readonly account?: AppShellAccount;
42
63
  /** The screen. */
43
64
  readonly children: ReactNode;
44
65
  }
45
- /** The frame around every screen: the sidebar with its navigation, and the main area. */
46
- export declare function AppShell({ logo, siteName, siteDetail, navLabel, nav, skipLabel, account, children }: AppShellProps): import("react").JSX.Element;
66
+ /**
67
+ * The frame around every screen: the rail of sections, the places of the current section beside it,
68
+ * the bar across the top, which holds the screen's own header (its `PageHeader` or `SaveBar`) and the
69
+ * search, and the main area, which holds only the screen's content.
70
+ */
71
+ export declare function AppShell({ logoLabel, siteName, siteDetail, navLabel, nav, menuLabel, skipLabel, search, account, children }: AppShellProps): import("react").JSX.Element;
47
72
  //# sourceMappingURL=AppShell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../../src/patterns/AppShell/AppShell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AA0BvE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAC3B,wDAAwD;IACxD,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,2FAA2F;IAC3F,QAAQ,CAAC,KAAK,CAAC,EAAE,M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,EAAE,MAAM,CAAC;IACvB,0DAA0D;IAC1D,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,+FAA+F;IAC/F,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,6FAA6F;IAC7F,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,2DAA2D;IAC3D,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAC7B,+DAA+D;IAC/D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,8FAA8F;IAC9F,QAAQ,CAAC,GAAG,EAAE,SAAS,gBAAgB,EAAE,CAAC;IAC1C,oGAAoG;IACpG,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,uFAAuF;IACvF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,8DAA8D;IAC9D,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAC;IACjC,wEAAwE;IACxE,QAAQ,CAAC,OAAO,CAAC,EAAE,eAAe,CAAC;IACnC,kBAAkB;IAClB,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC;CAC9B;AA2CD;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,aAAa,+BAiL1I"}
@@ -1,8 +1,12 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { ChevronsUpDown } from 'lucide-react';
3
- import { Button as AriaButton, Link } from 'react-aria-components';
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ChevronsUpDown, Menu as MenuIcon, Search } from 'lucide-react';
3
+ import { useCallback, useState } from 'react';
4
+ import { Button as AriaButton, Dialog as AriaDialog, DialogTrigger, Link, Modal, ModalOverlay } from 'react-aria-components';
5
+ import { Logo } from '../../components/Logo/index.js';
4
6
  import { Menu } from '../../components/Menu/index.js';
5
- import { appShellAccountAvatarClass, appShellAccountClass, appShellAccountLabelClass, appShellAccountDetailClass, appShellAccountIconSize, appShellAccountNameClass, appShellAccountTextClass, appShellBrandClass, appShellBrandDetailClass, appShellBrandNameClass, appShellBrandTextClass, appShellClass, appShellFooterClass, appShellGroupLabelClass, appShellMainClass, appShellMainId, appShellNavClass, appShellNavIconSize, appShellNavLinkVariants, appShellNavListClass, appShellSidebarClass, appShellSkipClass, } from './AppShell.variants.js';
7
+ import { Tooltip } from '../../components/Tooltip/index.js';
8
+ import { PageBarBackContext, PageBarContext } from '../page-bar.js';
9
+ import { appShellAccountDetailClass, appShellAccountIconSize, appShellAccountNameClass, appShellAccountTextClass, appShellBarClass, appShellBarSlotClass, appShellSiteClass, appShellSiteDetailClass, appShellSiteNameClass, appShellClass, appShellColumnClass, appShellDrawerAccountClass, appShellDrawerAvatarClass, appShellDrawerChildrenClass, appShellDrawerClass, appShellDrawerContentClass, appShellDrawerFooterClass, appShellDrawerNavClass, appShellDrawerOverlayClass, appShellGroupLabelClass, appShellHiddenClass, appShellMainClass, appShellMainId, appShellMenuButtonVariants, appShellMenuIconSize, appShellNavCountClass, appShellNavIconSize, appShellNavLabelClass, appShellNavLinkVariants, appShellNavListClass, appShellRailAccountClass, appShellRailAvatarClass, appShellRailBadgeClass, appShellRailClass, appShellRailGroupVariants, appShellRailIconSize, appShellRailLabelClass, appShellRailLinkVariants, appShellRailListClass, appShellRailLogoClass, appShellRailNavClass, appShellSearchVariants, appShellSearchIconSize, appShellSearchLabelVariants, appShellSearchShortcutVariants, appShellSectionClass, appShellSkipClass, } from './AppShell.variants.js';
6
10
  /** The first letters of up to two names: "Maya Ellison" is "ME". */
7
11
  const initials = (name) => name
8
12
  .split(/\s+/)
@@ -10,8 +14,36 @@ const initials = (name) => name
10
14
  .slice(0, 2)
11
15
  .map((word) => word.charAt(0).toUpperCase())
12
16
  .join('');
13
- /** The frame around every screen: the sidebar with its navigation, and the main area. */
14
- export function AppShell({ logo, siteName, siteDetail, navLabel, nav, skipLabel, account, children }) {
15
- return (_jsxs("div", { className: appShellClass, children: [_jsx("a", { className: appShellSkipClass, href: `#${appShellMainId}`, children: skipLabel }), _jsxs("aside", { className: appShellSidebarClass, children: [_jsxs("div", { className: appShellBrandClass, children: [logo, _jsxs("div", { className: appShellBrandTextClass, children: [_jsx("div", { className: appShellBrandNameClass, children: siteName }), siteDetail !== undefined && _jsx("div", { className: appShellBrandDetailClass, children: siteDetail })] })] }), _jsx("nav", { "aria-label": navLabel, className: appShellNavClass, children: nav.map((group) => (_jsxs("div", { role: "group", ...(group.label !== undefined && { 'aria-label': group.label }), children: [group.label !== undefined && (_jsx("div", { "aria-hidden": true, className: appShellGroupLabelClass, children: group.label })), _jsx("ul", { className: appShellNavListClass, children: group.items.map(({ id, label, href, icon: Icon, isCurrent = false }) => (_jsx("li", { children: _jsxs(Link, { className: appShellNavLinkVariants({ isCurrent }), href: href, ...(isCurrent && { 'aria-current': 'page' }), children: [Icon && _jsx(Icon, { "aria-hidden": true, size: appShellNavIconSize }), label] }) }, id))) })] }, group.id))) }), account !== undefined && (_jsx("div", { className: appShellFooterClass, children: _jsx(Menu, { placement: "top start", actions: account.actions, onAction: account.onAction, trigger: _jsxs(AriaButton, { className: appShellAccountClass, children: [_jsx("span", { className: appShellAccountLabelClass, children: account.label }), _jsx("span", { "aria-hidden": true, className: appShellAccountAvatarClass, children: initials(account.name) }), _jsxs("span", { className: appShellAccountTextClass, children: [_jsx("span", { className: appShellAccountNameClass, children: account.name }), account.detail !== undefined && _jsx("span", { className: appShellAccountDetailClass, children: account.detail })] }), _jsx(ChevronsUpDown, { "aria-hidden": true, size: appShellAccountIconSize })] }) }) }))] }), _jsx("main", { id: appShellMainId, tabIndex: -1, className: appShellMainClass, children: children })] }));
17
+ /** One place in a list with its words showing: the column beside the rail, and the panel of a narrow window. */
18
+ function PlaceLink({ item, onPress }) {
19
+ const { label, href, icon: Icon, isCurrent = false, count } = item;
20
+ return (_jsxs(Link, { className: appShellNavLinkVariants({ isCurrent }), href: href, ...(isCurrent && { 'aria-current': 'page' }), ...(onPress && { onPress }), children: [Icon && _jsx(Icon, { "aria-hidden": true, size: appShellNavIconSize }), _jsx("span", { className: appShellNavLabelClass, children: label }), count !== undefined && _jsx("span", { className: appShellNavCountClass, children: count })] }));
21
+ }
22
+ /** Groups of places, each under its small heading. */
23
+ function PlaceGroups({ groups, onPress }) {
24
+ return groups.map((group) => (_jsxs("div", { role: "group", ...(group.label !== undefined && { 'aria-label': group.label }), children: [group.label !== undefined && (_jsx("div", { "aria-hidden": true, className: appShellGroupLabelClass, children: group.label })), _jsx("ul", { className: appShellNavListClass, children: group.items.map((item) => (_jsx("li", { children: _jsx(PlaceLink, { item: item, onPress: onPress }) }, item.id))) })] }, group.id)));
25
+ }
26
+ /**
27
+ * The frame around every screen: the rail of sections, the places of the current section beside it,
28
+ * the bar across the top, which holds the screen's own header (its `PageHeader` or `SaveBar`) and the
29
+ * search, and the main area, which holds only the screen's content.
30
+ */
31
+ export function AppShell({ logoLabel, siteName, siteDetail, navLabel, nav, menuLabel, skipLabel, search, account, children }) {
32
+ // Where the screen's header is drawn: the screen's own parts are handed it once the bar is there.
33
+ const [bar, setBar] = useState(null);
34
+ // How many parts of the screen say its bar leads back (one, or none): counted, so one leaving never undoes another.
35
+ const [leadingBack, setLeadingBack] = useState(0);
36
+ const leadsBack = useCallback((yes) => setLeadingBack((count) => Math.max(0, count + (yes ? 1 : -1))), []);
37
+ const isScreenLeadingBack = leadingBack > 0;
38
+ const site = (_jsxs("div", { className: appShellSiteClass, children: [_jsx("span", { className: appShellSiteNameClass, children: siteName }), siteDetail !== undefined && _jsx("span", { className: appShellSiteDetailClass, children: siteDetail })] }));
39
+ const current = nav.flatMap((group) => group.items).find((item) => item.isCurrent === true && (item.children?.length ?? 0) > 0);
40
+ const accountWords = account !== undefined && (_jsxs(_Fragment, { children: [_jsx("span", { className: appShellHiddenClass, children: account.label }), _jsx("span", { "aria-hidden": true, className: appShellRailAvatarClass, children: initials(account.name) })] }));
41
+ return (_jsxs("div", { className: appShellClass, children: [_jsx("a", { className: appShellSkipClass, href: `#${appShellMainId}`,
42
+ // The link is followed here, not by the browser: a page with a base address would be sent
43
+ // to that address, off the screen the person is on.
44
+ onClick: (event) => {
45
+ event.preventDefault();
46
+ document.getElementById(appShellMainId)?.focus();
47
+ }, children: skipLabel }), _jsxs("aside", { className: appShellRailClass, children: [_jsx("div", { className: appShellRailLogoClass, children: _jsx(Logo, { label: logoLabel, tone: "rail" }) }), _jsx("nav", { "aria-label": navLabel, className: appShellRailNavClass, children: nav.map((group) => (_jsx("div", { role: "group", className: appShellRailGroupVariants({ place: group.place }), ...(group.label !== undefined && { 'aria-label': group.label }), children: _jsx("ul", { className: appShellRailListClass, children: group.items.map(({ id, label, href, icon: Icon, isCurrent = false, count }) => (_jsx("li", { children: _jsx(Tooltip, { content: label, placement: "right", children: _jsxs(Link, { className: appShellRailLinkVariants({ isCurrent }), href: href, ...(isCurrent && { 'aria-current': 'page' }), children: [Icon && _jsx(Icon, { "aria-hidden": true, size: appShellRailIconSize }), _jsx("span", { className: appShellRailLabelClass, children: label }), count !== undefined && (_jsx("span", { "aria-hidden": true, className: appShellRailBadgeClass, children: count }))] }) }) }, id))) }) }, group.id))) }), account !== undefined && (_jsx(Menu, { placement: "top start", actions: account.actions, onAction: account.onAction, trigger: _jsxs(AriaButton, { className: appShellRailAccountClass, children: [accountWords, _jsxs("span", { className: appShellHiddenClass, children: [_jsx("span", { children: account.name }), account.detail !== undefined && _jsx("span", { children: account.detail })] })] }) }))] }), current?.children !== undefined && (_jsxs("nav", { "aria-label": current.label, className: appShellSectionClass, children: [site, _jsx(PlaceGroups, { groups: current.children })] })), _jsxs("div", { className: appShellColumnClass, children: [_jsxs("header", { className: appShellBarClass, children: [_jsxs(DialogTrigger, { children: [_jsx(AriaButton, { "aria-label": menuLabel, className: appShellMenuButtonVariants({ isScreenLeadingBack }), children: _jsx(MenuIcon, { "aria-hidden": true, size: appShellMenuIconSize }) }), _jsx(ModalOverlay, { isDismissable: true, className: appShellDrawerOverlayClass, children: _jsx(Modal, { className: appShellDrawerClass, children: _jsx(AriaDialog, { "aria-label": menuLabel, className: appShellDrawerContentClass, children: ({ close }) => (_jsxs(_Fragment, { children: [site, _jsx("nav", { "aria-label": navLabel, className: appShellDrawerNavClass, children: nav.map((group) => (_jsxs("div", { role: "group", ...(group.label !== undefined && { 'aria-label': group.label }), children: [group.label !== undefined && (_jsx("div", { "aria-hidden": true, className: appShellGroupLabelClass, children: group.label })), _jsx("ul", { className: appShellNavListClass, children: group.items.map((item) => (_jsxs("li", { children: [_jsx(PlaceLink, { item: item, onPress: close }), item.children !== undefined && item.children.length > 0 && (_jsx("div", { className: appShellDrawerChildrenClass, children: _jsx(PlaceGroups, { groups: item.children, onPress: close }) }))] }, item.id))) })] }, group.id))) }), account !== undefined && (_jsx("div", { className: appShellDrawerFooterClass, children: _jsx(Menu, { placement: "top start", actions: account.actions, onAction: account.onAction, trigger: _jsxs(AriaButton, { className: appShellDrawerAccountClass, children: [_jsx("span", { className: appShellHiddenClass, children: account.label }), _jsx("span", { "aria-hidden": true, className: appShellDrawerAvatarClass, children: initials(account.name) }), _jsxs("span", { className: appShellAccountTextClass, children: [_jsx("span", { className: appShellAccountNameClass, children: account.name }), account.detail !== undefined && _jsx("span", { className: appShellAccountDetailClass, children: account.detail })] }), _jsx(ChevronsUpDown, { "aria-hidden": true, size: appShellAccountIconSize })] }) }) }))] })) }) }) })] }), _jsx("div", { ref: setBar, className: appShellBarSlotClass }), search !== undefined && (_jsxs(AriaButton, { className: appShellSearchVariants({ isScreenLeadingBack }), onPress: search.onPress, children: [_jsx(Search, { "aria-hidden": true, size: appShellSearchIconSize }), _jsx("span", { className: appShellSearchLabelVariants({ isScreenLeadingBack }), children: search.label }), search.shortcut !== undefined && (_jsx("kbd", { "aria-hidden": true, className: appShellSearchShortcutVariants({ isScreenLeadingBack }), children: search.shortcut }))] }))] }), _jsx("main", { id: appShellMainId, tabIndex: -1, className: appShellMainClass, children: _jsx(PageBarContext, { value: bar, children: _jsx(PageBarBackContext, { value: leadsBack, children: children }) }) })] })] }));
16
48
  }
17
49
  //# sourceMappingURL=AppShell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.js","sourceRoot":"","sources":["../../../src/patterns/AppShell/AppShell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAmB,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,IAAI,EAAmB,MAAM,gCAAgC,CAAC;AACvE,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,kBAAkB,EAClB,wBAAwB,EACxB,sBAAsB,EACtB,sBAAsB,EACtB,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,wBAAwB,CAAC;AA+ChC,oEAAoE;AACpE,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAChC,IAAI;KACD,KAAK,CAAC,KAAK,CAAC;KACZ,MAAM,CAAC,OAAO,CAAC;KACf,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;KACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;KAC3C,IAAI,CAAC,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IACM,EACT,eAAM,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,iBAAiB,YAClE,KAAC,cAAc,IAAC,KAAK,EAAE,GAAG,YACxB,KAAC,kBAAkB,IAAC,KAAK,EAAE,SAAS,YAAG,QAAQ,GAAsB,GACtD,GACZ,IACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,35 +1,87 @@
1
- /** The page is one quiet surface: the sidebar is part of it, and the screen sits on it in a panel. */
2
- export declare const appShellClass = "flex h-dvh overflow-hidden bg-background-secondary text-foreground";
1
+ /**
2
+ * From `md` up the window has three parts side by side: the rail of sections, dark in both themes;
3
+ * beside it, when the section being shown has places of its own, a column naming them; then the bar
4
+ * across the top and the screen under it. On a narrower window (a phone, a tablet held upright)
5
+ * the rail and the column are behind a button in the bar, so the screen has the width.
6
+ */
7
+ export declare const appShellClass = "flex h-dvh flex-col overflow-hidden bg-background text-foreground md:flex-row";
3
8
  export declare const appShellSkipClass: string;
4
- export declare const appShellSidebarClass = "flex w-60 shrink-0 flex-col px-3 py-5";
5
- export declare const appShellBrandClass = "flex items-center gap-2.5 px-2.5 pb-4";
6
- export declare const appShellBrandTextClass = "min-w-0";
7
- export declare const appShellBrandNameClass = "truncate text-base font-bold text-foreground";
8
- export declare const appShellBrandDetailClass = "truncate text-xs text-foreground-muted";
9
- export declare const appShellNavClass = "flex-1 overflow-auto";
10
- export declare const appShellGroupLabelClass = "px-2.5 pt-4 pb-1.5 text-xs font-semibold tracking-widest text-foreground-muted uppercase";
9
+ export declare const appShellRailClass = "hidden w-16 shrink-0 flex-col items-center gap-1 bg-rail px-2 py-3 md:flex";
10
+ export declare const appShellRailLogoClass = "flex h-11 w-11 shrink-0 items-center justify-center pb-2";
11
+ export declare const appShellRailNavClass = "flex min-h-0 w-full flex-1 flex-col items-center gap-1 overflow-y-auto";
12
+ /** A group of sections. Each after the first is set off by a short rule; the group placed at the end sits at the bottom. */
13
+ export declare const appShellRailGroupVariants: (props?: ({
14
+ place?: "end" | "start" | null | undefined;
15
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
16
+ export declare const appShellRailListClass = "flex flex-col items-center gap-1";
17
+ export declare const appShellRailLinkVariants: (props?: ({
18
+ isCurrent?: boolean | null | undefined;
19
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
20
+ /** The words of a section's link: read out, and shown in a tooltip, since the rail shows only the icon. */
21
+ export declare const appShellRailLabelClass = "sr-only";
22
+ /** A number on a section, such as what is new in it, at the corner of its icon. */
23
+ export declare const appShellRailBadgeClass = "absolute top-1 right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-rail-foreground px-1 text-xs font-bold text-rail";
24
+ export declare const appShellRailIconSize = 20;
25
+ export declare const appShellRailAccountClass: string;
26
+ export declare const appShellRailAvatarClass = "flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-rail-current text-xs font-bold text-rail-foreground";
27
+ export declare const appShellSectionClass = "hidden w-56 shrink-0 flex-col gap-5 overflow-y-auto border-r border-border bg-card px-3 py-5 md:flex";
28
+ /** The site's name and address, at the top of a section's column and of a narrow window's panel. */
29
+ export declare const appShellSiteClass = "flex min-w-0 flex-col gap-0.5 px-2.5";
30
+ export declare const appShellSiteNameClass = "truncate text-base font-bold text-foreground";
31
+ export declare const appShellSiteDetailClass = "truncate text-xs text-foreground-subtle";
32
+ export declare const appShellGroupLabelClass = "px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
11
33
  export declare const appShellNavListClass = "flex flex-col gap-0.5";
12
34
  export declare const appShellNavLinkVariants: (props?: ({
13
35
  isCurrent?: boolean | null | undefined;
14
36
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
- export declare const appShellFooterClass = "border-t border-border pt-3";
16
- export declare const appShellAccountClass: string;
17
- export declare const appShellAccountAvatarClass = "flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground";
37
+ export declare const appShellNavLabelClass = "min-w-0 flex-1 truncate";
38
+ export declare const appShellNavCountClass = "shrink-0 text-xs font-medium text-foreground-muted tabular-nums";
39
+ export declare const appShellNavIconSize = 16;
40
+ export declare const appShellColumnClass = "flex min-h-0 min-w-0 flex-1 flex-col";
41
+ /**
42
+ * One bar on every screen, one row on every window: the menu (on a phone), the screen's header (its title,
43
+ * state and buttons, which fold into a menu on a phone) and the search at the end.
44
+ */
45
+ export declare const appShellBarClass = "flex min-h-14 shrink-0 items-center gap-2 border-b border-border bg-card px-3 md:min-h-16 md:gap-3 md:px-6";
46
+ /** Where a screen's `PageHeader` or `SaveBar` is drawn. */
47
+ export declare const appShellBarSlotClass = "flex min-w-0 flex-1 items-center";
48
+ /** The button that opens the search, at the end of the bar. Below `xl` it shows only its icon, and its words are read out. */
49
+ export declare const appShellSearchVariants: (props?: ({
50
+ isScreenLeadingBack?: boolean | null | undefined;
51
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
52
+ export declare const appShellSearchLabelVariants: (props?: ({
53
+ isScreenLeadingBack?: boolean | null | undefined;
54
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
55
+ export declare const appShellSearchShortcutVariants: (props?: ({
56
+ isScreenLeadingBack?: boolean | null | undefined;
57
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
58
+ export declare const appShellSearchIconSize = 16;
59
+ export declare const appShellMenuButtonVariants: (props?: ({
60
+ isScreenLeadingBack?: boolean | null | undefined;
61
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
62
+ export declare const appShellMenuIconSize = 20;
63
+ /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
64
+ export declare const appShellDrawerOverlayClass = "fixed inset-0 layer-overlay flex bg-scrim motion-scrim";
65
+ export declare const appShellDrawerClass = "h-full w-72 max-w-full border-r border-border bg-card shadow-xl outline-none motion-sheet-start";
66
+ export declare const appShellDrawerContentClass = "flex h-full flex-col gap-4 overflow-y-auto px-3 py-5 outline-none";
67
+ export declare const appShellDrawerNavClass = "flex flex-col gap-4";
68
+ /** A section's own places, under its link in the panel. */
69
+ export declare const appShellDrawerChildrenClass = "flex flex-col gap-0.5 border-l border-border pl-3 ml-4.5";
70
+ export declare const appShellDrawerFooterClass = "mt-auto border-t border-border pt-3";
71
+ export declare const appShellDrawerAccountClass: string;
72
+ export declare const appShellDrawerAvatarClass = "flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground";
18
73
  export declare const appShellAccountTextClass = "flex min-w-0 flex-1 flex-col";
19
74
  export declare const appShellAccountNameClass = "truncate text-sm font-semibold text-foreground";
20
75
  export declare const appShellAccountDetailClass = "truncate text-xs text-foreground-muted";
76
+ /** On the rail only the initials show: the words are for screen readers, and the tooltip. */
77
+ export declare const appShellHiddenClass = "sr-only";
78
+ export declare const appShellAccountIconSize = 14;
21
79
  /**
22
- * `relative`, so that anything placed out of the flow inside the panel (a label only screen readers
80
+ * `relative`, so that anything placed out of the flow inside the screen (a label only screen readers
23
81
  * get) scrolls with it. Without it such an element is placed against the page and makes the page
24
82
  * itself scroll far past the frame.
25
83
  */
26
- export declare const appShellMainClass = "relative my-2 mr-2 min-w-0 flex-1 overflow-auto rounded-2xl border border-border bg-background shadow-sm outline-none";
84
+ export declare const appShellMainClass = "relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none";
27
85
  /** The id of the main area, which the skip link jumps to. */
28
86
  export declare const appShellMainId = "main";
29
- /** The size of a navigation icon, in pixels. */
30
- export declare const appShellNavIconSize = 16;
31
- /** The size of the arrows on the account button, in pixels. */
32
- export declare const appShellAccountIconSize = 14;
33
- /** The word that says what the button is, for screen readers only: the name and detail follow it. */
34
- export declare const appShellAccountLabelClass = "sr-only";
35
87
  //# sourceMappingURL=AppShell.variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/AppShell/AppShell.variants.ts"],"names":[],"mappings":"AAEA,sGAA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MAAM,oBAAoB,KAAK,CAAC;AAIvC,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,2DAA2D,CAAC;AACnG,eAAO,MAAM,mBAAmB,oGAAoG,CAAC;AACrI,eAAO,MAAM,0BAA0B,sEAAsE,CAAC;AAC9G,eAAO,MAAM,sBAAsB,wBAAwB,CAAC;AAC5D,2DAA2D;AAC3D,eAAO,MAAM,2BAA2B,6DAA6D,CAAC;AACtG,eAAO,MAAM,yBAAyB,wCAAwC,CAAC;AAC/E,eAAO,MAAM,0BAA0B,QAG5B,CAAC;AACZ,eAAO,MAAM,yBAAyB,qJAC8G,CAAC;AAIrJ,eAAO,MAAM,wBAAwB,iCAAiC,CAAC;AACvE,eAAO,MAAM,wBAAwB,mDAAmD,CAAC;AACzF,eAAO,MAAM,0BAA0B,2CAA2C,CAAC;AACnF,6FAA6F;AAC7F,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAC7C,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAI1C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,6EAA6E,CAAC;AAE5G,6DAA6D;AAC7D,eAAO,MAAM,cAAc,SAAS,CAAC"}
@@ -1,51 +1,146 @@
1
1
  import { cva } from 'class-variance-authority';
2
- /** The page is one quiet surface: the sidebar is part of it, and the screen sits on it in a panel. */
3
- export const appShellClass = 'flex h-dvh overflow-hidden bg-background-secondary text-foreground';
2
+ /**
3
+ * From `md` up the window has three parts side by side: the rail of sections, dark in both themes;
4
+ * beside it, when the section being shown has places of its own, a column naming them; then the bar
5
+ * across the top and the screen under it. On a narrower window (a phone, a tablet held upright)
6
+ * the rail and the column are behind a button in the bar, so the screen has the width.
7
+ */
8
+ export const appShellClass = 'flex h-dvh flex-col overflow-hidden bg-background text-foreground md:flex-row';
4
9
  export const appShellSkipClass = [
5
10
  'sr-only layer-toast rounded-md bg-primary px-4 py-2 text-base font-medium text-primary-foreground',
6
11
  'focus:not-sr-only focus:fixed focus:top-2 focus:left-2',
7
12
  ].join(' ');
8
- export const appShellSidebarClass = 'flex w-60 shrink-0 flex-col px-3 py-5';
9
- export const appShellBrandClass = 'flex items-center gap-2.5 px-2.5 pb-4';
10
- export const appShellBrandTextClass = 'min-w-0';
11
- export const appShellBrandNameClass = 'truncate text-base font-bold text-foreground';
12
- export const appShellBrandDetailClass = 'truncate text-xs text-foreground-muted';
13
- export const appShellNavClass = 'flex-1 overflow-auto';
14
- export const appShellGroupLabelClass = 'px-2.5 pt-4 pb-1.5 text-xs font-semibold tracking-widest text-foreground-muted uppercase';
13
+ /* --- The rail --------------------------------------------------------------- */
14
+ export const appShellRailClass = 'hidden w-16 shrink-0 flex-col items-center gap-1 bg-rail px-2 py-3 md:flex';
15
+ export const appShellRailLogoClass = 'flex h-11 w-11 shrink-0 items-center justify-center pb-2';
16
+ export const appShellRailNavClass = 'flex min-h-0 w-full flex-1 flex-col items-center gap-1 overflow-y-auto';
17
+ /** A group of sections. Each after the first is set off by a short rule; the group placed at the end sits at the bottom. */
18
+ export const appShellRailGroupVariants = cva('flex w-full flex-col items-center gap-1', {
19
+ variants: {
20
+ place: {
21
+ start: 'border-t border-rail-border pt-2 first:border-t-0 first:pt-0',
22
+ end: 'mt-auto pt-2',
23
+ },
24
+ },
25
+ defaultVariants: { place: 'start' },
26
+ });
27
+ export const appShellRailListClass = 'flex flex-col items-center gap-1';
28
+ export const appShellRailLinkVariants = cva([
29
+ 'relative flex h-11 w-11 items-center justify-center rounded-lg transition-colors motion-fast',
30
+ 'outline-none data-focus-visible:ring-2 data-focus-visible:ring-rail-foreground',
31
+ ], {
32
+ variants: {
33
+ isCurrent: {
34
+ true: 'bg-rail-current text-rail-foreground',
35
+ false: 'text-rail-muted data-hovered:bg-rail-hover data-hovered:text-rail-foreground',
36
+ },
37
+ },
38
+ defaultVariants: { isCurrent: false },
39
+ });
40
+ /** The words of a section's link: read out, and shown in a tooltip, since the rail shows only the icon. */
41
+ export const appShellRailLabelClass = 'sr-only';
42
+ /** A number on a section, such as what is new in it, at the corner of its icon. */
43
+ export const appShellRailBadgeClass = 'absolute top-1 right-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-rail-foreground px-1 text-xs font-bold text-rail';
44
+ export const appShellRailIconSize = 20;
45
+ export const appShellRailAccountClass = [
46
+ 'flex h-11 w-11 shrink-0 items-center justify-center rounded-lg transition-colors motion-fast',
47
+ 'outline-none data-hovered:bg-rail-hover data-pressed:bg-rail-hover data-focus-visible:ring-2 data-focus-visible:ring-rail-foreground',
48
+ ].join(' ');
49
+ export const appShellRailAvatarClass = 'flex h-8 w-8 shrink-0 items-center justify-center rounded-full bg-rail-current text-xs font-bold text-rail-foreground';
50
+ /* --- The column of a section's own places ------------------------------------ */
51
+ export const appShellSectionClass = 'hidden w-56 shrink-0 flex-col gap-5 overflow-y-auto border-r border-border bg-card px-3 py-5 md:flex';
52
+ /** The site's name and address, at the top of a section's column and of a narrow window's panel. */
53
+ export const appShellSiteClass = 'flex min-w-0 flex-col gap-0.5 px-2.5';
54
+ export const appShellSiteNameClass = 'truncate text-base font-bold text-foreground';
55
+ export const appShellSiteDetailClass = 'truncate text-xs text-foreground-subtle';
56
+ export const appShellGroupLabelClass = 'px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase';
15
57
  export const appShellNavListClass = 'flex flex-col gap-0.5';
16
58
  export const appShellNavLinkVariants = cva([
17
- 'flex min-h-9 items-center gap-2.5 rounded-md px-2.5 text-base transition-colors motion-fast',
59
+ 'flex min-h-9 items-center gap-2.5 rounded-lg px-2.5 text-base transition-colors motion-fast',
18
60
  'outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring',
19
61
  ], {
20
62
  variants: {
21
63
  isCurrent: {
22
- true: 'bg-card font-semibold text-foreground shadow-sm ring-1 ring-border',
23
- false: 'font-medium text-foreground-secondary data-hovered:bg-background-tertiary data-hovered:text-foreground',
64
+ true: 'bg-background-tertiary font-semibold text-foreground',
65
+ false: 'font-medium text-foreground-muted data-hovered:bg-background-secondary data-hovered:text-foreground',
24
66
  },
25
67
  },
26
68
  defaultVariants: { isCurrent: false },
27
69
  });
28
- export const appShellFooterClass = 'border-t border-border pt-3';
29
- export const appShellAccountClass = [
70
+ export const appShellNavLabelClass = 'min-w-0 flex-1 truncate';
71
+ export const appShellNavCountClass = 'shrink-0 text-xs font-medium text-foreground-muted tabular-nums';
72
+ export const appShellNavIconSize = 16;
73
+ /* --- The bar across the top -------------------------------------------------- */
74
+ export const appShellColumnClass = 'flex min-h-0 min-w-0 flex-1 flex-col';
75
+ /**
76
+ * One bar on every screen, one row on every window: the menu (on a phone), the screen's header (its title,
77
+ * state and buttons, which fold into a menu on a phone) and the search at the end.
78
+ */
79
+ export const appShellBarClass = 'flex min-h-14 shrink-0 items-center gap-2 border-b border-border bg-card px-3 md:min-h-16 md:gap-3 md:px-6';
80
+ /** Where a screen's `PageHeader` or `SaveBar` is drawn. */
81
+ export const appShellBarSlotClass = 'flex min-w-0 flex-1 items-center';
82
+ /** The button that opens the search, at the end of the bar. Below `xl` it shows only its icon, and its words are read out. */
83
+ export const appShellSearchVariants = cva([
84
+ 'flex h-10 min-w-0 shrink-0 items-center gap-2.5 rounded-lg border border-border bg-background px-3 text-base text-foreground-subtle transition-colors motion-fast',
85
+ 'outline-none data-hovered:border-border-strong data-hovered:text-foreground-muted data-focus-visible:ring-2 data-focus-visible:ring-ring',
86
+ ], {
87
+ variants: {
88
+ /**
89
+ * A screen that leads back (an entry) is for working, not looking: its search is an icon, and on a phone it
90
+ * has none, the way back in the menu's place.
91
+ */
92
+ isScreenLeadingBack: { true: 'max-md:hidden', false: 'xl:w-52' },
93
+ },
94
+ defaultVariants: { isScreenLeadingBack: false },
95
+ });
96
+ export const appShellSearchLabelVariants = cva('sr-only min-w-0 flex-1 truncate text-left', {
97
+ variants: { isScreenLeadingBack: { true: '', false: 'xl:not-sr-only xl:overflow-hidden xl:whitespace-nowrap' } },
98
+ defaultVariants: { isScreenLeadingBack: false },
99
+ });
100
+ export const appShellSearchShortcutVariants = cva('hidden shrink-0 rounded-sm border border-border px-1.5 font-mono text-xs text-foreground-subtle', {
101
+ variants: { isScreenLeadingBack: { true: '', false: 'xl:block' } },
102
+ defaultVariants: { isScreenLeadingBack: false },
103
+ });
104
+ export const appShellSearchIconSize = 16;
105
+ export const appShellMenuButtonVariants = cva([
106
+ 'h-10 w-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors motion-fast md:hidden',
107
+ 'outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring',
108
+ ], {
109
+ variants: {
110
+ /** The way back takes the menu's place on a screen that leads back, as on any phone. */
111
+ isScreenLeadingBack: { true: 'hidden', false: 'flex' },
112
+ },
113
+ defaultVariants: { isScreenLeadingBack: false },
114
+ });
115
+ export const appShellMenuIconSize = 20;
116
+ /* --- The panel of a narrow window -------------------------------------------- */
117
+ /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
118
+ export const appShellDrawerOverlayClass = 'fixed inset-0 layer-overlay flex bg-scrim motion-scrim';
119
+ export const appShellDrawerClass = 'h-full w-72 max-w-full border-r border-border bg-card shadow-xl outline-none motion-sheet-start';
120
+ export const appShellDrawerContentClass = 'flex h-full flex-col gap-4 overflow-y-auto px-3 py-5 outline-none';
121
+ export const appShellDrawerNavClass = 'flex flex-col gap-4';
122
+ /** A section's own places, under its link in the panel. */
123
+ export const appShellDrawerChildrenClass = 'flex flex-col gap-0.5 border-l border-border pl-3 ml-4.5';
124
+ export const appShellDrawerFooterClass = 'mt-auto border-t border-border pt-3';
125
+ export const appShellDrawerAccountClass = [
30
126
  'flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-foreground-muted transition-colors motion-fast',
31
127
  'outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring',
32
128
  ].join(' ');
33
- export const appShellAccountAvatarClass = 'flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground';
129
+ export const appShellDrawerAvatarClass = 'flex h-8 w-8 shrink-0 items-center justify-center rounded-full border border-border bg-background-tertiary text-xs font-semibold text-foreground';
130
+ /* --- The account, as it is read ---------------------------------------------- */
34
131
  export const appShellAccountTextClass = 'flex min-w-0 flex-1 flex-col';
35
132
  export const appShellAccountNameClass = 'truncate text-sm font-semibold text-foreground';
36
133
  export const appShellAccountDetailClass = 'truncate text-xs text-foreground-muted';
134
+ /** On the rail only the initials show: the words are for screen readers, and the tooltip. */
135
+ export const appShellHiddenClass = 'sr-only';
136
+ export const appShellAccountIconSize = 14;
137
+ /* --- The screen --------------------------------------------------------------- */
37
138
  /**
38
- * `relative`, so that anything placed out of the flow inside the panel (a label only screen readers
139
+ * `relative`, so that anything placed out of the flow inside the screen (a label only screen readers
39
140
  * get) scrolls with it. Without it such an element is placed against the page and makes the page
40
141
  * itself scroll far past the frame.
41
142
  */
42
- export const appShellMainClass = 'relative my-2 mr-2 min-w-0 flex-1 overflow-auto rounded-2xl border border-border bg-background shadow-sm outline-none';
143
+ export const appShellMainClass = 'relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none';
43
144
  /** The id of the main area, which the skip link jumps to. */
44
145
  export const appShellMainId = 'main';
45
- /** The size of a navigation icon, in pixels. */
46
- export const appShellNavIconSize = 16;
47
- /** The size of the arrows on the account button, in pixels. */
48
- export const appShellAccountIconSize = 14;
49
- /** The word that says what the button is, for screen readers only: the name and detail follow it. */
50
- export const appShellAccountLabelClass = 'sr-only';
51
146
  //# sourceMappingURL=AppShell.variants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppShell.variants.js","sourceRoot":"","sources":["../../../src/patterns/AppShell/AppShell.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,sGAAsG;AACtG,MAAM,CAAC,MAAM,aAAa,GAAG,oEAAoE,CAAC;AAElG,MAAM,CAAC,MAAM,iBAAiB,GAA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C,MAAM,cAAc,GAAG,MAAM,CAAC;AACrC,gDAAgD;AAChD,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACtC,+DAA+D;AAC/D,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,qGAAqG;AACrG,MAAM,CAAC,MAAM,yBAAyB,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"AppShell.variants.js","sourceRoot":"","sources":["../../../src/patterns/AppShell/AppShell.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,+EAA+E,CAAC;AAE7G,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mGAAmG;IACnG,wDAAwD;CACzD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,kFAAkF;AAElF,MAAM,CAAC,MAAM,iBAAiB,GAAG,4EAA4E,CAAC;AAC9G,MAAM,CAAC,MAAM,qBAAqB,GAAG,0DAA0D,CAAC;AAChG,MAAM,CAAC,MAAM,oBAAoB,GAAG,wEAAwE,CAAC;AAC7G,4HAA4H;AAC5H,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC,yCAAyC,EAAE;IACtF,QAAQ,EAAE;QACR,KAAK,EAAE;YACL,KAAK,EAAE,8DAA8D;YACrE,GAAG,EAAE,cAAc;SACpB;KACF;IACD,eAAe,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE;CACpC,CAAC,CAAC;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,kCAAkC,CAAC;AACxE,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CACzC;IACE,8FAA8F;IAC9F,gFAAgF;CACjF,EACD;IACE,QAAQ,EAAE;QACR,SAAS,EAAE;YACT,IAAI,EAAE,sCAAsC;YAC5C,KAAK,EAAE,8EAA8E;SACtF;KACF;IACD,eAAe,EAAE,EAAE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,GAAG,EAAE,CAAC;AAEvC,mFAAmF;AAEnF,gGAAgG;AAChG,MAAM,CAAC,MAAM,0BAA0B,GAAG,wDAAwD,CAAC;AACnG,MAAM,CAAC,MAAM,mBAAmB,GAAG,iGAAiG,CAAC;AACrI,MAAM,CAAC,MAAM,0BAA0B,GAAG,mEAAmE,CAAC;AAC9G,MAAM,CAAC,MAAM,sBAAsB,GAAG,qBAAqB,CAAC;AAC5D,2DAA2D;AAC3D,MAAM,CAAC,MAAM,2BAA2B,GAAG,0DAA0D,CAAC;AACtG,MAAM,CAAC,MAAM,yBAAyB,GAAG,qCAAqC,CAAC;AAC/E,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACxC,uHAAuH;IACvH,6IAA6I;CAC9I,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,yBAAyB,GACpC,kJAAkJ,CAAC;AAErJ,mFAAmF;AAEnF,MAAM,CAAC,MAAM,wBAAwB,GAAG,8BAA8B,CAAC;AACvE,MAAM,CAAC,MAAM,wBAAwB,GAAG,gDAAgD,CAAC;AACzF,MAAM,CAAC,MAAM,0BAA0B,GAAG,wCAAwC,CAAC;AACnF,6FAA6F;AAC7F,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAC7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,EAAE,CAAC;AAE1C,oFAAoF;AAEpF;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,0EAA0E,CAAC;AAE5G,6DAA6D;AAC7D,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC"}
@@ -1,2 +1,2 @@
1
- export { AppShell, type AppShellNavItem, type AppShellProps } from './AppShell.js';
1
+ export { AppShell, type AppShellAccount, type AppShellNavGroup, type AppShellNavItem, type AppShellProps, type AppShellSearch } from './AppShell.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/AppShell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/AppShell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,KAAK,aAAa,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/AppShell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA4C,MAAM,eAAe,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/AppShell/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAA8G,MAAM,eAAe,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ export interface CommandItem {
3
+ readonly id: string;
4
+ /** What choosing it does or where it goes: "Listings", "New listing". */
5
+ readonly label: string;
6
+ /** A few words at the end of the row: what kind of thing it is. */
7
+ readonly detail?: string;
8
+ readonly icon?: LucideIcon;
9
+ /** Other words it is found by, which are not shown. */
10
+ readonly keywords?: string;
11
+ }
12
+ export interface CommandGroup {
13
+ readonly id: string;
14
+ /** The small heading over the group: "Go to", "Create". */
15
+ readonly label: string;
16
+ readonly items: readonly CommandItem[];
17
+ }
18
+ export interface CommandPaletteProps {
19
+ readonly isOpen: boolean;
20
+ readonly onOpenChange: (isOpen: boolean) => void;
21
+ /** Names the window for screen readers: "Search and commands". */
22
+ readonly label: string;
23
+ /** What the box says before anything is typed, and what it is called. */
24
+ readonly placeholder: string;
25
+ /** Shown when nothing matches what was typed. */
26
+ readonly emptyText: string;
27
+ readonly groups: readonly CommandGroup[];
28
+ /** Called with the id of what was chosen. The window closes by itself. */
29
+ readonly onAction: (id: string) => void;
30
+ }
31
+ /**
32
+ * A window to find anything by typing and go there: a box, and under it the matches in groups.
33
+ * The arrow keys move through them and Enter chooses one.
34
+ */
35
+ export declare function CommandPalette({ isOpen, onOpenChange, label, placeholder, emptyText, groups, onAction }: CommandPaletteProps): import("react").JSX.Element;
36
+ //# sourceMappingURL=CommandPalette.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AAgCvD,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,mEAAmE;IACnE,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;IAC3B,uDAAuD;IACvD,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACjD,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,yEAAyE;IACzE,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC;IACzC,0EAA0E;IAC1E,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAmD5H"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Search } from 'lucide-react';
3
+ import { Autocomplete, Dialog, Header, Input, Menu, MenuItem, MenuSection, Modal, ModalOverlay, SearchField, useFilter, } from 'react-aria-components';
4
+ import { commandPaletteClass, commandPaletteContentClass, commandPaletteEmptyClass, commandPaletteHeaderClass, commandPaletteInputClass, commandPaletteItemClass, commandPaletteItemDetailClass, commandPaletteItemIconClass, commandPaletteItemIconSize, commandPaletteItemLabelClass, commandPaletteListClass, commandPaletteOverlayClass, commandPaletteSearchClass, commandPaletteSearchIconSize, commandPaletteSectionClass, } from './CommandPalette.variants.js';
5
+ /**
6
+ * A window to find anything by typing and go there: a box, and under it the matches in groups.
7
+ * The arrow keys move through them and Enter chooses one.
8
+ */
9
+ export function CommandPalette({ isOpen, onOpenChange, label, placeholder, emptyText, groups, onAction }) {
10
+ const { contains } = useFilter({ sensitivity: 'base' });
11
+ return (_jsx(ModalOverlay, { isOpen: isOpen, onOpenChange: onOpenChange, isDismissable: true, className: commandPaletteOverlayClass, children: _jsx(Modal, { className: commandPaletteClass, children: _jsx(Dialog, { "aria-label": label, className: commandPaletteContentClass, children: ({ close }) => (_jsxs(Autocomplete, { filter: contains, children: [_jsxs(SearchField, { "aria-label": placeholder, autoFocus: true, className: commandPaletteSearchClass, children: [_jsx(Search, { "aria-hidden": true, size: commandPaletteSearchIconSize }), _jsx(Input, { placeholder: placeholder, className: commandPaletteInputClass })] }), _jsx(Menu, { "aria-label": label, className: commandPaletteListClass, renderEmptyState: () => _jsx("div", { className: commandPaletteEmptyClass, children: emptyText }), onAction: (key) => {
12
+ close();
13
+ onAction(String(key));
14
+ }, children: groups
15
+ .filter((group) => group.items.length > 0)
16
+ .map((group) => (_jsxs(MenuSection, { id: group.id, className: commandPaletteSectionClass, children: [_jsx(Header, { className: commandPaletteHeaderClass, children: group.label }), group.items.map(({ id, label: words, detail, icon: Icon, keywords }) => (_jsxs(MenuItem, { id: id, className: commandPaletteItemClass, textValue: [words, detail, keywords].filter((part) => part !== undefined).join(' '), children: [Icon && (_jsx("span", { "aria-hidden": true, className: commandPaletteItemIconClass, children: _jsx(Icon, { size: commandPaletteItemIconSize }) })), _jsx("span", { className: commandPaletteItemLabelClass, children: words }), detail !== undefined && _jsx("span", { className: commandPaletteItemDetailClass, children: detail })] }, id)))] }, group.id))) })] })) }) }) }));
17
+ }
18
+ //# sourceMappingURL=CommandPalette.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.js","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAmB,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,YAAY,EACZ,MAAM,EACN,MAAM,EACN,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,WAAW,EACX,SAAS,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,mBAAmB,EACnB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,2BAA2B,EAC3B,0BAA0B,EAC1B,4BAA4B,EAC5B,uBAAuB,EACvB,0BAA0B,EAC1B,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,GAC3B,MAAM,8BAA8B,CAAC;AAkCtC;;;GAGG;AACH,MAAM,UAAU,cAAc,C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