tamga-ui 0.7.1 → 0.7.2

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/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@ Versions follow [semver](https://semver.org/). Through `0.x`, breaking changes m
5
5
 
6
6
  > 🇹🇷 Türkçe için [tamga.org.tr/tr](https://tamga.org.tr/tr).
7
7
 
8
+ ## 0.7.2
9
+
10
+ > The current rail item is drawn whole.
11
+
12
+ ### Fixed
13
+
14
+ - **`AppShell` rail: the current item's lift, shadow and focus ring were clipped.** Every entry
15
+ sits inside the group body's inner box, which carries `overflow: hidden` for the 0fr/1fr
16
+ open-close animation, and the box was exactly the content's size: the lifted item lost its
17
+ top and left edge, the 3px shadow its right end, and a keyboard focus ring its sides (WCAG
18
+ 2.4.7 / 2.4.11). The inner box now has `--offset-room-ring` (4px: 1px lift plus the 1px ring
19
+ at 2px offset) of padding with the same negative margin, so the layout does not move but the
20
+ clip edge sits outside the painted area; the rail's own scroll padding grows from 3px to 4px
21
+ for the same reason. A closed group is hidden with `visibility: hidden` once the animation
22
+ ends (the padding would otherwise leak the first pixels), shown again without delay on open;
23
+ `inert` is unchanged. Plain CSS, works in Safari; no `overflow-clip-margin`. Measured in Chrome
24
+ on the docs site's real-size shell: `pnpm olc:ray` (needs Chrome and the docs server) checks
25
+ that the painted area of the current and of a focused item stays inside the nearest clipping
26
+ ancestor and that a closed group leaks nothing.
27
+
8
28
  ## 0.7.1
9
29
 
10
30
  > An empty calendar opens where something can be picked.
package/dist/fonts.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tamga-ui 0.7.1 · MIT · https://tamga.org.tr */
1
+ /*! tamga-ui 0.7.2 · MIT · https://tamga.org.tr */
2
2
  @font-face {
3
3
  font-family: "Red Hat Display";
4
4
  font-style: normal;
package/dist/kit.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tamga-ui 0.7.1 · MIT · https://tamga.org.tr */
1
+ /*! tamga-ui 0.7.2 · MIT · https://tamga.org.tr */
2
2
  :root {
3
3
 
4
4
  --overlay-gap: 8px;
@@ -10,6 +10,8 @@
10
10
 
11
11
  --offset-room: 3px;
12
12
 
13
+ --offset-room-ring: 4px;
14
+
13
15
  --mark-tick: 2px;
14
16
 
15
17
  --mark-dot: 8px;
@@ -379,7 +381,7 @@
379
381
  min-height: 0;
380
382
  overflow-y: auto;
381
383
 
382
- padding: var(--offset-room);
384
+ padding: var(--offset-room-ring);
383
385
 
384
386
  scrollbar-width: none;
385
387
  }
@@ -439,12 +441,23 @@
439
441
  gap: 8px;
440
442
  min-height: 0;
441
443
  overflow: hidden;
444
+
445
+ padding: var(--offset-room-ring);
446
+ margin: calc(-1 * var(--offset-room-ring));
447
+ visibility: visible;
448
+ transition: visibility 0s;
442
449
  }
443
450
  .tamga-rail-group-body[data-open="false"] {
444
451
  grid-template-rows: 0fr;
445
452
  }
453
+
454
+ .tamga-rail-group-body[data-open="false"] > div {
455
+ visibility: hidden;
456
+ transition: visibility 0s var(--duration-press);
457
+ }
446
458
  @media (prefers-reduced-motion: reduce) {
447
459
  .tamga-rail-group-body,
460
+ .tamga-rail-group-body > div,
448
461
  .tamga-rail-section-caret {
449
462
  transition: none;
450
463
  }
package/dist/styles.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tamga-ui 0.7.1 · MIT · https://tamga.org.tr */
1
+ /*! tamga-ui 0.7.2 · MIT · https://tamga.org.tr */
2
2
  @import "./fonts.css";
3
3
  @import "./theme.css";
4
4
  @import "./kit.css";
package/dist/theme.css CHANGED
@@ -1,4 +1,4 @@
1
- /*! tamga-ui 0.7.1 · MIT · https://tamga.org.tr */
1
+ /*! tamga-ui 0.7.2 · MIT · https://tamga.org.tr */
2
2
  @custom-variant dark (&:is(.dark *));
3
3
 
4
4
  @theme static {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tamga-ui",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "Mantıksal's shared interface library: tokens, physics and components.",
5
5
  "license": "MIT",
6
6
  "type": "module",