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

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 (106) hide show
  1. package/component-registry.json +50 -3
  2. package/dist/components/Logo/Logo.d.ts +1 -1
  3. package/dist/components/Logo/Logo.d.ts.map +1 -1
  4. package/dist/components/Logo/Logo.js +3 -3
  5. package/dist/components/Logo/Logo.js.map +1 -1
  6. package/dist/components/Logo/Logo.variants.d.ts +5 -2
  7. package/dist/components/Logo/Logo.variants.d.ts.map +1 -1
  8. package/dist/components/Logo/Logo.variants.js +10 -1
  9. package/dist/components/Logo/Logo.variants.js.map +1 -1
  10. package/dist/components/Meter/Meter.d.ts +13 -0
  11. package/dist/components/Meter/Meter.d.ts.map +1 -0
  12. package/dist/components/Meter/Meter.js +8 -0
  13. package/dist/components/Meter/Meter.js.map +1 -0
  14. package/dist/components/Meter/Meter.variants.d.ts +14 -0
  15. package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
  16. package/dist/components/Meter/Meter.variants.js +39 -0
  17. package/dist/components/Meter/Meter.variants.js.map +1 -0
  18. package/dist/components/Meter/index.d.ts +2 -0
  19. package/dist/components/Meter/index.d.ts.map +1 -0
  20. package/dist/components/Meter/index.js +2 -0
  21. package/dist/components/Meter/index.js.map +1 -0
  22. package/dist/components/Table/Table.d.ts +9 -2
  23. package/dist/components/Table/Table.d.ts.map +1 -1
  24. package/dist/components/Table/Table.js +14 -2
  25. package/dist/components/Table/Table.js.map +1 -1
  26. package/dist/components/Table/Table.variants.d.ts.map +1 -1
  27. package/dist/components/Table/Table.variants.js +2 -0
  28. package/dist/components/Table/Table.variants.js.map +1 -1
  29. package/dist/components/index.d.ts +1 -0
  30. package/dist/components/index.d.ts.map +1 -1
  31. package/dist/components/index.js +1 -0
  32. package/dist/components/index.js.map +1 -1
  33. package/dist/patterns/AppShell/AppShell.d.ts +31 -7
  34. package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
  35. package/dist/patterns/AppShell/AppShell.js +21 -7
  36. package/dist/patterns/AppShell/AppShell.js.map +1 -1
  37. package/dist/patterns/AppShell/AppShell.variants.d.ts +61 -32
  38. package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
  39. package/dist/patterns/AppShell/AppShell.variants.js +95 -38
  40. package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
  41. package/dist/patterns/AppShell/index.d.ts +1 -1
  42. package/dist/patterns/AppShell/index.d.ts.map +1 -1
  43. package/dist/patterns/AppShell/index.js.map +1 -1
  44. package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
  45. package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
  46. package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
  47. package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
  48. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
  49. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
  50. package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
  51. package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
  52. package/dist/patterns/CommandPalette/index.d.ts +2 -0
  53. package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
  54. package/dist/patterns/CommandPalette/index.js +2 -0
  55. package/dist/patterns/CommandPalette/index.js.map +1 -0
  56. package/dist/patterns/Outline/Outline.d.ts +26 -0
  57. package/dist/patterns/Outline/Outline.d.ts.map +1 -0
  58. package/dist/patterns/Outline/Outline.js +21 -0
  59. package/dist/patterns/Outline/Outline.js.map +1 -0
  60. package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
  61. package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
  62. package/dist/patterns/Outline/Outline.variants.js +21 -0
  63. package/dist/patterns/Outline/Outline.variants.js.map +1 -0
  64. package/dist/patterns/Outline/index.d.ts +2 -0
  65. package/dist/patterns/Outline/index.d.ts.map +1 -0
  66. package/dist/patterns/Outline/index.js +2 -0
  67. package/dist/patterns/Outline/index.js.map +1 -0
  68. package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
  69. package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
  70. package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
  71. package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
  72. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
  73. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
  74. package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
  75. package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
  76. package/dist/patterns/SiteWindow/index.d.ts +2 -0
  77. package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
  78. package/dist/patterns/SiteWindow/index.js +2 -0
  79. package/dist/patterns/SiteWindow/index.js.map +1 -0
  80. package/dist/patterns/Welcome/Welcome.d.ts +18 -0
  81. package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
  82. package/dist/patterns/Welcome/Welcome.js +14 -0
  83. package/dist/patterns/Welcome/Welcome.js.map +1 -0
  84. package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
  85. package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
  86. package/dist/patterns/Welcome/Welcome.variants.js +12 -0
  87. package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
  88. package/dist/patterns/Welcome/index.d.ts +2 -0
  89. package/dist/patterns/Welcome/index.d.ts.map +1 -0
  90. package/dist/patterns/Welcome/index.js +2 -0
  91. package/dist/patterns/Welcome/index.js.map +1 -0
  92. package/dist/patterns/Workbench/Workbench.d.ts +8 -4
  93. package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
  94. package/dist/patterns/Workbench/Workbench.js +7 -6
  95. package/dist/patterns/Workbench/Workbench.js.map +1 -1
  96. package/dist/patterns/Workbench/Workbench.variants.d.ts +6 -1
  97. package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
  98. package/dist/patterns/Workbench/Workbench.variants.js +8 -3
  99. package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
  100. package/dist/patterns/index.d.ts +4 -0
  101. package/dist/patterns/index.d.ts.map +1 -1
  102. package/dist/patterns/index.js +4 -0
  103. package/dist/patterns/index.js.map +1 -1
  104. package/package.json +1 -1
  105. package/src/styles.css +18 -0
  106. package/src/tokens/tokens.css +21 -1
@@ -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,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,0BAA0B,EAC1B,0BAA0B,EAC1B,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,uBAAuB,EACvB,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,uBAAuB,EACvB,oBAAoB,EACpB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,wBAAwB,CAAC;AAiDhC,oEAAoE;AACpE,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAChC,IAAI;KACD,KAAK,CAAC,KAAK,CAAC;KACZ,MAAM,CAAC,OAAO,CA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AAM,SAAS,EAAE,wBAAwB,YAAG,QAAQ,GAAQ,EAC3D,UAAU,KAAK,SAAS,IAAI,eAAM,SAAS,EAAE,0BAA0B,YAAG,UAAU,GAAQ,IACzF,IACF,EACN,oCAAkB,SAAS,EAAE,sBAAsB,GAAI,EACtD,MAAM,KAAK,SAAS,IAAI,CACvB,MAAC,UAAU,IAAC,SAAS,EAAE,mBAAmB,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,aACjE,KAAC,MAAM,yBAAa,IAAI,EAAE,sBAAsB,GAAI,EACpD,eAAM,SAAS,EAAE,wBAAwB,YACtC,MAAM,CAAC,KAAK,GACR,EACN,MAAM,CAAC,QAAQ,KAAK,SAAS,IAAI,CAChC,mCAAiB,SAAS,EAAE,2BAA2B,YACpD,MAAM,CAAC,QAAQ,GACZ,CACP,IACU,CACd,EACD,oCAAkB,SAAS,EAAE,sBAAsB,GAAI,EACtD,OAAO,KAAK,SAAS,IAAI,cAAK,SAAS,EAAE,uBAAuB,YAAG,OAAO,GAAO,IAC3E,EACT,eAAM,EAAE,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,SAAS,EAAE,iBAAiB,YACjE,QAAQ,GACJ,IACH,IACF,CACP,CAAC;AACJ,CAAC"}
@@ -1,49 +1,78 @@
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
+ export declare const appShellSectionTitleClass = "px-2.5 font-display text-lg font-semibold text-foreground";
29
+ export declare const appShellGroupLabelClass = "px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
25
30
  export declare const appShellNavListClass = "flex flex-col gap-0.5";
26
31
  export declare const appShellNavLinkVariants: (props?: ({
27
32
  isCurrent?: boolean | null | undefined;
28
33
  } & 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";
34
+ export declare const appShellNavLabelClass = "min-w-0 flex-1 truncate";
35
+ export declare const appShellNavCountClass = "shrink-0 text-xs font-medium text-foreground-muted tabular-nums";
36
+ export declare const appShellNavIconSize = 16;
37
+ export declare const appShellColumnClass = "flex min-h-0 min-w-0 flex-1 flex-col";
38
+ export declare const appShellBarClass = "flex min-h-15 shrink-0 items-center gap-3 border-b border-border bg-card px-3 md:px-6";
39
+ export declare const appShellBarSiteClass = "flex min-w-0 shrink items-center gap-2.5";
40
+ /** The site's name and address beside the logo, on a narrow window, where the rail and its logo are hidden. */
41
+ export declare const appShellBarLogoClass = "flex shrink-0 md:hidden";
42
+ export declare const appShellBarSiteTextClass = "flex min-w-0 flex-col";
43
+ export declare const appShellBarSiteNameClass = "truncate text-base font-bold text-foreground";
44
+ export declare const appShellBarSiteDetailClass = "hidden truncate text-xs text-foreground-subtle sm:block";
45
+ export declare const appShellBarSpacerClass = "min-w-0 flex-1";
46
+ export declare const appShellBarActionsClass = "flex shrink-0 items-center gap-2";
47
+ /** The wide button that opens the search, in the middle of the bar. On a narrow window it shows only its icon, and its words are read out. */
48
+ export declare const appShellSearchClass: string;
49
+ export declare const appShellSearchLabelClass = "sr-only min-w-0 flex-1 truncate text-left md:not-sr-only";
50
+ export declare const appShellSearchShortcutClass = "hidden rounded-sm border border-border px-1.5 font-mono text-xs text-foreground-subtle md:block";
51
+ export declare const appShellSearchIconSize = 16;
52
+ export declare const appShellMenuButtonClass: string;
53
+ export declare const appShellMenuIconSize = 20;
54
+ /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
55
+ export declare const appShellDrawerOverlayClass = "fixed inset-0 layer-overlay flex bg-scrim motion-scrim";
56
+ export declare const appShellDrawerClass = "h-full w-72 max-w-full border-r border-border bg-card shadow-xl outline-none motion-sheet-start";
57
+ export declare const appShellDrawerContentClass = "flex h-full flex-col gap-4 overflow-y-auto px-3 py-5 outline-none";
58
+ export declare const appShellDrawerNavClass = "flex flex-col gap-4";
59
+ /** A section's own places, under its link in the panel. */
60
+ export declare const appShellDrawerChildrenClass = "flex flex-col gap-0.5 border-l border-border pl-3 ml-4.5";
61
+ export declare const appShellDrawerFooterClass = "mt-auto border-t border-border pt-3";
62
+ export declare const appShellDrawerAccountClass: string;
63
+ 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
64
  export declare const appShellAccountTextClass = "flex min-w-0 flex-1 flex-col";
33
65
  export declare const appShellAccountNameClass = "truncate text-sm font-semibold text-foreground";
34
66
  export declare const appShellAccountDetailClass = "truncate text-xs text-foreground-muted";
67
+ /** On the rail only the initials show: the words are for screen readers, and the tooltip. */
68
+ export declare const appShellHiddenClass = "sr-only";
69
+ export declare const appShellAccountIconSize = 14;
35
70
  /**
36
- * `relative`, so that anything placed out of the flow inside the panel (a label only screen readers
71
+ * `relative`, so that anything placed out of the flow inside the screen (a label only screen readers
37
72
  * get) scrolls with it. Without it such an element is placed against the page and makes the page
38
73
  * itself scroll far past the frame.
39
74
  */
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";
75
+ export declare const appShellMainClass = "relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none";
41
76
  /** The id of the main area, which the skip link jumps to. */
42
77
  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
78
  //# 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,eAAO,MAAM,uBAAuB,QAGzB,CAAC;AACZ,gGAAgG;AAChG,eAAO,MAAM,0BAA0B,2DAA2D,CAAC;AACnG,eAAO,MAAM,mBAAmB,oHAAoH,CA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AAmB,QAIrB,CAAC;AACZ,eAAO,MAAM,wBAAwB,6DAA6D,CAAC;AACnG,eAAO,MAAM,2BAA2B,oGAAoG,CAAC;AAC7I,eAAO,MAAM,sBAAsB,KAAK,CAAC;AAEzC,eAAO,MAAM,uBAAuB,QAGzB,CAAC;AACZ,eAAO,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,68 +1,125 @@
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
2
  /**
4
- * From `md` up the navigation is a sidebar beside the screen. On a narrower window (a phone, a
5
- * tablet held upright) it is behind a button in a bar across the top, so the screen has the width.
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.
6
7
  */
7
- export const appShellClass = 'flex h-dvh flex-col overflow-hidden bg-background-secondary text-foreground md:flex-row';
8
- /** The bar across the top of a narrow window: the button that opens the navigation, and the site's name. */
9
- export const appShellTopClass = 'flex shrink-0 items-center gap-2 px-2 py-1.5 md:hidden';
10
- export const appShellTopBrandClass = 'flex min-w-0 items-center gap-2';
11
- export const appShellMenuButtonClass = [
12
- 'flex h-10 w-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors motion-fast',
13
- 'outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring',
14
- ].join(' ');
15
- /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
16
- export const appShellDrawerOverlayClass = 'fixed inset-0 layer-overlay flex bg-scrim motion-scrim';
17
- export const appShellDrawerClass = 'h-full w-72 max-w-full border-r border-border bg-background-secondary shadow-xl outline-none motion-sheet-start';
18
- export const appShellDrawerContentClass = 'flex h-full flex-col px-3 py-5 outline-none';
19
- /** The size of the icon on the button that opens the navigation, in pixels. */
20
- export const appShellMenuIconSize = 20;
8
+ export const appShellClass = 'flex h-dvh flex-col overflow-hidden bg-background text-foreground md:flex-row';
21
9
  export const appShellSkipClass = [
22
10
  'sr-only layer-toast rounded-md bg-primary px-4 py-2 text-base font-medium text-primary-foreground',
23
11
  'focus:not-sr-only focus:fixed focus:top-2 focus:left-2',
24
12
  ].join(' ');
25
- export const appShellSidebarClass = 'hidden w-60 shrink-0 flex-col px-3 py-5 md:flex';
26
- export const appShellBrandClass = 'flex items-center gap-2.5 px-2.5 pb-4';
27
- export const appShellBrandTextClass = 'min-w-0';
28
- export const appShellBrandNameClass = 'truncate text-base font-bold text-foreground';
29
- export const appShellBrandDetailClass = 'truncate text-xs text-foreground-muted';
30
- export const appShellNavClass = 'flex-1 overflow-auto';
31
- 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
+ export const appShellSectionTitleClass = 'px-2.5 font-display text-lg font-semibold text-foreground';
53
+ export const appShellGroupLabelClass = 'px-2.5 pb-1.5 text-xs font-semibold tracking-widest text-foreground-subtle uppercase';
32
54
  export const appShellNavListClass = 'flex flex-col gap-0.5';
33
55
  export const appShellNavLinkVariants = cva([
34
- 'flex min-h-9 items-center gap-2.5 rounded-md px-2.5 text-base transition-colors motion-fast',
56
+ 'flex min-h-9 items-center gap-2.5 rounded-lg px-2.5 text-base transition-colors motion-fast',
35
57
  'outline-none data-focus-visible:ring-2 data-focus-visible:ring-ring',
36
58
  ], {
37
59
  variants: {
38
60
  isCurrent: {
39
- true: 'bg-card font-semibold text-foreground shadow-sm ring-1 ring-border',
40
- false: 'font-medium text-foreground-secondary data-hovered:bg-background-tertiary data-hovered:text-foreground',
61
+ true: 'bg-background-tertiary font-semibold text-foreground',
62
+ false: 'font-medium text-foreground-muted data-hovered:bg-background-secondary data-hovered:text-foreground',
41
63
  },
42
64
  },
43
65
  defaultVariants: { isCurrent: false },
44
66
  });
45
- export const appShellFooterClass = 'border-t border-border pt-3';
46
- export const appShellAccountClass = [
67
+ export const appShellNavLabelClass = 'min-w-0 flex-1 truncate';
68
+ export const appShellNavCountClass = 'shrink-0 text-xs font-medium text-foreground-muted tabular-nums';
69
+ export const appShellNavIconSize = 16;
70
+ /* --- The bar across the top -------------------------------------------------- */
71
+ export const appShellColumnClass = 'flex min-h-0 min-w-0 flex-1 flex-col';
72
+ export const appShellBarClass = 'flex min-h-15 shrink-0 items-center gap-3 border-b border-border bg-card px-3 md:px-6';
73
+ export const appShellBarSiteClass = 'flex min-w-0 shrink items-center gap-2.5';
74
+ /** The site's name and address beside the logo, on a narrow window, where the rail and its logo are hidden. */
75
+ export const appShellBarLogoClass = 'flex shrink-0 md:hidden';
76
+ export const appShellBarSiteTextClass = 'flex min-w-0 flex-col';
77
+ export const appShellBarSiteNameClass = 'truncate text-base font-bold text-foreground';
78
+ export const appShellBarSiteDetailClass = 'hidden truncate text-xs text-foreground-subtle sm:block';
79
+ export const appShellBarSpacerClass = 'min-w-0 flex-1';
80
+ export const appShellBarActionsClass = 'flex shrink-0 items-center gap-2';
81
+ /** The wide button that opens the search, in the middle of the bar. On a narrow window it shows only its icon, and its words are read out. */
82
+ export const appShellSearchClass = [
83
+ 'flex h-10 min-w-0 shrink items-center gap-2.5 rounded-lg border border-border bg-background px-3 text-base text-foreground-subtle transition-colors motion-fast',
84
+ 'outline-none data-hovered:border-border-strong data-hovered:text-foreground-muted data-focus-visible:ring-2 data-focus-visible:ring-ring',
85
+ 'md:w-96',
86
+ ].join(' ');
87
+ export const appShellSearchLabelClass = 'sr-only min-w-0 flex-1 truncate text-left md:not-sr-only';
88
+ export const appShellSearchShortcutClass = 'hidden rounded-sm border border-border px-1.5 font-mono text-xs text-foreground-subtle md:block';
89
+ export const appShellSearchIconSize = 16;
90
+ export const appShellMenuButtonClass = [
91
+ 'flex h-10 w-10 shrink-0 items-center justify-center rounded-md text-foreground transition-colors motion-fast md:hidden',
92
+ 'outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring',
93
+ ].join(' ');
94
+ export const appShellMenuIconSize = 20;
95
+ /* --- The panel of a narrow window -------------------------------------------- */
96
+ /** The navigation of a narrow window: a panel that slides in from the edge the button is on. */
97
+ export const appShellDrawerOverlayClass = 'fixed inset-0 layer-overlay flex bg-scrim motion-scrim';
98
+ export const appShellDrawerClass = 'h-full w-72 max-w-full border-r border-border bg-card shadow-xl outline-none motion-sheet-start';
99
+ export const appShellDrawerContentClass = 'flex h-full flex-col gap-4 overflow-y-auto px-3 py-5 outline-none';
100
+ export const appShellDrawerNavClass = 'flex flex-col gap-4';
101
+ /** A section's own places, under its link in the panel. */
102
+ export const appShellDrawerChildrenClass = 'flex flex-col gap-0.5 border-l border-border pl-3 ml-4.5';
103
+ export const appShellDrawerFooterClass = 'mt-auto border-t border-border pt-3';
104
+ export const appShellDrawerAccountClass = [
47
105
  'flex w-full items-center gap-2.5 rounded-md px-2 py-1.5 text-left text-foreground-muted transition-colors motion-fast',
48
106
  'outline-none data-hovered:bg-background-tertiary data-pressed:bg-background-tertiary data-focus-visible:ring-2 data-focus-visible:ring-ring',
49
107
  ].join(' ');
50
- 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';
108
+ 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';
109
+ /* --- The account, as it is read ---------------------------------------------- */
51
110
  export const appShellAccountTextClass = 'flex min-w-0 flex-1 flex-col';
52
111
  export const appShellAccountNameClass = 'truncate text-sm font-semibold text-foreground';
53
112
  export const appShellAccountDetailClass = 'truncate text-xs text-foreground-muted';
113
+ /** On the rail only the initials show: the words are for screen readers, and the tooltip. */
114
+ export const appShellHiddenClass = 'sr-only';
115
+ export const appShellAccountIconSize = 14;
116
+ /* --- The screen --------------------------------------------------------------- */
54
117
  /**
55
- * `relative`, so that anything placed out of the flow inside the panel (a label only screen readers
118
+ * `relative`, so that anything placed out of the flow inside the screen (a label only screen readers
56
119
  * get) scrolls with it. Without it such an element is placed against the page and makes the page
57
120
  * itself scroll far past the frame.
58
121
  */
59
- export 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';
122
+ export const appShellMainClass = 'relative min-h-0 min-w-0 flex-1 overflow-auto bg-background outline-none';
60
123
  /** The id of the main area, which the skip link jumps to. */
61
124
  export const appShellMainId = 'main';
62
- /** The size of a navigation icon, in pixels. */
63
- export const appShellNavIconSize = 16;
64
- /** The size of the arrows on the account button, in pixels. */
65
- export const appShellAccountIconSize = 14;
66
- /** The word that says what the button is, for screen readers only: the name and detail follow it. */
67
- export const appShellAccountLabelClass = 'sr-only';
68
125
  //# 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;;;GAGG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,yFAAyF,CAAC;AAEvH,4GAA4G;AAC5G,MAAM,CAAC,MAAM,gBAAgB,GAAG,wDAAwD,CAAC;AACzF,MAAM,CAAC,MAAM,qBAAqB,GAAG,iCAAiC,CAAC;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,8GAA8G;IAC9G,6IAA6I;CAC9I,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,gGAAgG;AAChG,MAAM,CAAC,MAAM,0BAA0B,GAAG,wDAAwD,CAAC;AACnG,MAAM,CAAC,MAAM,mBAAmB,GAAG,iHAAiH,CAAC;AACrJ,MAAM,CAAC,MAAM,0BAA0B,GAAG,6CAA6C,CAAC;AACxF,+EAA+E;AAC/E,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEvC,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,mGAAmG;IACnG,wDAAwD;CACzD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,oBAAoB,GAAG,iDAAiD,CAAC;AACtF,MAAM,CAAC,MAAM,kBAAkB,GAAG,uCAAuC,CAAC;AAC1E,MAAM,CAAC,MAAM,sBAAsB,GAAG,SAAS,CAAC;AAChD,MAAM,CAAC,MAAM,sBAAsB,GAAG,8CAA8C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C,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,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,CACf,CAAC,GACC,IACM,CAChB,GACM,GACH,GACK,CAChB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,18 @@
1
+ /** Near the top of the window, where the eye already is, rather than in the middle. */
2
+ export declare const commandPaletteOverlayClass = "fixed inset-0 layer-overlay flex items-start justify-center bg-scrim px-4 pt-24 motion-scrim";
3
+ export declare const commandPaletteClass = "flex max-h-112 w-full max-w-xl flex-col overflow-hidden rounded-xl border border-border bg-background-elevated shadow-xl outline-none motion-pop";
4
+ /** The window scrolls as a whole, with the box held at its top, so what scrolls also holds what the keyboard reaches. */
5
+ export declare const commandPaletteContentClass = "flex min-h-0 flex-col overflow-y-auto outline-none";
6
+ export declare const commandPaletteSearchClass = "sticky top-0 layer-raised flex shrink-0 items-center gap-3 border-b border-border bg-background-elevated px-4 text-foreground-muted";
7
+ export declare const commandPaletteInputClass = "h-14 w-full min-w-0 bg-transparent text-lg text-foreground outline-none placeholder:text-foreground-subtle";
8
+ export declare const commandPaletteSearchIconSize = 18;
9
+ export declare const commandPaletteListClass = "p-2 outline-none";
10
+ export declare const commandPaletteSectionClass = "pb-1";
11
+ export declare const commandPaletteHeaderClass = "px-3 pt-2 pb-1 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
12
+ export declare const commandPaletteItemClass: string;
13
+ export declare const commandPaletteItemIconClass = "flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted";
14
+ export declare const commandPaletteItemLabelClass = "min-w-0 flex-1 truncate font-medium";
15
+ export declare const commandPaletteItemDetailClass = "shrink-0 text-sm text-foreground-subtle";
16
+ export declare const commandPaletteItemIconSize = 16;
17
+ export declare const commandPaletteEmptyClass = "px-3 py-8 text-center text-base text-foreground-muted";
18
+ //# sourceMappingURL=CommandPalette.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.variants.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,eAAO,MAAM,0BAA0B,iGAAiG,CAAC;AACzI,eAAO,MAAM,mBAAmB,qJACoH,CAAC;AACrJ,yHAAyH;AACzH,eAAO,MAAM,0BAA0B,uDAAuD,CAAC;AAE/F,eAAO,MAAM,yBAAyB,wIAAwI,CAAC;AAC/K,eAAO,MAAM,wBAAwB,+GAA+G,CAAC;AACrJ,eAAO,MAAM,4BAA4B,KAAK,CAAC;AAE/C,eAAO,MAAM,uBAAuB,qBAAqB,CAAC;AAC1D,eAAO,MAAM,0BAA0B,SAAS,CAAC;AACjD,eAAO,MAAM,yBAAyB,0FAA0F,CAAC;AACjI,eAAO,MAAM,uBAAuB,QAGzB,CAAC;AACZ,eAAO,MAAM,2BAA2B,0HACiF,CAAC;AAC1H,eAAO,MAAM,4BAA4B,wCAAwC,CAAC;AAClF,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AACvF,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAC7C,eAAO,MAAM,wBAAwB,0DAA0D,CAAC"}
@@ -0,0 +1,21 @@
1
+ /** Near the top of the window, where the eye already is, rather than in the middle. */
2
+ export const commandPaletteOverlayClass = 'fixed inset-0 layer-overlay flex items-start justify-center bg-scrim px-4 pt-24 motion-scrim';
3
+ export const commandPaletteClass = 'flex max-h-112 w-full max-w-xl flex-col overflow-hidden rounded-xl border border-border bg-background-elevated shadow-xl outline-none motion-pop';
4
+ /** The window scrolls as a whole, with the box held at its top, so what scrolls also holds what the keyboard reaches. */
5
+ export const commandPaletteContentClass = 'flex min-h-0 flex-col overflow-y-auto outline-none';
6
+ export const commandPaletteSearchClass = 'sticky top-0 layer-raised flex shrink-0 items-center gap-3 border-b border-border bg-background-elevated px-4 text-foreground-muted';
7
+ export const commandPaletteInputClass = 'h-14 w-full min-w-0 bg-transparent text-lg text-foreground outline-none placeholder:text-foreground-subtle';
8
+ export const commandPaletteSearchIconSize = 18;
9
+ export const commandPaletteListClass = 'p-2 outline-none';
10
+ export const commandPaletteSectionClass = 'pb-1';
11
+ export const commandPaletteHeaderClass = 'px-3 pt-2 pb-1 text-xs font-semibold tracking-widest text-foreground-subtle uppercase';
12
+ export const commandPaletteItemClass = [
13
+ 'flex cursor-default items-center gap-3 rounded-lg px-3 py-2 text-base text-foreground outline-none',
14
+ 'data-focused:bg-background-tertiary data-hovered:bg-background-secondary',
15
+ ].join(' ');
16
+ export const commandPaletteItemIconClass = 'flex h-8 w-8 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted';
17
+ export const commandPaletteItemLabelClass = 'min-w-0 flex-1 truncate font-medium';
18
+ export const commandPaletteItemDetailClass = 'shrink-0 text-sm text-foreground-subtle';
19
+ export const commandPaletteItemIconSize = 16;
20
+ export const commandPaletteEmptyClass = 'px-3 py-8 text-center text-base text-foreground-muted';
21
+ //# sourceMappingURL=CommandPalette.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandPalette.variants.js","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/CommandPalette.variants.ts"],"names":[],"mappings":"AAAA,uFAAuF;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,8FAA8F,CAAC;AACzI,MAAM,CAAC,MAAM,mBAAmB,GAC9B,kJAAkJ,CAAC;AACrJ,yHAAyH;AACzH,MAAM,CAAC,MAAM,0BAA0B,GAAG,oDAAoD,CAAC;AAE/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,qIAAqI,CAAC;AAC/K,MAAM,CAAC,MAAM,wBAAwB,GAAG,4GAA4G,CAAC;AACrJ,MAAM,CAAC,MAAM,4BAA4B,GAAG,EAAE,CAAC;AAE/C,MAAM,CAAC,MAAM,uBAAuB,GAAG,kBAAkB,CAAC;AAC1D,MAAM,CAAC,MAAM,0BAA0B,GAAG,MAAM,CAAC;AACjD,MAAM,CAAC,MAAM,yBAAyB,GAAG,uFAAuF,CAAC;AACjI,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACrC,oGAAoG;IACpG,0EAA0E;CAC3E,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACZ,MAAM,CAAC,MAAM,2BAA2B,GACtC,uHAAuH,CAAC;AAC1H,MAAM,CAAC,MAAM,4BAA4B,GAAG,qCAAqC,CAAC;AAClF,MAAM,CAAC,MAAM,6BAA6B,GAAG,yCAAyC,CAAC;AACvF,MAAM,CAAC,MAAM,0BAA0B,GAAG,EAAE,CAAC;AAC7C,MAAM,CAAC,MAAM,wBAAwB,GAAG,uDAAuD,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommandPalette, type CommandGroup, type CommandItem, type CommandPaletteProps } from './CommandPalette.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CommandPalette } from './CommandPalette.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/patterns/CommandPalette/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAiE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import type { LucideIcon } from 'lucide-react';
2
+ export interface OutlineItem {
3
+ readonly id: string;
4
+ /** What it is called: "Page opening", "Text". */
5
+ readonly label: string;
6
+ /** How far inside other items it is: 0 at the top, at most 3. */
7
+ readonly depth?: 0 | 1 | 2 | 3;
8
+ readonly icon?: LucideIcon;
9
+ }
10
+ export interface OutlineProps {
11
+ /** Over the list, and its name for screen readers: "Sections". */
12
+ readonly title: string;
13
+ readonly items: readonly OutlineItem[];
14
+ /** The one being looked at. */
15
+ readonly currentId?: string;
16
+ /** Called when one is chosen, with a press or with Enter. */
17
+ readonly onChoose: (id: string) => void;
18
+ /** Shown when there is nothing to list. */
19
+ readonly emptyText: string;
20
+ }
21
+ /**
22
+ * The parts of something long, by name, in order: the sections of a page. Choosing one goes to it.
23
+ * It is a way around, not a way to change: what is chosen is edited where it is.
24
+ */
25
+ export declare function Outline({ title, items, currentId, onChoose, emptyText }: OutlineProps): import("react").JSX.Element;
26
+ //# sourceMappingURL=Outline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outline.d.ts","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAc/C,MAAM,WAAW,WAAW;IAC1B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,iDAAiD;IACjD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,iEAAiE;IACjE,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,UAAU,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,kEAAkE;IAClE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,EAAE,SAAS,WAAW,EAAE,CAAC;IACvC,+BAA+B;IAC/B,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,6DAA6D;IAC7D,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,2CAA2C;IAC3C,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,YAAY,+BAmCrF"}
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { useId } from 'react';
3
+ import { ListBox, ListBoxItem } from 'react-aria-components';
4
+ import { outlineClass, outlineEmptyClass, outlineIconClass, outlineIconSize, outlineItemVariants, outlineLabelClass, outlineListClass, outlineTitleClass, } from './Outline.variants.js';
5
+ /**
6
+ * The parts of something long, by name, in order: the sections of a page. Choosing one goes to it.
7
+ * It is a way around, not a way to change: what is chosen is edited where it is.
8
+ */
9
+ export function Outline({ title, items, currentId, onChoose, emptyText }) {
10
+ const titleId = useId();
11
+ return (_jsxs("div", { className: outlineClass, children: [_jsx("div", { id: titleId, className: outlineTitleClass, children: title }), _jsx(ListBox, { "aria-labelledby": titleId, className: outlineListClass, items: items, selectionMode: "single", selectedKeys: currentId === undefined ? [] : [currentId], onSelectionChange: (keys) => {
12
+ if (keys === 'all')
13
+ return;
14
+ const [first] = [...keys];
15
+ // Pressing the one already chosen would let it go: it is chosen again instead, so it is gone to.
16
+ const chosen = first === undefined ? currentId : String(first);
17
+ if (chosen !== undefined)
18
+ onChoose(chosen);
19
+ }, renderEmptyState: () => _jsx("div", { className: outlineEmptyClass, children: emptyText }), children: ({ id, label, depth = 0, icon: Icon }) => (_jsxs(ListBoxItem, { id: id, textValue: label, className: outlineItemVariants({ depth }), children: [Icon && (_jsx("span", { "aria-hidden": true, className: outlineIconClass, children: _jsx(Icon, { size: outlineIconSize }) })), _jsx("span", { className: outlineLabelClass, children: label })] })) })] }));
20
+ }
21
+ //# sourceMappingURL=Outline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outline.js","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EACL,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,eAAe,EACf,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB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B,SAAS,EAAE,gBAAgB,YAC3C,KAAC,IAAI,IAAC,IAAI,EAAE,eAAe,GAAI,GAC1B,CACR,EACD,eAAM,SAAS,EAAE,iBAAiB,YAAG,KAAK,GAAQ,IACtC,CACf,GACO,IACN,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,11 @@
1
+ export declare const outlineClass = "flex min-h-0 flex-col gap-2";
2
+ export declare const outlineTitleClass = "px-2 text-xs font-semibold tracking-widest text-foreground-subtle uppercase";
3
+ export declare const outlineListClass = "flex flex-col gap-0.5 outline-none";
4
+ export declare const outlineItemVariants: (props?: ({
5
+ depth?: 0 | 1 | 2 | 3 | null | undefined;
6
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
+ export declare const outlineIconClass = "flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-border bg-background text-foreground-muted";
8
+ export declare const outlineIconSize = 14;
9
+ export declare const outlineLabelClass = "min-w-0 flex-1 truncate";
10
+ export declare const outlineEmptyClass = "px-2 py-3 text-sm text-foreground-muted";
11
+ //# sourceMappingURL=Outline.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Outline.variants.d.ts","sourceRoot":"","sources":["../../../src/patterns/Outline/Outline.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,gCAAgC,CAAC;AAC1D,eAAO,MAAM,iBAAiB,gFAAgF,CAAC;AAC/G,eAAO,MAAM,gBAAgB,uCAAuC,CAAC;AACrE,eAAO,MAAM,mBAAmB;;8EAc/B,CAAC;AACF,eAAO,MAAM,gBAAgB,0HAA0H,CAAC;AACxJ,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,iBAAiB,4BAA4B,CAAC;AAC3D,eAAO,MAAM,iBAAiB,4CAA4C,CAAC"}