cursedbelt 5.23.0 → 5.25.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 (79) hide show
  1. package/dist/react/components/DataTable/CardView.d.ts +6 -2
  2. package/dist/react/components/DataTable/CardView.d.ts.map +1 -1
  3. package/dist/react/components/DataTable/CardView.js +6 -5
  4. package/dist/react/components/DataTable/CardView.js.map +1 -1
  5. package/dist/react/components/DataTable/DataTable.d.ts +41 -1
  6. package/dist/react/components/DataTable/DataTable.d.ts.map +1 -1
  7. package/dist/react/components/DataTable/DataTable.js +130 -13
  8. package/dist/react/components/DataTable/DataTable.js.map +1 -1
  9. package/dist/react/deep-link/index.d.ts +1 -1
  10. package/dist/react/deep-link/index.d.ts.map +1 -1
  11. package/dist/react/deep-link/index.js.map +1 -1
  12. package/dist/react/deep-link/useDeepLink.d.ts +21 -15
  13. package/dist/react/deep-link/useDeepLink.d.ts.map +1 -1
  14. package/dist/react/deep-link/useDeepLink.js +8 -5
  15. package/dist/react/deep-link/useDeepLink.js.map +1 -1
  16. package/dist/react/file-tree/FileTree.d.ts +14 -1
  17. package/dist/react/file-tree/FileTree.d.ts.map +1 -1
  18. package/dist/react/file-tree/FileTree.js +2 -2
  19. package/dist/react/file-tree/FileTree.js.map +1 -1
  20. package/dist/react/file-tree/fileTree.css +8 -0
  21. package/dist/react/filter-rail/FilterRail.d.ts +31 -1
  22. package/dist/react/filter-rail/FilterRail.d.ts.map +1 -1
  23. package/dist/react/filter-rail/FilterRail.js +20 -5
  24. package/dist/react/filter-rail/FilterRail.js.map +1 -1
  25. package/dist/react/filter-rail/RailSection.d.ts +56 -0
  26. package/dist/react/filter-rail/RailSection.d.ts.map +1 -0
  27. package/dist/react/filter-rail/RailSection.js +108 -0
  28. package/dist/react/filter-rail/RailSection.js.map +1 -0
  29. package/dist/react/filter-rail/index.d.ts +2 -1
  30. package/dist/react/filter-rail/index.d.ts.map +1 -1
  31. package/dist/react/filter-rail/index.js +2 -1
  32. package/dist/react/filter-rail/index.js.map +1 -1
  33. package/dist/react/hooks/useScrollMemory.d.ts +6 -0
  34. package/dist/react/hooks/useScrollMemory.d.ts.map +1 -1
  35. package/dist/react/hooks/useScrollMemory.js +11 -0
  36. package/dist/react/hooks/useScrollMemory.js.map +1 -1
  37. package/dist/react/index.d.ts +2 -0
  38. package/dist/react/index.d.ts.map +1 -1
  39. package/dist/react/index.js +5 -0
  40. package/dist/react/index.js.map +1 -1
  41. package/dist/react/media-gallery/preferenceBus.d.ts +10 -0
  42. package/dist/react/media-gallery/preferenceBus.d.ts.map +1 -1
  43. package/dist/react/media-gallery/preferenceBus.js +24 -0
  44. package/dist/react/media-gallery/preferenceBus.js.map +1 -1
  45. package/dist/react/media-gallery/preferenceSync.d.ts.map +1 -1
  46. package/dist/react/media-gallery/preferenceSync.js +3 -0
  47. package/dist/react/media-gallery/preferenceSync.js.map +1 -1
  48. package/dist/react/nav/TopBar.d.ts +8 -1
  49. package/dist/react/nav/TopBar.d.ts.map +1 -1
  50. package/dist/react/nav/TopBar.js +2 -2
  51. package/dist/react/nav/TopBar.js.map +1 -1
  52. package/dist/styles-areas/analytics.css +11 -11
  53. package/dist/styles-areas/data-table.css +7 -7
  54. package/dist/styles-areas/filter-rail.css +6 -5
  55. package/dist/styles-utilities.css +15 -0
  56. package/package.json +2 -2
  57. package/src/react/components/DataTable/CardView.tsx +8 -1
  58. package/src/react/components/DataTable/DataTable.tsx +287 -17
  59. package/src/react/components/DataTable/selection.spec.tsx +189 -0
  60. package/src/react/deep-link/index.ts +1 -0
  61. package/src/react/deep-link/useDeepLink.spec.tsx +31 -0
  62. package/src/react/deep-link/useDeepLink.tsx +31 -11
  63. package/src/react/file-tree/FileTree.tsx +15 -1
  64. package/src/react/file-tree/fileTree.css +8 -0
  65. package/src/react/filter-rail/FilterRail.tsx +93 -26
  66. package/src/react/filter-rail/RailSection.spec.tsx +156 -0
  67. package/src/react/filter-rail/RailSection.tsx +216 -0
  68. package/src/react/filter-rail/index.ts +2 -0
  69. package/src/react/hooks/useScrollMemory.ts +11 -0
  70. package/src/react/index.ts +5 -0
  71. package/src/react/media-gallery/MediaGallery.spec.tsx +9 -3
  72. package/src/react/media-gallery/preferenceBus.ts +28 -0
  73. package/src/react/media-gallery/preferenceSync.ts +3 -0
  74. package/src/react/nav/TopBar.spec.tsx +11 -0
  75. package/src/react/nav/TopBar.tsx +9 -1
  76. package/src/styles-areas/analytics.css +11 -11
  77. package/src/styles-areas/data-table.css +7 -7
  78. package/src/styles-areas/filter-rail.css +6 -5
  79. package/src/styles-utilities.css +15 -0
@@ -34,6 +34,13 @@ export interface TopBarProps {
34
34
  items: readonly TopBarItem[];
35
35
  /** The trailing cluster: theme toggle, account menu. Never shrinks. */
36
36
  trailing?: ReactNode;
37
+ /**
38
+ * One control BEFORE the brand — a phone's way into the app's sidebar drawer (the owner's
39
+ * music report, 2026-09-28: *"there is a large horizontal scrolling header row and no sidebar
40
+ * popout"*). Top-left is where Gmail, Linear and Slack put it on a phone, so a reader finds it
41
+ * without being told. Never shrinks. Render it only where there is a sidebar to open.
42
+ */
43
+ leading?: ReactNode;
37
44
  /** The nav landmark's name. Default `'Places'`. */
38
45
  navLabel?: string;
39
46
  className?: string;
@@ -61,5 +68,5 @@ export interface TopBarProps {
61
68
  * `guardrails no-raw-nav` is the other half: a hand-rolled `<nav>` in app source fails the
62
69
  * app's gate, so the next header is this one.
63
70
  */
64
- export declare function TopBar({ brand, items, trailing, navLabel, className }: TopBarProps): import("react").JSX.Element;
71
+ export declare function TopBar({ brand, items, trailing, leading, navLabel, className }: TopBarProps): import("react").JSX.Element;
65
72
  //# sourceMappingURL=TopBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.d.ts","sourceRoot":"","sources":["../../../src/react/nav/TopBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAO7D,+FAA+F;AAC/F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,GAAG,IAAI,CAChC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,MAAM,CACjD,CAAC;AAEF,MAAM,WAAW,UAAU;IACzB,kBAAkB;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,0FAA0F;IAC1F,KAAK,EAAE,MAAM,CAAC;IACd,6FAA6F;IAC7F,IAAI,EAAE,SAAS,CAAC;IAChB,gEAAgE;IAChE,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,WAAW;IAC1B,+FAA+F;IAC/F,KAAK,EAAE;QAAE,IAAI,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,SAAS,CAAC,EAAE,eAAe,CAAA;KAAE,CAAC;IACrF,wFAAwF;IACxF,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,uEAAuE;IACvE,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAmB,EAAE,SAAS,EAAE,EAAE,WAAW,+BAkDtG"}
@@ -27,9 +27,9 @@ import { TAP_TARGET_SQUARE } from '../lib/tapTarget.js';
27
27
  * `guardrails no-raw-nav` is the other half: a hand-rolled `<nav>` in app source fails the
28
28
  * app's gate, so the next header is this one.
29
29
  */
30
- export function TopBar({ brand, items, trailing, navLabel = 'Places', className }) {
30
+ export function TopBar({ brand, items, trailing, leading, navLabel = 'Places', className }) {
31
31
  const fade = useScrollEdgeFade();
32
- return (_jsxs("header", { "data-cb-topbar": '', className: cn('flex w-full min-w-0 max-w-full items-center gap-2 px-3 py-1.5 md:gap-3 md:px-6', className), children: [_jsxs("a", { ...brand.linkProps, href: brand.href, "aria-label": brand.label, "data-cb-topbar-brand": '', className: cn('flex shrink-0 items-center gap-2 rounded-md px-1.5 py-1 font-semibold text-foreground', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', TAP_TARGET_SQUARE, 'md:pointer-coarse:w-auto'), children: [_jsx("span", { "aria-hidden": 'true', className: 'grid size-6 place-items-center [&_svg]:size-5', children: brand.icon }), _jsx("span", { "aria-hidden": 'true', className: 'hidden md:inline', children: brand.label })] }), _jsx("nav", { "aria-label": navLabel, "data-cb-topbar-nav": '', className: 'min-w-0 flex-1', style: fade.maskStyle, children: _jsx(ScrollArea, { axis: 'x', space: 'none', safeArea: false, scrollRef: fade.ref, onScroll: fade.onScroll, className: 'w-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden', children: _jsx("div", { className: 'flex w-max items-center gap-1', children: items.map((item) => (_jsx(TopBarLink, { item: item }, item.id))) }) }) }), trailing ? _jsx("div", { className: 'flex shrink-0 items-center gap-1', children: trailing }) : null] }));
32
+ return (_jsxs("header", { "data-cb-topbar": '', className: cn('flex w-full min-w-0 max-w-full items-center gap-2 px-3 py-1.5 md:gap-3 md:px-6', className), children: [leading ? _jsx("div", { className: 'flex shrink-0 items-center', children: leading }) : null, _jsxs("a", { ...brand.linkProps, href: brand.href, "aria-label": brand.label, "data-cb-topbar-brand": '', className: cn('flex shrink-0 items-center gap-2 rounded-md px-1.5 py-1 font-semibold text-foreground', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring', TAP_TARGET_SQUARE, 'md:pointer-coarse:w-auto'), children: [_jsx("span", { "aria-hidden": 'true', className: 'grid size-6 place-items-center [&_svg]:size-5', children: brand.icon }), _jsx("span", { "aria-hidden": 'true', className: 'hidden md:inline', children: brand.label })] }), _jsx("nav", { "aria-label": navLabel, "data-cb-topbar-nav": '', className: 'min-w-0 flex-1', style: fade.maskStyle, children: _jsx(ScrollArea, { axis: 'x', space: 'none', safeArea: false, scrollRef: fade.ref, onScroll: fade.onScroll, className: 'w-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden', children: _jsx("div", { className: 'flex w-max items-center gap-1', children: items.map((item) => (_jsx(TopBarLink, { item: item }, item.id))) }) }) }), trailing ? _jsx("div", { className: 'flex shrink-0 items-center gap-1', children: trailing }) : null] }));
33
33
  }
34
34
  function TopBarLink({ item }) {
35
35
  const words = Boolean(item.wordsBecause?.trim());
@@ -1 +1 @@
1
- {"version":3,"file":"TopBar.js","sourceRoot":"","sources":["../../../src/react/nav/TopBar.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAClE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AA0CxD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,UAAU,MAAM,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,GAAG,QAAQ,EAAE,SAAS,EAAe;IAC5F,MAAM,IAAI,GAAG,iBAAiB,EAAE,CAAC;IACjC,OAAO,CACL,oCACiB,EAAE,EACjB,SAAS,EAAE,EAAE,CAAC,gFAAgF,EAAE,SAAS,CAAC,aAE1G,gBACM,KAAK,CAAC,SAAS,EACnB,IAAI,EAAE,KAAK,CAAC,IAAI,gBACJ,KAAK,CAAC,KAAK,0BACF,EAAE,EACvB,SAAS,EAA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H,IAAI,CAAC,KAAK,kBACR,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,iBACjC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACzC,SAAS,EAAE,EAAE,CACX,wGAAwG,EACxG,yEAAyE,EACzE,iBAAiB,EACjB,KAAK,IAAI,0BAA0B,EACnC,IAAI,CAAC,MAAM;gBACT,CAAC,CAAC,0BAA0B;gBAC5B,CAAC,CAAC,4DAA4D,CACjE,aAED,8BAAkB,MAAM,EAAC,SAAS,EAAC,+CAA+C,YAC/E,IAAI,CAAC,IAAI,GACL,EACN,KAAK,CAAC,CAAC,CAAC,CACP,8BAAkB,MAAM,EAAC,SAAS,EAAC,sCAAsC,YACtE,IAAI,CAAC,KAAK,GACN,CACR,CAAC,CAAC,CAAC,IAAI,IACN,GACI,CACX,CAAC;AACJ,CAAC"}
@@ -18,13 +18,13 @@
18
18
  * after an app's responsive variant (task 2124). An app that imports every area gets exactly
19
19
  * what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
20
20
  * src/stylesAreas.spec.ts, which is also what fails when this file is stale.
21
- * 128 candidate(s).
21
+ * 132 candidate(s).
22
22
  *
23
23
  * Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
24
24
  * `bun run build` runs. The map of what is in which area, and why the areas are
25
25
  * import closures rather than a hand-written list, is scripts/styleAreas.ts.
26
26
  */
27
- @source inline("-m-1 -mt-6 -mx-1 -my-2.5 @3xl:block @3xl:hidden @xl:block @xl:hidden [&_svg]:size-3");
27
+ @source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @xl:block @xl:hidden [&_svg]:size-3");
28
28
  @source inline("[overflow-wrap:anywhere] active:cursor-grabbing appearance appearance-none");
29
29
  @source inline("bg-[var(--cb-frozen-bg)] bg-card/95 bg-gradient-to-t bg-muted/30 bg-muted/40 bg-muted/50");
30
30
  @source inline("border-0 border-accent-solid border-accent/60 border-field-error border-l border-r cursor-grab");
@@ -38,12 +38,12 @@
38
38
  @source inline("focus-within:border-field-ring focus-within:ring-2 focus-within:ring-field-ring/30 font-sans");
39
39
  @source inline("from-card h-[420px] has-[[aria-invalid=true]]:border-field-error hover:bg-background");
40
40
  @source inline("hover:bg-border hover:bg-muted/40 hover:border-field-ring hover:text-warning italic");
41
- @source inline("justify-self-end last:border-0 left-0 left-2.5 line-clamp-2 list-none max-h-64 max-h-[22rem]");
42
- @source inline("max-h-[40dvh] max-h-[65dvh] max-h-[85dvh] max-w-32 max-w-36 max-w-48 max-w-[180px] max-w-[240px]");
43
- @source inline("min-h-20 min-w-24 min-w-52 min-w-[5rem] min-w-[var(--anchor-width)] ml-1.5 mr-2 mt-1.5 mt-3 mt-4");
44
- @source inline("not-italic ordinal pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1 resize-none");
45
- @source inline("resize-y right-3 ring-field-error/30 rounded-l-xl rounded-r-xl rounded-t-xl self-center");
46
- @source inline("self-stretch shadow-[1px_0_0_0_var(--color-border)] shrink-[2] size-2 size-7 slide-in-from-top-1");
47
- @source inline("table-fixed text-accent-solid-foreground text-field-placeholder text-muted-foreground/60");
48
- @source inline("text-right text-success text-warning text-xl to-transparent top-2 top-3 tracking-wider");
49
- @source inline("transition-[transform,opacity] w-20 w-28 w-36 w-40 w-[352px]");
41
+ @source inline("justify-self-end last:border-0 left-0 left-11 left-2.5 line-clamp-2 list-none max-h-64");
42
+ @source inline("max-h-[22rem] max-h-[40dvh] max-h-[65dvh] max-h-[85dvh] max-w-32 max-w-36 max-w-48 max-w-[180px]");
43
+ @source inline("max-w-[240px] min-h-20 min-w-24 min-w-52 min-w-[5rem] min-w-[var(--anchor-width)] ml-1.5 mr-2");
44
+ @source inline("mt-1.5 mt-3 mt-4 not-italic ordinal pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1");
45
+ @source inline("resize-none resize-y right-3 ring-field-error/30 rounded-l-xl rounded-r-xl rounded-t-xl");
46
+ @source inline("self-center self-stretch shadow-[1px_0_0_0_var(--color-border)] shrink-[2] size-2 size-7");
47
+ @source inline("slide-in-from-top-1 table-fixed text-accent-solid-foreground text-field-placeholder");
48
+ @source inline("text-muted-foreground/60 text-right text-success text-warning text-xl to-transparent top-2 top-3");
49
+ @source inline("tracking-wider transition-[transform,opacity] w-11 w-20 w-28 w-36 w-40 w-[352px]");
@@ -18,13 +18,13 @@
18
18
  * after an app's responsive variant (task 2124). An app that imports every area gets exactly
19
19
  * what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
20
20
  * src/stylesAreas.spec.ts, which is also what fails when this file is stale.
21
- * 124 candidate(s).
21
+ * 128 candidate(s).
22
22
  *
23
23
  * Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
24
24
  * `bun run build` runs. The map of what is in which area, and why the areas are
25
25
  * import closures rather than a hand-written list, is scripts/styleAreas.ts.
26
26
  */
27
- @source inline("-m-1 -mt-6 -mx-1 -my-2.5 @3xl:block @3xl:hidden @xl:block @xl:hidden [&_svg]:size-3");
27
+ @source inline("-m-1 -mt-2 -mt-6 -mx-1 -my-2.5 -my-3 @3xl:block @3xl:hidden @xl:block @xl:hidden [&_svg]:size-3");
28
28
  @source inline("[overflow-wrap:anywhere] active:cursor-grabbing appearance appearance-none");
29
29
  @source inline("bg-[var(--cb-frozen-bg)] bg-card/95 bg-gradient-to-t bg-muted/30 bg-muted/50 border-0");
30
30
  @source inline("border-accent-solid border-accent/60 border-field-error border-l border-r cursor-grab");
@@ -38,12 +38,12 @@
38
38
  @source inline("focus-within:border-field-ring focus-within:ring-2 focus-within:ring-field-ring/30 font-sans");
39
39
  @source inline("from-card h-[420px] has-[[aria-invalid=true]]:border-field-error hover:bg-background");
40
40
  @source inline("hover:bg-border hover:bg-muted/40 hover:border-field-ring hover:text-warning justify-self-end");
41
- @source inline("last:border-0 left-0 left-2.5 line-clamp-2 list-none max-h-64 max-h-[22rem] max-h-[40dvh]");
42
- @source inline("max-h-[65dvh] max-h-[85dvh] max-w-32 max-w-36 max-w-48 max-w-[180px] max-w-[240px] min-h-20");
43
- @source inline("min-w-24 min-w-52 min-w-[var(--anchor-width)] ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic ordinal");
44
- @source inline("pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1 resize-none resize-y right-3");
41
+ @source inline("last:border-0 left-0 left-11 left-2.5 line-clamp-2 list-none max-h-64 max-h-[22rem]");
42
+ @source inline("max-h-[40dvh] max-h-[65dvh] max-h-[85dvh] max-w-32 max-w-36 max-w-48 max-w-[180px] max-w-[240px]");
43
+ @source inline("min-h-20 min-w-24 min-w-52 min-w-[var(--anchor-width)] ml-1.5 mr-2 mt-1.5 mt-3 mt-4 not-italic");
44
+ @source inline("ordinal pb-1.5 pl-1.5 pl-2 pr-0.5 pr-1 pr-10 pr-16 pr-3 pr-9 pt-1 resize-none resize-y right-3");
45
45
  @source inline("ring-field-error/30 rounded-l-xl rounded-r-xl rounded-t-xl self-center self-stretch");
46
46
  @source inline("shadow-[1px_0_0_0_var(--color-border)] size-2 size-7 slide-in-from-top-1 table-fixed");
47
47
  @source inline("text-accent-solid-foreground text-field-placeholder text-muted-foreground/60 text-right");
48
48
  @source inline("text-success text-warning text-xl to-transparent top-2 top-3 tracking-wider");
49
- @source inline("transition-[transform,opacity] w-20 w-28 w-36 w-40 w-[352px]");
49
+ @source inline("transition-[transform,opacity] w-11 w-20 w-28 w-36 w-40 w-[352px]");
@@ -18,16 +18,17 @@
18
18
  * after an app's responsive variant (task 2124). An app that imports every area gets exactly
19
19
  * what `cursedbelt/styles-utilities.css` emits — proved rule by rule in
20
20
  * src/stylesAreas.spec.ts, which is also what fails when this file is stale.
21
- * 33 candidate(s).
21
+ * 36 candidate(s).
22
22
  *
23
23
  * Written by scripts/generateAreaStyles.ts (`bun run styles:areas`), which
24
24
  * `bun run build` runs. The map of what is in which area, and why the areas are
25
25
  * import closures rather than a hand-written list, is scripts/styleAreas.ts.
26
26
  */
27
27
  @source inline("-mx-2 [&_button]:min-h-0 [&_button]:min-w-0 [&_button]:p-0 [&_button]:size-7 bg-card-overlay");
28
- @source inline("border-r border-rule cursor-not-allowed gap-px group-focus-within/rail-row:opacity-100");
29
- @source inline("group-hover/rail-row:opacity-100 group/rail-row hover:bg-card-raised last:mb-0 mb-3 mx-2");
30
- @source inline("opacity-100 outline-2 outline-accent outline-dashed outline-offset-[-2px] pb-1");
31
- @source inline("place-items-center pointer-coarse:[&_button]:min-h-11 pointer-coarse:[&_button]:min-w-11");
28
+ @source inline("border-r border-rule cursor-not-allowed duration-150 gap-px");
29
+ @source inline("group-data-[state=open]/rail-section:rotate-90 group-focus-within/rail-row:opacity-100");
30
+ @source inline("group-hover/rail-row:opacity-100 group/rail-row group/rail-section hover:bg-card-raised");
31
+ @source inline("last:mb-0 mb-3 mx-2 opacity-100 outline-2 outline-accent outline-dashed outline-offset-[-2px]");
32
+ @source inline("pb-1 place-items-center pointer-coarse:[&_button]:min-h-11 pointer-coarse:[&_button]:min-w-11");
32
33
  @source inline("pointer-coarse:[&_button]:size-11 pt-1 self-stretch shadow-[inset_3px_0_0_0_var(--accent)] w-14");
33
34
  @source inline("w-3 w-56");
@@ -315,6 +315,9 @@
315
315
  .left-3 {
316
316
  left: calc(var(--spacing) * 3);
317
317
  }
318
+ .left-11 {
319
+ left: calc(var(--spacing) * 11);
320
+ }
318
321
  .left-\[11px\] {
319
322
  left: 11px;
320
323
  }
@@ -408,9 +411,15 @@
408
411
  .-my-2\.5 {
409
412
  margin-block: calc(var(--spacing) * -2.5);
410
413
  }
414
+ .-my-3 {
415
+ margin-block: calc(var(--spacing) * -3);
416
+ }
411
417
  .my-1 {
412
418
  margin-block: var(--spacing);
413
419
  }
420
+ .-mt-2 {
421
+ margin-top: calc(var(--spacing) * -2);
422
+ }
414
423
  .-mt-5 {
415
424
  margin-top: calc(var(--spacing) * -5);
416
425
  }
@@ -841,6 +850,9 @@
841
850
  .w-10 {
842
851
  width: calc(var(--spacing) * 10);
843
852
  }
853
+ .w-11 {
854
+ width: calc(var(--spacing) * 11);
855
+ }
844
856
  .w-12 {
845
857
  width: calc(var(--spacing) * 12);
846
858
  }
@@ -3228,6 +3240,9 @@
3228
3240
  .group-data-\[state\=open\]\:rotate-180:is(:where(.group)[data-state="open"] *) {
3229
3241
  rotate: 180deg;
3230
3242
  }
3243
+ .group-data-\[state\=open\]\/rail-section\:rotate-90:is(:where(.group\/rail-section)[data-state="open"] *) {
3244
+ rotate: 90deg;
3245
+ }
3231
3246
  .peer-focus\:rounded-lg:is(:where(.peer):focus ~ *) {
3232
3247
  border-radius: 1rem;
3233
3248
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedbelt",
3
- "version": "5.23.0",
3
+ "version": "5.25.0",
4
4
  "license": "ISC",
5
5
  "type": "module",
6
6
  "description": "The React design system of the cursedbelt split — components, styles, theme. cursedbelt-core below it; server tier in cursedbelt-server.",
@@ -707,7 +707,7 @@
707
707
  "@vidstack/react": "1.15.6",
708
708
  "@vitejs/plugin-react": "^5.2.0",
709
709
  "cursedbelt-server": "^4.32.1",
710
- "cursedops": "^0.10.7",
710
+ "cursedops": "^0.11.0",
711
711
  "diff": "^9.0.0",
712
712
  "emoji-mart": "^5.6.0",
713
713
  "hls.js": "^1.5.0",
@@ -1,4 +1,4 @@
1
- import type { DragEvent } from 'react';
1
+ import type { DragEvent, ReactNode } from 'react';
2
2
  import { cn } from '../../lib/cn.js';
3
3
  import { Grid } from '../Grid.js';
4
4
  import { Stack } from '../layout.js';
@@ -17,6 +17,10 @@ export interface CardViewProps<TRow extends Record<string, unknown>> {
17
17
  dragPropsFor?: (
18
18
  row: TRow,
19
19
  ) => { draggable?: boolean; onDragStart?: (event: DragEvent<HTMLElement>) => void };
20
+ /** The row's selection checkbox (`DataTable`'s `selectedIds`), rendered at the
21
+ * card's top-left, outside the open-the-row button. `index` is the row's
22
+ * position in `data`. */
23
+ selectFor?: (row: TRow, index: number) => ReactNode;
20
24
  /** Minimum card width before the grid reflows (container-query based). */
21
25
  cardMinWidth?: string;
22
26
  className?: string;
@@ -34,6 +38,7 @@ export function CardView<TRow extends Record<string, unknown>>({
34
38
  getRowId,
35
39
  onRowClick,
36
40
  dragPropsFor,
41
+ selectFor,
37
42
  cardMinWidth = '16rem',
38
43
  className,
39
44
  }: CardViewProps<TRow>) {
@@ -44,6 +49,7 @@ export function CardView<TRow extends Record<string, unknown>>({
44
49
  const key = getRowId ? getRowId(row) : `card-${i}`;
45
50
  const body = <CardRowContent columns={visible} row={row} />;
46
51
  const dragProps = dragPropsFor?.(row);
52
+ const select = selectFor?.(row, i);
47
53
  return (
48
54
  <Surface
49
55
  key={key}
@@ -54,6 +60,7 @@ export function CardView<TRow extends Record<string, unknown>>({
54
60
  {...dragProps}
55
61
  className={cn(dragProps?.draggable && 'cursor-grab active:cursor-grabbing')}
56
62
  >
63
+ {select != null ? <div className='-mt-2 -ml-2 mb-1'>{select}</div> : null}
57
64
  {onRowClick ? (
58
65
  <button
59
66
  // guardrails-ignore no-raw-action-button: opens the row's detail view —