@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/dist/nuvoui.css +6 -4
- package/dist/nuvoui.css.map +1 -1
- package/dist/nuvoui.min.css +1 -1
- package/dist/nuvoui.min.css.map +1 -1
- package/package.json +8 -8
- package/src/styles/base/_base.scss +1 -1
- package/src/styles/components/_tooltips.scss +1 -1
- package/src/styles/functions/_colors.scss +26 -5
- package/src/styles/functions/_math.scss +21 -5
- package/src/styles/layouts/_container.scss +2 -4
- package/src/styles/utilities/_animations.scss +16 -4
- package/src/styles/utilities/_backdrop-filters.scss +4 -1
- package/src/styles/utilities/_colors.scss +4 -1
- package/src/styles/utilities/_typography.scss +4 -1
- package/src/styles/utilities/_z-index.scss +4 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuvoui/core",
|
|
3
|
-
"version": "1.5.
|
|
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.
|
|
80
|
-
"postcss": "^8.5.
|
|
79
|
+
"cssnano": "^7.1.2",
|
|
80
|
+
"postcss": "^8.5.6",
|
|
81
81
|
"postcss-cli": "^11.0.1",
|
|
82
|
-
"postcss-import": "^16.1.
|
|
82
|
+
"postcss-import": "^16.1.1",
|
|
83
83
|
"postcss-nested": "^7.0.2",
|
|
84
|
-
"prettier": "^3.
|
|
85
|
-
"sass": "^1.
|
|
86
|
-
"stylelint": "^16.
|
|
87
|
-
"stylelint-config-standard-scss": "^
|
|
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"
|
|
@@ -83,7 +83,10 @@
|
|
|
83
83
|
$b: "";
|
|
84
84
|
$a: "";
|
|
85
85
|
$has-alpha: $length == 5 or $length == 9;
|
|
86
|
-
$component-size:
|
|
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
|
-
|
|
259
|
-
|
|
260
|
-
|
|
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
|
-
@
|
|
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
|
|
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
|
-
@
|
|
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 ==
|
|
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
|
-
@
|
|
75
|
+
@if $minus {
|
|
76
|
+
@return -1 * $result;
|
|
77
|
+
} @else {
|
|
78
|
+
@return $result;
|
|
79
|
+
}
|
|
68
80
|
}
|
|
69
81
|
}
|
|
70
82
|
|
|
71
|
-
@
|
|
83
|
+
@if $minus {
|
|
84
|
+
@return -1 * $result;
|
|
85
|
+
} @else {
|
|
86
|
+
@return $result;
|
|
87
|
+
}
|
|
72
88
|
}
|
|
@@ -39,12 +39,24 @@ $generated-keyframes: ();
|
|
|
39
39
|
$iteration: map.get($props, "iteration");
|
|
40
40
|
|
|
41
41
|
// Handle units
|
|
42
|
-
$x-unit:
|
|
43
|
-
|
|
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:
|
|
47
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 {
|