basalt-ui 1.18.0 → 1.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (92) hide show
  1. package/AGENTS.md +1 -1
  2. package/CHANGELOG.md +7 -0
  3. package/agent/rules/basalt-mantine.md +71 -6
  4. package/agent/rules/basalt-router.md +129 -30
  5. package/agent/rules/basalt-tokens.md +2 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +8 -0
  9. package/dist/nav/types.d.ts +110 -0
  10. package/dist/nav/types.d.ts.map +1 -0
  11. package/dist/nav/types.js +0 -0
  12. package/dist/router-tanstack/index.d.ts +9 -2
  13. package/dist/router-tanstack/index.d.ts.map +1 -1
  14. package/dist/router-tanstack/index.js +7 -0
  15. package/dist/router-tanstack/nav.d.ts +163 -0
  16. package/dist/router-tanstack/nav.d.ts.map +1 -0
  17. package/dist/router-tanstack/nav.js +38 -0
  18. package/dist/router-tanstack/nav.test.d.ts +2 -0
  19. package/dist/router-tanstack/nav.test.d.ts.map +1 -0
  20. package/dist/router-tanstack/search-param-store.d.ts +19 -9
  21. package/dist/router-tanstack/search-param-store.d.ts.map +1 -1
  22. package/dist/router-tanstack/use-nav.d.ts +30 -0
  23. package/dist/router-tanstack/use-nav.d.ts.map +1 -0
  24. package/dist/router-tanstack/use-nav.js +71 -0
  25. package/dist/shell/app-breadcrumbs.d.ts +7 -9
  26. package/dist/shell/app-breadcrumbs.d.ts.map +1 -1
  27. package/dist/shell/app-breadcrumbs.js +8 -4
  28. package/dist/shell/app-mobile-nav.d.ts +23 -24
  29. package/dist/shell/app-mobile-nav.d.ts.map +1 -1
  30. package/dist/shell/app-mobile-nav.js +290 -68
  31. package/dist/shell/app-mobile-nav.module.css +166 -11
  32. package/dist/shell/app-mobile-nav.module.css.d.ts +11 -2
  33. package/dist/shell/app-mobile-nav.test.d.ts +2 -0
  34. package/dist/shell/app-mobile-nav.test.d.ts.map +1 -0
  35. package/dist/shell/app-sidebar.d.ts +3 -28
  36. package/dist/shell/app-sidebar.d.ts.map +1 -1
  37. package/dist/shell/app-sidebar.js +40 -174
  38. package/dist/shell/app-sidebar.module.css +3 -2
  39. package/dist/shell/app-sidebar.module.css.d.ts +0 -2
  40. package/dist/shell/index.d.ts +22 -65
  41. package/dist/shell/index.d.ts.map +1 -1
  42. package/dist/shell/index.js +38 -76
  43. package/dist/shell/mobile-nav-model.d.ts +41 -0
  44. package/dist/shell/mobile-nav-model.d.ts.map +1 -0
  45. package/dist/shell/mobile-nav-model.js +244 -0
  46. package/dist/shell/mobile-nav-model.test.d.ts +2 -0
  47. package/dist/shell/mobile-nav-model.test.d.ts.map +1 -0
  48. package/dist/shell/nav-count-badge.d.ts +11 -0
  49. package/dist/shell/nav-count-badge.d.ts.map +1 -0
  50. package/dist/shell/nav-count-badge.js +29 -0
  51. package/dist/surfaces.d.ts +1 -1
  52. package/dist/surfaces.js +1 -1
  53. package/dist/theme/index.d.ts.map +1 -1
  54. package/dist/theme/index.js +8 -7
  55. package/dist/theme/nav-link.module.css +4 -2
  56. package/dist/tokens/index.d.ts.map +1 -1
  57. package/dist/tokens/index.js +2 -0
  58. package/dist/tokens/palette.d.ts +15 -0
  59. package/dist/tokens/palette.d.ts.map +1 -1
  60. package/dist/tokens/palette.js +13 -0
  61. package/dist/tokens.css +2 -0
  62. package/llms.txt +3 -3
  63. package/package.json +1 -1
  64. package/src/index.ts +15 -5
  65. package/src/nav/types.ts +115 -0
  66. package/src/router-tanstack/index.ts +21 -2
  67. package/src/router-tanstack/nav.test.ts +111 -0
  68. package/src/router-tanstack/nav.ts +205 -0
  69. package/src/router-tanstack/search-param-store.ts +19 -9
  70. package/src/router-tanstack/use-nav.ts +146 -0
  71. package/src/shell/app-breadcrumbs.tsx +21 -19
  72. package/src/shell/app-mobile-nav.module.css +166 -11
  73. package/src/shell/app-mobile-nav.module.css.d.ts +11 -2
  74. package/src/shell/app-mobile-nav.test.tsx +369 -0
  75. package/src/shell/app-mobile-nav.tsx +436 -102
  76. package/src/shell/app-sidebar.module.css +3 -2
  77. package/src/shell/app-sidebar.module.css.d.ts +0 -2
  78. package/src/shell/app-sidebar.test.tsx +6 -10
  79. package/src/shell/app-sidebar.tsx +49 -206
  80. package/src/shell/index.test.tsx +62 -7
  81. package/src/shell/index.tsx +105 -164
  82. package/src/shell/mobile-nav-model.test.ts +296 -0
  83. package/src/shell/mobile-nav-model.ts +389 -0
  84. package/src/shell/nav-count-badge.tsx +39 -0
  85. package/src/surfaces.ts +1 -1
  86. package/src/theme/density-relations.test.ts +19 -1
  87. package/src/theme/index.ts +8 -7
  88. package/src/theme/nav-link.module.css +4 -2
  89. package/src/theme/spacing.test.ts +11 -0
  90. package/src/tokens/density.test.ts +2 -0
  91. package/src/tokens/index.ts +8 -5
  92. package/src/tokens/palette.ts +16 -0
@@ -0,0 +1,163 @@
1
+ /**
2
+ * Typed navigation definition. Wraps TanStack's own `linkOptions` rather than reimplementing its
3
+ * validator, so `to` / `search` / `params` get the router's full checking, and nav metadata rides
4
+ * OUTSIDE the validated object in a sibling `link:` key.
5
+ *
6
+ * Why not flat (`{ id, label, to, search }`) via a carrier `TComp` over `ValidateLinkOptions`:
7
+ * `Constrain<T, C> = (T extends C ? T : never) | C` is an ASSIGNABILITY check, and assignability
8
+ * does not do excess-property checking — so `{ id, label, to: '/charts', colour: 'red' }` compiles
9
+ * silently. Compile-verified. A config whose selling point is "typos are compile errors" cannot
10
+ * have a hole exactly where metadata typos live.
11
+ *
12
+ * No JSX and no Mantine in this module — `./router-tanstack` is a headless barrel by contract.
13
+ */
14
+ import type { ReactNode } from 'react';
15
+ import type { NavMobilePlacement, NavSectionMobile } from '../nav/types.js';
16
+ export type NavItemMeta = {
17
+ id: string;
18
+ label: string;
19
+ /** Bar/menu label. Falls back to `label`. */
20
+ short?: string;
21
+ icon?: ReactNode;
22
+ disabled?: boolean;
23
+ /** Mobile placement. `true` ≡ `'tab'`, `false` ≡ `'hidden'`. @default 'more' */
24
+ mobile?: boolean | NavMobilePlacement;
25
+ /** Active on an exact path match only. Default: prefix (`fuzzy: true`). `'/'` is always exact. */
26
+ exact?: boolean;
27
+ };
28
+ export type NavGroupMeta = {
29
+ id: string;
30
+ label: string;
31
+ icon?: ReactNode;
32
+ collapsible?: boolean;
33
+ defaultCollapsed?: boolean;
34
+ mobile?: false | NavSectionMobile;
35
+ };
36
+ /** Widened read shapes. The framework reads through these; a consumer never writes them. */
37
+ export type AnyNavLink = {
38
+ to: string;
39
+ search?: unknown;
40
+ params?: unknown;
41
+ };
42
+ export type AnyNavItem = NavItemMeta & {
43
+ link: AnyNavLink;
44
+ children?: ReadonlyArray<AnyNavItem>;
45
+ };
46
+ export type AnyNavGroup = NavGroupMeta & {
47
+ items: ReadonlyArray<AnyNavItem>;
48
+ };
49
+ /** Exact-object check: any key outside `Shape` is typed `never`, which surfaces as an error. */
50
+ export type Exact<T, Shape> = T & {
51
+ readonly [K in Exclude<keyof T, keyof Shape>]: never;
52
+ };
53
+ /**
54
+ * `Exact` for ONE item, recursing into `children`.
55
+ *
56
+ * The recursion is the whole point: `AnyNavItem['children']` is a plain
57
+ * `ReadonlyArray<AnyNavItem>` constraint, and a constraint is an assignability check — so a
58
+ * top-level-only `Exact` leaves the metadata-typo hole wide open exactly one level down
59
+ * (`children: [{ id, label, colour: 'red', link }]` compiled silently). Reapplying `Exact` per
60
+ * child, at every depth, is what makes the nested `link:` design actually deliver "every typo is a
61
+ * compile error" rather than "every typo in the top row is a compile error".
62
+ *
63
+ * The `[K in Extract<keyof T, 'children'>]` form rather than a `children?:` property is what keeps
64
+ * this inference-safe: it evaluates to `{}` for an item that declares no children (so no phantom
65
+ * key is added to the checked shape and nothing becomes required), and the intersection with
66
+ * `Exact<T, AnyNavItem>` keeps `T` in a naked inference position so the caller's literal types
67
+ * still flow out of `navGroup`'s `const T`.
68
+ */
69
+ export type ExactNavItem<T> = Exact<T, AnyNavItem> & {
70
+ readonly [K in Extract<keyof T, 'children'>]: T[K] extends ReadonlyArray<AnyNavItem> ? NavItemsInput<T[K]> : T[K];
71
+ };
72
+ /** Per-element `Exact` over a tuple of items, so an unknown key errors at the item that owns it. */
73
+ export type NavItemsInput<T extends ReadonlyArray<AnyNavItem>> = {
74
+ readonly [K in keyof T]: ExactNavItem<T[K]>;
75
+ };
76
+ type ItemsOf<G> = G extends ReadonlyArray<{
77
+ items: ReadonlyArray<infer I>;
78
+ }> ? I : never;
79
+ /**
80
+ * One item plus every descendant, at arbitrary depth. Recursive so the TYPE side matches what
81
+ * `findById` / `flattenNav` already do at RUNTIME — a one-level walk made `navTarget(nav,
82
+ * 'grandchild')` a compile error against an id the runtime resolves fine.
83
+ */
84
+ type WithDescendants<I> = I | (I extends {
85
+ children: ReadonlyArray<infer C>;
86
+ } ? WithDescendants<C> : never);
87
+ type AllItemsOf<G> = WithDescendants<ItemsOf<G>>;
88
+ /**
89
+ * id → link options, as a mapped type with key remapping. Do NOT replace this with
90
+ * `Extract<AllItemsOf<G>, { id: K }>['link']` — that form was compile-tested and returns the
91
+ * WHOLE union, silently losing per-id precision.
92
+ */
93
+ export type NavIndex<G> = {
94
+ [I in AllItemsOf<G> as I extends {
95
+ id: infer K extends string;
96
+ } ? K : never]: I extends {
97
+ link: infer L;
98
+ } ? L : never;
99
+ };
100
+ /**
101
+ * The literal union of every addressable destination id in a definition — parents, children and
102
+ * grandchildren alike, at ARBITRARY depth, matching what `findById` / `flattenNav` resolve at
103
+ * runtime. Verified to seven levels of `children` with no instantiation-depth complaint.
104
+ *
105
+ * If this ever resolves to plain `string`, the entire nav API validates nothing while reporting
106
+ * zero errors — so any change to the generics above must be re-checked against
107
+ * `apps/playground/src/nav.type-guard.tsx`, whose `@ts-expect-error` rows go UNUSED (TS2578) the
108
+ * moment the union widens.
109
+ */
110
+ export type NavItemId<G> = Extract<keyof NavIndex<G>, string>;
111
+ export type NavGroupId<G> = G extends ReadonlyArray<{
112
+ id: infer I;
113
+ }> ? I : never;
114
+ export type NavTabId<G> = NavItemId<G> | NavGroupId<G>;
115
+ export type NavConfig<G extends ReadonlyArray<AnyNavGroup>, T extends ReadonlyArray<NavTabId<G>>> = {
116
+ groups: G;
117
+ mobile?: {
118
+ /** Explicit bar order by item/group id. Omit to let each item's `mobile` field decide. */
119
+ tabs?: T;
120
+ /** @default 5 */ maxTabs?: number;
121
+ /** @default 6 */ menuMax?: number;
122
+ /** @default 'More' */ moreLabel?: string;
123
+ };
124
+ };
125
+ /**
126
+ * One nav group. `const M` on the meta is load-bearing: without it the group `id` widens to
127
+ * `string` from `NavGroupMeta` and `mobile.tabs` silently stops validating group ids.
128
+ */
129
+ export declare function navGroup<const M extends NavGroupMeta, const T extends ReadonlyArray<AnyNavItem>>(meta: Exact<M, NavGroupMeta>, items: NavItemsInput<T>): M & {
130
+ items: T;
131
+ };
132
+ /**
133
+ * The whole navigation — desktop and mobile — in one inferred definition.
134
+ *
135
+ * There is deliberately NO compile-time cap on `mobile.tabs.length`. Both a
136
+ * `T extends … & { length: 0|1|2|3|4|5 }` constraint and a `tabs: T & MaxFive` property form were
137
+ * compile-tested: each makes the length check work but silently degrades `NavTabId<G>` to `string`,
138
+ * killing the far more valuable id-union validation. The cap is a runtime concern — the shell's
139
+ * `projectMobileNav` slices to `maxTabs` and DEV-warns about what it dropped.
140
+ */
141
+ export declare function defineNav<const G extends ReadonlyArray<AnyNavGroup>, const T extends ReadonlyArray<NavTabId<G>>>(config: NavConfig<G, T>): NavConfig<G, T>;
142
+ /**
143
+ * The link options for one destination, by id. Spreadable into `<Link>`, `router.navigate()`
144
+ * and `redirect()`. This is what collapses a consumer's Spotlight commands and index redirect.
145
+ *
146
+ * `id` is the definition's literal id union (`NavItemId`) at any nesting depth, so a nested child
147
+ * or grandchild is addressable exactly like a top-level item — the type side and `findById`'s
148
+ * runtime walk agree.
149
+ */
150
+ export declare function navTarget<const C extends {
151
+ groups: ReadonlyArray<AnyNavGroup>;
152
+ }, K extends NavItemId<C['groups']>>(config: C, id: K): NavIndex<C['groups']>[K];
153
+ /** A flattened destination, tagged with the group it was declared in. */
154
+ export type FlatNavItem = AnyNavItem & {
155
+ groupId: string;
156
+ groupLabel: string;
157
+ };
158
+ /** Depth-first flatten, parent then children — the leaf every other surface reads. */
159
+ export declare function flattenNav(config: {
160
+ groups: ReadonlyArray<AnyNavGroup>;
161
+ }): FlatNavItem[];
162
+ export {};
163
+ //# sourceMappingURL=nav.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../src/router-tanstack/nav.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAIxE,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,6CAA6C;IAC7C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,gFAAgF;IAChF,MAAM,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAA;IACrC,kGAAkG;IAClG,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,MAAM,CAAC,EAAE,KAAK,GAAG,gBAAgB,CAAA;CAClC,CAAA;AAED,4FAA4F;AAC5F,MAAM,MAAM,UAAU,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IA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3
+ }
4
+ function defineNav(config) {
5
+ return config;
6
+ }
7
+ function findById(items, id) {
8
+ for (const item of items) {
9
+ if (item.id === id) return item;
10
+ const hit = item.children ? findById(item.children, id) : void 0;
11
+ if (hit) return hit;
12
+ }
13
+ return void 0;
14
+ }
15
+ function navTarget(config, id) {
16
+ for (const g of config.groups) {
17
+ const hit = findById(g.items, id);
18
+ if (hit) return hit.link;
19
+ }
20
+ throw new Error(`navTarget: no nav item with id "${id}"`);
21
+ }
22
+ function flattenNav(config) {
23
+ const out = [];
24
+ const walk = (items, groupId, groupLabel) => {
25
+ for (const item of items) {
26
+ out.push({ ...item, groupId, groupLabel });
27
+ if (item.children) walk(item.children, groupId, groupLabel);
28
+ }
29
+ };
30
+ for (const g of config.groups) walk(g.items, g.id, g.label);
31
+ return out;
32
+ }
33
+ export {
34
+ defineNav,
35
+ flattenNav,
36
+ navGroup,
37
+ navTarget
38
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=nav.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nav.test.d.ts","sourceRoot":"","sources":["../../src/router-tanstack/nav.test.ts"],"names":[],"mappings":""}
@@ -49,16 +49,26 @@
49
49
  * return <Charts data={data} range={range} />
50
50
  * }
51
51
  *
52
- * **5. Nav links** — carry the param across sub-pages via search={true},
53
- * guarded by a path-prefix check so non-dashboard links stay clean:
52
+ * **5. Nav links** — carry the param across sub-pages, set per destination in
53
+ * the nav definition so only the dashboard sub-tree inherits it and every
54
+ * other link stays clean. Use a CLICK-TIME THUNK over `readStored`:
54
55
  *
55
- * const renderNavLink = (item, { active }) => {
56
- * const isDashboard = item.href?.startsWith('/dashboard/')
57
- * || item.href === '/dashboard'
58
- * return <MantineNavLink component={Link} to={item.href}
59
- * {...(isDashboard ? { search: true } : {})}
60
- * label={item.label} active={active} />
61
- * }
56
+ * const dashSearch = () => ({ range: dashboardRange.readStored() ?? '30d' })
57
+ *
58
+ * navGroup({ id: 'dash', label: 'Dashboard' }, [
59
+ * { id: 'dash-overview', label: 'Overview', icon: <IconHome />,
60
+ * link: linkOptions({ to: '/dashboard', search: dashSearch }) },
61
+ * { id: 'dash-activity', label: 'Activity', icon: <IconPulse />,
62
+ * link: linkOptions({ to: '/dashboard/activity', search: dashSearch }) },
63
+ * ])
64
+ *
65
+ * NOT `search: true`. That flag means "keep the current search" and TanStack
66
+ * only offers it where the target's search is OPTIONAL — a route wired to a
67
+ * store's `validateSearch` always returns the param, so the router requires a
68
+ * value and `search: true` is a type error. The thunk is also the better
69
+ * behaviour: `<Link>` re-evaluates it at click time, so arriving from OUTSIDE
70
+ * the sub-tree restores the last selection instead of landing on the factory
71
+ * default, and a definition evaluated once at module scope never goes stale.
62
72
  */
63
73
  export type SearchParamStoreOptions<T extends string, P extends string = string> = {
64
74
  /** localStorage key (namespaced `basalt:<key>` automatically). */
@@ -1 +1 @@
1
- {"version":3,"file":"search-param-store.d.ts","sourceRoot":"","sources":["../../src/router-tanstack/search-param-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AAMH,MAAM,MAAM,uBAAuB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IACjF,kEAAkE;IAClE,GAAG,EAAE,MAAM,CAAA;IACX,mEAAmE;IACnE,KAAK,EAAE,CAAC,CAAA;IACR,2DAA2D;IAC3D,MAAM,EAAE,SAAS,CAAC,EAAE,CAAA;IACpB,kEAAkE;IAClE,QAAQ,EAAE,CAAC,CAAA;IACX,kFAAkF;IAClF,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI;IAC1E;;;OAGG;IACH,cAAc,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,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;IACH,QAAQ,EAAE,MAAM,SAAS,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAAA;IAC/C,0EAA0E;IAC1E,UAAU,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;CAC3B,CAAA;AAID,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,KAAK,CAAC,CAAC,SAAS,MAAM,EACnF,IAAI,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,CAAC,GAClC,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,CAyBxB"}
@@ -0,0 +1,30 @@
1
+ import type { ReactNode } from 'react';
2
+ import type { MobileNavConfig, SidebarSection } from '../nav/types.js';
3
+ import type { AnyNavGroup, AnyNavItem, NavConfig, NavItemId, NavTabId } from './nav.js';
4
+ export type UseNavOptions<G extends ReadonlyArray<AnyNavGroup>> = {
5
+ /**
6
+ * Live per-destination badges, keys typed to the definition's id union.
7
+ * A `number` becomes `item.count` (desktop `NavCountBadge` + mobile dot).
8
+ * Anything else becomes `item.badge` (desktop only).
9
+ */
10
+ badges?: Partial<Record<NavItemId<G>, number | ReactNode>>;
11
+ /** Override active detection entirely. */
12
+ isActive?: (item: AnyNavItem) => boolean;
13
+ /** Passed straight through into the returned `mobileNav`. */
14
+ moreExtra?: ReactNode;
15
+ getScrollElement?: () => HTMLElement | null;
16
+ };
17
+ /** Spread straight onto `<BasaltShell {...nav} />` — both keys are `BasaltShellProps` keys. */
18
+ export type NavBinding = {
19
+ sections: SidebarSection[];
20
+ mobileNav: MobileNavConfig;
21
+ };
22
+ /**
23
+ * Resolve a nav definition against the live router.
24
+ *
25
+ * @example
26
+ * const nav = useNav(NAV, { badges: { calendar: 3 } })
27
+ * return <BasaltShell brand={brand} {...nav}>{children}</BasaltShell>
28
+ */
29
+ export declare function useNav<const G extends ReadonlyArray<AnyNavGroup>, const T extends ReadonlyArray<NavTabId<G>>>(config: NavConfig<G, T>, opts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import { createElement, useMemo } from "react";
2
+ import { Link, useMatchRoute, useRouterState } from "@tanstack/react-router";
3
+ function useNav(config, opts) {
4
+ const matchRoute = useMatchRoute();
5
+ const href = useRouterState({ select: (s) => s.location.href });
6
+ const badges = opts?.badges;
7
+ const isActiveOverride = opts?.isActive;
8
+ const sections = useMemo(() => {
9
+ const badgeOf = (id) => badges?.[id];
10
+ const isActive = (item) => isActiveOverride?.(item) ?? Boolean(
11
+ matchRoute({
12
+ to: item.link.to,
13
+ ...item.link.params !== void 0 && { params: item.link.params },
14
+ // Prefix match by default so a parent stays lit on its children; `'/'` would then match
15
+ // everything, so it is always exact.
16
+ fuzzy: item.exact !== true && item.link.to !== "/"
17
+ })
18
+ );
19
+ const toSidebarItem = (item) => {
20
+ const Anchor = (props) => createElement(Link, { ...item.link, ...props });
21
+ const badge = badgeOf(item.id);
22
+ const children = item.children?.map(toSidebarItem);
23
+ return {
24
+ key: item.id,
25
+ label: item.label,
26
+ icon: item.icon,
27
+ Anchor,
28
+ // Per-destination active only. Rolling a child's active state up into its parent is the
29
+ // MOBILE SLOT's rule (§2.3.12) and belongs to `projectMobileNav`, which reads `children`
30
+ // anyway — doing it here too would also light a desktop parent row whose own route does
31
+ // not match.
32
+ active: isActive(item),
33
+ ...item.short !== void 0 && { short: item.short },
34
+ ...item.mobile !== void 0 && { mobile: item.mobile },
35
+ ...item.disabled !== void 0 && { disabled: item.disabled },
36
+ ...typeof badge === "number" ? { count: badge } : badge === void 0 || badge === null ? {} : { badge },
37
+ ...children !== void 0 && { children }
38
+ };
39
+ };
40
+ return config.groups.map((group) => ({
41
+ label: group.label,
42
+ items: group.items.map(toSidebarItem),
43
+ ...group.icon !== void 0 && { icon: group.icon },
44
+ ...group.collapsible !== void 0 && { collapsible: group.collapsible },
45
+ ...group.defaultCollapsed !== void 0 && { defaultCollapsed: group.defaultCollapsed },
46
+ ...group.mobile !== void 0 && { mobile: group.mobile }
47
+ }));
48
+ }, [config, matchRoute, href, badges, isActiveOverride]);
49
+ const mobile = config.mobile;
50
+ const moreExtra = opts?.moreExtra;
51
+ const getScrollElement = opts?.getScrollElement;
52
+ const mobileNav = useMemo(() => {
53
+ const groupLabelById = new Map(config.groups.map((g) => [g.id, g.label]));
54
+ const tabs = mobile?.tabs?.map((id) => {
55
+ const key = id;
56
+ return groupLabelById.get(key) ?? key;
57
+ });
58
+ return {
59
+ ...tabs !== void 0 && { tabs },
60
+ ...mobile?.maxTabs !== void 0 && { maxTabs: mobile.maxTabs },
61
+ ...mobile?.menuMax !== void 0 && { menuMax: mobile.menuMax },
62
+ ...mobile?.moreLabel !== void 0 && { moreLabel: mobile.moreLabel },
63
+ ...moreExtra !== void 0 && { moreExtra },
64
+ ...getScrollElement !== void 0 && { getScrollElement }
65
+ };
66
+ }, [config, mobile, moreExtra, getScrollElement]);
67
+ return { sections, mobileNav };
68
+ }
69
+ export {
70
+ useNav
71
+ };
@@ -1,17 +1,15 @@
1
- import type { ReactNode } from 'react';
2
- export type BreadcrumbLinkRenderer = (href: string, label: string) => ReactNode;
3
- export declare function AppBreadcrumbs({ section, parent, parentHref, renderBreadcrumbLink, page, }: {
1
+ import type { NavAnchor } from '../nav/types.js';
2
+ export declare function AppBreadcrumbs({ section, parent, parentAnchor, parentHref, page, }: {
4
3
  section?: string;
5
4
  /** Parent item label — shown when the active page is a nested child (e.g. "Dashboard"). */
6
5
  parent?: string | undefined;
7
- /** Parent item href — when provided, the parent label renders as a clickable link. */
8
- parentHref?: string | undefined;
9
6
  /**
10
- * Optional router link renderer for the parent breadcrumb segment. When provided, the parent
11
- * label is rendered through this callback instead of a plain `<a href>`, enabling client-side
12
- * navigation (e.g. TanStack `<Link>`).
7
+ * The parent destination's router anchor (`SidebarItem.Anchor`), so the crumb navigates
8
+ * client-side. basalt still owns every pixel of the crumb — the anchor only hosts the label.
13
9
  */
14
- renderBreadcrumbLink?: BreadcrumbLinkRenderer | undefined;
10
+ parentAnchor?: NavAnchor | undefined;
11
+ /** Parent item href — the no-router fallback; ignored when `parentAnchor` is present. */
12
+ parentHref?: string | undefined;
15
13
  page?: string;
16
14
  }): import("react").JSX.Element | null;
17
15
  //# sourceMappingURL=app-breadcrumbs.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/shell/app-breadcrumbs.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAGrD,MAAM,MAAM,sBAAsB,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,SAAS,CAAA;AAiB/E,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,UAAU,EACV,oBAAoB,EACpB,IAAI,GACL,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B,sFAAsF;IACtF,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAA;IACzD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,sCAqCA"}
1
+ {"version":3,"file":"app-breadcrumbs.d.ts","sourceRoot":"","sources":["../../src/shell/app-breadcrumbs.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAkB7C,wBAAgB,cAAc,CAAC,EAC7B,OAAO,EACP,MAAM,EACN,YAAY,EACZ,UAAU,EACV,IAAI,GACL,EAAE;IACD,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,2FAA2F;IAC3F,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC3B;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,GAAG,SAAS,CAAA;IACpC,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,sCAyCA"}
@@ -13,8 +13,8 @@ const currentStyle = {
13
13
  function AppBreadcrumbs({
14
14
  section,
15
15
  parent,
16
+ parentAnchor,
16
17
  parentHref,
17
- renderBreadcrumbLink,
18
18
  page
19
19
  }) {
20
20
  if (!page) return null;
@@ -23,11 +23,15 @@ function AppBreadcrumbs({
23
23
  /* @__PURE__ */ jsx(Text, { style: crumbStyle, truncate: true, children: section }),
24
24
  /* @__PURE__ */ jsx(Text, { style: separatorStyle, children: "/" })
25
25
  ] }),
26
- parent && parentHref && /* @__PURE__ */ jsxs(Fragment, { children: [
27
- renderBreadcrumbLink ? renderBreadcrumbLink(parentHref, parent) : /* @__PURE__ */ jsx(Anchor, { style: crumbStyle, underline: "never", href: parentHref, truncate: true, children: parent }),
26
+ parent && parentAnchor && /* @__PURE__ */ jsxs(Fragment, { children: [
27
+ /* @__PURE__ */ jsx(Anchor, { style: crumbStyle, underline: "never", component: parentAnchor, truncate: true, children: parent }),
28
28
  /* @__PURE__ */ jsx(Text, { style: separatorStyle, children: "/" })
29
29
  ] }),
30
- parent && !parentHref && /* @__PURE__ */ jsxs(Fragment, { children: [
30
+ parent && !parentAnchor && parentHref && /* @__PURE__ */ jsxs(Fragment, { children: [
31
+ /* @__PURE__ */ jsx(Anchor, { style: crumbStyle, underline: "never", href: parentHref, truncate: true, children: parent }),
32
+ /* @__PURE__ */ jsx(Text, { style: separatorStyle, children: "/" })
33
+ ] }),
34
+ parent && !parentAnchor && !parentHref && /* @__PURE__ */ jsxs(Fragment, { children: [
31
35
  /* @__PURE__ */ jsx(Text, { style: crumbStyle, truncate: true, children: parent }),
32
36
  /* @__PURE__ */ jsx(Text, { style: separatorStyle, children: "/" })
33
37
  ] }),
@@ -1,26 +1,25 @@
1
- import type { MouseEvent, ReactNode } from 'react';
2
- export type MobileNavItem = {
3
- key: string;
4
- label: string;
5
- icon: ReactNode;
6
- href?: string;
7
- active?: boolean;
8
- onClick?: (e: MouseEvent) => void;
1
+ import type { ReactElement } from 'react';
2
+ import type { MobileNavConfig, MobileNavModel } from '../nav/types.js';
3
+ import type { BasaltAccountProps } from './account-types.js';
4
+ import type { SettingsMenuItem } from './index.js';
5
+ export type MobileNavProps = {
6
+ /** The projection from `projectMobileNav` — `BasaltShell` builds it, memoized. */
7
+ model: MobileNavModel;
8
+ config?: MobileNavConfig | undefined;
9
+ /** Rendered as FLAT ROWS in the More surface, never by mounting `SidebarAccount` (which opens
10
+ * its own `Menu` — a menu inside a menu). This is what makes the mobile sidebar drawer
11
+ * deletable: everything it used to hold is reachable from More. */
12
+ account?: BasaltAccountProps | undefined;
13
+ settingsMenuItems?: SettingsMenuItem[] | undefined;
9
14
  };
10
- export type MobileNavSection = {
11
- key: string;
12
- label: string;
13
- icon: ReactNode;
14
- active: boolean;
15
- items: MobileNavItem[];
16
- };
17
- /** Renders a single sheet row. The consumer's router `Link` lives here; `active` is precomputed. */
18
- export type MobileNavLinkRenderer = (item: MobileNavItem, opts: {
19
- active: boolean;
20
- }) => ReactNode;
21
- export declare function MobileNav({ sections, onOpenMore, renderNavLink, }: {
22
- sections: MobileNavSection[];
23
- onOpenMore: () => void;
24
- renderNavLink?: MobileNavLinkRenderer;
25
- }): import("react").JSX.Element;
15
+ /**
16
+ * How many rows `account` contributes to the More surface — DELEGATED to `accountRows` rather than
17
+ * re-derived, because `BasaltShell` needs this number BEFORE the projection runs (it feeds
18
+ * `extraMoreRows`, which picks `menu` vs `sheet` against `menuMax`) while only this module knows
19
+ * how many rows an account actually expands into. Two independent counts is how a "1 row" account
20
+ * shipped a 9-row menu into headroom sized for 6, and how a `loading` account — which renders NO
21
+ * rows — still conjured a More slot that opened empty.
22
+ */
23
+ export declare function accountRowCount(account: BasaltAccountProps | undefined): number;
24
+ export declare function MobileNav({ model, config, account, settingsMenuItems, }: MobileNavProps): ReactElement;
26
25
  //# sourceMappingURL=app-mobile-nav.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app-mobile-nav.d.ts","sourceRoot":"","sources":["../../src/shell/app-mobile-nav.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGlD,MAAM,MAAM,aAAa,GAAG;IAC1B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAA;CAClC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,SAAS,CAAA;IACf,MAAM,EAAE,OAAO,CAAA;IACf,KAAK,EAAE,aAAa,EAAE,CAAA;CACvB,CAAA;AAED,oGAAoG;AACpG,MAAM,MAAM,qBAAqB,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,KAAK,SAAS,CAAA;AAwBjG,wBAAgB,SAAS,CAAC,EACxB,QAAQ,EACR,UAAU,EACV,aAAa,GACd,EAAE;IACD,QAAQ,EAAE,gBAAgB,EAAE,CAAA;IAC5B,UAAU,EAAE,MAAM,IAAI,CAAA;IACtB,aAAa,CAAC,EAAE,qBAAqB,CAAA;CACtC,+BA+EA"}
1
+ {"version":3,"file":"app-mobile-nav.d.ts","sourceRoot":"","sources":["../../src/shell/app-mobile-nav.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAc,YAAY,EAAa,MAAM,OAAO,CAAA;AAChE,OAAO,KAAK,EACV,eAAe,EAEf,cAAc,EAGf,MAAM,cAAc,CAAA;AACrB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,KAAK,E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