@filip.mazev/blocks-core 1.0.5 → 1.0.7
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
|
@@ -144,9 +144,3 @@ this.scrollLockService.disableScroll(this.scrollLockId, {
|
|
|
144
144
|
// Unlock
|
|
145
145
|
this.scrollLockService.enableScroll(this.scrollLockId);
|
|
146
146
|
```
|
|
147
|
-
|
|
148
|
-
## Installation
|
|
149
|
-
|
|
150
|
-
To use Blocks Core, install the package and ensure the SCSS partials are accessible to your build pipeline.
|
|
151
|
-
|
|
152
|
-
_(Installation instructions depend on your specific build/publish setup)._
|
|
@@ -109,10 +109,10 @@ class DeviceTypeService {
|
|
|
109
109
|
getDeviceOS() {
|
|
110
110
|
return this.getMobileOS() ?? this.getDesktopOS();
|
|
111
111
|
}
|
|
112
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
113
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
112
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DeviceTypeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
113
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DeviceTypeService, providedIn: 'root' });
|
|
114
114
|
}
|
|
115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DeviceTypeService, decorators: [{
|
|
116
116
|
type: Injectable,
|
|
117
117
|
args: [{
|
|
118
118
|
providedIn: 'root'
|
|
@@ -165,10 +165,10 @@ class WindowDimensionsService {
|
|
|
165
165
|
});
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
169
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
168
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: WindowDimensionsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
169
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: WindowDimensionsService, providedIn: 'root' });
|
|
170
170
|
}
|
|
171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
171
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: WindowDimensionsService, decorators: [{
|
|
172
172
|
type: Injectable,
|
|
173
173
|
args: [{
|
|
174
174
|
providedIn: 'root'
|
|
@@ -309,10 +309,10 @@ class ScrollLockService {
|
|
|
309
309
|
event.preventDefault();
|
|
310
310
|
event.stopPropagation();
|
|
311
311
|
}
|
|
312
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
313
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
312
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScrollLockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
313
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScrollLockService, providedIn: 'root' });
|
|
314
314
|
}
|
|
315
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ScrollLockService, decorators: [{
|
|
316
316
|
type: Injectable,
|
|
317
317
|
args: [{ providedIn: 'root' }]
|
|
318
318
|
}] });
|
|
@@ -368,10 +368,10 @@ class ThemingService {
|
|
|
368
368
|
};
|
|
369
369
|
this.mediaQueryList.addEventListener('change', this.mediaQueryListener);
|
|
370
370
|
}
|
|
371
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
372
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
371
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ThemingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
372
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ThemingService, providedIn: 'root' });
|
|
373
373
|
}
|
|
374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ThemingService, decorators: [{
|
|
375
375
|
type: Injectable,
|
|
376
376
|
args: [{
|
|
377
377
|
providedIn: 'root'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@filip.mazev/blocks-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./mixins": "./lib/styles/_mixins.scss",
|
|
@@ -27,9 +27,6 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"tslib": "^2.3.0"
|
|
29
29
|
},
|
|
30
|
-
"bin": {
|
|
31
|
-
"blocks-init": "./bin/setup.js"
|
|
32
|
-
},
|
|
33
30
|
"sideEffects": false,
|
|
34
31
|
"module": "fesm2022/filip.mazev-blocks-core.mjs",
|
|
35
32
|
"typings": "types/filip.mazev-blocks-core.d.ts"
|
|
@@ -35,10 +35,14 @@ $default-light-theme-config: (
|
|
|
35
35
|
'button-grayscale': map-get($gray-palette, 200),
|
|
36
36
|
|
|
37
37
|
// Feedback
|
|
38
|
-
'toast-info': #
|
|
39
|
-
'toast-
|
|
40
|
-
'toast-
|
|
41
|
-
'toast-
|
|
38
|
+
'toast-info-bg': #ebf5ff,
|
|
39
|
+
'toast-info-accent': #3b82f6,
|
|
40
|
+
'toast-error-bg': map-get($error-palette, 50),
|
|
41
|
+
'toast-error-accent': map-get($error-palette, 500),
|
|
42
|
+
'toast-success-bg': #f0fdf4,
|
|
43
|
+
'toast-success-accent': #40ca73,
|
|
44
|
+
'toast-warn-bg': map-get($warning-palette, 50),
|
|
45
|
+
'toast-warn-accent': map-get($warning-palette, 500),
|
|
42
46
|
|
|
43
47
|
// Scrollbar & Sliders
|
|
44
48
|
'scroll-bg': map-get($gray-palette, 100),
|
|
@@ -91,10 +95,14 @@ $default-dark-theme-config: (
|
|
|
91
95
|
'button-grayscale': map-get($gray-palette, 700),
|
|
92
96
|
|
|
93
97
|
// Feedback
|
|
94
|
-
'toast-info': #
|
|
95
|
-
'toast-
|
|
96
|
-
'toast-
|
|
97
|
-
'toast-
|
|
98
|
+
'toast-info-bg': #073460,
|
|
99
|
+
'toast-info-accent': #7cb7ff,
|
|
100
|
+
'toast-error-bg': #450a0a,
|
|
101
|
+
'toast-error-accent': map-get($error-palette, 400),
|
|
102
|
+
'toast-success-bg': #052e16,
|
|
103
|
+
'toast-success-accent': #4eee89,
|
|
104
|
+
'toast-warn-bg': #451a03,
|
|
105
|
+
'toast-warn-accent': map-get($warning-palette, 500),
|
|
98
106
|
|
|
99
107
|
// Scrollbar & Sliders
|
|
100
108
|
'scroll-bg': map-get($gray-palette, 800),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
|
|
3
3
|
$high-contrast-light-config: (
|
|
4
|
+
// General
|
|
4
5
|
'primary': $hc-black,
|
|
5
6
|
'secondary': $hc-white,
|
|
6
7
|
'alt': $hc-black,
|
|
@@ -8,6 +9,7 @@ $high-contrast-light-config: (
|
|
|
8
9
|
'accent-alt': $hc-yellow,
|
|
9
10
|
'accent-tertiary': $hc-yellow,
|
|
10
11
|
|
|
12
|
+
// Text
|
|
11
13
|
'text-primary': $hc-black,
|
|
12
14
|
'text-secondary': $hc-black,
|
|
13
15
|
'text-tertiary': $hc-black,
|
|
@@ -18,6 +20,7 @@ $high-contrast-light-config: (
|
|
|
18
20
|
'text-warn': $hc-white,
|
|
19
21
|
'text-confirm': $hc-black,
|
|
20
22
|
|
|
23
|
+
// UI Elements
|
|
21
24
|
'bg-menu-item-hover': $hc-yellow,
|
|
22
25
|
'border': $hc-black,
|
|
23
26
|
'border-grayscale-light': $hc-black,
|
|
@@ -25,16 +28,23 @@ $high-contrast-light-config: (
|
|
|
25
28
|
'error': $hc-red,
|
|
26
29
|
'info': $hc-cyan,
|
|
27
30
|
|
|
31
|
+
// Buttons
|
|
28
32
|
'button-primary': $hc-white,
|
|
29
33
|
'button-confirm': $hc-green,
|
|
30
34
|
'button-warn': $hc-red,
|
|
31
35
|
'button-grayscale': $hc-white,
|
|
32
36
|
|
|
33
|
-
|
|
34
|
-
'toast-
|
|
35
|
-
'toast-
|
|
36
|
-
'toast-
|
|
37
|
-
|
|
37
|
+
// Feedback
|
|
38
|
+
'toast-info-bg': $hc-white,
|
|
39
|
+
'toast-info-accent': $hc-cyan,
|
|
40
|
+
'toast-error-bg': $hc-white,
|
|
41
|
+
'toast-error-accent': #ff5151,
|
|
42
|
+
'toast-success-bg': $hc-white,
|
|
43
|
+
'toast-success-accent': #008800,
|
|
44
|
+
'toast-warn-bg': $hc-white,
|
|
45
|
+
'toast-warn-accent': #ffae0c,
|
|
46
|
+
|
|
47
|
+
// Scrollbar & Sliders
|
|
38
48
|
'scroll-bg': $hc-white,
|
|
39
49
|
'scroll-thumb': $hc-black,
|
|
40
50
|
'scroll-thumb-highlighted': $hc-yellow,
|
|
@@ -43,13 +53,13 @@ $high-contrast-light-config: (
|
|
|
43
53
|
'surface': $hc-white,
|
|
44
54
|
'element': $hc-white,
|
|
45
55
|
'text': $hc-black,
|
|
46
|
-
|
|
47
56
|
'status-warn': $hc-red,
|
|
48
57
|
'status-error': $hc-red,
|
|
49
58
|
'error-subtle': rgba(0, 0, 0, 0.15)
|
|
50
59
|
);
|
|
51
60
|
|
|
52
61
|
$high-contrast-dark-config: (
|
|
62
|
+
// General
|
|
53
63
|
'primary': $hc-white,
|
|
54
64
|
'secondary': $hc-black,
|
|
55
65
|
'alt': $hc-white,
|
|
@@ -57,6 +67,7 @@ $high-contrast-dark-config: (
|
|
|
57
67
|
'accent-alt': $hc-yellow,
|
|
58
68
|
'accent-tertiary': $hc-yellow,
|
|
59
69
|
|
|
70
|
+
// Text
|
|
60
71
|
'text-primary': $hc-white,
|
|
61
72
|
'text-secondary': $hc-white,
|
|
62
73
|
'text-tertiary': $hc-white,
|
|
@@ -67,6 +78,7 @@ $high-contrast-dark-config: (
|
|
|
67
78
|
'text-warn': $hc-white,
|
|
68
79
|
'text-confirm': $hc-black,
|
|
69
80
|
|
|
81
|
+
// UI Elements
|
|
70
82
|
'bg-menu-item-hover': $hc-yellow,
|
|
71
83
|
'border': $hc-white,
|
|
72
84
|
'border-grayscale-light': $hc-white,
|
|
@@ -74,16 +86,23 @@ $high-contrast-dark-config: (
|
|
|
74
86
|
'error': $hc-red,
|
|
75
87
|
'info': $hc-cyan,
|
|
76
88
|
|
|
89
|
+
// Buttons
|
|
77
90
|
'button-primary': $hc-black,
|
|
78
91
|
'button-confirm': $hc-green,
|
|
79
92
|
'button-warn': $hc-red,
|
|
80
93
|
'button-grayscale': $hc-black,
|
|
81
94
|
|
|
82
|
-
|
|
83
|
-
'toast-
|
|
84
|
-
'toast-
|
|
85
|
-
'toast-
|
|
86
|
-
|
|
95
|
+
// Feedback
|
|
96
|
+
'toast-info-bg': $hc-black,
|
|
97
|
+
'toast-info-accent': $hc-cyan,
|
|
98
|
+
'toast-error-bg': $hc-black,
|
|
99
|
+
'toast-error-accent': $hc-red,
|
|
100
|
+
'toast-success-bg': $hc-black,
|
|
101
|
+
'toast-success-accent': #54ff99,
|
|
102
|
+
'toast-warn-bg': $hc-black,
|
|
103
|
+
'toast-warn-accent': $hc-yellow,
|
|
104
|
+
|
|
105
|
+
// Scrollbar & Sliders
|
|
87
106
|
'scroll-bg': $hc-black,
|
|
88
107
|
'scroll-thumb': $hc-white,
|
|
89
108
|
'scroll-thumb-highlighted': $hc-yellow,
|
|
@@ -92,7 +111,6 @@ $high-contrast-dark-config: (
|
|
|
92
111
|
'surface': $hc-black,
|
|
93
112
|
'element': $hc-black,
|
|
94
113
|
'text': $hc-white,
|
|
95
|
-
|
|
96
114
|
'status-warn': $hc-red,
|
|
97
115
|
'status-error': $hc-red,
|
|
98
116
|
'error-subtle': rgba(255, 255, 255, 0.2)
|
|
@@ -35,10 +35,14 @@ $orange-company-light-theme-config: (
|
|
|
35
35
|
'button-grayscale': #d0d0d0b3,
|
|
36
36
|
|
|
37
37
|
// Feedback
|
|
38
|
-
'toast-info': #
|
|
39
|
-
'toast-
|
|
40
|
-
'toast-
|
|
41
|
-
'toast-
|
|
38
|
+
'toast-info-bg': #eaf4fff8,
|
|
39
|
+
'toast-info-accent': #4da6ff,
|
|
40
|
+
'toast-error-bg': #fbbdbef8,
|
|
41
|
+
'toast-error-accent': #FF4C4F,
|
|
42
|
+
'toast-success-bg': #bdf7aef8,
|
|
43
|
+
'toast-success-accent': #04ab47,
|
|
44
|
+
'toast-warn-bg': #ffdc9bf9,
|
|
45
|
+
'toast-warn-accent': #b0841f,
|
|
42
46
|
|
|
43
47
|
// Scrollbar & Sliders
|
|
44
48
|
'scroll-bg': #FFEDD4,
|
|
@@ -91,10 +95,14 @@ $orange-company-dark-theme-config: (
|
|
|
91
95
|
'button-grayscale': #2e2e2eb1,
|
|
92
96
|
|
|
93
97
|
// Feedback
|
|
94
|
-
'toast-info': #
|
|
95
|
-
'toast-
|
|
96
|
-
'toast-
|
|
97
|
-
'toast-
|
|
98
|
+
'toast-info-bg': #2c4063f5,
|
|
99
|
+
'toast-info-accent': #7caeffcd,
|
|
100
|
+
'toast-error-bg': #4d1718f9,
|
|
101
|
+
'toast-error-accent': #f25b5b,
|
|
102
|
+
'toast-success-bg': #145017f8,
|
|
103
|
+
'toast-success-accent': #45bc5b,
|
|
104
|
+
'toast-warn-bg': #87551cf5,
|
|
105
|
+
'toast-warn-accent': #ffb554,
|
|
98
106
|
|
|
99
107
|
// Scroll & Sliders
|
|
100
108
|
'scroll-bg': #712000,
|