ngwr 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -24,7 +24,7 @@ $ yarn add ngwr
24
24
 
25
25
  Don't forget to add styles:
26
26
  ```scss
27
- @import 'ngwr';
27
+ @use 'ngwr';
28
28
  ```
29
29
 
30
30
  ## [Components](https://ngwr.dev/components)
package/_index.scss CHANGED
@@ -1,31 +1,31 @@
1
1
  /*!
2
- * Copyright 2022 Garuna LLP
3
- * Copyright 2022 Stingray Technologies LLP
2
+ * Copyright 2022-2023 Garuna LLP
3
+ * Copyright 2022-2023 Stingray Technologies LLP
4
4
  *
5
5
  * Licensed under MIT
6
6
  *
7
7
  * https://github.com/thekhegay/ngwr
8
8
  */
9
9
 
10
- @import 'styles/vars';
10
+ @forward 'styles/maps';
11
+ @forward 'styles/functions';
12
+ @forward 'styles/mixins';
11
13
 
12
- @import 'styles/root';
13
- @import 'styles/reset';
14
+ @use 'styles/root';
15
+ @use 'styles/reset';
16
+ @use 'styles/grid';
17
+ @use 'styles/animations';
18
+ @use 'styles/cdk';
14
19
 
15
- @import 'styles/grid';
16
- @import 'styles/animations';
17
- @import 'styles/cdk';
18
-
19
- @import 'backdrop/backdrop';
20
-
21
- @import 'button/button';
22
- @import 'checkbox/checkbox';
23
- @import 'dialog/dialog';
24
- @import 'divider/divider';
25
- @import 'form/form';
26
- @import 'icon/icon';
27
- @import 'input/input';
28
- @import 'skeleton/skeleton';
29
- @import 'spinner/spinner';
30
- @import 'tag/tag';
20
+ @use 'backdrop/backdrop';
21
+ @use 'button/button';
22
+ @use 'checkbox/checkbox';
23
+ @use 'dialog/dialog';
24
+ @use 'divider/divider';
25
+ @use 'form/form';
26
+ @use 'icon/icon';
27
+ @use 'input/input';
28
+ @use 'skeleton/skeleton';
29
+ @use 'spinner/spinner';
30
+ @use 'tag/tag';
31
31
 
@@ -1,4 +1,4 @@
1
- @import '../styles/vars';
1
+ @use '../styles/maps' as maps;
2
2
 
3
3
  .wr-btn {
4
4
  display: inline-block;
@@ -135,7 +135,7 @@
135
135
  }
136
136
  }
137
137
 
138
- @each $color in $theme-colors {
138
+ @each $color in maps.$theme-colors-map {
139
139
  .wr-btn--#{$color} {
140
140
  color: var(--wr-color-#{$color}-contrast);
141
141
  background-color: var(--wr-color-#{$color});
@@ -1,4 +1,4 @@
1
- @import '../styles/vars';
1
+ @use '../styles/maps' as maps;
2
2
 
3
3
  .wr-divider {
4
4
  --wr-divider-width: 1px;
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
 
30
- @each $color, $value in $theme-colors {
30
+ @each $color, $value in maps.$theme-colors-map {
31
31
  .wr-divider--#{$color} {
32
32
  border-bottom-color: var(--wr-color-#{$color});
33
33
  }