@ulu/frontend 0.0.13 → 0.0.15
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.
|
@@ -25,7 +25,7 @@ export class CssBreakpoints {
|
|
|
25
25
|
valueFromPsuedo: false,
|
|
26
26
|
customProperty: "--breakpoint",
|
|
27
27
|
psuedoSelector: ':before',
|
|
28
|
-
order: ["small", "medium", "large"],
|
|
28
|
+
order: ["none", "small", "medium", "large"],
|
|
29
29
|
debug: false
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
@@ -76,6 +76,10 @@ export class CssBreakpoints {
|
|
|
76
76
|
*/
|
|
77
77
|
update() {
|
|
78
78
|
const name = this.getBreakpoint();
|
|
79
|
+
if (!name) {
|
|
80
|
+
logError(this, 'Unable to get current breakpoint, maybe order is incorrect? Breakpoint check skipped!');
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
79
83
|
// console.log('name:\n', name);
|
|
80
84
|
if (name === this.active) return;
|
|
81
85
|
// this.log(`current breakpoint: ${ name }`);
|
|
@@ -117,7 +121,7 @@ export class CssBreakpoints {
|
|
|
117
121
|
/**
|
|
118
122
|
* Get a breakpoint by key
|
|
119
123
|
* @param {String} name The name of the breakpoint to get
|
|
120
|
-
* @return {Breakpoint} Breakpoint to act on (see
|
|
124
|
+
* @return {Breakpoint} Breakpoint to act on (see Breakpoint class)
|
|
121
125
|
*/
|
|
122
126
|
at(name) {
|
|
123
127
|
const bp = this.breakpoints[name];
|
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ export class CssBreakpoints {
|
|
|
53
53
|
/**
|
|
54
54
|
* Get a breakpoint by key
|
|
55
55
|
* @param {String} name The name of the breakpoint to get
|
|
56
|
-
* @return {Breakpoint} Breakpoint to act on (see
|
|
56
|
+
* @return {Breakpoint} Breakpoint to act on (see Breakpoint class)
|
|
57
57
|
*/
|
|
58
58
|
at(name: string): Breakpoint;
|
|
59
59
|
}
|