@filip.mazev/blocks 1.0.28 → 1.0.34
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 +2 -2
- package/package.json +2 -1
- package/schematics/ng-add/index.js +3 -3
package/README.md
CHANGED
|
@@ -30,6 +30,8 @@ Running the schematic will automatically install the following libraries:
|
|
|
30
30
|
|
|
31
31
|
* @filip.mazev/toastr: A component-driven toast notification system featuring smart queue management, auto-dismissal, and built-in status views.
|
|
32
32
|
|
|
33
|
+
* @filip.mazev/icons: The icon package used across the blocks components
|
|
34
|
+
|
|
33
35
|
## Manual Setup (Without Angular CLI)
|
|
34
36
|
|
|
35
37
|
If you prefer not to use `ng add` or are in an environment that doesn't support Angular Schematics, you can install the packages manually:
|
|
@@ -43,13 +45,11 @@ Then, manually configure your styles.scss:
|
|
|
43
45
|
```scss
|
|
44
46
|
@use '@filip.mazev/blocks-core/src/lib/styles/index' as *;
|
|
45
47
|
@use '@filip.mazev/modal/lib/styles/index' as modal;
|
|
46
|
-
@use '@filip.mazev/toastr/lib/styles/index' as toastr;
|
|
47
48
|
|
|
48
49
|
@layer base {
|
|
49
50
|
:root {
|
|
50
51
|
@include core-theme($purple-light-theme);
|
|
51
52
|
@include modal.modal-theme();
|
|
52
|
-
@include toastr.toastr-theme(());
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
[data-theme='dark'] {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filip.mazev/blocks",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
4
4
|
"schematics": "./schematics/collection.json",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/core": "^21.1.1",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"sideEffects": false,
|
|
23
|
+
"type": "module",
|
|
23
24
|
"dependencies": {
|
|
24
25
|
"tslib": "^2.3.0"
|
|
25
26
|
}
|
|
@@ -25,7 +25,9 @@ function addDependencies(tree, context) {
|
|
|
25
25
|
const packages = [
|
|
26
26
|
'@filip.mazev/blocks-core',
|
|
27
27
|
'@filip.mazev/modal',
|
|
28
|
-
'@filip.mazev/toastr'
|
|
28
|
+
'@filip.mazev/toastr',
|
|
29
|
+
'@filip.mazev/icons',
|
|
30
|
+
'@filip.mazev/button'
|
|
29
31
|
];
|
|
30
32
|
let dependenciesAdded = false;
|
|
31
33
|
packages.forEach(pkg => {
|
|
@@ -82,13 +84,11 @@ function injectStyles(tree, context, options) {
|
|
|
82
84
|
const blocksThemeSnippet = `
|
|
83
85
|
@use '@filip.mazev/blocks-core/src/lib/styles/index' as *;
|
|
84
86
|
@use '@filip.mazev/modal/lib/styles/index' as modal;
|
|
85
|
-
@use '@filip.mazev/toastr/lib/styles/index' as toastr;
|
|
86
87
|
|
|
87
88
|
@layer base {
|
|
88
89
|
:root {
|
|
89
90
|
@include core-theme(${lightThemeVar});
|
|
90
91
|
@include modal.modal-theme();
|
|
91
|
-
@include toastr.toastr-theme(());
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
[data-theme='dark'] {
|