@dorsk/tsumikit 0.38.0 → 0.38.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.
@@ -1,6 +1,9 @@
1
1
  <script lang="ts">
2
2
  // Text-size control: the "A" trigger opens a popover with a stepped slider
3
3
  // across SCALE_LEVELS. Drives --fs-scale (text only), chrome stays fixed.
4
+ // Everything inside the popover is sized in plain rem, never --fs-*: if the
5
+ // panel rescaled with the page the slider would move under the pointer
6
+ // mid-drag and oscillate between steps.
4
7
  import Popover from './Popover.svelte';
5
8
  import Slider from '../atoms/Slider.svelte';
6
9
  import { fontScale, SCALE_LEVELS } from '../../stores/fontscale.svelte';
@@ -36,11 +39,13 @@
36
39
  <style>
37
40
  .glyph {
38
41
  font-weight: var(--fw-bold);
39
- font-size: var(--fs-md);
42
+ font-size: 1rem;
40
43
  line-height: 1;
41
44
  }
42
45
  .panel {
43
46
  width: 15rem;
47
+ font-size: 0.875rem;
48
+ line-height: 1.4;
44
49
  padding: var(--sp-2) var(--sp-3);
45
50
  }
46
51
  .row {
@@ -71,15 +76,15 @@
71
76
  outline-offset: 1px;
72
77
  }
73
78
  .small {
74
- font-size: var(--fs-xs);
79
+ font-size: 0.75rem;
75
80
  }
76
81
  .large {
77
- font-size: var(--fs-lg);
82
+ font-size: 1.125rem;
78
83
  }
79
84
  .caption {
80
85
  margin-top: var(--sp-1);
81
86
  text-align: center;
82
- font-size: var(--fs-xs);
87
+ font-size: 0.75rem;
83
88
  color: var(--text-muted);
84
89
  font-variant-numeric: tabular-nums;
85
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dorsk/tsumikit",
3
- "version": "0.38.0",
3
+ "version": "0.38.1",
4
4
  "description": "Minimal, dependency-free Svelte 5 + pure-CSS UI kit. Token-driven atoms, molecules & layouts with theming out of the box.",
5
5
  "type": "module",
6
6
  "license": "MIT",