@haatlabs-core/ui 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/README.md +14 -3
  2. package/dist/client/LoginPage.d.ts +8 -2
  3. package/dist/client/LoginPage.js +24 -4
  4. package/dist/client/LoginPage.js.map +1 -1
  5. package/dist/client/UsagePage.d.ts +10 -1
  6. package/dist/client/UsagePage.js +44 -14
  7. package/dist/client/UsagePage.js.map +1 -1
  8. package/dist/client/index.d.ts +5 -1
  9. package/dist/client/index.js +5 -0
  10. package/dist/client/index.js.map +1 -1
  11. package/dist/client/sign-in-styles.d.ts +1 -1
  12. package/dist/client/sign-in-styles.js +6 -0
  13. package/dist/client/sign-in-styles.js.map +1 -1
  14. package/dist/client/usage-css.d.ts +1 -1
  15. package/dist/client/usage-css.js +5 -0
  16. package/dist/client/usage-css.js.map +1 -1
  17. package/dist/index.d.ts +8 -2
  18. package/dist/index.js +7 -2
  19. package/dist/index.js.map +1 -1
  20. package/dist/shell/AppShell.d.ts +4 -1
  21. package/dist/shell/AppShell.js +44 -58
  22. package/dist/shell/AppShell.js.map +1 -1
  23. package/dist/shell/BottomNav.d.ts +34 -0
  24. package/dist/shell/BottomNav.js +40 -0
  25. package/dist/shell/BottomNav.js.map +1 -0
  26. package/dist/shell/MoreSheet.d.ts +21 -0
  27. package/dist/shell/MoreSheet.js +46 -0
  28. package/dist/shell/MoreSheet.js.map +1 -0
  29. package/dist/shell/bottom-nav-css.d.ts +6 -0
  30. package/dist/shell/bottom-nav-css.js +40 -0
  31. package/dist/shell/bottom-nav-css.js.map +1 -0
  32. package/dist/shell/breakpoint.d.ts +12 -0
  33. package/dist/shell/breakpoint.js +29 -0
  34. package/dist/shell/breakpoint.js.map +1 -0
  35. package/dist/shell/focus-trap.d.ts +9 -0
  36. package/dist/shell/focus-trap.js +35 -0
  37. package/dist/shell/focus-trap.js.map +1 -0
  38. package/dist/shell/icons.d.ts +23 -0
  39. package/dist/shell/icons.js +21 -0
  40. package/dist/shell/icons.js.map +1 -0
  41. package/dist/shell/nav.d.ts +20 -0
  42. package/dist/shell/nav.js +22 -0
  43. package/dist/shell/nav.js.map +1 -1
  44. package/dist/shell/shell-css.d.ts +1 -1
  45. package/dist/shell/shell-css.js +19 -7
  46. package/dist/shell/shell-css.js.map +1 -1
  47. package/dist/theme/ThemeSwitch.d.ts +7 -2
  48. package/dist/theme/ThemeSwitch.js +8 -4
  49. package/dist/theme/ThemeSwitch.js.map +1 -1
  50. package/dist/theme/tokens.d.ts +7 -2
  51. package/dist/theme/tokens.js +24 -1
  52. package/dist/theme/tokens.js.map +1 -1
  53. package/package.json +4 -4
@@ -0,0 +1,35 @@
1
+ import { useEffect } from 'react';
2
+ export const FOCUSABLE = 'a[href], button:not([disabled]), input, select, textarea, [tabindex]:not([tabindex="-1"])';
3
+ /** Keeps Tab and Shift+Tab inside `container`, going round from the last stop to the first. */
4
+ export function trapTab(event, container) {
5
+ if (event.key !== 'Tab' || !container)
6
+ return;
7
+ const stops = [...container.querySelectorAll(FOCUSABLE)];
8
+ const first = stops[0];
9
+ const last = stops[stops.length - 1];
10
+ if (!first || !last)
11
+ return;
12
+ if (!event.shiftKey && document.activeElement === last) {
13
+ event.preventDefault();
14
+ first.focus();
15
+ }
16
+ else if (event.shiftKey && document.activeElement === first) {
17
+ event.preventDefault();
18
+ last.focus();
19
+ }
20
+ }
21
+ /**
22
+ * While the component that calls it is shown (the More sheet, the phone search), the page
23
+ * behind does not scroll; its own overflow comes back when it closes.
24
+ */
25
+ export function useScrollLock() {
26
+ useEffect(() => {
27
+ const body = document.body;
28
+ const before = body.style.overflow;
29
+ body.style.overflow = 'hidden';
30
+ return () => {
31
+ body.style.overflow = before;
32
+ };
33
+ }, []);
34
+ }
35
+ //# sourceMappingURL=focus-trap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"focus-trap.js","sourceRoot":"","sources":["../../src/shell/focus-trap.ts"],"names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AC,CAAC;AACT,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { ReactElement } from 'react';
2
+ /** The platform's page icons (24 × 24, drawn with a 1.7 stroke in the text colour). */
3
+ declare const PATHS: {
4
+ readonly home: "M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z";
5
+ readonly store: "M4 9.5V20h16V9.5M3 5h18l-1.5 4.5a2.5 2.5 0 0 1-4.5 0 2.5 2.5 0 0 1-5 0 2.5 2.5 0 0 1-4.5 0zM10 20v-5h4v5";
6
+ readonly plan: "M4 6h16v12H4zM4 10h16M8 15h3";
7
+ readonly images: "M4 5h16v14H4zM4 16l5-5 4 4 2-2 5 5M15 9.5a1.5 1.5 0 1 0 0-.01";
8
+ readonly orders: "M6 7h12l-1 13H7zM9 7a3 3 0 0 1 6 0";
9
+ readonly products: "M12 3 4 7v10l8 4 8-4V7zM4 7l8 4 8-4M12 11v10";
10
+ readonly reports: "M4 20V4M4 20h16M8 16v-4M12 16V8M16 16v-6";
11
+ readonly notifications: "M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 20a2 2 0 0 0 4 0";
12
+ readonly settings: "M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM4 12h2M18 12h2M12 4v2M12 18v2M6.5 6.5l1.4 1.4M16.1 16.1l1.4 1.4M6.5 17.5l1.4-1.4M16.1 7.9l1.4-1.4";
13
+ /** For a page without an icon of its own: a neutral square, never a letter. */
14
+ readonly generic: "M7 7h10v10H7z";
15
+ };
16
+ export type NavIconName = keyof typeof PATHS;
17
+ export declare const NAV_ICON_NAMES: NavIconName[];
18
+ /** A page icon for `NavItem.icon`: the sidebar and the phone and tablet bottom bar draw it. */
19
+ export declare function NavIcon({ name, size }: {
20
+ name: NavIconName;
21
+ size?: number;
22
+ }): ReactElement;
23
+ export {};
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ /** The platform's page icons (24 × 24, drawn with a 1.7 stroke in the text colour). */
3
+ const PATHS = {
4
+ home: 'M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z',
5
+ store: 'M4 9.5V20h16V9.5M3 5h18l-1.5 4.5a2.5 2.5 0 0 1-4.5 0 2.5 2.5 0 0 1-5 0 2.5 2.5 0 0 1-4.5 0zM10 20v-5h4v5',
6
+ plan: 'M4 6h16v12H4zM4 10h16M8 15h3',
7
+ images: 'M4 5h16v14H4zM4 16l5-5 4 4 2-2 5 5M15 9.5a1.5 1.5 0 1 0 0-.01',
8
+ orders: 'M6 7h12l-1 13H7zM9 7a3 3 0 0 1 6 0',
9
+ products: 'M12 3 4 7v10l8 4 8-4V7zM4 7l8 4 8-4M12 11v10',
10
+ reports: 'M4 20V4M4 20h16M8 16v-4M12 16V8M16 16v-6',
11
+ notifications: 'M6 16V11a6 6 0 0 1 12 0v5l2 2H4zM10 20a2 2 0 0 0 4 0',
12
+ settings: 'M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6zM4 12h2M18 12h2M12 4v2M12 18v2M6.5 6.5l1.4 1.4M16.1 16.1l1.4 1.4M6.5 17.5l1.4-1.4M16.1 7.9l1.4-1.4',
13
+ /** For a page without an icon of its own: a neutral square, never a letter. */
14
+ generic: 'M7 7h10v10H7z',
15
+ };
16
+ export const NAV_ICON_NAMES = Object.keys(PATHS);
17
+ /** A page icon for `NavItem.icon`: the sidebar and the phone and tablet bottom bar draw it. */
18
+ export function NavIcon({ name, size = 18 }) {
19
+ return (_jsx("svg", { className: `hl-nav-icon hl-nav-icon--${name}`, width: size, height: size, viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "1.7", strokeLinecap: "round", strokeLinejoin: "round", "aria-hidden": "true", children: _jsx("path", { d: PATHS[name] }) }));
20
+ }
21
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../src/shell/icons.tsx"],"names":[],"mappings":";AAEA,uFAAuF;AACvF,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,gEAAgE;IACtE,KAAK,EACH,0GAA0G;IAC5G,IAAI,EAAE,8BAA8B;IACpC,MAAM,EAAE,+DAA+D;IACvE,MAAM,EAAE,oCAAoC;IAC5C,QAAQ,EAAE,8CAA8C;IACxD,OAAO,EAAE,0CAA0C;IACnD,aAAa,EAAE,sDAAsD;IACrE,QAAQ,EACN,sIAAsI;IACxI,+EAA+E;IAC/E,OAAO,EAAE,eAAe;CAChB,CAAC;AAGX,MAAM,CAAC,MAAM,cAAc,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAkB,CAAC;AAElE,+FAA+F;AAC/F,MAAM,UAAU,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAwC;IAC/E,OAAO,CACL,cACE,SAAS,EAAE,4BAA4B,IAAI,EAAE,EAC7C,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,IAAI,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,iBACV,MAAM,YAElB,eAAM,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,GAAI,GACpB,CACP,CAAC;AACJ,CAAC"}
@@ -3,7 +3,10 @@ import type { ReactNode } from 'react';
3
3
  export interface NavItem {
4
4
  label: string;
5
5
  to: string;
6
+ /** Beside the label in the sidebar, and above it in the phone and tablet bottom bar. */
6
7
  icon?: ReactNode;
8
+ /** One of the (at most 4) pages in the phone and tablet bottom bar; the rest go under More. */
9
+ bottom?: boolean;
7
10
  /** The letter for "G then a letter"; by default the first free letter of `label`. */
8
11
  shortcut?: string;
9
12
  children?: NavItem[];
@@ -17,3 +20,20 @@ export interface NavGroup {
17
20
  export declare function flattenNav(groups: NavGroup[]): NavItem[];
18
21
  /** Whether `pathname` is `to` or a page under it. */
19
22
  export declare const isUnder: (pathname: string, to: string) => boolean;
23
+ /** How many pages the bottom bar has, before More. */
24
+ export declare const BOTTOM_SLOTS = 4;
25
+ /**
26
+ * The bottom bar's pages: the ones marked `bottom`, in nav order; with none marked, the first
27
+ * top-level pages. Never more than 4.
28
+ */
29
+ export declare function bottomItems(nav: NavGroup[]): NavItem[];
30
+ /**
31
+ * The page open: the deepest one the address is under, so a detail page (/lists/7) marks its
32
+ * list page, and a page that redirects deeper (/research → /research/x) stays marked.
33
+ */
34
+ export declare function currentPage(items: NavItem[], pathname: string): string | undefined;
35
+ /** A page's link target, keeping `search` (Shopify's `?host=…&shop=…`) when given. */
36
+ export declare const navTarget: (to: string, search: string | undefined) => string | {
37
+ pathname: string;
38
+ search: string;
39
+ };
package/dist/shell/nav.js CHANGED
@@ -14,4 +14,26 @@ export function flattenNav(groups) {
14
14
  }
15
15
  /** Whether `pathname` is `to` or a page under it. */
16
16
  export const isUnder = (pathname, to) => pathname === to || pathname.startsWith(`${to}/`);
17
+ /** How many pages the bottom bar has, before More. */
18
+ export const BOTTOM_SLOTS = 4;
19
+ /**
20
+ * The bottom bar's pages: the ones marked `bottom`, in nav order; with none marked, the first
21
+ * top-level pages. Never more than 4.
22
+ */
23
+ export function bottomItems(nav) {
24
+ const marked = flattenNav(nav).filter((item) => item.bottom);
25
+ const items = marked.length > 0 ? marked : nav.flatMap((group) => group.items);
26
+ return items.slice(0, BOTTOM_SLOTS);
27
+ }
28
+ /**
29
+ * The page open: the deepest one the address is under, so a detail page (/lists/7) marks its
30
+ * list page, and a page that redirects deeper (/research → /research/x) stays marked.
31
+ */
32
+ export function currentPage(items, pathname) {
33
+ return items
34
+ .filter((item) => isUnder(pathname, item.to))
35
+ .sort((a, b) => b.to.length - a.to.length)[0]?.to;
36
+ }
37
+ /** A page's link target, keeping `search` (Shopify's `?host=…&shop=…`) when given. */
38
+ export const navTarget = (to, search) => (search ? { pathname: to, search } : to);
17
39
  //# sourceMappingURL=nav.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nav.js","sourceRoot":"","sources":["../../src/shell/nav.ts"],"names":[],"mappings":"AAkBA,6DAA6D;AAC7D,MAAM,UAAU,UAAU,CAAC,MAAkB;IAC3C,MAAM,GAAG,GAAc,EAAE,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAQ,EAAE;QACtC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACf,IAAI,IAAI,CAAC,QAAQ;gBAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,MAAM;QAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAC9C,OAAO,GAAG,CAAC;AACb,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAgB,EAAE,EAAU,EAAW,EAAE,CAC/D,QAAQ,KAAK,EAAE,IAAI,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"nav.js","sourceRoot":"","sources":["../../src/shell/nav.ts"],"names":[],"mappings":"AAqBA,6DAA6D;AAC7D,MAAM,UAAU,UAAU,CAAC,MAAkB;IAC3C,MAAM,GAAG,GAAc,EAAE,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,KAAgB,EAAQ,EAAE;QACtC,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACf,IAAI,IAAI,CAAC,QAAQ;gBAAE,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzC,CAAC;IACH,CAAC,CAAC;IACF,KAAK,MAAM,KAAK,IAAI,MAAM;QAAE,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CA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E,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC"}
@@ -1,2 +1,2 @@
1
1
  /** The app shell's look, on the theme tokens only (see tokens.ts). */
2
- export declare const SHELL_CSS = "\n.hl-shell { min-height: 100vh; display: flex; background: var(--hl-ground); color: var(--hl-text); }\n.hl-skip { position: absolute; left: -9999px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: var(--hl-radius-control); background: var(--hl-accent); color: #FFFFFF; font-weight: 700; }\n.hl-skip:focus { left: 8px; }\n.hl-sidebar { width: 260px; flex: none; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 12px; background: var(--hl-sidebar); border-right: 1px solid var(--hl-border); position: sticky; top: 0; z-index: 20; height: 100vh; overflow-y: auto; transition: width .2s ease, padding .2s ease; }\n.hl-sidebar[data-collapsed] { width: 72px; padding: 14px 10px; align-items: center; overflow: visible; }\n@media (prefers-reduced-motion: reduce) { .hl-sidebar { transition: none; } }\n.hl-brand-row { display: flex; align-items: center; gap: 6px; padding: 0 0 12px; }\n.hl-sidebar[data-collapsed] .hl-brand-row { flex-direction: column; gap: 8px; }\n.hl-brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 4px 6px; font-size: 15px; font-weight: 800; letter-spacing: -0.02em; color: var(--hl-text); text-decoration: none; }\n.hl-sidebar[data-collapsed] .hl-brand { flex: none; padding: 0; justify-content: center; }\n.hl-shell button.hl-sidebar-toggle { width: 32px; height: 32px; min-height: 32px; flex: none; padding: 0; box-sizing: border-box; border: 0; border-radius: var(--hl-radius-control); display: grid; place-items: center; background: transparent; color: var(--hl-muted); cursor: pointer; }\n.hl-shell button.hl-sidebar-toggle:hover:not(:disabled) { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }\n.hl-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n.hl-nav { display: flex; flex-direction: column; gap: 2px; }\n.hl-nav__group { margin: 12px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }\n.hl-nav a { display: flex; align-items: center; gap: 10px; min-height: 32px; padding: 0 10px; border-radius: var(--hl-radius-control); color: var(--hl-text); text-decoration: none; font-weight: 600; }\n.hl-nav a:hover { background: var(--hl-faint); }\n.hl-nav a[aria-current=\"page\"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); font-weight: 700; }\n.hl-nav ul ul a { min-height: 28px; padding-left: 36px; font-weight: 500; color: var(--hl-muted); }\n.hl-nav ul ul a[aria-current=\"page\"] { color: var(--hl-accent-text); }\n.hl-sidebar[data-collapsed] .hl-nav { align-items: center; }\n.hl-sidebar[data-collapsed] .hl-nav a { position: relative; width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; }\n.hl-nav__initial { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--hl-faint); }\n.hl-nav a[aria-current=\"page\"] .hl-nav__initial { background: transparent; }\n.hl-nav__divider { width: 28px; margin: 8px auto; border: 0; border-top: 1px solid var(--hl-border); }\n.hl-sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--hl-border); }\n.hl-sidebar[data-collapsed] .hl-sidebar__foot { align-self: stretch; align-items: center; }\n.hl-theme-row { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-theme-switch { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--hl-faint); }\n.hl-shell .hl-theme-switch button { width: 34px; height: 30px; min-height: 30px; padding: 0; box-sizing: border-box; border: 0; border-radius: 999px; display: grid; place-items: center; background: transparent; color: var(--hl-muted); cursor: pointer; }\n.hl-shell .hl-theme-switch button:hover:not(:disabled) { background: var(--hl-surface); border-color: transparent; color: var(--hl-text); }\n.hl-shell .hl-theme-switch button[aria-pressed=\"true\"], .hl-shell .hl-theme-switch button[aria-pressed=\"true\"]:hover:not(:disabled) { background: var(--hl-accent); border-color: var(--hl-accent); color: var(--hl-on-accent); }\n.hl-shell button.hl-theme-cycle { width: 40px; height: 40px; min-height: 40px; padding: 0; box-sizing: border-box; border: 0; border-radius: 999px; display: grid; place-items: center; background: var(--hl-faint); color: var(--hl-text); cursor: pointer; }\n.hl-shell button.hl-theme-cycle:hover:not(:disabled) { background: var(--hl-surface); border-color: transparent; color: var(--hl-text); }\n.hl-account { position: relative; }\n.hl-shell button.hl-account__trigger { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 6px; box-sizing: border-box; border: 0; border-radius: var(--hl-radius-control); background: transparent; color: var(--hl-text); font: inherit; text-align: left; cursor: pointer; }\n.hl-shell button.hl-account__trigger:hover:not(:disabled), .hl-shell button.hl-account__trigger[aria-expanded=\"true\"] { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }\n.hl-sidebar[data-collapsed] button.hl-account__trigger { width: 44px; height: 44px; min-height: 44px; padding: 0; justify-content: center; border-radius: 999px; }\n.hl-avatar { width: 32px; height: 32px; flex: none; border-radius: 999px; display: grid; place-items: center; background: var(--hl-accent); color: var(--hl-on-accent); font-weight: 700; }\n.hl-account__text { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }\n.hl-account__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hl-account__text span { font-size: 13px; color: var(--hl-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.hl-account__chevron { flex: none; color: var(--hl-muted); }\n.hl-account__menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 25; display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); box-shadow: 0 14px 34px rgba(0,0,0,.25); }\n.hl-sidebar[data-collapsed] .hl-account__menu { left: calc(100% + 10px); right: auto; bottom: 0; width: 260px; }\n.hl-account__head { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--hl-border); }\n.hl-account__caption { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-account__full { overflow-wrap: anywhere; }\n.hl-account__head span.hl-account__full { font-size: 13px; color: var(--hl-muted); }\n.hl-shell button.hl-signout { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--hl-text); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }\n.hl-shell button.hl-signout:hover:not(:disabled) { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }\n.hl-shell button.hl-signout:disabled { background: transparent; border-color: transparent; color: var(--hl-muted); opacity: .7; cursor: default; }\n.hl-content { flex: 1; min-width: 0; display: flex; flex-direction: column; }\n.hl-topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 24px; border-bottom: 1px solid var(--hl-border); background: var(--hl-ground); position: sticky; top: 0; z-index: 10; }\n.hl-search { position: relative; flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-muted); box-sizing: border-box; }\n.hl-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--hl-text); font: inherit; }\n.hl-search:focus-within { border-color: var(--hl-accent); }\n.hl-search__kbd, .hl-shortcuts kbd { flex: none; min-width: 22px; box-sizing: border-box; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--hl-border); background: var(--hl-ground); font-family: inherit; font-size: 11px; font-weight: 700; text-align: center; color: var(--hl-muted); }\n.hl-search__list { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; list-style: none; margin: 0; padding: 6px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); box-shadow: 0 12px 30px rgba(0,0,0,.18); }\n.hl-search__list li { padding: 10px 12px; border-radius: 8px; color: var(--hl-text); cursor: pointer; }\n.hl-search__list li[aria-selected=\"true\"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); }\n.hl-search__list .hl-search__empty { color: var(--hl-muted); cursor: default; }\n.hl-topbar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }\n.hl-shell button.hl-menu-button { min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; cursor: pointer; }\n.hl-shell button.hl-menu-button:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }\n.hl-main { padding: 20px 24px; width: 100%; max-width: 1180px; box-sizing: border-box; }\n.hl-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }\n.hl-shortcuts-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); }\n.hl-shortcuts { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow-y: auto; box-sizing: border-box; padding: 18px 22px 22px; border-radius: 14px; border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); box-shadow: 0 20px 50px rgba(0,0,0,.35); }\n.hl-shortcuts__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }\n.hl-shortcuts h2 { margin: 0; font-size: 17px; }\n.hl-shortcuts h3 { margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-muted); }\n.hl-shortcuts dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; }\n.hl-shortcuts dt { min-width: 0; }\n.hl-shortcuts dd { margin: 0; display: flex; align-items: center; gap: 4px; justify-content: flex-end; }\n.hl-shortcuts__row { display: contents; }\n.hl-shortcuts__or { padding: 0 4px; font-size: 12px; color: var(--hl-muted); }\n.hl-shell button.hl-shortcuts__close { width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: var(--hl-radius-control); display: grid; place-items: center; background: transparent; color: var(--hl-muted); cursor: pointer; }\n.hl-shell button.hl-shortcuts__close:hover:not(:disabled) { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }\n.hl-drawer { position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(300px, 86vw); display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--hl-sidebar); overflow-y: auto; }\n@media (max-width: 899px) {\n .hl-topbar { padding: 12px 16px; }\n .hl-main { padding: 20px 16px; }\n}\n";
2
+ export declare const SHELL_CSS: string;
@@ -1,3 +1,5 @@
1
+ import { BOTTOM_NAV_CSS } from './bottom-nav-css.js';
2
+ import { NARROW_BREAKPOINT } from './breakpoint.js';
1
3
  /** The app shell's look, on the theme tokens only (see tokens.ts). */
2
4
  export const SHELL_CSS = `
3
5
  .hl-shell { min-height: 100vh; display: flex; background: var(--hl-ground); color: var(--hl-text); }
@@ -64,10 +66,7 @@ export const SHELL_CSS = `
64
66
  .hl-search__list li[aria-selected="true"] { background: var(--hl-accent-soft); color: var(--hl-accent-text); }
65
67
  .hl-search__list .hl-search__empty { color: var(--hl-muted); cursor: default; }
66
68
  .hl-topbar__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
67
- .hl-shell button.hl-menu-button { min-height: 32px; padding: 0 12px; border-radius: var(--hl-radius-control); border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); font: inherit; font-weight: 700; cursor: pointer; }
68
- .hl-shell button.hl-menu-button:hover:not(:disabled) { background: var(--hl-faint); border-color: var(--hl-border); color: var(--hl-text); }
69
69
  .hl-main { padding: 20px 24px; width: 100%; max-width: 1180px; box-sizing: border-box; }
70
- .hl-drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.45); }
71
70
  .hl-shortcuts-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.45); }
72
71
  .hl-shortcuts { position: fixed; z-index: 51; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 64px); overflow-y: auto; box-sizing: border-box; padding: 18px 22px 22px; border-radius: 14px; border: 1px solid var(--hl-border); background: var(--hl-surface); color: var(--hl-text); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
73
72
  .hl-shortcuts__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@@ -80,10 +79,23 @@ export const SHELL_CSS = `
80
79
  .hl-shortcuts__or { padding: 0 4px; font-size: 12px; color: var(--hl-muted); }
81
80
  .hl-shell button.hl-shortcuts__close { width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: var(--hl-radius-control); display: grid; place-items: center; background: transparent; color: var(--hl-muted); cursor: pointer; }
82
81
  .hl-shell button.hl-shortcuts__close:hover:not(:disabled) { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }
83
- .hl-drawer { position: fixed; inset: 0 auto 0 0; z-index: 41; width: min(300px, 86vw); display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; background: var(--hl-sidebar); overflow-y: auto; }
84
- @media (max-width: 899px) {
85
- .hl-topbar { padding: 12px 16px; }
82
+ .hl-shell .hl-sidebar a, .hl-shell .hl-sidebar a:hover, .hl-shell .hl-topbar a, .hl-shell .hl-topbar a:hover { text-decoration: none; }
83
+ .hl-shell a.hl-brand:hover { color: var(--hl-text); }
84
+ .hl-shell a.hl-skip, .hl-shell a.hl-skip:hover { color: var(--hl-on-accent); text-decoration: none; }
85
+ .hl-topbar[data-narrow] { flex-wrap: nowrap; min-height: 56px; box-sizing: border-box; padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) 6px max(16px, env(safe-area-inset-left)); }
86
+ .hl-topbar[data-narrow] .hl-brand { flex: 0 1 auto; padding: 0; font-size: 15px; }
87
+ .hl-topbar[data-narrow] .hl-topbar__end { flex: none; gap: 4px; }
88
+ .hl-topbar[data-narrow] .hl-topbar__end > * { flex: none; white-space: nowrap; }
89
+ .hl-shell button.hl-search-button, .hl-shell button.hl-search-close { width: 44px; height: 44px; min-height: 44px; flex: none; padding: 0; box-sizing: border-box; border: 0; border-radius: var(--hl-radius-control); display: grid; place-items: center; background: transparent; color: var(--hl-text); cursor: pointer; }
90
+ .hl-shell button.hl-search-button:hover:not(:disabled), .hl-shell button.hl-search-close:hover:not(:disabled) { background: var(--hl-faint); border-color: transparent; color: var(--hl-text); }
91
+ .hl-search-backdrop { position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.45); }
92
+ .hl-search-overlay { position: fixed; top: 0; left: 0; right: 0; z-index: 45; display: flex; align-items: center; gap: 6px; padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(8px, env(safe-area-inset-left)); box-sizing: border-box; background: var(--hl-ground); border-bottom: 1px solid var(--hl-border); }
93
+ .hl-search-overlay .hl-search { flex: 1; max-width: none; min-height: 44px; }
94
+ .hl-search-overlay .hl-search input { font-size: 16px; }
95
+ .hl-shell[data-narrow] .hl-main { padding-bottom: calc(56px + 24px + env(safe-area-inset-bottom)); }
96
+ @media (max-width: ${String(NARROW_BREAKPOINT - 1)}px) {
97
+ .hl-topbar { padding: 6px 8px 6px 16px; }
86
98
  .hl-main { padding: 20px 16px; }
87
99
  }
88
- `;
100
+ ${BOTTOM_NAV_CSS}`;
89
101
  //# sourceMappingURL=shell-css.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"shell-css.js","sourceRoot":"","sources":["../../src/shell/shell-css.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFxB,CAAC"}
1
+ {"version":3,"file":"shell-css.js","sourceRoot":"","sources":["../../src/shell/shell-css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,sEAAsE;AACtE,MAAM,CAAC,MAAM,SAAS,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA4FJ,MAAM,CAAC,iBAAiB,GAAG,CAAC,CAAC;;;;EAIhD,cAAc,EAAE,CAAC"}
@@ -1,7 +1,12 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { ThemeChoice } from './theme-choice.js';
3
- /** System, dark or light: the choice is remembered in this browser. */
4
- export declare function ThemeSwitch(): ReactElement;
3
+ /**
4
+ * System, dark or light: the choice is remembered in this browser. With `labels` (the phone
5
+ * and tablet More sheet) each button shows its name beside its icon, Light, Dark, System.
6
+ */
7
+ export declare function ThemeSwitch({ labels }?: {
8
+ labels?: boolean;
9
+ }): ReactElement;
5
10
  /** The theme after this one: system → dark → light → system. */
6
11
  export declare function nextTheme(choice: ThemeChoice): ThemeChoice;
7
12
  /** One button that steps through system, dark and light: for the collapsed sidebar. */
@@ -26,12 +26,16 @@ const OPTIONS = [
26
26
  icon: (_jsxs("svg", { ...ICON, children: [_jsx("circle", { cx: "12", cy: "12", r: "4" }), _jsx("path", { d: "M12 2v2M12 20v2M2 12h2M20 12h2M5 5l1.5 1.5M17.5 17.5L19 19M5 19l1.5-1.5M17.5 6.5L19 5" })] })),
27
27
  },
28
28
  ];
29
- /** System, dark or light: the choice is remembered in this browser. */
30
- export function ThemeSwitch() {
29
+ const NAMES = { system: 'System', dark: 'Dark', light: 'Light' };
30
+ /**
31
+ * System, dark or light: the choice is remembered in this browser. With `labels` (the phone
32
+ * and tablet More sheet) each button shows its name beside its icon, Light, Dark, System.
33
+ */
34
+ export function ThemeSwitch({ labels = false } = {}) {
31
35
  const { choice, setChoice } = useTheme();
32
- return (_jsx("div", { role: "group", "aria-label": "Theme", className: "hl-theme-switch", children: OPTIONS.map((option) => (_jsx("button", { type: "button", "aria-label": option.label, "aria-pressed": choice === option.choice, onClick: () => setChoice(option.choice), children: option.icon }, option.choice))) }));
36
+ const options = labels ? [...OPTIONS].reverse() : OPTIONS;
37
+ return (_jsx("div", { role: "group", "aria-label": "Theme", className: labels ? 'hl-theme-switch hl-theme-switch--labels' : 'hl-theme-switch', children: options.map((option) => (_jsxs("button", { type: "button", "aria-label": option.label, "aria-pressed": choice === option.choice, onClick: () => setChoice(option.choice), children: [option.icon, labels && _jsx("span", { className: "hl-theme-switch__text", children: NAMES[option.choice] })] }, option.choice))) }));
33
38
  }
34
- const NAMES = { system: 'System', dark: 'Dark', light: 'Light' };
35
39
  /** The theme after this one: system → dark → light → system. */
36
40
  export function nextTheme(choice) {
37
41
  return choice === 'system' ? 'dark' : choice === 'dark' ? 'light' : 'system';
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeSwitch.js","sourceRoot":"","sources":["../../src/theme/ThemeSwitch.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,MAAM,IAAI,GAAG;IACX,KAAK,EAAE,EAAE;IACT,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE,cAAc;IACtB,WAAW,EAAE,CAAC;IACd,aAAa,EAAE,IAAI;CACX,CAAC;AAEX,MAAM,OAAO,GAAiE;IAC5E;QACE,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,cAAc;QACrB,IAAI,EAAE,CACJ,kBAAS,IAAI,aACX,eAAM,CAAC,EAAC,GAAG,EAAC,CAAC,EAAC,GAAG,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAA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AAM,IAAI,eAAM,SAAS,EAAC,uBAAuB,YAAE,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,GAAQ,KAR3E,MAAM,CAAC,MAAM,CASX,CACV,CAAC,GACE,CACP,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,SAAS,CAAC,MAAmB;IAC3C,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AAC/E,CAAC;AAED,uFAAuF;AACvF,MAAM,UAAU,UAAU;IACxB,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,QAAQ,EAAE,CAAC;IACzC,MAAM,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,CAAC,CAAC,CAAC;IACtE,MAAM,IAAI,GAAG,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,OAAO,CACL,iBACE,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,gBAAgB,gBACd,UAAU,KAAK,CAAC,MAAM,CAAC,eAAe,KAAK,CAAC,IAAI,CAAC,EAAE,EAC/D,KAAK,EAAE,UAAU,KAAK,CAAC,MAAM,CAAC,EAAE,EAChC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,YAE7B,MAAM,EAAE,IAAI,GACN,CACV,CAAC;AACJ,CAAC"}
@@ -2,8 +2,8 @@
2
2
  * The dashboards' look: neutral colours for light and dark, and one accent per product.
3
3
  * Every value is checked for contrast in `tokens.test.ts`.
4
4
  */
5
- /** The four products' accents: the console, Catalogpix, Catalogscout and MarginLedger. */
6
- export type AccentPreset = 'indigo' | 'coral' | 'teal' | 'green';
5
+ /** The products' accents: the console, Catalogpix, Catalogscout, MarginLedger and VendorHaat. */
6
+ export type AccentPreset = 'indigo' | 'coral' | 'teal' | 'green' | 'pine';
7
7
  export interface AccentColors {
8
8
  /** Buttons and fills; white text sits on it. */
9
9
  solid: string;
@@ -35,6 +35,11 @@ export declare const NEUTRALS: Readonly<{
35
35
  light: Neutrals;
36
36
  dark: Neutrals;
37
37
  }>;
38
+ /**
39
+ * A link's colour under the pointer: the link colour moved away from the ground (darker in
40
+ * the light theme, lighter in the dark), so it stays as readable as the link and still shows.
41
+ */
42
+ export declare function accentHover(accent: AccentColors, dark: boolean): string;
38
43
  /**
39
44
  * The tokens as CSS: light by default, dark when `<html data-theme="dark">` or, with no
40
45
  * choice made, when the system is dark; then the base rules every dashboard shares.
@@ -31,6 +31,13 @@ export const ACCENTS = {
31
31
  softLight: '#E6F4EA',
32
32
  softDark: '#18301F',
33
33
  },
34
+ pine: {
35
+ solid: '#0F766E',
36
+ textLight: '#0F766E',
37
+ textDark: '#5EEAD4',
38
+ softLight: '#E6F4F1',
39
+ softDark: '#12302C',
40
+ },
34
41
  };
35
42
  export const NEUTRALS = {
36
43
  light: {
@@ -62,6 +69,20 @@ export const NEUTRALS = {
62
69
  };
63
70
  const FONT = "'Plus Jakarta Sans Variable', system-ui, sans-serif";
64
71
  const MONO = "'JetBrains Mono', ui-monospace, monospace";
72
+ /** `#RRGGBB` moved `share` (0–1) of the way towards `#RRGGBB` `to`. */
73
+ function mix(hex, to, share) {
74
+ const channels = (value) => [1, 3, 5].map((i) => Number.parseInt(value.slice(i, i + 2), 16));
75
+ const target = channels(to);
76
+ const mixed = channels(hex).map((c, i) => Math.round(c + ((target[i] ?? c) - c) * share));
77
+ return `#${mixed.map((c) => c.toString(16).padStart(2, '0')).join('')}`.toUpperCase();
78
+ }
79
+ /**
80
+ * A link's colour under the pointer: the link colour moved away from the ground (darker in
81
+ * the light theme, lighter in the dark), so it stays as readable as the link and still shows.
82
+ */
83
+ export function accentHover(accent, dark) {
84
+ return dark ? mix(accent.textDark, '#FFFFFF', 0.4) : mix(accent.textLight, '#000000', 0.25);
85
+ }
65
86
  function variables(n, accent, dark) {
66
87
  return [
67
88
  `--hl-ground: ${n.ground};`,
@@ -78,6 +99,7 @@ function variables(n, accent, dark) {
78
99
  `--hl-accent: ${accent.solid};`,
79
100
  `--hl-accent-text: ${dark ? accent.textDark : accent.textLight};`,
80
101
  `--hl-accent-soft: ${dark ? accent.softDark : accent.softLight};`,
102
+ `--hl-accent-hover: ${accentHover(accent, dark)};`,
81
103
  `color-scheme: ${dark ? 'dark' : 'light'};`,
82
104
  ].join(' ');
83
105
  }
@@ -95,7 +117,8 @@ export function themeCss(accent) {
95
117
  @media (prefers-color-scheme: dark) { :root:not([data-theme]) { ${dark} } }
96
118
  body { margin: 0; background: var(--hl-ground); color: var(--hl-text); font-family: var(--hl-font); font-size: 13px; line-height: 1.5; }
97
119
  code, kbd, pre, samp { font-family: var(--hl-mono); }
98
- a { color: var(--hl-accent-text); }
120
+ a { color: var(--hl-accent-text); text-decoration: none; cursor: pointer; }
121
+ a:hover { color: var(--hl-accent-hover); }
99
122
  :focus-visible { outline: 3px solid var(--hl-accent); outline-offset: 2px; }
100
123
  `;
101
124
  }
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../src/theme/tokens.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAkBH,MAAM,CAAC,MAAM,OAAO,GAAiD;IACnE,MAAM,EAAE;QACN,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;QACnB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;KACpB;IACD,IAAI,EAAE;QACJ,KAAK,EAAE,SAAS;QAChB,SAAS,EAAE,SAAS;QACpB,QAAQ,EAAE,SAAS;Q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,CAAC,EAAE,IAAI,CAAC,CAAC;IAC/C,OAAO;UACC,KAAK,8LAA8L,IAAI,gBAAgB,IAAI;6BACxM,IAAI;kEACiC,IAAI;;;;;;CAMrE,CAAC;AACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haatlabs-core/ui",
3
- "version": "0.21.0",
3
+ "version": "0.22.0",
4
4
  "description": "React components for an app's dashboard, styled by the app.",
5
5
  "keywords": [
6
6
  "haatlabs",
@@ -67,11 +67,11 @@
67
67
  "react-router-dom": "^7.18.4",
68
68
  "@tanstack/react-query": "^5.104.1",
69
69
  "zod": "^4.6.5",
70
- "@haatlabs-core/vitest-config": "0.21.0",
71
- "@haatlabs-core/tsconfig": "0.21.0"
70
+ "@haatlabs-core/tsconfig": "0.22.0",
71
+ "@haatlabs-core/vitest-config": "0.22.0"
72
72
  },
73
73
  "dependencies": {
74
- "@haatlabs-core/auth-contracts": "0.21.0"
74
+ "@haatlabs-core/auth-contracts": "0.22.0"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "rm -rf dist && tsc -p tsconfig.build.json",