@solexllc/usx-theme 0.2.1 → 0.2.3

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": "@solexllc/usx-theme",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Design tokens package for USX.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -33,18 +33,20 @@
33
33
  @return $fallback;
34
34
  }
35
35
 
36
- // Guards composite values: returns $value only when $condition is non-null,
37
- // so partial composites like `1px solid null` never reach the CSS output.
38
- @function usx-when($condition, $value) {
36
+ // Omits null/false values; an optional second argument guards composites
37
+ // so partial values like `1px solid null` never reach the CSS output.
38
+ // An optional third argument supplies a fallback for when $condition is
39
+ // falsy, for compile-time constants that always have a usable value.
40
+ @function usx-when($condition, $value: $condition, $fallback: null) {
39
41
  @if not $condition {
40
- @return null;
42
+ @return $fallback;
41
43
  }
42
44
 
43
45
  @return $value;
44
46
  }
45
47
 
46
48
  // ── Layout (compile-time only) ───────────────────────────────────────────────
47
- $max-layout-width: 60rem !default;
49
+ $max-layout-width: 64rem !default;
48
50
  $max-sidebar-width: 16rem !default;
49
51
 
50
52
  // ── Breakpoints (compile-time only) ─────────────────────────────────────────
@@ -749,7 +751,7 @@ $usx-textarea-padding: null !default;
749
751
 
750
752
  // ── Component tokens: File Input ─────────────────────────────────────────────
751
753
  // Own hooks for the dropzone target and the managed-multiple file-item rows
752
- // (see FileInput.jsx) so either can be overridden independently — both
754
+ // (see FileInput.tsx) so either can be overridden independently — both
753
755
  // chain to the shared border role/width by default, same as other
754
756
  // components' advanced border overrides above.
755
757
  $usx-file-input-border-var: null !default;