@waggylabs/yumekit 0.4.3-beta.44 → 0.4.3-beta.45
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.
|
@@ -27,7 +27,10 @@ export class YumeStack extends HTMLElement {
|
|
|
27
27
|
/** Main-axis distribution (flex mode only). */
|
|
28
28
|
get justify(): string;
|
|
29
29
|
set responsive(val: boolean);
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Auto-reduce columns at narrow container widths. Defaults to `true`;
|
|
32
|
+
* set `responsive="false"` to disable.
|
|
33
|
+
*/
|
|
31
34
|
get responsive(): boolean;
|
|
32
35
|
render(): void;
|
|
33
36
|
_container: Element;
|
|
@@ -27,7 +27,10 @@ export class YumeStack extends HTMLElement {
|
|
|
27
27
|
/** Main-axis distribution (flex mode only). */
|
|
28
28
|
get justify(): string;
|
|
29
29
|
set responsive(val: boolean);
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Auto-reduce columns at narrow container widths. Defaults to `true`;
|
|
32
|
+
* set `responsive="false"` to disable.
|
|
33
|
+
*/
|
|
31
34
|
get responsive(): boolean;
|
|
32
35
|
render(): void;
|
|
33
36
|
_container: Element;
|
|
@@ -110,13 +110,19 @@ class YumeStack extends HTMLElement {
|
|
|
110
110
|
this.setAttribute("justify", val);
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* Auto-reduce columns at narrow container widths. Defaults to `true`;
|
|
115
|
+
* set `responsive="false"` to disable.
|
|
116
|
+
*/
|
|
114
117
|
get responsive() {
|
|
115
|
-
return this.
|
|
118
|
+
return this.getAttribute("responsive") !== "false";
|
|
116
119
|
}
|
|
117
120
|
set responsive(val) {
|
|
118
|
-
if (val
|
|
119
|
-
|
|
121
|
+
if (val === false || val === "false") {
|
|
122
|
+
this.setAttribute("responsive", "false");
|
|
123
|
+
} else {
|
|
124
|
+
this.removeAttribute("responsive");
|
|
125
|
+
}
|
|
120
126
|
}
|
|
121
127
|
|
|
122
128
|
// -------------------------------------------------------------------------
|
package/dist/index.js
CHANGED
|
@@ -13432,13 +13432,19 @@ class YumeStack extends HTMLElement {
|
|
|
13432
13432
|
this.setAttribute("justify", val);
|
|
13433
13433
|
}
|
|
13434
13434
|
|
|
13435
|
-
/**
|
|
13435
|
+
/**
|
|
13436
|
+
* Auto-reduce columns at narrow container widths. Defaults to `true`;
|
|
13437
|
+
* set `responsive="false"` to disable.
|
|
13438
|
+
*/
|
|
13436
13439
|
get responsive() {
|
|
13437
|
-
return this.
|
|
13440
|
+
return this.getAttribute("responsive") !== "false";
|
|
13438
13441
|
}
|
|
13439
13442
|
set responsive(val) {
|
|
13440
|
-
if (val
|
|
13441
|
-
|
|
13443
|
+
if (val === false || val === "false") {
|
|
13444
|
+
this.setAttribute("responsive", "false");
|
|
13445
|
+
} else {
|
|
13446
|
+
this.removeAttribute("responsive");
|
|
13447
|
+
}
|
|
13442
13448
|
}
|
|
13443
13449
|
|
|
13444
13450
|
// -------------------------------------------------------------------------
|