@nuvoui/core 1.5.1 → 1.5.2

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.5.1",
3
+ "version": "1.5.2",
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",
@@ -76,15 +76,15 @@
76
76
  "not dead"
77
77
  ],
78
78
  "devDependencies": {
79
- "cssnano": "^7.0.6",
80
- "postcss": "^8.5.3",
79
+ "cssnano": "^7.1.2",
80
+ "postcss": "^8.5.6",
81
81
  "postcss-cli": "^11.0.1",
82
- "postcss-import": "^16.1.0",
82
+ "postcss-import": "^16.1.1",
83
83
  "postcss-nested": "^7.0.2",
84
- "prettier": "^3.5.3",
85
- "sass": "^1.85.1",
86
- "stylelint": "^16.16.0",
87
- "stylelint-config-standard-scss": "^13.1.0"
84
+ "prettier": "^3.7.4",
85
+ "sass": "^1.97.0",
86
+ "stylelint": "^16.26.1",
87
+ "stylelint-config-standard-scss": "^16.0.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "sass": "^1.x"
@@ -195,7 +195,7 @@
195
195
  padding: 0 !important;
196
196
  margin: -1px !important;
197
197
  overflow: hidden !important;
198
- clip: rect(0, 0, 0, 0) !important;
198
+ clip-path: inset(50%) !important;
199
199
  white-space: nowrap !important;
200
200
  border: 0 !important;
201
201
  }
@@ -2,7 +2,7 @@
2
2
  @use "../functions/feature-flags" as fn-flags;
3
3
  @mixin tooltip-variables {
4
4
  // Tooltip core variables
5
- --tooltip-bg: rgba(17 17 17 / 90%);
5
+ --tooltip-bg: rgb(17 17 17 / 90%);
6
6
  --tooltip-shadow-color: rgb(0 0 0 / 20%);
7
7
  --tooltip-text-color: #fff;
8
8
 
@@ -83,7 +83,10 @@
83
83
  $b: "";
84
84
  $a: "";
85
85
  $has-alpha: $length == 5 or $length == 9;
86
- $component-size: if($length < 6, 1, 2);
86
+ $component-size: 2;
87
+ @if $length < 6 {
88
+ $component-size: 1;
89
+ }
87
90
 
88
91
  // Validate and extract color components
89
92
  @for $i from 2 through $length {
@@ -255,9 +258,23 @@ $color-cache: (); // to store the generated colors
255
258
  $green: math.div(color.channel($color, "green"), 255);
256
259
  $blue: math.div(color.channel($color, "blue"), 255);
257
260
 
258
- $red: if($red <= 0.0393, math.div($red, 12.92), math.pow((math.div($red + 0.055, 1.055)), 2.4));
259
- $green: if($green <= 0.0393, math.div($green, 12.92), math.pow((math.div($green + 0.055, 1.055)), 2.4));
260
- $blue: if($blue <= 0.0393, math.div($blue, 12.92), math.pow((math.div($blue + 0.055, 1.055)), 2.4));
261
+ @if $red <= 0.0393 {
262
+ $red: math.div($red, 12.92);
263
+ } @else {
264
+ $red: math.pow(math.div($red + 0.055, 1.055), 2.4);
265
+ }
266
+
267
+ @if $green <= 0.0393 {
268
+ $green: math.div($green, 12.92);
269
+ } @else {
270
+ $green: math.pow(math.div($green + 0.055, 1.055), 2.4);
271
+ }
272
+
273
+ @if $blue <= 0.0393 {
274
+ $blue: math.div($blue, 12.92);
275
+ } @else {
276
+ $blue: math.pow(math.div($blue + 0.055, 1.055), 2.4);
277
+ }
261
278
 
262
279
  @return 0.2126 * $red + 0.7152 * $green + 0.0722 * $blue;
263
280
  }
@@ -274,7 +291,11 @@ $color-cache: (); // to store the generated colors
274
291
  @if map.has-key(config-theme.$light-theme, "text-inverted") {
275
292
  $light-color: map.get(config-theme.$light-theme, "text-inverted");
276
293
  }
277
- @return if($luminance > 0.55, $dark-color, $light-color);
294
+ @if $luminance > 0.55 {
295
+ @return $dark-color;
296
+ } @else {
297
+ @return $light-color;
298
+ }
278
299
  }
279
300
 
280
301
  @function is-valid-shade($shade) {
@@ -32,8 +32,12 @@
32
32
  "9": 9,
33
33
  );
34
34
  $number-chars-end: 0;
35
+ $start-index: 1;
36
+ @if $minus {
37
+ $start-index: 2;
38
+ }
35
39
 
36
- @for $i from if($minus, 2, 1) through string.length($val) {
40
+ @for $i from $start-index through string.length($val) {
37
41
  $character: string.slice($val, $i, $i);
38
42
 
39
43
  @if list.index(map.keys($numbers), $character) or $character == "." {
@@ -54,19 +58,31 @@
54
58
  // Look for valid unit
55
59
  @each $unit in config-constants.$units {
56
60
  @if $rest == $unit {
57
- @return if($minus, -$result, $result) + string.unquote($unit);
61
+ @if $minus {
62
+ @return (-1 * $result) + string.unquote($unit);
63
+ } @else {
64
+ @return $result + string.unquote($unit);
65
+ }
58
66
  }
59
67
  }
60
68
 
61
69
  // No valid unit - return null for non-numeric strings
62
- @if $i == if($minus, 2, 1) {
70
+ @if $i == $start-index {
63
71
  @return null; // First char is non-numeric
64
72
  }
65
73
 
66
74
  // Otherwise return just the parsed number
67
- @return if($minus, -$result, $result);
75
+ @if $minus {
76
+ @return -1 * $result;
77
+ } @else {
78
+ @return $result;
79
+ }
68
80
  }
69
81
  }
70
82
 
71
- @return if($minus, -$result, $result);
83
+ @if $minus {
84
+ @return -1 * $result;
85
+ } @else {
86
+ @return $result;
87
+ }
72
88
  }
@@ -11,10 +11,8 @@
11
11
  }
12
12
 
13
13
  @mixin container-padding($padding) {
14
- & {
15
- padding-top: $padding;
16
- padding-bottom: $padding;
17
- }
14
+ padding-top: $padding;
15
+ padding-bottom: $padding;
18
16
  }
19
17
 
20
18
  // Responsive container mixin
@@ -39,12 +39,24 @@ $generated-keyframes: ();
39
39
  $iteration: map.get($props, "iteration");
40
40
 
41
41
  // Handle units
42
- $x-unit: if($x, fn-units.safe-unit-name(math.unit($x)), "-");
43
- $y-unit: if($y, fn-units.safe-unit-name(math.unit($y)), "-");
42
+ $x-unit: "-";
43
+ @if $x {
44
+ $x-unit: fn-units.safe-unit-name(math.unit($x));
45
+ }
46
+ $y-unit: "-";
47
+ @if $y {
48
+ $y-unit: fn-units.safe-unit-name(math.unit($y));
49
+ }
44
50
 
45
51
  // Clean values (remove units)
46
- $clean-x: if($x, fn-units.strip-unit($x), 0);
47
- $clean-y: if($y, fn-units.strip-unit($y), 0);
52
+ $clean-x: 0;
53
+ @if $x {
54
+ $clean-x: fn-units.strip-unit($x);
55
+ }
56
+ $clean-y: 0;
57
+ @if $y {
58
+ $clean-y: fn-units.strip-unit($y);
59
+ }
48
60
 
49
61
  $animation-name: anim-bounce-#{$clean-x}#{$x-unit}-#{$clean-y}#{$y-unit};
50
62
 
@@ -216,7 +216,10 @@ $backdrop-filter-presets: (
216
216
 
217
217
  // Generate utility classes
218
218
  @mixin generate-backdrop-filter-utilities($breakpoint: null) {
219
- $suffix: if($breakpoint, "\\@#{$breakpoint}", "");
219
+ $suffix: "";
220
+ @if $breakpoint {
221
+ $suffix: "\\@#{$breakpoint}";
222
+ }
220
223
 
221
224
  // Base layer class
222
225
  #{config-flags.$parent-selector} .backdrop-layer#{$suffix} {
@@ -18,7 +18,10 @@
18
18
  color: color-fn.find-text-color($color);
19
19
 
20
20
  @media (prefers-contrast: more) {
21
- $adjusted: if(color.lightness($color) > 50%, color.adjust($color, $lightness: -10%), color.adjust($color, $lightness: 10%));
21
+ $adjusted: color.adjust($color, $lightness: 10%);
22
+ @if color.lightness($color) > 50% {
23
+ $adjusted: color.adjust($color, $lightness: -10%);
24
+ }
22
25
 
23
26
  background-color: $adjusted;
24
27
  color: color-fn.find-text-color($adjusted);
@@ -271,7 +271,10 @@
271
271
  }
272
272
 
273
273
  @mixin responsive-config-typo($breakpoint: null) {
274
- $suffix: if($breakpoint, "\\@#{$breakpoint}", "");
274
+ $suffix: "";
275
+ @if $breakpoint {
276
+ $suffix: "\\@#{$breakpoint}";
277
+ }
275
278
 
276
279
  @each $size, $val in config-typo.$font-sizes {
277
280
  #{config-flags.$parent-selector} .text-#{$size}#{$suffix} {
@@ -66,7 +66,10 @@ $z-index-levels: (
66
66
  // Generate z-index utility classes
67
67
  // @param {String} $breakpoint - Optional breakpoint name for responsive variants
68
68
  @mixin z-index-utilities($breakpoint: null) {
69
- $suffix: if($breakpoint, "\\@#{$breakpoint}", "");
69
+ $suffix: "";
70
+ @if $breakpoint {
71
+ $suffix: "\\@#{$breakpoint}";
72
+ }
70
73
 
71
74
  // Standard numbered z-index utilities
72
75
  @each $key, $value in $z-indexes {