@apliteni/apliteni-ui 0.94.0 → 0.96.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.
@@ -254,27 +254,32 @@
254
254
  reading one gets nothing rather than an unresolved var(), and a consumer who wants a
255
255
  cast shadow sets them. Nothing in src/ reads them.
256
256
 
257
- A transparent shadow, not `none`, because these are read in a LIST. The kit's own
258
- pre-0.32 pattern was `box-shadow: var(--shadow-lg), var(--ring)`, and `none` is only
259
- valid alone — it makes the whole declaration invalid, which silently takes the focus
260
- ring with it. `0 0 #0000` composes. why: docs/foundations.md#elevation */
257
+ A transparent shadow, not `none`, because these are read in a LIST — a surface's
258
+ edge and its drop are two layers of one declaration — and `none` is valid only
259
+ alone, so it makes the whole declaration invalid and takes the layers beside it
260
+ with it. `0 0 #0000` composes. why: docs/foundations.md#elevation */
261
261
  --shadow-sm: 0 0 #0000;
262
262
  --shadow-md: 0 0 #0000;
263
263
  --shadow-lg: 0 0 #0000;
264
264
  --shadow-seg: 0 0 #0000;
265
265
  --shadow-card: 0 0 #0000;
266
- /* G2: the band carries contrast; the halo decorates it. why: docs/foundations.md#the-focus-ring */
266
+ /* ONE band, drawn as a real OUTLINE, and no halo. Artur took the halo off on #578
267
+ after #557 drew a scroll region's band without one. An outline leaves its offset
268
+ UNPAINTED, so the 1px between the control and the band is whatever surface the
269
+ control is already standing on — which is what retired --ring-gap and the
270
+ per-surface recomposition behind it, and what leaves forced colors a real outline
271
+ to repaint instead of a transparent stand-in.
272
+ why: docs/foundations.md#the-focus-ring */
267
273
  --ring-width: 2px;
268
274
  --ring-color: var(--accent);
269
275
  --ring-gap-width: 1px;
270
- --ring-gap: var(--bg);
271
- --ring: 0 0 0 var(--ring-gap-width) var(--ring-gap), 0 0 0 calc(var(--ring-gap-width) + var(--ring-width)) var(--ring-color), 0 0 12px 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
272
- /* What a scroll region inside a surface takes: --ring's gap and band, drawn inward,
273
- no halo. An OUTLINE, because an inset shadow is painted under the box's own
274
- children and a table scrolled under one erases it. The gap is left unpainted, so
275
- neither half reads --ring-gap and neither is recomposed per surface. Chosen by
276
- Artur on #531 round r30. why: docs/foundations.md#the-focus-ring */
277
- --ring-scroll: var(--ring-width) solid var(--ring-color);
276
+ --ring: var(--ring-width) solid var(--ring-color);
277
+ --ring-offset: var(--ring-gap-width);
278
+ /* What a scroll region inside a surface takes: the same band, drawn inward rather
279
+ than outward, because an inset shadow is painted under the box's own children and
280
+ a table scrolled under one erases it. Only the offset differs. Chosen by Artur on
281
+ #531 round r30. why: docs/foundations.md#the-focus-ring */
282
+ --ring-scroll: var(--ring);
278
283
  --ring-scroll-offset: calc(-1 * (var(--ring-gap-width) + var(--ring-width)));
279
284
 
280
285
  /* The ink a cast shadow is made of, and the specular white that reads as gloss on a
@@ -297,7 +302,7 @@
297
302
  /* The ladder's two resting rungs, which only light climbs. Transparent here and
298
303
  not `none`, for the reason the deprecated --shadow-* tokens are: these are read
299
304
  in a layer list, and `none` is valid only alone — it would invalidate the whole
300
- declaration and take the focus ring with it. why: docs/foundations.md#elevation */
305
+ declaration and take the layers beside it with it. why: docs/foundations.md#elevation */
301
306
  --elev-rest: 0 0 #0000; /* a card */
302
307
  --elev-rail: 0 0 #0000; /* the shell's rail, cast sideways */
303
308
 
@@ -436,7 +441,7 @@
436
441
  --shadow-lg: 0 0 #0000;
437
442
  --shadow-seg: 0 0 #0000;
438
443
  --shadow-card: 0 0 #0000;
439
- /* No --ring here. :root's is var(--accent), and light re-points --accent. */
444
+ /* No --ring here. :root's band is var(--accent), and light re-points --accent. */
440
445
 
441
446
  --shadow-ink: #1e1e32;
442
447
  --sheen: #ffffff;
@@ -505,11 +510,9 @@
505
510
  * Held by stories/code-chip.test.js. why: docs/foundations.md#elevation */
506
511
  :root { --code-bg: var(--surface); }
507
512
 
508
- /* Recompose only at painted containers; controls inherit the outside gap, and each hands an
509
- * inline code chip the page. One recipe keeps surface propagation cheap and consistent.
510
- * .ui-code composes its own ring in src/styles/code.css instead of joining this list: a
511
- * chip cannot both paint --code-bg and re-point it, and its gap has to be the surface it
512
- * actually paints. why: docs/foundations.md#the-focus-ring */
513
+ /* Every painted container hands an inline code chip the page. One recipe keeps surface
514
+ * propagation cheap and consistent. The ring is not in this list since #578: an outline
515
+ * paints no gap of its own, so a focused control needs nothing handed down to it. */
513
516
  .amenu,
514
517
  .dtsw,
515
518
  .rx-modal,
@@ -542,7 +545,6 @@
542
545
  .ui-toast--outline,
543
546
  .ui-toast--solid,
544
547
  .vsw__menu {
545
- --ring: 0 0 0 var(--ring-gap-width) var(--ring-gap), 0 0 0 calc(var(--ring-gap-width) + var(--ring-width)) var(--ring-color), 0 0 12px 2px color-mix(in srgb, var(--ring-color) 45%, transparent);
546
548
  --code-bg: var(--bg);
547
549
  }
548
550
 
@@ -574,13 +576,3 @@
574
576
  .ui-callout--warn,
575
577
  .ui-callout--danger,
576
578
  .ui-success { --code-bg: var(--wash-code-bg); }
577
-
578
- /* A container focused itself paints outside its own surface; descendants only
579
- * inherit its inside gap again after focus moves to them. A scroll region inside one
580
- * needs no entry here: --ring-scroll paints no gap of its own, so the 1px it leaves is
581
- * whatever the region is already standing on. #531 */
582
- .ui-card:focus-visible,
583
- .ui-cmdk__panel:focus-visible,
584
- .ui-confirm__panel:focus-visible,
585
- .ui-drawer__panel:focus-visible,
586
- .rx-modal:focus-visible { --ring-gap: inherit; }