@enigmatry/scss-foundation 17.0.0-preview.4 → 17.0.0-preview.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.
@@ -1,6 +1,6 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1715606148441" clover="3.2.0">
3
- <project timestamp="1715606148441" name="All files">
2
+ <coverage generated="1715683174581" clover="3.2.0">
3
+ <project timestamp="1715683174581" name="All files">
4
4
  <metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0" elements="0" coveredelements="0" complexity="0" loc="0" ncloc="0" packages="0" files="0" classes="0"/>
5
5
  </project>
6
6
  </coverage>
@@ -86,7 +86,7 @@
86
86
  <div class='footer quiet pad2 space-top1 center small'>
87
87
  Code coverage generated by
88
88
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
89
- at 2024-05-13T13:15:48.436Z
89
+ at 2024-05-14T10:39:34.578Z
90
90
  </div>
91
91
  <script src="prettify.js"></script>
92
92
  <script>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enigmatry/scss-foundation",
3
- "version": "17.0.0-preview.4",
3
+ "version": "17.0.0-preview.5",
4
4
  "author": "Enigmatry",
5
5
  "description": "Collection of SCSS utilities useful for the most of projects.",
6
6
  "homepage": "https://github.com/enigmatry/entry-angular-building-blocks/tree/master/libs/scss-foundation#readme",
@@ -12,7 +12,7 @@
12
12
  "scripts": {
13
13
  "build": "sass --style=compressed --load-path=src src/partials/main.scss dist/scss-foundation.css",
14
14
  "build-modules": "sass --style=compressed --load-path=src --load-path=../../node_modules src/modules/_index.scss dist/scss-foundation-modules.css",
15
- "lint": "stylelint --fix src/**/*.scss",
15
+ "lint": "stylelint --fix src/**/*.scss --config ../../.stylelintrc.json",
16
16
  "test": "jest --coverage --colors"
17
17
  },
18
18
  "peerDependencies": {
@@ -1,15 +1,16 @@
1
1
  @use 'sass:list';
2
2
  @use 'sass:string';
3
3
  @use 'sass:map';
4
+ @use 'sass:meta';
4
5
  @use 'variables' as vars;
5
6
 
6
7
  @function value-from($object, $path) {
7
8
 
8
- @if type-of($object) != map {
9
+ @if meta.type-of($object) != map {
9
10
  @return -error('Please provide valid object! Given value: ' + $object);
10
11
  }
11
12
 
12
- @if type-of($path) != string {
13
+ @if meta.type-of($path) != string {
13
14
  @return -error('Please provide valid path! Given value: ' + $path);
14
15
  }
15
16
 
@@ -7,13 +7,14 @@ $breakpoints: () !default;
7
7
  @use 'sass-true';
8
8
  @use 'sass-true/sass/throw';
9
9
  @use '../../modules/variables' as vars;
10
+ @use 'sass:list';
10
11
  @forward '../../modules/responsiveness/breakpoints' with (
11
12
  $breakpoints: $breakpoints
12
13
  );
13
14
  @use '../../modules/responsiveness/breakpoints';
14
15
  @use 'grid-core';
15
16
 
16
- @if length($breakpoints) == 0 {
17
+ @if list.length($breakpoints) == 0 {
17
18
  $breakpoints: vars.$default-breakpoints;
18
19
  }
19
20
 
@@ -1,5 +1,7 @@
1
1
  /* stylelint-disable declaration-block-no-redundant-longhand-properties */
2
2
  /* stylelint-disable declaration-empty-line-before */
3
+ @use 'sass:meta';
4
+
3
5
  @mixin set-position($position, $top, $right, $bottom, $left) {
4
6
 
5
7
  $positions: (
@@ -10,7 +12,7 @@
10
12
  );
11
13
 
12
14
  @each $position in $positions {
13
- @if (($position != 'unset') and (type-of($position) != number)) {
15
+ @if (($position != 'unset') and (meta.type-of($position) != number)) {
14
16
  @error 'Please provide the right parameters for position (number or 'unset')! Given value: ' + $position;
15
17
  }
16
18
  }
@@ -8,17 +8,17 @@ $breakpoints: () !default;
8
8
  @use '../../modules/variables' as variables;
9
9
 
10
10
  // Had to be done this way due to current limitations of collection initialization in Sass.
11
- @if length($breakpoints) == 0 {
11
+ @if list.length($breakpoints) == 0 {
12
12
  $breakpoints: variables.$default-breakpoints;
13
13
  }
14
14
 
15
15
  @function -get-size($size) {
16
- @if (map-has-key($breakpoints, $size)) {
16
+ @if (map.has-key($breakpoints, $size)) {
17
17
  $gotten-size: map.get($breakpoints, $size);
18
18
  @return map.get($gotten-size, size);
19
19
  }
20
20
 
21
- @error 'Size must be any of following values: ' + map-keys($breakpoints) + '. Given size: ' + $size;
21
+ @error 'Size must be any of following values: ' + map.keys($breakpoints) + '. Given size: ' + $size;
22
22
  }
23
23
 
24
24
  @function -presentation($string, $with-capitalization) {
@@ -12,7 +12,7 @@
12
12
  );
13
13
  }
14
14
 
15
- @return to-upper-case(str-slice($string, 1, 1)) + str-slice($string, 2);
15
+ @return string.to-upper-case(string.slice($string, 1, 1)) + string.slice($string, 2);
16
16
  }
17
17
 
18
18
  @mixin ellipsis($num: 1) {
package/.stylelintrc.json DELETED
@@ -1,32 +0,0 @@
1
- {
2
- "extends": "@enigmatry/stylelint-config",
3
- "rules": {
4
- "value-keyword-case": [
5
- "lower",
6
- {
7
- "ignoreKeywords": [
8
- "largeDesktop",
9
- "extraLargeDesktop"
10
- ]
11
- }
12
- ],
13
- "annotation-no-unknown": [
14
- true,
15
- {
16
- "ignoreAnnotations": [
17
- "default"
18
- ]
19
- }
20
- ],
21
- "media-feature-name-allowed-list": ["min-width", "width"],
22
- "scss/no-duplicate-dollar-variables": [
23
- true,
24
- {
25
- "ignoreInsideAtRules": [
26
- "each",
27
- "while"
28
- ]
29
- }
30
- ]
31
- }
32
- }