@vectoriox/iox-ui 5.13.0 → 5.13.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": "@vectoriox/iox-ui",
3
- "version": "5.13.0",
3
+ "version": "5.13.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=20.0.0",
6
6
  "@angular/core": ">=20.0.0",
@@ -1,4 +1,3 @@
1
- import { deriveBrandTokens } from './brand';
2
1
  import { SPEC_LEGACY_ALIASES, SPEC_TIERS } from './flavor-spec.generated';
3
2
 
4
3
  /**
@@ -18,15 +17,6 @@ export function specTokenNames(): ReadonlySet<string> {
18
17
  ]);
19
18
  }
20
19
 
21
- /**
22
- * Names a PRE-DS2 rule still reads, because changing them would restyle a saved legacy page (D5):
23
- * the brand ramp F2 shipped (`deriveBrandTokens`, e.g. the legacy switch's `brand-500`). Computed
24
- * from the shipped function — never retyped — and only ever legitimate in an UNMARKED rule.
25
- */
26
- export function legacyTokenNames(): ReadonlySet<string> {
27
- return new Set(deriveBrandTokens('#808080', {}).map(t => t.name));
28
- }
29
-
30
20
  const REFERENCE = /var\(\s*--iox-([a-z0-9-]+)/gi;
31
21
 
32
22
  /** Every distinct token a stylesheet READS (`var(--iox-x…)`), in first-seen order. */
@@ -34,10 +24,9 @@ export function tokenReferences(css: string): string[] {
34
24
  return [...new Set(Array.from(css.matchAll(REFERENCE), m => m[1]))];
35
25
  }
36
26
 
37
- /** The referenced names that are neither spec tokens, legacy names, nor in `alsoAllowed`. */
27
+ /** The referenced names that are neither spec tokens nor in `alsoAllowed`. */
38
28
  export function unknownTokenReferences(css: string, alsoAllowed: Iterable<string> = []): string[] {
39
29
  const spec = specTokenNames();
40
- const legacy = legacyTokenNames();
41
30
  const extra = new Set(alsoAllowed);
42
- return tokenReferences(css).filter(name => !spec.has(name) && !legacy.has(name) && !extra.has(name));
31
+ return tokenReferences(css).filter(name => !spec.has(name) && !extra.has(name));
43
32
  }
@@ -55,15 +55,16 @@
55
55
  padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
56
56
  }
57
57
 
58
- /* ── switch (control='switch') — a checkbox in switch clothing. These are the PRE-DS2 values: a
59
- Field saved before element styles keeps them whatever tokens the org holds (§3b-bis). ── */
58
+ /* ── switch (control='switch') — a checkbox in switch clothing. A Field saved before element styles
59
+ keeps exactly this look WHATEVER tokens the org holds (§3b-bis, D5): literals only, because a
60
+ token read here (the old `--iox-line` / `--iox-brand-500`) changes the moment seeding writes it. ── */
60
61
  .iox-field__control--switch {
61
62
  appearance: none;
62
63
  -webkit-appearance: none;
63
64
  width: 38px;
64
65
  height: 22px;
65
66
  border-radius: 999px;
66
- background: var(--iox-line, #d8d4d1);
67
+ background: #d8d4d1;
67
68
  position: relative;
68
69
  cursor: pointer;
69
70
  transition: background 150ms ease-out;
@@ -81,7 +82,7 @@
81
82
  transition: transform 150ms ease-out;
82
83
  }
83
84
  .iox-field__control--switch:checked {
84
- background: var(--iox-brand-500, #1f1d1b);
85
+ background: #1f1d1b;
85
86
  }
86
87
  .iox-field__control--switch:checked::before {
87
88
  transform: translateX(16px);
@@ -93,7 +94,7 @@
93
94
  /* ── range (control='range') ── */
94
95
  .iox-field__control--range {
95
96
  width: 100%;
96
- accent-color: var(--iox-brand-500, #1f1d1b);
97
+ accent-color: #1f1d1b;
97
98
  }
98
99
 
99
100
  /* ══ The system look — ONLY under the element-style marker (design-system §3b-bis) ═══════════════