@justai/cuts 0.62.0 → 0.63.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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/Toolbar.astro +14 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@justai/cuts",
3
- "version": "0.62.0",
3
+ "version": "0.63.0",
4
4
  "description": "A persona's named parts \u2014 the page shell that holds them, and the cuts themselves.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
package/src/Toolbar.astro CHANGED
@@ -22,7 +22,9 @@
22
22
  // persona's, so it comes from the persona. Omit it and the bust stays — adopting this is each
23
23
  // persona's own decision, taken when its mark exists, and nothing moves in the fleet without it.
24
24
  // Note what a mark cannot do: an <img> ignores `currentColor`, so `.active`'s accent never reaches
25
- // it. Slot presence adds `.tb-mark`, which carries "you are here" as opacity instead.
25
+ // it. It is not replaced with anything: the title strip already closes on this cut and opens off
26
+ // it, and a mark is an identity rather than a UI state. Slot presence adds `.tb-mark`, which the
27
+ // sizing rule uses.
26
28
  // • langPicker — needs the persona's own locale data (the list must NOT live in the shared package —
27
29
  // it bit us twice; see @justai/ui/locale) → a slot the persona fills with its <LangPicker/>.
28
30
  // • navExtra — optional extra nav item after Posts (e.g. the timers' fullscreen button) → slot.
@@ -67,8 +69,7 @@ const { sectionsLabel, profileLabel, kernelLabel, postsLabel, home = true, files
67
69
  in the fleet moves on the day this ships.
68
70
 
69
71
  `tb-mark` is set from slot PRESENCE, not from a prop somebody could forget to keep in step. It
70
- exists because a mark cannot take `currentColor`: an <img> ignores it, so the accent that says
71
- "you are here" would never reach it. The class moves that signal to opacity instead. */}
72
+ exists so the sizing rule can find the image; it deliberately does NOT restyle the mark. */}
72
73
  <a
73
74
  class:list={["tb-nav", { "tb-mark": Astro.slots.has("profileIcon") }]}
74
75
  id="navProfile"
@@ -172,15 +173,16 @@ const { sectionsLabel, profileLabel, kernelLabel, postsLabel, home = true, files
172
173
  .tb-nav:active { transform: scale(0.9); }
173
174
  .tb-nav.active { color: var(--accent); }
174
175
 
175
- /* A MARK SAYS "YOU ARE HERE" WITH OPACITY, BECAUSE IT CANNOT SAY IT WITH COLOUR.
176
- The three stroke icons are painted by `currentColor`, so `.active` turning them accent is enough. An
177
- <img> mark ignores `currentColor` entirely — it carries its own paint — so on the mark that rule is a
178
- declaration with no effect, and the one icon a person is looking at would be the one that never lit.
179
- Opacity is the same answer BackToZone reached when it took the mark: dimmed at rest, whole when
180
- current. `!important`-free, because these are more specific than the colour rules above. */
181
- .tb-nav.tb-mark { opacity: 0.72; transition: opacity 0.25s var(--ease-out); }
182
- .tb-nav.tb-mark:hover,
183
- .tb-nav.tb-mark.active { opacity: 1; }
176
+ /* A MARK IS NOT DIMMED, AND THE PROFILE CUT DOES NOT NEED IT TO BE.
177
+ It shipped dimmed at rest for one version, on the reasoning that a mark cannot take `currentColor`
178
+ and so needed opacity to say "you are here". Both halves of that were true and the conclusion was
179
+ still wrong, because the state was already being said, louder: `titleFor` in @justai/core returns an
180
+ empty string for `profile`, so the title strip CLOSES on this cut and opens — 26px of layout, naming
181
+ where you are — the moment you leave it. Against that, tinting an icon adds nothing.
182
+ And the two are not the same kind of thing. The three stroke icons are generic glyphs whose colour IS
183
+ a UI state; a mark is an identity. A faded logo does not read as "not current", it reads as disabled.
184
+ So the mark stays itself. Press feedback is not lost: `.tb-nav:active`'s scale applies to it like any
185
+ other item. `.tb-mark` remains, because the sizing rule below still needs to know an image is here. */
184
186
  /* The shell sizes the mark and says NOTHING about `display`, deliberately. Two files arrive for the two
185
187
  themes — an SVG's internal `prefers-color-scheme` does not survive <img>, measured — and the persona
186
188
  hides one with a media query. A `display: block` here would be two classes deep against the persona's