@nuvoui/core 1.4.4 → 1.4.5

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": "@nuvoui/core",
3
- "version": "1.4.4",
3
+ "version": "1.4.5",
4
4
  "description": "NuvoUI is a human-friendly SCSS framework designed for simplicity, and modern responsive designs.",
5
5
  "author": {
6
6
  "name": "AALA IT Solutions",
@@ -45,7 +45,7 @@
45
45
  $result: $result * 10 + map.get($numbers, $character);
46
46
  } @else {
47
47
  $digits: $digits * 10;
48
- $result: $result + map.get($numbers, $character) / $digits;
48
+ $result: $result + math.div(map.get($numbers, $character), $digits);
49
49
  }
50
50
  } @else {
51
51
  // Non-numeric character found - check for unit
@@ -9,6 +9,7 @@
9
9
  @use "../config/breakpoints" as config-breakpoint;
10
10
  @use "../config/typography" as config-typo;
11
11
  @use "../functions/feature-flags" as fn-flags;
12
+ @use "../functions/math" as fn-math;
12
13
 
13
14
  // config-typo Utilities
14
15
  // Classes:
@@ -54,9 +55,15 @@
54
55
  } @else if meta.type-of($weight) == "number" {
55
56
  font-weight: $weight;
56
57
  } @else {
57
- @warn "Unknown font weight: #{$weight} setting it to default.";
58
-
59
- font-weight: 400; // Default to normal weight
58
+ // Try converting string to number (handles "600" -> 600)
59
+ $converted: fn-math.to-number($weight);
60
+ @if meta.type-of($converted) == "number" {
61
+ font-weight: $converted;
62
+ } @else {
63
+ @warn "Unknown font weight: #{$weight} setting it to default.";
64
+
65
+ font-weight: 400; // Default to normal weight
66
+ }
60
67
  }
61
68
  }
62
69