cursedbelt 6.16.0 → 6.16.1

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.
@@ -15,7 +15,8 @@
15
15
  *
16
16
  * When the row is short of room the meta gives way first and the name last: a phone's header holding a Rows/Cards toggle
17
17
  * and the badge left the name block ~70px, and a meta that never shrank ("Nothing left to review") took all of it, so the
18
- * page's one h1 drew 0px wide (collections on a 390px phone, forge task 4646).
18
+ * page's one h1 drew 0px wide (collections on a 390px phone, forge task 4646). Giving way means hiding WHOLE: a meta
19
+ * with under 5rem of room is not drawn at all, never an ellipsis after one letter (forge task 5577).
19
20
  *
20
21
  * On a phone a `ListToolbar` under the header puts its options button in the header's `data-cb-place-slot`, after the
21
22
  * actions and before the badge (forge task 5210).
@@ -1 +1 @@
1
- {"version":3,"file":"PlaceHeader.d.ts","sourceRoot":"","sources":["../../../src/react/workspace-shell/PlaceHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACzF,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,+HAA+H;IAC/H,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BAwBrG"}
1
+ {"version":3,"file":"PlaceHeader.d.ts","sourceRoot":"","sources":["../../../src/react/workspace-shell/PlaceHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,OAAO,KAAK,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKjE,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,wBAAwB,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACzF,2CAA2C;IAC3C,KAAK,EAAE,SAAS,CAAC;IACjB,+HAA+H;IAC/H,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,4FAA4F;IAC5F,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,+FAA+F;IAC/F,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB;AAED,wBAAgB,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,gBAAgB,+BAiCrG"}
@@ -3,6 +3,6 @@ import { InfoHint } from '../components/InfoHint.js';
3
3
  import { cn } from '../lib/cn.js';
4
4
  import { ShellBadgeSlot } from './WorkspaceShell.js';
5
5
  export function PlaceHeader({ title, meta, hint, actions, lead, className, ...rest }) {
6
- return (_jsxs("header", { ...rest, "data-cb-place-header": '', className: cn('flex h-14 shrink-0 items-center gap-3 border-0 border-b border-solid border-border px-4 md:h-12', className), children: [lead, _jsxs("div", { className: 'flex min-w-0 flex-1 items-center gap-2', children: [_jsx("h1", { className: 'label m-0 min-w-0 truncate text-ui text-muted-foreground', children: title }), hint != null && hint !== false && _jsx(InfoHint, { label: 'About this place', children: hint }), meta != null && meta !== false && _jsx("span", { "data-cb-place-meta": '', className: 'min-w-0 flex-1 truncate text-right text-ui text-muted-foreground tabular-nums', children: meta })] }), actions != null && actions !== false && _jsx("div", { "data-cb-place-actions": '', className: 'flex shrink-0 items-center gap-2', children: actions }), _jsx("div", { "data-cb-place-slot": '', className: 'flex shrink-0 items-center gap-2 empty:hidden md:hidden' }), _jsx(ShellBadgeSlot, {})] }));
6
+ return (_jsxs("header", { ...rest, "data-cb-place-header": '', className: cn('flex h-14 shrink-0 items-center gap-3 border-0 border-b border-solid border-border px-4 md:h-12', className), children: [lead, _jsxs("div", { className: 'flex min-w-0 flex-1 items-center gap-2', children: [_jsx("h1", { className: 'label m-0 min-w-0 truncate text-ui text-muted-foreground', children: title }), hint != null && hint !== false && _jsx(InfoHint, { label: 'About this place', children: hint }), meta != null && meta !== false && (_jsx("span", { "data-cb-place-meta": '', className: '@container min-w-0 flex-1 text-right text-ui text-muted-foreground tabular-nums', children: _jsx("span", { "data-cb-place-meta-text": '', className: 'block truncate @max-meta:hidden', children: meta }) }))] }), actions != null && actions !== false && _jsx("div", { "data-cb-place-actions": '', className: 'flex shrink-0 items-center gap-2', children: actions }), _jsx("div", { "data-cb-place-slot": '', className: 'flex shrink-0 items-center gap-2 empty:hidden md:hidden' }), _jsx(ShellBadgeSlot, {})] }));
7
7
  }
8
8
  //# sourceMappingURL=PlaceHeader.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PlaceHeader.js","sourceRoot":"","sources":["../../../src/react/workspace-shell/PlaceHeader.tsx"],"names":[],"mappings":";AAuBA,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAmBrD,MAAM,UAAU,WAAW,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,IAAI,EAAoB;IACpG,OAAO,CACL,qBACM,IAAI,0BACa,EAAE,EACvB,SAAS,EAAE,EAAE,CAAC,iGAAiG,EAAE,SAAS,CAAC,aAE1H,IAAI,EACL,eAAK,SAAS,EAAC,wCAAw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K,IAAI,CACjC,qCAAyB,EAAE,EAAC,SAAS,EAAC,iFAAiF,YACrH,0CAA8B,EAAE,EAAC,SAAS,EAAC,iCAAiC,YACzE,IAAI,GACA,GACF,CACR,IACG,EACL,OAAO,IAAI,IAAI,IAAI,OAAO,KAAK,KAAK,IAAI,uCAA2B,EAAE,EAAC,SAAS,EAAC,kCAAkC,YAAE,OAAO,GAAO,EAGnI,oCAAwB,EAAE,EAAC,SAAS,EAAC,yDAAyD,GAAG,EACjG,KAAC,cAAc,KAAG,IACX,CACV,CAAC;AACJ,CAAC"}
@@ -18,16 +18,16 @@
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
- * 57 candidate(s).
21
+ * 58 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("-my-1.5 [&::-webkit-scrollbar]:hidden [&>svg]:opacity-45 [&>svg]:size-5 [&_svg]:size-4.5");
28
- @source inline("[&_svg]:text-accent [&_svg]:text-muted-foreground [scrollbar-width:none] bg-accent/15");
29
- @source inline("bg-foreground border-solid bottom-[calc(env(safe-area-inset-bottom)+0.5rem)] flex-auto");
30
- @source inline("focus-visible:[&>svg]:opacity-100 h-14 h-[calc(3.5rem+env(safe-area-inset-bottom))]");
27
+ @source inline("-my-1.5 @max-meta:hidden [&::-webkit-scrollbar]:hidden [&>svg]:opacity-45 [&>svg]:size-5");
28
+ @source inline("[&_svg]:size-4.5 [&_svg]:text-accent [&_svg]:text-muted-foreground [scrollbar-width:none]");
29
+ @source inline("bg-accent/15 bg-foreground border-solid bottom-[calc(env(safe-area-inset-bottom)+0.5rem)]");
30
+ @source inline("flex-auto focus-visible:[&>svg]:opacity-100 h-14 h-[calc(3.5rem+env(safe-area-inset-bottom))]");
31
31
  @source inline("hover:[&>svg]:opacity-100 hover:bg-accent-solid/90 hover:bg-muted/60 items-stretch left-2.5");
32
32
  @source inline("left-[calc(env(safe-area-inset-left)+0.5rem)] list-none max-md:border-t-0 max-md:pt-0");
33
33
  @source inline("md:bg-muted md:block md:border-r md:flex md:h-12 md:hidden md:px-6 md:px-8 md:py-6 md:shrink-0");
@@ -216,6 +216,12 @@
216
216
  }
217
217
  }
218
218
 
219
+ /* The narrowest room a quiet meta reads in (forge task 5577): below it PlaceHeader's count or state hides whole
220
+ (`@max-meta:hidden` on a `@container`), never one letter and an ellipsis — "B…" for "Best 5 moves" said nothing. */
221
+ @theme {
222
+ --container-meta: 5rem;
223
+ }
224
+
219
225
  /* Indeterminate sweep for the Progress bar (no `value`): the 1/3-width fill slides
220
226
  across the track on loop. Registered as a Tailwind theme animation so the
221
227
  `animate-progress-indeterminate` utility is generated in consuming apps. */
@@ -5356,6 +5356,11 @@
5356
5356
  display: none;
5357
5357
  }
5358
5358
  }
5359
+ @container (width < 5rem) {
5360
+ .\@max-meta\:hidden {
5361
+ display: none;
5362
+ }
5363
+ }
5359
5364
  @container (width >= 32rem) {
5360
5365
  .\@lg\:col-span-1 {
5361
5366
  grid-column: span 1 / span 1;
package/dist/styles.css CHANGED
@@ -218,6 +218,12 @@
218
218
  }
219
219
  }
220
220
 
221
+ /* The narrowest room a quiet meta reads in (forge task 5577): below it PlaceHeader's count or state hides whole
222
+ (`@max-meta:hidden` on a `@container`), never one letter and an ellipsis — "B…" for "Best 5 moves" said nothing. */
223
+ @theme {
224
+ --container-meta: 5rem;
225
+ }
226
+
221
227
  /* Indeterminate sweep for the Progress bar (no `value`): the 1/3-width fill slides
222
228
  across the track on loop. Registered as a Tailwind theme animation so the
223
229
  `animate-progress-indeterminate` utility is generated in consuming apps. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cursedbelt",
3
- "version": "6.16.0",
3
+ "version": "6.16.1",
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.",
@@ -984,7 +984,7 @@
984
984
  "@types/react-dom": "^19.2.3",
985
985
  "@vidstack/react": "1.15.6",
986
986
  "@vitejs/plugin-react": "^5.2.0",
987
- "cursedbelt-server": "^4.76.0",
987
+ "cursedbelt-server": "^4.77.0",
988
988
  "cursedops": "^0.36.1",
989
989
  "diff": "^9.0.0",
990
990
  "emoji-mart": "^5.6.0",
@@ -15,7 +15,8 @@
15
15
  *
16
16
  * When the row is short of room the meta gives way first and the name last: a phone's header holding a Rows/Cards toggle
17
17
  * and the badge left the name block ~70px, and a meta that never shrank ("Nothing left to review") took all of it, so the
18
- * page's one h1 drew 0px wide (collections on a 390px phone, forge task 4646).
18
+ * page's one h1 drew 0px wide (collections on a 390px phone, forge task 4646). Giving way means hiding WHOLE: a meta
19
+ * with under 5rem of room is not drawn at all, never an ellipsis after one letter (forge task 5577).
19
20
  *
20
21
  * On a phone a `ListToolbar` under the header puts its options button in the header's `data-cb-place-slot`, after the
21
22
  * actions and before the badge (forge task 5210).
@@ -56,8 +57,17 @@ export function PlaceHeader({ title, meta, hint, actions, lead, className, ...re
56
57
  <h1 className='label m-0 min-w-0 truncate text-ui text-muted-foreground'>{title}</h1>
57
58
  {hint != null && hint !== false && <InfoHint label='About this place'>{hint}</InfoHint>}
58
59
  {/* The meta's basis is 0, so it is drawn only in what the name leaves and never takes a sliver of the name's own
59
- width: a weighted shrink (999 against 1) still cut 0.06px from it, and an ellipsis then ate "als" (forge task 4999). */}
60
- {meta != null && meta !== false && <span data-cb-place-meta='' className='min-w-0 flex-1 truncate text-right text-ui text-muted-foreground tabular-nums'>{meta}</span>}
60
+ width: a weighted shrink (999 against 1) still cut 0.06px from it, and an ellipsis then ate "als" (forge task 4999).
61
+ 🔴 It is a size container, and its text hides WHOLE below 5rem of it (the `meta` container size in styles.css) rather than truncating to one glyph: games'
62
+ "Best 5 moves" beside three actions read "B…" on a 390px phone, which says nothing and looks broken (forge task
63
+ 5577). Linear's issue header drops its secondary meta the same way. The basis of 0 makes the containment free. */}
64
+ {meta != null && meta !== false && (
65
+ <span data-cb-place-meta='' className='@container min-w-0 flex-1 text-right text-ui text-muted-foreground tabular-nums'>
66
+ <span data-cb-place-meta-text='' className='block truncate @max-meta:hidden'>
67
+ {meta}
68
+ </span>
69
+ </span>
70
+ )}
61
71
  </div>
62
72
  {actions != null && actions !== false && <div data-cb-place-actions='' className='flex shrink-0 items-center gap-2'>{actions}</div>}
63
73
  {/* 📱 The phone's slot for the list under this header: `ListToolbar` portals its options button here, so a phone
@@ -18,16 +18,16 @@
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
- * 57 candidate(s).
21
+ * 58 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("-my-1.5 [&::-webkit-scrollbar]:hidden [&>svg]:opacity-45 [&>svg]:size-5 [&_svg]:size-4.5");
28
- @source inline("[&_svg]:text-accent [&_svg]:text-muted-foreground [scrollbar-width:none] bg-accent/15");
29
- @source inline("bg-foreground border-solid bottom-[calc(env(safe-area-inset-bottom)+0.5rem)] flex-auto");
30
- @source inline("focus-visible:[&>svg]:opacity-100 h-14 h-[calc(3.5rem+env(safe-area-inset-bottom))]");
27
+ @source inline("-my-1.5 @max-meta:hidden [&::-webkit-scrollbar]:hidden [&>svg]:opacity-45 [&>svg]:size-5");
28
+ @source inline("[&_svg]:size-4.5 [&_svg]:text-accent [&_svg]:text-muted-foreground [scrollbar-width:none]");
29
+ @source inline("bg-accent/15 bg-foreground border-solid bottom-[calc(env(safe-area-inset-bottom)+0.5rem)]");
30
+ @source inline("flex-auto focus-visible:[&>svg]:opacity-100 h-14 h-[calc(3.5rem+env(safe-area-inset-bottom))]");
31
31
  @source inline("hover:[&>svg]:opacity-100 hover:bg-accent-solid/90 hover:bg-muted/60 items-stretch left-2.5");
32
32
  @source inline("left-[calc(env(safe-area-inset-left)+0.5rem)] list-none max-md:border-t-0 max-md:pt-0");
33
33
  @source inline("md:bg-muted md:block md:border-r md:flex md:h-12 md:hidden md:px-6 md:px-8 md:py-6 md:shrink-0");
@@ -216,6 +216,12 @@
216
216
  }
217
217
  }
218
218
 
219
+ /* The narrowest room a quiet meta reads in (forge task 5577): below it PlaceHeader's count or state hides whole
220
+ (`@max-meta:hidden` on a `@container`), never one letter and an ellipsis — "B…" for "Best 5 moves" said nothing. */
221
+ @theme {
222
+ --container-meta: 5rem;
223
+ }
224
+
219
225
  /* Indeterminate sweep for the Progress bar (no `value`): the 1/3-width fill slides
220
226
  across the track on loop. Registered as a Tailwind theme animation so the
221
227
  `animate-progress-indeterminate` utility is generated in consuming apps. */
@@ -5356,6 +5356,11 @@
5356
5356
  display: none;
5357
5357
  }
5358
5358
  }
5359
+ @container (width < 5rem) {
5360
+ .\@max-meta\:hidden {
5361
+ display: none;
5362
+ }
5363
+ }
5359
5364
  @container (width >= 32rem) {
5360
5365
  .\@lg\:col-span-1 {
5361
5366
  grid-column: span 1 / span 1;
package/src/styles.css CHANGED
@@ -218,6 +218,12 @@
218
218
  }
219
219
  }
220
220
 
221
+ /* The narrowest room a quiet meta reads in (forge task 5577): below it PlaceHeader's count or state hides whole
222
+ (`@max-meta:hidden` on a `@container`), never one letter and an ellipsis — "B…" for "Best 5 moves" said nothing. */
223
+ @theme {
224
+ --container-meta: 5rem;
225
+ }
226
+
221
227
  /* Indeterminate sweep for the Progress bar (no `value`): the 1/3-width fill slides
222
228
  across the track on loop. Registered as a Tailwind theme animation so the
223
229
  `animate-progress-indeterminate` utility is generated in consuming apps. */