@velocity-astro/cms-ui 0.1.0-beta.7 → 0.1.0-beta.9

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 (205) hide show
  1. package/component-registry.json +72 -5
  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/Heading/Heading.d.ts +1 -1
  47. package/dist/components/Heading/Heading.d.ts.map +1 -1
  48. package/dist/components/Heading/Heading.js +2 -2
  49. package/dist/components/Heading/Heading.js.map +1 -1
  50. package/dist/components/Heading/Heading.variants.d.ts +1 -0
  51. package/dist/components/Heading/Heading.variants.d.ts.map +1 -1
  52. package/dist/components/Heading/Heading.variants.js +2 -0
  53. package/dist/components/Heading/Heading.variants.js.map +1 -1
  54. package/dist/components/Logo/Logo.d.ts +1 -1
  55. package/dist/components/Logo/Logo.d.ts.map +1 -1
  56. package/dist/components/Logo/Logo.js +3 -3
  57. package/dist/components/Logo/Logo.js.map +1 -1
  58. package/dist/components/Logo/Logo.variants.d.ts +5 -2
  59. package/dist/components/Logo/Logo.variants.d.ts.map +1 -1
  60. package/dist/components/Logo/Logo.variants.js +10 -1
  61. package/dist/components/Logo/Logo.variants.js.map +1 -1
  62. package/dist/components/Meter/Meter.d.ts +13 -0
  63. package/dist/components/Meter/Meter.d.ts.map +1 -0
  64. package/dist/components/Meter/Meter.js +8 -0
  65. package/dist/components/Meter/Meter.js.map +1 -0
  66. package/dist/components/Meter/Meter.variants.d.ts +14 -0
  67. package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
  68. package/dist/components/Meter/Meter.variants.js +39 -0
  69. package/dist/components/Meter/Meter.variants.js.map +1 -0
  70. package/dist/components/Meter/index.d.ts +2 -0
  71. package/dist/components/Meter/index.d.ts.map +1 -0
  72. package/dist/components/Meter/index.js +2 -0
  73. package/dist/components/Meter/index.js.map +1 -0
  74. package/dist/components/Segmented/Segmented.d.ts +6 -1
  75. package/dist/components/Segmented/Segmented.d.ts.map +1 -1
  76. package/dist/components/Segmented/Segmented.js +9 -3
  77. package/dist/components/Segmented/Segmented.js.map +1 -1
  78. package/dist/components/Segmented/Segmented.variants.d.ts +7 -1
  79. package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -1
  80. package/dist/components/Segmented/Segmented.variants.js +11 -3
  81. package/dist/components/Segmented/Segmented.variants.js.map +1 -1
  82. package/dist/components/Table/Table.d.ts +8 -1
  83. package/dist/components/Table/Table.d.ts.map +1 -1
  84. package/dist/components/Table/Table.js +4 -4
  85. package/dist/components/Table/Table.js.map +1 -1
  86. package/dist/components/Table/Table.variants.d.ts +6 -2
  87. package/dist/components/Table/Table.variants.d.ts.map +1 -1
  88. package/dist/components/Table/Table.variants.js +9 -4
  89. package/dist/components/Table/Table.variants.js.map +1 -1
  90. package/dist/components/index.d.ts +3 -0
  91. package/dist/components/index.d.ts.map +1 -1
  92. package/dist/components/index.js +3 -0
  93. package/dist/components/index.js.map +1 -1
  94. package/dist/patterns/AppShell/AppShell.d.ts +31 -8
  95. package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
  96. package/dist/patterns/AppShell/AppShell.js +31 -7
  97. package/dist/patterns/AppShell/AppShell.js.map +1 -1
  98. package/dist/patterns/AppShell/AppShell.variants.d.ts +70 -32
  99. package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
  100. package/dist/patterns/AppShell/AppShell.variants.js +116 -38
  101. package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
  102. package/dist/patterns/AppShell/index.d.ts +1 -1
  103. package/dist/patterns/AppShell/index.d.ts.map +1 -1
  104. package/dist/patterns/AppShell/index.js.map +1 -1
  105. package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
  106. package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
  107. package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
  108. package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
  109. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
  110. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
  111. package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
  112. package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
  113. package/dist/patterns/CommandPalette/index.d.ts +2 -0
  114. package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
  115. package/dist/patterns/CommandPalette/index.js +2 -0
  116. package/dist/patterns/CommandPalette/index.js.map +1 -0
  117. package/dist/patterns/Outline/Outline.d.ts +26 -0
  118. package/dist/patterns/Outline/Outline.d.ts.map +1 -0
  119. package/dist/patterns/Outline/Outline.js +21 -0
  120. package/dist/patterns/Outline/Outline.js.map +1 -0
  121. package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
  122. package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
  123. package/dist/patterns/Outline/Outline.variants.js +21 -0
  124. package/dist/patterns/Outline/Outline.variants.js.map +1 -0
  125. package/dist/patterns/Outline/index.d.ts +2 -0
  126. package/dist/patterns/Outline/index.d.ts.map +1 -0
  127. package/dist/patterns/Outline/index.js +2 -0
  128. package/dist/patterns/Outline/index.js.map +1 -0
  129. package/dist/patterns/PageHeader/PageHeader.d.ts +33 -4
  130. package/dist/patterns/PageHeader/PageHeader.d.ts.map +1 -1
  131. package/dist/patterns/PageHeader/PageHeader.js +31 -6
  132. package/dist/patterns/PageHeader/PageHeader.js.map +1 -1
  133. package/dist/patterns/PageHeader/PageHeader.variants.d.ts +23 -3
  134. package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -1
  135. package/dist/patterns/PageHeader/PageHeader.variants.js +33 -3
  136. package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -1
  137. package/dist/patterns/PagePreview/PagePreview.d.ts +9 -1
  138. package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -1
  139. package/dist/patterns/PagePreview/PagePreview.js +6 -2
  140. package/dist/patterns/PagePreview/PagePreview.js.map +1 -1
  141. package/dist/patterns/SaveBar/SaveBar.d.ts +16 -5
  142. package/dist/patterns/SaveBar/SaveBar.d.ts.map +1 -1
  143. package/dist/patterns/SaveBar/SaveBar.js +21 -3
  144. package/dist/patterns/SaveBar/SaveBar.js.map +1 -1
  145. package/dist/patterns/SaveBar/SaveBar.variants.d.ts +25 -7
  146. package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -1
  147. package/dist/patterns/SaveBar/SaveBar.variants.js +32 -10
  148. package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -1
  149. package/dist/patterns/SectionList/SectionList.d.ts.map +1 -1
  150. package/dist/patterns/SectionList/SectionList.js +2 -2
  151. package/dist/patterns/SectionList/SectionList.js.map +1 -1
  152. package/dist/patterns/SectionList/SectionList.variants.d.ts +4 -1
  153. package/dist/patterns/SectionList/SectionList.variants.d.ts.map +1 -1
  154. package/dist/patterns/SectionList/SectionList.variants.js +5 -2
  155. package/dist/patterns/SectionList/SectionList.variants.js.map +1 -1
  156. package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
  157. package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
  158. package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
  159. package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
  160. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
  161. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
  162. package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
  163. package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
  164. package/dist/patterns/SiteWindow/index.d.ts +2 -0
  165. package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
  166. package/dist/patterns/SiteWindow/index.js +2 -0
  167. package/dist/patterns/SiteWindow/index.js.map +1 -0
  168. package/dist/patterns/Split/Split.variants.d.ts +2 -2
  169. package/dist/patterns/Split/Split.variants.d.ts.map +1 -1
  170. package/dist/patterns/Split/Split.variants.js +2 -2
  171. package/dist/patterns/Split/Split.variants.js.map +1 -1
  172. package/dist/patterns/Welcome/Welcome.d.ts +18 -0
  173. package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
  174. package/dist/patterns/Welcome/Welcome.js +14 -0
  175. package/dist/patterns/Welcome/Welcome.js.map +1 -0
  176. package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
  177. package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
  178. package/dist/patterns/Welcome/Welcome.variants.js +12 -0
  179. package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
  180. package/dist/patterns/Welcome/index.d.ts +2 -0
  181. package/dist/patterns/Welcome/index.d.ts.map +1 -0
  182. package/dist/patterns/Welcome/index.js +2 -0
  183. package/dist/patterns/Welcome/index.js.map +1 -0
  184. package/dist/patterns/Workbench/Workbench.d.ts +26 -5
  185. package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
  186. package/dist/patterns/Workbench/Workbench.js +53 -7
  187. package/dist/patterns/Workbench/Workbench.js.map +1 -1
  188. package/dist/patterns/Workbench/Workbench.variants.d.ts +36 -2
  189. package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
  190. package/dist/patterns/Workbench/Workbench.variants.js +70 -8
  191. package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
  192. package/dist/patterns/Workbench/index.d.ts +1 -1
  193. package/dist/patterns/Workbench/index.d.ts.map +1 -1
  194. package/dist/patterns/Workbench/index.js.map +1 -1
  195. package/dist/patterns/index.d.ts +4 -0
  196. package/dist/patterns/index.d.ts.map +1 -1
  197. package/dist/patterns/index.js +4 -0
  198. package/dist/patterns/index.js.map +1 -1
  199. package/dist/patterns/page-bar.d.ts +17 -0
  200. package/dist/patterns/page-bar.d.ts.map +1 -0
  201. package/dist/patterns/page-bar.js +22 -0
  202. package/dist/patterns/page-bar.js.map +1 -0
  203. package/package.json +1 -1
  204. package/src/styles.css +19 -0
  205. package/src/tokens/tokens.css +21 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EACL,IAAI,EACJ,MAAM,EACN,GAAG,EACH,KAAK,IAAI,SAAS,EAClB,SAAS,EACT,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,aAAa,EACb,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAqC7B,sEAAsE;AACtE,MAAM,UAAU,KAAK,CAAC,EACpB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,KAAK,GACM;IACX,OAAO,CACL,cAAK,SAAS,EAAE,eAAe,YAC7B,MAAC,SAAS,kBACI,KAAK,EACjB,SAAS,EAAE,UAAU,KACjB,CAAC,IAAI,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,KAClC,CAAC,YAAY,IAAI;gBACnB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CACrB,YAAY,CAAC;oBACX,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;iBAC1B,CAAC;aACL,CAAC,KACE,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CA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T,CACR,CAAC,IARM,GAAG,CAAC,EAAE,CASV,CACP,CAAC,GACQ,IACF,GACR,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAElD,OAAO,EACL,IAAI,EACJ,MAAM,EACN,GAAG,EACH,KAAK,IAAI,SAAS,EAClB,SAAS,EACT,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EACjB,UAAU,EACV,qBAAqB,EACrB,mBAAmB,EACnB,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AA4C7B,sEAAsE;AACtE,MAAM,UAAU,KAAK,CAAC,EACpB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,WAAW,EACX,IAAI,EACJ,YAAY,EACZ,KAAK,EACL,KAAK,GAAG,MAAM,GACH;IACX,OAAO,CACL,cAAK,SAAS,EAAE,kBAAkB,CAAC,EAAE,KAAK,EAAE,CAAC,YAC3C,MAAC,SAAS,kBACI,KAAK,EACjB,SAAS,EAAE,UAAU,KACjB,CAAC,IAAI,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,KAClC,CAAC,YAAY,IAAI;gBACnB,YAAY,EAAE,CAAC,IAAI,EAAE,EAAE,CACrB,YAAY,CAAC;oBACX,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC;oBAC3B,SAAS,EAAE,IAAI,CAAC,SAAS;iBAC1B,CAAC;aACL,CAAC,KACE,CAAC,WAAW,IAAI,EAAE,WAAW,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,aAEvE,KAAC,WAAW,cACT,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,E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AAE,CAAC,IAHhB,MAAM,CAAC,EAAE,CAIT,CACR,CAAC,IARM,GAAG,CAAC,EAAE,CASV,CACP,CAAC,GACQ,IACF,GACR,CACP,CAAC;AACJ,CAAC"}
@@ -1,14 +1,18 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
- /** The card the table sits in. A table wider than the screen scrolls inside it. */
3
- export declare const tableFrameClass = "overflow-x-auto rounded-xl border border-border bg-card";
2
+ /** The card the table sits in, or none inside a `Card` that is its frame already. A table wider than the screen scrolls inside it. */
3
+ export declare const tableFrameVariants: (props?: ({
4
+ frame?: "none" | "card" | null | undefined;
5
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
4
6
  export declare const tableClass = "w-full border-separate border-spacing-0 text-left text-base outline-none";
5
7
  export declare const tableColumnVariants: (props?: ({
6
8
  align?: "end" | "start" | null | undefined;
9
+ isSecondary?: boolean | null | undefined;
7
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
11
  export declare const tableColumnLabelClass = "inline-flex items-center gap-1";
9
12
  export declare const tableRowClass: string;
10
13
  export declare const tableCellVariants: (props?: ({
11
14
  align?: "end" | "start" | null | undefined;
15
+ isSecondary?: boolean | null | undefined;
12
16
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
17
  export declare const tableEmptyClass = "px-4 py-12 text-center text-foreground-muted";
14
18
  /** The size of the sort arrow, in pixels. */
@@ -1 +1 @@
1
- {"version":3,"file":"Table.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,mFAAmF;AACnF,eAAO,MAAM,eAAe,4DAA4D,CAAC;AAEzF,eAAO,MAAM,UAAU,6EAA6E,CAAC;AAOrG,eAAO,MAAM,mBAAmB;;8EAO/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,eAAO,MAAM,aAAa,QAMf,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;8EAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,iDAAiD,CAAC;AAE9E,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"Table.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,sIAAsI;AACtI,eAAO,MAAM,kBAAkB;;8EAG7B,CAAC;AAEH,eAAO,MAAM,UAAU,6EAA6E,CAAC;AAUrG,eAAO,MAAM,mBAAmB;;;8EAO/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,eAAO,MAAM,aAAa,QAMf,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;;8EAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,iDAAiD,CAAC;AAE9E,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -1,16 +1,21 @@
1
1
  import { cva } from 'class-variance-authority';
2
- /** The card the table sits in. A table wider than the screen scrolls inside it. */
3
- export const tableFrameClass = 'overflow-x-auto rounded-xl border border-border bg-card';
2
+ /** The card the table sits in, or none inside a `Card` that is its frame already. A table wider than the screen scrolls inside it. */
3
+ export const tableFrameVariants = cva('overflow-x-auto', {
4
+ variants: { frame: { card: 'rounded-xl border border-border bg-card', none: '' } },
5
+ defaultVariants: { frame: 'card' },
6
+ });
4
7
  export const tableClass = 'w-full border-separate border-spacing-0 text-left text-base outline-none';
5
8
  const align = {
6
9
  start: 'text-left',
7
10
  end: 'text-right',
8
11
  };
12
+ /** A column a narrow window leaves out, so the main ones have its width. */
13
+ const isSecondary = { true: 'hidden md:table-cell', false: '' };
9
14
  export const tableColumnVariants = cva([
10
15
  'border-b border-border px-4 py-2.5 text-xs font-semibold whitespace-nowrap text-foreground-muted',
11
16
  'outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset',
12
17
  'data-allows-sorting:cursor-default data-hovered:text-foreground',
13
- ], { variants: { align }, defaultVariants: { align: 'start' } });
18
+ ], { variants: { align, isSecondary }, defaultVariants: { align: 'start', isSecondary: false } });
14
19
  export const tableColumnLabelClass = 'inline-flex items-center gap-1';
15
20
  export const tableRowClass = [
16
21
  'group outline-none transition-colors motion-fast',
@@ -19,7 +24,7 @@ export const tableRowClass = [
19
24
  // A row that opens something says so to the pointer.
20
25
  'data-href:cursor-pointer data-action:cursor-pointer',
21
26
  ].join(' ');
22
- export const tableCellVariants = cva('border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset', { variants: { align }, defaultVariants: { align: 'start' } });
27
+ export const tableCellVariants = cva('border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset', { variants: { align, isSecondary }, defaultVariants: { align: 'start', isSecondary: false } });
23
28
  export const tableEmptyClass = 'px-4 py-12 text-center text-foreground-muted';
24
29
  /** The size of the sort arrow, in pixels. */
25
30
  export const tableSortIconSize = 14;
@@ -1 +1 @@
1
- {"version":3,"file":"Table.variants.js","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,mFAAmF;AACnF,MAAM,CAAC,MAAM,eAAe,GAAG,yDAAyD,CAAC;AAEzF,MAAM,CAAC,MAAM,UAAU,GAAG,0EAA0E,CAAC;AAErG,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,YAAY;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,4EAA4E;AAC5E,MAAM,WAAW,GAAG,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,EAAE,EAAW,CAAC;AAEzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC;IACE,kGAAkG;IAClG,mGAAmG;IACnG,iEAAiE;CAClE,EACD,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,CAC9F,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,gCAAgC,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,kDAAkD;IAClD,0EAA0E;IAC1E,sFAAsF;IACtF,qDAAqD;IACrD,qDAAqD;CACtD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAClC,uLAAuL,EACvL,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,CAC9F,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,8CAA8C,CAAC;AAE9E,6CAA6C;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC"}
@@ -2,6 +2,7 @@ export * from './Box/index.js';
2
2
  export * from './Button/index.js';
3
3
  export * from './Card/index.js';
4
4
  export * from './Checkbox/index.js';
5
+ export * from './ColorPicker/index.js';
5
6
  export * from './DateField/index.js';
6
7
  export * from './Dialog/index.js';
7
8
  export * from './Fieldset/index.js';
@@ -35,4 +36,6 @@ export * from './Thumbnail/index.js';
35
36
  export * from './Toast/index.js';
36
37
  export * from './Tooltip/index.js';
37
38
  export type { Space } from './scales.js';
39
+ export * from './Meter/index.js';
40
+ export * from './BarChart/index.js';
38
41
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -2,6 +2,7 @@ export * from './Box/index.js';
2
2
  export * from './Button/index.js';
3
3
  export * from './Card/index.js';
4
4
  export * from './Checkbox/index.js';
5
+ export * from './ColorPicker/index.js';
5
6
  export * from './DateField/index.js';
6
7
  export * from './Dialog/index.js';
7
8
  export * from './Fieldset/index.js';
@@ -34,4 +35,6 @@ export * from './TextField/index.js';
34
35
  export * from './Thumbnail/index.js';
35
36
  export * from './Toast/index.js';
36
37
  export * from './Tooltip/index.js';
38
+ export * from './Meter/index.js';
39
+ export * from './BarChart/index.js';
37
40
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -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,25 +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[];
38
55
  /** The name of the button that opens the navigation on a narrow window, such as "Open the menu". */
39
56
  readonly menuLabel: string;
40
57
  /** The words of the link that jumps past the navigation, such as "Skip to content". */
41
58
  readonly skipLabel: string;
42
- /** 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. */
43
62
  readonly account?: AppShellAccount;
44
63
  /** The screen. */
45
64
  readonly children: ReactNode;
46
65
  }
47
- /** The frame around every screen: the sidebar with its navigation, and the main area. */
48
- export declare function AppShell({ logo, siteName, siteDetail, navLabel, nav, menuLabel, 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;
49
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,EAAoC,KAAK,UAAU,EAAE,MAAM,cAAc,CAAC;AACjF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAiCvE,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,MAA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, Menu as MenuIcon } from 'lucide-react';
2
+ import { ChevronsUpDown, Menu as MenuIcon, Search } from 'lucide-react';
3
+ import { useCallback, useState } from 'react';
3
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, appShellDrawerClass, appShellDrawerContentClass, appShellDrawerOverlayClass, appShellFooterClass, appShellGroupLabelClass, appShellMainClass, appShellMainId, appShellMenuButtonClass, appShellMenuIconSize, appShellNavClass, appShellNavIconSize, appShellNavLinkVariants, appShellNavListClass, appShellSidebarClass, appShellSkipClass, appShellTopBrandClass, appShellTopClass, } 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,16 +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, menuLabel, skipLabel, account, children }) {
15
- /** The navigation and the account, as the sidebar holds them and as the panel of a narrow window does. There a link also closes the panel. */
16
- const navigation = (close) => (_jsxs(_Fragment, { 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' }), ...(close && { onPress: close }), 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 })] }) }) }))] }));
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) })] }));
17
41
  return (_jsxs("div", { className: appShellClass, children: [_jsx("a", { className: appShellSkipClass, href: `#${appShellMainId}`,
18
42
  // The link is followed here, not by the browser: a page with a base address would be sent
19
43
  // to that address, off the screen the person is on.
20
44
  onClick: (event) => {
21
45
  event.preventDefault();
22
46
  document.getElementById(appShellMainId)?.focus();
23
- }, children: skipLabel }), _jsxs("div", { className: appShellTopClass, children: [_jsxs(DialogTrigger, { children: [_jsx(AriaButton, { "aria-label": menuLabel, className: appShellMenuButtonClass, 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 }) => navigation(close) }) }) })] }), _jsxs("div", { "aria-hidden": true, className: appShellTopBrandClass, children: [logo, _jsx("div", { className: appShellBrandNameClass, children: siteName })] })] }), _jsx("aside", { className: appShellSidebarClass, children: navigation() }), _jsx("main", { id: appShellMainId, tabIndex: -1, className: appShellMainClass, children: children })] }));
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 }) }) })] })] }));
24
48
  }
25
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,EAAE,IAAI,IAAI,QAAQ,EAAmB,MAAM,cAAc,CAAC;AAEjF,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,IAAI,UAAU,EAAE,aAAa,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC7H,OAAO,E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AAE,SAAS,EAAE,oBAAoB,GAAI,EACpD,MAAM,KAAK,SAAS,IAAI,CACvB,MAAC,UAAU,IAAC,SAAS,EAAE,sBAAsB,CAAC,EAAE,mBAAmB,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,aAC7F,KAAC,MAAM,yBAAa,IAAI,EAAE,sBAAsB,GAAI,EACpD,eAAM,SAAS,EAAE,2BAA2B,CAAC,EAAE,mBAAmB,EAAE,CAAC,YAClE,MAAM,CAAC,KAAK,GACR,EACN,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,CAChC,mCAAiB,SAAS,EAAE,8BAA8B,CAAC,EAAE,mBAAmB,EAAE,CAAC,YAChF,MAAM,CAAC,QAAQ,GACZ,CACP,IACU,CACd,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,49 +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
1
  /**
3
- * From `md` up the navigation is a sidebar beside the screen. On a narrower window (a phone, a
4
- * tablet held upright) it is behind a button in a bar across the top, so the screen has the width.
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.
5
6
  */
6
- export declare const appShellClass = "flex h-dvh flex-col overflow-hidden bg-background-secondary text-foreground md:flex-row";
7
- /** The bar across the top of a narrow window: the button that opens the navigation, and the site's name. */
8
- export declare const appShellTopClass = "flex shrink-0 items-center gap-2 px-2 py-1.5 md:hidden";
9
- export declare const appShellTopBrandClass = "flex min-w-0 items-center gap-2";
10
- export declare const appShellMenuButtonClass: string;
11
- /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
12
- export declare const appShellDrawerOverlayClass = "fixed inset-0 layer-overlay flex bg-scrim motion-scrim";
13
- export declare const appShellDrawerClass = "h-full w-72 max-w-full border-r border-border bg-background-secondary shadow-xl outline-none motion-sheet-start";
14
- export declare const appShellDrawerContentClass = "flex h-full flex-col px-3 py-5 outline-none";
15
- /** The size of the icon on the button that opens the navigation, in pixels. */
16
- export declare const appShellMenuIconSize = 20;
7
+ export declare const appShellClass = "flex h-dvh flex-col overflow-hidden bg-background text-foreground md:flex-row";
17
8
  export declare const appShellSkipClass: string;
18
- export declare const appShellSidebarClass = "hidden w-60 shrink-0 flex-col px-3 py-5 md:flex";
19
- export declare const appShellBrandClass = "flex items-center gap-2.5 px-2.5 pb-4";
20
- export declare const appShellBrandTextClass = "min-w-0";
21
- export declare const appShellBrandNameClass = "truncate text-base font-bold text-foreground";
22
- export declare const appShellBrandDetailClass = "truncate text-xs text-foreground-muted";
23
- export declare const appShellNavClass = "flex-1 overflow-auto";
24
- 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";
25
33
  export declare const appShellNavListClass = "flex flex-col gap-0.5";
26
34
  export declare const appShellNavLinkVariants: (props?: ({
27
35
  isCurrent?: boolean | null | undefined;
28
36
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
29
- export declare const appShellFooterClass = "border-t border-border pt-3";
30
- export declare const appShellAccountClass: string;
31
- 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";
32
73
  export declare const appShellAccountTextClass = "flex min-w-0 flex-1 flex-col";
33
74
  export declare const appShellAccountNameClass = "truncate text-sm font-semibold text-foreground";
34
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;
35
79
  /**
36
- * `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
37
81
  * get) scrolls with it. Without it such an element is placed against the page and makes the page
38
82
  * itself scroll far past the frame.
39
83
  */
40
- export declare const appShellMainClass = "relative min-h-0 min-w-0 flex-1 overflow-auto border-t border-border bg-background outline-none md:my-2 md:mr-2 md:rounded-2xl md:border md:shadow-sm";
84
+ export declare const appShellMainClass = "relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none";
41
85
  /** The id of the main area, which the skip link jumps to. */
42
86
  export declare const appShellMainId = "main";
43
- /** The size of a navigation icon, in pixels. */
44
- export declare const appShellNavIconSize = 16;
45
- /** The size of the arrows on the account button, in pixels. */
46
- export declare const appShellAccountIconSize = 14;
47
- /** The word that says what the button is, for screen readers only: the name and detail follow it. */
48
- export declare const appShellAccountLabelClass = "sr-only";
49
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,sGAAsG;AACtG;;;GAGG;AACH,eAAO,MAAM,aAAa,4FAA4F,CAAC;AAEvH,4GAA4G;AAC5G,eAAO,MAAM,gBAAgB,2DAA2D,CAAC;AACzF,eAAO,MAAM,qBAAqB,oCAAoC,CAAC;AACvE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