@charcuterie/ui 3.22.0 → 3.24.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.
- package/README.md +11 -0
- package/dist/Board/Board.d.ts +6 -3
- package/dist/Board/Board.d.ts.map +1 -1
- package/dist/Board/Board.js +19 -1
- package/dist/Board/Board.js.map +1 -1
- package/dist/Board/BoardCard.d.ts +42 -7
- package/dist/Board/BoardCard.d.ts.map +1 -1
- package/dist/Board/BoardCard.js +54 -8
- package/dist/Board/BoardCard.js.map +1 -1
- package/dist/Board/useBoardDrag.d.ts +15 -1
- package/dist/Board/useBoardDrag.d.ts.map +1 -1
- package/dist/Board/useBoardDrag.js +3 -3
- package/dist/Board/useBoardDrag.js.map +1 -1
- package/dist/Nav/Nav.d.ts +167 -0
- package/dist/Nav/Nav.d.ts.map +1 -0
- package/dist/Nav/Nav.js +165 -0
- package/dist/Nav/Nav.js.map +1 -0
- package/dist/Nav/NavLink.d.ts +43 -0
- package/dist/Nav/NavLink.d.ts.map +1 -0
- package/dist/Nav/NavLink.js +111 -0
- package/dist/Nav/NavLink.js.map +1 -0
- package/dist/Nav/navItems.d.ts +67 -0
- package/dist/Nav/navItems.d.ts.map +1 -0
- package/dist/Nav/navItems.js +104 -0
- package/dist/Nav/navItems.js.map +1 -0
- package/dist/Nav/useNavLayout.d.ts +86 -0
- package/dist/Nav/useNavLayout.d.ts.map +1 -0
- package/dist/Nav/useNavLayout.js +114 -0
- package/dist/Nav/useNavLayout.js.map +1 -0
- package/dist/NavBar/NavBar.d.ts +37 -111
- package/dist/NavBar/NavBar.d.ts.map +1 -1
- package/dist/NavBar/NavBar.js +30 -110
- package/dist/NavBar/NavBar.js.map +1 -1
- package/dist/ReorderList/ReorderList.d.ts +131 -0
- package/dist/ReorderList/ReorderList.d.ts.map +1 -0
- package/dist/ReorderList/ReorderList.js +154 -0
- package/dist/ReorderList/ReorderList.js.map +1 -0
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/Board/Board.mdx +25 -2
- package/src/Board/Board.stories.tsx +52 -1
- package/src/Board/Board.test.tsx +82 -0
- package/src/Board/Board.tsx +24 -4
- package/src/Board/BoardCard.tsx +103 -21
- package/src/Board/boardMoveHandleContainer.test.ts +54 -0
- package/src/Board/useBoardDrag.ts +17 -2
- package/src/Nav/Nav.mdx +169 -0
- package/src/Nav/Nav.stories.tsx +402 -0
- package/src/Nav/Nav.test.tsx +338 -0
- package/src/Nav/Nav.tsx +406 -0
- package/src/Nav/NavLink.tsx +220 -0
- package/src/Nav/navItems.test.ts +163 -0
- package/src/Nav/navItems.ts +175 -0
- package/src/Nav/useNavLayout.ts +197 -0
- package/src/NavBar/NavBar.mdx +26 -0
- package/src/NavBar/NavBar.tsx +54 -240
- package/src/ReorderList/ReorderList.mdx +83 -0
- package/src/ReorderList/ReorderList.stories.tsx +149 -0
- package/src/ReorderList/ReorderList.test.tsx +190 -0
- package/src/ReorderList/ReorderList.tsx +331 -0
- package/src/index.ts +26 -1
- package/src/sourceRules.test.ts +26 -1
- package/dist/NavBar/NavBarLink.d.ts +0 -43
- package/dist/NavBar/NavBarLink.d.ts.map +0 -1
- package/dist/NavBar/NavBarLink.js +0 -67
- package/dist/NavBar/NavBarLink.js.map +0 -1
- package/dist/NavBar/navBarCurrent.d.ts +0 -37
- package/dist/NavBar/navBarCurrent.d.ts.map +0 -1
- package/dist/NavBar/navBarCurrent.js +0 -48
- package/dist/NavBar/navBarCurrent.js.map +0 -1
- package/src/NavBar/NavBarLink.tsx +0 -139
- package/src/NavBar/navBarCurrent.test.ts +0 -81
- package/src/NavBar/navBarCurrent.ts +0 -64
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { useMediaQuery } from "@charcuterie/logic";
|
|
2
|
+
import { matchMediaMatcher } from "@charcuterie/logic/browser";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
const DEFAULT_ICONS_BELOW = "64rem";
|
|
5
|
+
const DEFAULT_MENU_BELOW = "48rem";
|
|
6
|
+
const isNavLayoutMode = (value) => value === "auto" ||
|
|
7
|
+
value === "collapsed" ||
|
|
8
|
+
value === "expanded";
|
|
9
|
+
/**
|
|
10
|
+
* `localStorage`, wrapped both ways.
|
|
11
|
+
*
|
|
12
|
+
* It throws in a sandboxed iframe and in some privacy modes, and it
|
|
13
|
+
* does not exist at all while a page renders on a server — a rail
|
|
14
|
+
* that cannot remember its width should still have one.
|
|
15
|
+
*
|
|
16
|
+
* `@charcuterie/logic/browser`'s `localStoragePersistence` is the
|
|
17
|
+
* same shape and is deliberately **not** reused: it validates what
|
|
18
|
+
* it reads with `isColorSchemeMode`, so it answers `null` for every
|
|
19
|
+
* value this hook stores.
|
|
20
|
+
*/
|
|
21
|
+
const readStoredMode = (key) => {
|
|
22
|
+
try {
|
|
23
|
+
const stored = window.localStorage.getItem(key);
|
|
24
|
+
return isNavLayoutMode(stored) ? stored : null;
|
|
25
|
+
}
|
|
26
|
+
catch {
|
|
27
|
+
return null;
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
const writeStoredMode = (key, mode) => {
|
|
31
|
+
try {
|
|
32
|
+
window.localStorage.setItem(key, mode);
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
// A page that cannot persist still switches for this session.
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The width rule for a rail-shaped navigation, written once.
|
|
40
|
+
*
|
|
41
|
+
* Three states, and the app chooses none of them:
|
|
42
|
+
*
|
|
43
|
+
* | Width | Layout | What the app renders |
|
|
44
|
+
* | --- | --- | --- |
|
|
45
|
+
* | `>= iconsBelow` | `rail` | a `Rail` holding a `Nav` |
|
|
46
|
+
* | `>= menuBelow` | `railIcons` | the same `Rail`, narrower |
|
|
47
|
+
* | below that | `menu` | a trigger in the `Header` |
|
|
48
|
+
*
|
|
49
|
+
* ### Why the app still places it
|
|
50
|
+
*
|
|
51
|
+
* Because the placement genuinely differs and the rule does not. The
|
|
52
|
+
* `menu` state puts a control in the header — a different corner of
|
|
53
|
+
* the page from a side rail — and no amount of restyling moves an
|
|
54
|
+
* element across `Shell`'s grid. So the library owns *which* state
|
|
55
|
+
* is right, at what width, with what override and where the override
|
|
56
|
+
* is remembered; the app owns two `if`s. That is the half that was
|
|
57
|
+
* being rewritten per app, and rewritten differently: Docket's nav
|
|
58
|
+
* wraps to three lines on a phone, mail-sifter collapses at `40rem`,
|
|
59
|
+
* and QueuePilot at `760px`, all of them arrived at alone.
|
|
60
|
+
*
|
|
61
|
+
* ### The override does not reach the narrow state
|
|
62
|
+
*
|
|
63
|
+
* `expanded` on a 390px screen would be a 212px rail beside 178px of
|
|
64
|
+
* content. The width wins there, and the remembered choice is *kept*
|
|
65
|
+
* rather than cleared — rotating a tablet back to landscape restores
|
|
66
|
+
* the rail the reader asked for, instead of silently forgetting it.
|
|
67
|
+
*
|
|
68
|
+
* ### It is a hook, not CSS
|
|
69
|
+
*
|
|
70
|
+
* The same reason `usePanelItemSize` is: a media query can restyle a
|
|
71
|
+
* rail, but it cannot move a control into the header, and it cannot
|
|
72
|
+
* tell the trigger whether to render at all. A resize re-renders;
|
|
73
|
+
* a scheme or density change still does not.
|
|
74
|
+
*/
|
|
75
|
+
export const useNavLayout = ({ iconsBelow = DEFAULT_ICONS_BELOW, menuBelow = DEFAULT_MENU_BELOW, storageKey, } = {}) => {
|
|
76
|
+
// Read once, lazily — a `useState` initialiser, so the stored
|
|
77
|
+
// choice is in place for the first paint and the rail does not
|
|
78
|
+
// open wide and then snap shut.
|
|
79
|
+
const [mode, setStoredMode] = useState(() => (storageKey === undefined
|
|
80
|
+
? null
|
|
81
|
+
: readStoredMode(storageKey)) ?? "auto");
|
|
82
|
+
const { isMatching: isBelowMenu } = useMediaQuery({
|
|
83
|
+
matcher: matchMediaMatcher(`(width < ${menuBelow})`),
|
|
84
|
+
});
|
|
85
|
+
const { isMatching: isBelowIcons } = useMediaQuery({
|
|
86
|
+
matcher: matchMediaMatcher(`(width < ${iconsBelow})`),
|
|
87
|
+
});
|
|
88
|
+
const setMode = (nextMode) => {
|
|
89
|
+
setStoredMode(nextMode);
|
|
90
|
+
if (storageKey !== undefined) {
|
|
91
|
+
writeStoredMode(storageKey, nextMode);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const autoLayout = isBelowIcons
|
|
95
|
+
? "railIcons"
|
|
96
|
+
: "rail";
|
|
97
|
+
const layout = isBelowMenu
|
|
98
|
+
? "menu"
|
|
99
|
+
: mode === "auto"
|
|
100
|
+
? autoLayout
|
|
101
|
+
: mode === "collapsed"
|
|
102
|
+
? "railIcons"
|
|
103
|
+
: "rail";
|
|
104
|
+
return {
|
|
105
|
+
isCollapsed: layout === "railIcons",
|
|
106
|
+
layout,
|
|
107
|
+
mode,
|
|
108
|
+
setMode,
|
|
109
|
+
toggle: () => {
|
|
110
|
+
setMode(layout === "rail" ? "collapsed" : "expanded");
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=useNavLayout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useNavLayout.js","sourceRoot":"","sources":["../../src/Nav/useNavLayout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AA2DhC,MAAM,mBAAmB,GAAG,OAAO,CAAA;AAEnC,MAAM,kBAAkB,GAAG,OAAO,CAAA;AAElC,MAAM,eAAe,GAAG,CACtB,KAAoB,EACI,EAAE,CAC1B,KAAK,KAAK,MAAM;IAChB,KAAK,KAAK,WAAW;IACrB,KAAK,KAAK,UAAU,CAAA;AAEtB;;;;;;;;;;;GAWG;AACH,MAAM,cAAc,GAAG,CACrB,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,QAAuB,EAAE,EAAE;QAC1C,aAAa,CAAC,QAAQ,CAAC,CAAA;QAEvB,IAAI,UAAU,KAAK,SAAS,EAAE,CAAC;YAC7B,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAA;QACvC,CAAC;IACH,CAAC,CAAA;IAED,MAAM,UAAU,GAAsB,YAAY;QAChD,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,MAAM,CAAA;IAEV,MAAM,MAAM,GAAsB,WAAW;QAC3C,CAAC,CAAC,MAAM;QACR,CAAC,CAAC,IAAI,KAAK,MAAM;YACf,CAAC,CAAC,UAAU;YACZ,CAAC,CAAC,IAAI,KAAK,WAAW;gBACpB,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,MAAM,CAAA;IAEd,OAAO;QACL,WAAW,EAAE,MAAM,KAAK,WAAW;QACnC,MAAM;QACN,IAAI;QACJ,OAAO;QACP,MAAM,EAAE,GAAG,EAAE;YACX,OAAO,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;QACvD,CAAC;KACF,CAAA;AACH,CAAC,CAAA"}
|
package/dist/NavBar/NavBar.d.ts
CHANGED
|
@@ -1,130 +1,56 @@
|
|
|
1
1
|
import type { ControlSize } from "@charcuterie/tokens";
|
|
2
2
|
import type { Placement } from "@floating-ui/react";
|
|
3
3
|
import type { ReactNode } from "react";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
key?: string;
|
|
14
|
-
/** The visible text, and the accessible name. */
|
|
15
|
-
label: string;
|
|
16
|
-
};
|
|
4
|
+
import type { NavItem } from "../Nav/navItems.ts";
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Use `Nav`'s `NavItem`. Removed in the next major.
|
|
7
|
+
*/
|
|
8
|
+
export type NavBarItem = NavItem;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Use `NavProps` with `layout="bar"`. Removed in the
|
|
11
|
+
* next major.
|
|
12
|
+
*/
|
|
17
13
|
export type NavBarProps = {
|
|
18
14
|
className?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Where the reader is — `useLocation().pathname` in a
|
|
21
|
-
* react-router app. `aria-current="page"` is derived from it by
|
|
22
|
-
* `getIsCurrentHref`, which matches a parent path for its
|
|
23
|
-
* children and treats `/` as exact.
|
|
24
|
-
*
|
|
25
|
-
* Omitted means nothing is current, which is the honest answer on
|
|
26
|
-
* a route no destination owns.
|
|
27
|
-
*/
|
|
28
15
|
currentHref?: string;
|
|
29
|
-
/**
|
|
30
|
-
* **Initial** only, and the bar owns it from then on — the same
|
|
31
|
-
* uncontrolled contract every other component here has. It exists
|
|
32
|
-
* so a story (and a screenshot) can show the menu open; an app
|
|
33
|
-
* almost never passes it.
|
|
34
|
-
*/
|
|
35
16
|
isMenuVisible?: boolean;
|
|
36
17
|
items: readonly NavBarItem[];
|
|
37
|
-
/**
|
|
38
|
-
* Required, and it becomes the `<nav>`'s `aria-label`. Two unnamed
|
|
39
|
-
* navigation landmarks in one page is axe's `landmark-unique`, and
|
|
40
|
-
* more to the point it is a screen reader announcing "navigation"
|
|
41
|
-
* twice with no way to tell which is the main one.
|
|
42
|
-
*/
|
|
43
18
|
label: string;
|
|
44
|
-
/**
|
|
45
|
-
* Where the trigger sits in the bar's track once the row has
|
|
46
|
-
* folded. `"end"` when the header puts its own actions at the
|
|
47
|
-
* far edge, so the fold control joins them instead of hugging
|
|
48
|
-
* the wordmark with the whole track empty after it.
|
|
49
|
-
*
|
|
50
|
-
* It reaches **only** the folded row, which holds exactly one
|
|
51
|
-
* item — so it cannot disturb where the links sit when the bar
|
|
52
|
-
* is whole, and there is deliberately no prop that can.
|
|
53
|
-
*/
|
|
54
19
|
menuAlign?: "end" | "start";
|
|
55
|
-
/**
|
|
56
|
-
* The collapsed trigger's glyph. **No default** — the library
|
|
57
|
-
* ships no icons, and `☰` renders as nothing where the font lacks
|
|
58
|
-
* it. With no icon the trigger is a text button reading
|
|
59
|
-
* `menuLabel`, which works everywhere.
|
|
60
|
-
*/
|
|
61
20
|
menuIcon?: ReactNode;
|
|
62
|
-
/**
|
|
63
|
-
* Names the trigger and, through it, the panel it opens. A
|
|
64
|
-
* `role="dialog"` takes no accessible name from its content.
|
|
65
|
-
*/
|
|
66
21
|
menuLabel?: string;
|
|
67
22
|
menuPlacement?: Placement;
|
|
68
23
|
size?: ControlSize;
|
|
69
24
|
};
|
|
70
25
|
/**
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
* the menu, when it opens, is the complete list in the product's own
|
|
100
|
-
* order.
|
|
101
|
-
*
|
|
102
|
-
* ## Measured, not breakpointed
|
|
103
|
-
*
|
|
104
|
-
* There is no `collapseAt` prop and no media query. The bar reads
|
|
105
|
-
* the width its links actually have and folds when their sum stops
|
|
106
|
-
* fitting, so a longer label, a tenth destination, a
|
|
107
|
-
* `data-density="kiosk"` or a reader at 175% browser zoom each move
|
|
108
|
-
* the fold on their own. A hardcoded pixel number is wrong the first
|
|
109
|
-
* time any of those changes — mux-magic collapses at `480px` and
|
|
110
|
-
* plex-channels at `760px`, and neither number has a reason.
|
|
111
|
-
*
|
|
112
|
-
* ⚠️ **The bar must not be sized by its own contents.** It measures
|
|
113
|
-
* its own box to decide what to draw in it, so a container that
|
|
114
|
-
* shrink-wraps makes the answer its own input: put it in a
|
|
115
|
-
* `minmax(0, 1fr)` grid track or a `flex-1 min-w-0` row. The root
|
|
116
|
-
* carries `min-w-0 flex-1` for the flex case; a grid track is the
|
|
117
|
-
* caller's to declare. Same trap `useAdaptiveColumns` documents from
|
|
118
|
-
* the other end.
|
|
119
|
-
*
|
|
120
|
-
* ## Mounted exactly once
|
|
121
|
-
*
|
|
122
|
-
* A destination is in the bar or in the panel, never both. The
|
|
123
|
-
* fleet's habit is to render the whole nav twice and hide one copy
|
|
124
|
-
* with `hidden md:flex` — mux-magic's `PageHeader` across two
|
|
125
|
-
* ~55-line blocks, mail-sifter's `TriageQueue` again — which puts
|
|
126
|
-
* every link in the DOM at every width, so an agent driving the page
|
|
127
|
-
* finds two of each and cannot tell which one a human can see.
|
|
26
|
+
* @deprecated Use `Nav` with `layout="bar"` — which is `Nav`'s
|
|
27
|
+
* default, so `<Nav activeHref={…} items={…} label="Main" />` is the
|
|
28
|
+
* whole migration. **Removed in the next major.**
|
|
29
|
+
*
|
|
30
|
+
* This is now a thin adapter over `Nav` and keeps every behaviour it
|
|
31
|
+
* shipped with: the measured whole-row fold, the real `<a href>` in
|
|
32
|
+
* both the bar and the panel, and the same props under the same
|
|
33
|
+
* names. Only two things differ, and both are fixes:
|
|
34
|
+
*
|
|
35
|
+
* 1. `currentHref` is `activeHref` on `Nav`.
|
|
36
|
+
* 2. **Two items can no longer both be current.** This component
|
|
37
|
+
* asked the question once per item, so a bar holding `/settings`
|
|
38
|
+
* and `/settings/labels` marked *both* while the reader was on
|
|
39
|
+
* the deeper one — against its own decision record, which says a
|
|
40
|
+
* nav with two current items has stopped saying anything. `Nav`
|
|
41
|
+
* takes the deepest match. If an app was relying on the parent
|
|
42
|
+
* also lighting up, it was relying on a defect.
|
|
43
|
+
*
|
|
44
|
+
* ## Why it went away
|
|
45
|
+
*
|
|
46
|
+
* It answered half the question. A horizontal row that folds is one
|
|
47
|
+
* shape an app's destinations take; a labelled side rail, a
|
|
48
|
+
* collapsed icon rail and a Narrow-View bottom strip are the others,
|
|
49
|
+
* and this component could not become any of them — so an app that
|
|
50
|
+
* wanted a rail was back to hand-rolling, which is the state this
|
|
51
|
+
* was built to end. `Nav` is the same list drawn in whichever of the
|
|
52
|
+
* five places fits, and `useNavLayout` is the width rule that says
|
|
53
|
+
* which.
|
|
128
54
|
*/
|
|
129
55
|
export declare const NavBar: ({ className, currentHref, isMenuVisible, items, label, menuAlign, menuIcon, menuLabel, menuPlacement, size, }: NavBarProps) => ReactNode;
|
|
130
56
|
//# sourceMappingURL=NavBar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../src/NavBar/NavBar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NavBar.d.ts","sourceRoot":"","sources":["../../src/NavBar/NavBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGtC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,CAAA;AAEhC;;;GAGG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,KAAK,EAAE,SAAS,UAAU,EAAE,CAAA;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,CAAA;IAC3B,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,SAAS,CAAA;IACzB,IAAI,CAAC,EAAE,WAAW,CAAA;CACnB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,eAAO,MAAM,MAAM,GAAI,+GAWpB,WAAW,KAAG,SAchB,CAAA"}
|
package/dist/NavBar/NavBar.js
CHANGED
|
@@ -1,114 +1,34 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import { Button } from "../Button/Button.js";
|
|
4
|
-
import { IconButton } from "../IconButton/IconButton.js";
|
|
5
|
-
import { usePanelItemSize } from "../Overlay/usePanelItemSize.js";
|
|
6
|
-
import { Popover } from "../Popover/Popover.js";
|
|
7
|
-
import { useToolbarOverflow } from "../Toolbar/useToolbarOverflow.js";
|
|
8
|
-
import { toClassName } from "../toClassName.js";
|
|
9
|
-
import { NavBarLink } from "./NavBarLink.js";
|
|
10
|
-
import { getIsCurrentHref } from "./navBarCurrent.js";
|
|
2
|
+
import { Nav } from "../Nav/Nav.js";
|
|
11
3
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
* the menu, when it opens, is the complete list in the product's own
|
|
41
|
-
* order.
|
|
42
|
-
*
|
|
43
|
-
* ## Measured, not breakpointed
|
|
44
|
-
*
|
|
45
|
-
* There is no `collapseAt` prop and no media query. The bar reads
|
|
46
|
-
* the width its links actually have and folds when their sum stops
|
|
47
|
-
* fitting, so a longer label, a tenth destination, a
|
|
48
|
-
* `data-density="kiosk"` or a reader at 175% browser zoom each move
|
|
49
|
-
* the fold on their own. A hardcoded pixel number is wrong the first
|
|
50
|
-
* time any of those changes — mux-magic collapses at `480px` and
|
|
51
|
-
* plex-channels at `760px`, and neither number has a reason.
|
|
52
|
-
*
|
|
53
|
-
* ⚠️ **The bar must not be sized by its own contents.** It measures
|
|
54
|
-
* its own box to decide what to draw in it, so a container that
|
|
55
|
-
* shrink-wraps makes the answer its own input: put it in a
|
|
56
|
-
* `minmax(0, 1fr)` grid track or a `flex-1 min-w-0` row. The root
|
|
57
|
-
* carries `min-w-0 flex-1` for the flex case; a grid track is the
|
|
58
|
-
* caller's to declare. Same trap `useAdaptiveColumns` documents from
|
|
59
|
-
* the other end.
|
|
60
|
-
*
|
|
61
|
-
* ## Mounted exactly once
|
|
62
|
-
*
|
|
63
|
-
* A destination is in the bar or in the panel, never both. The
|
|
64
|
-
* fleet's habit is to render the whole nav twice and hide one copy
|
|
65
|
-
* with `hidden md:flex` — mux-magic's `PageHeader` across two
|
|
66
|
-
* ~55-line blocks, mail-sifter's `TriageQueue` again — which puts
|
|
67
|
-
* every link in the DOM at every width, so an agent driving the page
|
|
68
|
-
* finds two of each and cannot tell which one a human can see.
|
|
4
|
+
* @deprecated Use `Nav` with `layout="bar"` — which is `Nav`'s
|
|
5
|
+
* default, so `<Nav activeHref={…} items={…} label="Main" />` is the
|
|
6
|
+
* whole migration. **Removed in the next major.**
|
|
7
|
+
*
|
|
8
|
+
* This is now a thin adapter over `Nav` and keeps every behaviour it
|
|
9
|
+
* shipped with: the measured whole-row fold, the real `<a href>` in
|
|
10
|
+
* both the bar and the panel, and the same props under the same
|
|
11
|
+
* names. Only two things differ, and both are fixes:
|
|
12
|
+
*
|
|
13
|
+
* 1. `currentHref` is `activeHref` on `Nav`.
|
|
14
|
+
* 2. **Two items can no longer both be current.** This component
|
|
15
|
+
* asked the question once per item, so a bar holding `/settings`
|
|
16
|
+
* and `/settings/labels` marked *both* while the reader was on
|
|
17
|
+
* the deeper one — against its own decision record, which says a
|
|
18
|
+
* nav with two current items has stopped saying anything. `Nav`
|
|
19
|
+
* takes the deepest match. If an app was relying on the parent
|
|
20
|
+
* also lighting up, it was relying on a defect.
|
|
21
|
+
*
|
|
22
|
+
* ## Why it went away
|
|
23
|
+
*
|
|
24
|
+
* It answered half the question. A horizontal row that folds is one
|
|
25
|
+
* shape an app's destinations take; a labelled side rail, a
|
|
26
|
+
* collapsed icon rail and a Narrow-View bottom strip are the others,
|
|
27
|
+
* and this component could not become any of them — so an app that
|
|
28
|
+
* wanted a rail was back to hand-rolling, which is the state this
|
|
29
|
+
* was built to end. `Nav` is the same list drawn in whichever of the
|
|
30
|
+
* five places fits, and `useNavLayout` is the width rule that says
|
|
31
|
+
* which.
|
|
69
32
|
*/
|
|
70
|
-
export const NavBar = ({ className, currentHref, isMenuVisible
|
|
71
|
-
const itemKeys = items.map((item) => item.key ?? item.href);
|
|
72
|
-
const { containerRef, trackItem, visibleCount } = useToolbarOverflow({ itemKeys });
|
|
73
|
-
/**
|
|
74
|
-
* All or nothing. `visibleCount` is the progressive answer and
|
|
75
|
-
* this is the only thing read off it: the moment one link stops
|
|
76
|
-
* fitting, every link goes into the menu together.
|
|
77
|
-
*
|
|
78
|
-
* The hook's `trackTrigger` is deliberately not wired up, and the
|
|
79
|
-
* missing measurement costs nothing here. It exists so a
|
|
80
|
-
* progressive bar can ask "how many fit **beside a trigger**",
|
|
81
|
-
* which is a question this bar never asks: either every link fits
|
|
82
|
-
* with no trigger at all, or the row is one trigger and nothing
|
|
83
|
-
* else. `chooseVisibleCount` tests the whole-row case first and
|
|
84
|
-
* with the trigger costed at zero, so that branch is exact.
|
|
85
|
-
*/
|
|
86
|
-
const isCollapsed = visibleCount < items.length;
|
|
87
|
-
const { hide, isVisible, toggle } = useVisibility({
|
|
88
|
-
isVisible: isMenuVisible,
|
|
89
|
-
});
|
|
90
|
-
const panelItemSize = usePanelItemSize("lg");
|
|
91
|
-
const renderLink = (item, placement) => (_jsx(NavBarLink, { isCurrent: getIsCurrentHref({
|
|
92
|
-
currentHref,
|
|
93
|
-
href: item.href,
|
|
94
|
-
}), item: item, onNavigate: placement === "panel" ? hide : undefined, placement: placement, size: placement === "bar" ? size : panelItemSize, trackElement: placement === "bar" ? trackItem : undefined }, item.key ?? item.href));
|
|
95
|
-
const trigger = menuIcon === undefined ? (_jsx(Button, { appearance: "ghost", intent: "neutral", onClick: toggle, size: size, children: menuLabel })) : (_jsx(IconButton, { appearance: "ghost", intent: "neutral", label: menuLabel, onClick: toggle, size: size, children: menuIcon }));
|
|
96
|
-
return (_jsx("nav", { "aria-label": label, className: toClassName("flex min-w-0 flex-1 items-center gap-1",
|
|
97
|
-
// Two written-out entries rather than one interpolated
|
|
98
|
-
// string: Tailwind's scanner cannot see a class that
|
|
99
|
-
// exists only at runtime.
|
|
100
|
-
isCollapsed && menuAlign === "end"
|
|
101
|
-
? "justify-end"
|
|
102
|
-
: "justify-start", className), ref: containerRef, children: isCollapsed ? (_jsx(Popover
|
|
103
|
-
// The default panel is `max-w-xs p-3` — sized for a
|
|
104
|
-
// paragraph of prose. This one holds full-bleed rows that
|
|
105
|
-
// bring their own inset, so the padding shrinks to the
|
|
106
|
-
// gutter around them and the width is left to the list.
|
|
107
|
-
, {
|
|
108
|
-
// The default panel is `max-w-xs p-3` — sized for a
|
|
109
|
-
// paragraph of prose. This one holds full-bleed rows that
|
|
110
|
-
// bring their own inset, so the padding shrinks to the
|
|
111
|
-
// gutter around them and the width is left to the list.
|
|
112
|
-
className: "max-w-none p-1", heading: menuLabel, isVisible: isVisible, onDismiss: hide, placement: menuPlacement, trigger: trigger, children: _jsx("ul", { className: "flex min-w-48 list-none flex-col gap-0.5", children: items.map((item) => (_jsx("li", { children: renderLink(item, "panel") }, item.key ?? item.href))) }) })) : (items.map((item) => renderLink(item, "bar"))) }));
|
|
113
|
-
};
|
|
33
|
+
export const NavBar = ({ className, currentHref, isMenuVisible, items, label, menuAlign, menuIcon, menuLabel, menuPlacement, size, }) => (_jsx(Nav, { activeHref: currentHref, className: className, isMenuVisible: isMenuVisible, items: items, label: label, layout: "bar", menuAlign: menuAlign, menuIcon: menuIcon, menuLabel: menuLabel, menuPlacement: menuPlacement, size: size }));
|
|
114
34
|
//# sourceMappingURL=NavBar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../src/NavBar/NavBar.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"NavBar.js","sourceRoot":"","sources":["../../src/NavBar/NavBar.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,GAAG,EAAE,MAAM,eAAgB,CAAA;AAyBpC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,CAAC,EACrB,SAAS,EACT,WAAW,EACX,aAAa,EACb,KAAK,EACL,KAAK,EACL,SAAS,EACT,QAAQ,EACR,SAAS,EACT,aAAa,EACb,IAAI,GACQ,EAAa,EAAE,CAAC,CAC5B,KAAC,GAAG,IACF,UAAU,EAAE,WAAW,EACvB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAC,KAAK,EACZ,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,aAAa,EAC5B,IAAI,EAAE,IAAI,GACV,CACH,CAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from "react";
|
|
2
|
+
export type ReorderListItem = {
|
|
3
|
+
key: string;
|
|
4
|
+
/**
|
|
5
|
+
* Plain text, and it is not optional. Every accessible name the
|
|
6
|
+
* component writes is built from it — "Move <label> earlier" —
|
|
7
|
+
* and so is the sentence the live region reads after a move. A
|
|
8
|
+
* button announced as "↑" names nothing.
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
export type ReorderListRenderArguments<TItem extends ReorderListItem> = {
|
|
13
|
+
/**
|
|
14
|
+
* Spread onto whatever the host wants the drag to start FROM.
|
|
15
|
+
* Absent — as an empty object — when the list is too short to
|
|
16
|
+
* reorder, so a one-row list has no dead handle on it.
|
|
17
|
+
*
|
|
18
|
+
* It is a **handle**, never the whole row: a row holds links,
|
|
19
|
+
* and a link is draggable already.
|
|
20
|
+
*/
|
|
21
|
+
gripProps: {
|
|
22
|
+
onPointerDown?: (event: {
|
|
23
|
+
clientX: number;
|
|
24
|
+
clientY: number;
|
|
25
|
+
currentTarget: EventTarget & Element;
|
|
26
|
+
pointerId: number;
|
|
27
|
+
}) => void;
|
|
28
|
+
style?: {
|
|
29
|
+
touchAction: "none";
|
|
30
|
+
};
|
|
31
|
+
title?: string;
|
|
32
|
+
};
|
|
33
|
+
index: number;
|
|
34
|
+
isDragged: boolean;
|
|
35
|
+
isFirst: boolean;
|
|
36
|
+
isLast: boolean;
|
|
37
|
+
item: TItem;
|
|
38
|
+
/**
|
|
39
|
+
* The KEYBOARD path, and it is the primary one. The host draws
|
|
40
|
+
* the two buttons because only the host knows where they sit in
|
|
41
|
+
* its own row; the component supplies what they do and whether
|
|
42
|
+
* each end is disabled.
|
|
43
|
+
*/
|
|
44
|
+
moveBy: (offset: -1 | 1) => void;
|
|
45
|
+
/** 1-based, for printing. */
|
|
46
|
+
position: number;
|
|
47
|
+
};
|
|
48
|
+
export type ReorderListProps<TItem extends ReorderListItem> = {
|
|
49
|
+
className?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The container element. `ul` by default, because an ordered
|
|
52
|
+
* pile of rows is a list; `div` for a host whose own CSS grid
|
|
53
|
+
* owns the shape and would have to undo list semantics to get
|
|
54
|
+
* it.
|
|
55
|
+
*/
|
|
56
|
+
elementType?: "div" | "ol" | "ul";
|
|
57
|
+
/**
|
|
58
|
+
* The container element, for a host that needs it too.
|
|
59
|
+
*
|
|
60
|
+
* The component keeps its own hold on that element — the drag
|
|
61
|
+
* measures its rows off it — so this is MERGED rather than
|
|
62
|
+
* forwarded. Docket plays a FLIP animation off the same
|
|
63
|
+
* element, and without this the two uses would have to fight
|
|
64
|
+
* over one `ref`.
|
|
65
|
+
*/
|
|
66
|
+
elementRef?: Ref<HTMLElement>;
|
|
67
|
+
itemClassName?: string;
|
|
68
|
+
items: readonly TItem[];
|
|
69
|
+
/** The list's accessible name. */
|
|
70
|
+
label: string;
|
|
71
|
+
/**
|
|
72
|
+
* `fromIndex` and `toIndex` are both indexes into `items`, and
|
|
73
|
+
* `toIndex` is already corrected for the row's own removal — so
|
|
74
|
+
* a handler is `splice(from, 1)` then `splice(to, 0, row)` with
|
|
75
|
+
* no arithmetic of its own.
|
|
76
|
+
*/
|
|
77
|
+
onReorder: (fromIndex: number, toIndex: number) => void;
|
|
78
|
+
renderItem: (renderArguments: ReorderListRenderArguments<TItem>) => ReactNode;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* A vertical list whose rows can be put in a different order — by
|
|
82
|
+
* two buttons, or by dragging a handle.
|
|
83
|
+
*
|
|
84
|
+
* ### Why it is not a fourth hand-rolled reorder
|
|
85
|
+
*
|
|
86
|
+
* Docket wrote this twice: a subtask checklist on HTML5
|
|
87
|
+
* `draggable`, and a phase queue with the buttons and no drag at
|
|
88
|
+
* all. `Board` wrote a third, properly, on Pointer Events. Three
|
|
89
|
+
* implementations of one shape is the case the workspace's
|
|
90
|
+
* component rule exists for, so the geometry here is **`Board`'s
|
|
91
|
+
* own** — `useBoardDrag` with a single registered lane and the
|
|
92
|
+
* item selector pointed at this component's rows. Nothing about
|
|
93
|
+
* the measuring, the snapshot, the threshold or the pointer
|
|
94
|
+
* capture is written twice.
|
|
95
|
+
*
|
|
96
|
+
* ### The buttons are primary, the drag is the enhancement
|
|
97
|
+
*
|
|
98
|
+
* WCAG 2.5.7 requires a single-pointer alternative to any dragging
|
|
99
|
+
* movement, and the board's decision already argues the stronger
|
|
100
|
+
* version: the buttons are not a fallback bolted onto a drag, they
|
|
101
|
+
* are the only path that works from a keyboard, under a screen
|
|
102
|
+
* reader, or under a thumb in the Narrow View. So `renderItem`
|
|
103
|
+
* receives `moveBy` before it receives `gripProps`, and a host
|
|
104
|
+
* that draws no handle at all is a supported host.
|
|
105
|
+
*
|
|
106
|
+
* ### It takes no drag-and-drop dependency
|
|
107
|
+
*
|
|
108
|
+
* The board priced four libraries at 7–32 KB gzipped and took none
|
|
109
|
+
* of them, because a published library's dependency list is
|
|
110
|
+
* inherited by every consumer
|
|
111
|
+
* ([decision](../../../docs/decisions/2026-08-19-the-board-owns-the-move-and-takes-no-drag-and-drop-dependency.md)).
|
|
112
|
+
* This adds nothing to that arithmetic — it is the same 1.4 KB,
|
|
113
|
+
* called twice.
|
|
114
|
+
*
|
|
115
|
+
* ### `draggable="true"` is the instinct this replaces
|
|
116
|
+
*
|
|
117
|
+
* Native HTML5 drag-and-drop **does not fire on touch at all**, so
|
|
118
|
+
* the checklist Docket shipped on it cannot be reordered on the
|
|
119
|
+
* tablet its owner reads it on. Pointer Events are one code path
|
|
120
|
+
* for mouse, touch and pen, and `setPointerCapture` keeps the drag
|
|
121
|
+
* alive once the row has moved out from under the finger.
|
|
122
|
+
*
|
|
123
|
+
* ### What it deliberately does not do
|
|
124
|
+
*
|
|
125
|
+
* It renders no row, no handle, no buttons and no glyph. The host
|
|
126
|
+
* renders all four through `renderItem`, which is what lets one
|
|
127
|
+
* component serve a checklist, a queue and a card list whose CSS
|
|
128
|
+
* grids have nothing in common.
|
|
129
|
+
*/
|
|
130
|
+
export declare const ReorderList: <TItem extends ReorderListItem>({ className, elementRef, elementType, itemClassName, items, label, onReorder, renderItem, }: ReorderListProps<TItem>) => ReactNode;
|
|
131
|
+
//# sourceMappingURL=ReorderList.d.ts.map
|
|
@@ -0,0 +1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