@nulllogic/scssleon 1.0.38 → 1.0.39

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,8 +1,8 @@
1
1
  {
2
2
  "name": "@nulllogic/scssleon",
3
3
  "description": "Most advanced, simple and clean SCSS framework",
4
- "version": "1.0.38",
5
- "version_short": "1.0.38",
4
+ "version": "1.0.39",
5
+ "version_short": "1.0.39",
6
6
  "keywords": [
7
7
  "css",
8
8
  "sass",
@@ -3,10 +3,10 @@
3
3
  @use 'sass:string';
4
4
 
5
5
  @function replace($string, $search, $replace: '') {
6
- $index: str-index($string, $search);
6
+ $index: string.index($string, $search);
7
7
 
8
8
  @if $index {
9
- @return str-slice($string, 1, $index - 1) + $replace + replace(str-slice($string, $index + string.length($search)), $search, $replace);
9
+ @return string.slice($string, 1, $index - 1) + $replace + replace(string.slice($string, $index + string.length($search)), $search, $replace);
10
10
  }
11
11
 
12
12
  @return $string;
@@ -20,7 +20,7 @@
20
20
  @return nil;
21
21
  }
22
22
 
23
- @if (str-index($value, '.')) {
23
+ @if (string.index($value, '.')) {
24
24
  $path: string.split($value, '.');
25
25
  $val: map.get($config, $path...);
26
26
  } @else {
@@ -42,7 +42,7 @@
42
42
  @return nil;
43
43
  }
44
44
 
45
- @if (str-index($value, '.')) {
45
+ @if (string.index($value, '.')) {
46
46
  $path: string.split($value, '.');
47
47
  $val: map.get($theme, $path...);
48
48
  } @else {
@@ -16,11 +16,11 @@
16
16
  @mixin generate-css-variables($tag, $property, $value, $config) {
17
17
  $prefix: functions.get-config($config, "prefix");
18
18
 
19
- @if (meta.type-of($value) == "string" and str-index($value, "var(--") == 1) {
19
+ @if (meta.type-of($value) == "string" and string.index($value, "var(--") == 1) {
20
20
  #{$property}: #{meta.inspect(
21
21
  functions.replace($value, "--", "--" + $prefix + "-" + $tag + "-")
22
22
  )};
23
- } @else if (type-of($value) == "string" and str-index($value, "var(global(") == 1) {
23
+ } @else if (meta.type-of($value) == "string" and string.index($value, "var(global(") == 1) {
24
24
  #{$property}: #{meta.inspect(
25
25
  functions.replace(
26
26
  string.slice($value, 0, string.length($value) - 1),
@@ -79,7 +79,7 @@
79
79
  // Looking for "--" symbols in the beginning of the property
80
80
  // Example: --flex-direction : row
81
81
  @if (
82
- meta.type-of($property) == "string" and str-index($property, "--") == 1
82
+ meta.type-of($property) == "string" and string.index($property, "--") == 1
83
83
  ) {
84
84
  @include generate-css-properties($tag, $property, $value, $config);
85
85
  }