@apliteni/apliteni-ui 0.6.0 → 0.6.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apliteni/apliteni-ui",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Apliteni shared design system & UI kit — tokens, components and the deck theme, framework-agnostic (HTML + CSS).",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",
@@ -8,7 +8,9 @@ import { wireDropdown } from './dropdown.js';
8
8
  const THEME_KEY = 'apliteni-strategy-theme';
9
9
 
10
10
  export function themeToggle() {
11
- return `<button class="toggle" data-theme-toggle aria-label="Toggle theme"><span class="ic" data-theme-icon></span><span data-theme-label>Light</span></button>`;
11
+ // Single icon-only switch (sun in dark, moon in light). Icon pre-filled so it
12
+ // renders before applyTheme() runs; aria-label carries the accessible name.
13
+ return `<button class="toggle" data-theme-toggle aria-label="Toggle theme" title="Toggle light / dark"><span class="ic" data-theme-icon>${sun}</span></button>`;
12
14
  }
13
15
 
14
16
  export function deckTextSwitch(active = 'deck') {
@@ -64,24 +64,21 @@
64
64
  .dtsw a:hover { color: var(--text); }
65
65
  .dtsw a.cur { color: var(--strong); background: var(--surface); box-shadow: var(--shadow-sm); }
66
66
 
67
- /* Theme toggle */
67
+ /* Theme toggle — a single icon-only switch (no label). */
68
68
  .toggle {
69
- display: inline-flex;
70
- align-items: center;
71
- gap: 8px;
69
+ display: inline-grid;
70
+ place-items: center;
71
+ width: 34px;
72
+ height: 34px;
72
73
  cursor: pointer;
73
74
  background: var(--surface);
74
75
  color: var(--text);
75
76
  border: 1px solid var(--border);
76
- border-radius: 24px;
77
- padding: 7px 12px;
78
- font-family: var(--font-sans);
79
- font-size: 12px;
80
- font-weight: 500;
77
+ border-radius: 10px;
81
78
  transition: transform 0.15s ease, background 0.35s ease, border-color 0.35s ease;
82
79
  }
83
- .toggle:hover { transform: translateY(-1px); }
84
- .toggle .ic { width: 15px; height: 15px; display: inline-block; color: var(--accent); }
80
+ .toggle:hover { transform: translateY(-1px); border-color: var(--border-strong); }
81
+ .toggle .ic { width: 17px; height: 17px; display: inline-block; color: var(--accent); }
85
82
  .toggle .ic svg { display: block; width: 100%; height: 100%; }
86
83
 
87
84
  /* Version switcher */