uikit 3.14.3 → 3.14.4-dev.07daf8fb8
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/CHANGELOG.md +54 -3
- package/build/util.js +1 -0
- package/dist/css/uikit-core-rtl.css +428 -95
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +428 -95
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +444 -108
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +444 -108
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +7 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +203 -76
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +203 -76
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +4 -5
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +4 -5
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +22 -7
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +4 -5
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +22 -7
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +3 -3
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +138 -76
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +1801 -1573
- package/dist/js/uikit-core.min.js +14 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +1081 -836
- package/dist/js/uikit.min.js +14 -1
- package/package.json +1 -1
- package/src/images/{backgrounds/nav-parent-open.svg → components/nav-parent-icon-large.svg} +0 -0
- package/src/images/components/nav-parent-icon.svg +3 -0
- package/src/images/components/navbar-parent-icon.svg +3 -0
- package/src/images/components/navbar-toggle-icon.svg +22 -3
- package/src/js/api/state.js +2 -2
- package/src/js/components/filter.js +5 -3
- package/src/js/components/sortable.js +2 -3
- package/src/js/core/accordion.js +9 -17
- package/src/js/core/alert.js +35 -14
- package/src/js/core/drop.js +102 -48
- package/src/js/core/height-viewport.js +22 -9
- package/src/js/core/icon.js +16 -0
- package/src/js/core/index.js +2 -0
- package/src/js/core/leader.js +2 -2
- package/src/js/core/navbar.js +47 -33
- package/src/js/core/offcanvas.js +1 -47
- package/src/js/core/scroll.js +37 -10
- package/src/js/core/sticky.js +8 -9
- package/src/js/core/switcher.js +1 -1
- package/src/js/mixin/media.js +4 -5
- package/src/js/mixin/modal.js +97 -8
- package/src/js/mixin/position.js +59 -14
- package/src/js/mixin/slider-drag.js +20 -8
- package/src/js/mixin/style.js +11 -0
- package/src/js/mixin/togglable.js +100 -72
- package/src/js/util/animation.js +5 -3
- package/src/js/util/dimensions.js +6 -6
- package/src/js/util/filter.js +3 -7
- package/src/js/util/position.js +43 -47
- package/src/js/util/style.js +4 -13
- package/src/js/util/viewport.js +21 -37
- package/src/less/components/_import.less +1 -0
- package/src/less/components/drop.less +3 -6
- package/src/less/components/dropbar.less +115 -0
- package/src/less/components/dropdown.less +22 -6
- package/src/less/components/leader.less +1 -1
- package/src/less/components/margin.less +13 -14
- package/src/less/components/modal.less +19 -4
- package/src/less/components/nav.less +241 -64
- package/src/less/components/navbar.less +111 -35
- package/src/less/components/offcanvas.less +21 -21
- package/src/less/components/position.less +1 -1
- package/src/less/components/utility.less +21 -5
- package/src/less/theme/_import.less +1 -0
- package/src/less/theme/dropbar.less +44 -0
- package/src/less/theme/nav.less +43 -9
- package/src/less/theme/navbar.less +9 -15
- package/src/scss/components/_import.scss +1 -0
- package/src/scss/components/drop.scss +3 -6
- package/src/scss/components/dropbar.scss +115 -0
- package/src/scss/components/dropdown.scss +22 -6
- package/src/scss/components/leader.scss +1 -1
- package/src/scss/components/margin.scss +13 -14
- package/src/scss/components/modal.scss +19 -4
- package/src/scss/components/nav.scss +190 -52
- package/src/scss/components/navbar.scss +88 -24
- package/src/scss/components/offcanvas.scss +21 -21
- package/src/scss/components/position.scss +1 -1
- package/src/scss/components/utility.scss +19 -4
- package/src/scss/mixins-theme.scss +93 -29
- package/src/scss/mixins.scss +89 -15
- package/src/scss/theme/_import.scss +1 -0
- package/src/scss/theme/dropbar.scss +44 -0
- package/src/scss/theme/nav.scss +41 -9
- package/src/scss/theme/navbar.scss +9 -3
- package/src/scss/variables-theme.scss +93 -25
- package/src/scss/variables.scss +82 -23
- package/tests/accordion.html +2 -2
- package/tests/alert.html +2 -2
- package/tests/countdown.html +1 -1
- package/tests/drop.html +484 -255
- package/tests/dropbar.html +456 -0
- package/tests/dropdown.html +29 -189
- package/tests/filter.html +9 -12
- package/tests/form.html +1 -1
- package/tests/height-viewport.html +62 -0
- package/tests/index.html +126 -107
- package/tests/js/index.js +1 -4
- package/tests/lightbox.html +5 -5
- package/tests/list.html +8 -8
- package/tests/modal.html +13 -13
- package/tests/nav.html +117 -75
- package/tests/navbar.html +2270 -1104
- package/tests/offcanvas.html +25 -29
- package/tests/parallax.html +1 -1
- package/tests/position.html +13 -24
- package/tests/progress.html +9 -9
- package/tests/scroll.html +7 -10
- package/tests/search.html +5 -5
- package/tests/slider.html +6 -5
- package/tests/slideshow.html +8 -8
- package/tests/sortable.html +6 -8
- package/tests/sticky-navbar.html +132 -0
- package/tests/sticky.html +8 -8
- package/tests/switcher.html +1 -1
- package/tests/tab.html +1 -1
- package/tests/table.html +7 -7
- package/tests/toggle.html +2 -2
- package/tests/tooltip.html +1 -1
- package/tests/upload.html +11 -11
- package/tests/utility.html +19 -0
- package/src/images/backgrounds/nav-parent-close.svg +0 -3
package/tests/tab.html
CHANGED
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
<td><code>animation</code></td>
|
|
189
189
|
<td>String</td>
|
|
190
190
|
<td>false</td>
|
|
191
|
-
<td>
|
|
191
|
+
<td>Space-separated names of animations. Comma-separated for animation out.</td>
|
|
192
192
|
</tr>
|
|
193
193
|
<tr>
|
|
194
194
|
<td><code>duration</code></td>
|
package/tests/table.html
CHANGED
|
@@ -313,14 +313,14 @@
|
|
|
313
313
|
|
|
314
314
|
<script>
|
|
315
315
|
|
|
316
|
-
|
|
316
|
+
const {$$, addClass, on, removeClass } = UIkit.util;
|
|
317
317
|
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
318
|
+
on('#js-size-switcher', 'change', (e) => {
|
|
319
|
+
const options = $$('option', e.target).map(({value}) => value);
|
|
320
|
+
for (const el of $$('.uk-table')) {
|
|
321
|
+
removeClass(el, options);
|
|
322
|
+
addClass(el, e.target.value);
|
|
323
|
+
}
|
|
324
324
|
});
|
|
325
325
|
|
|
326
326
|
</script>
|
package/tests/toggle.html
CHANGED
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
<td><code>mode</code></td>
|
|
145
145
|
<td>hover | click | media</td>
|
|
146
146
|
<td>click</td>
|
|
147
|
-
<td>Comma
|
|
147
|
+
<td>Comma-separated list of trigger behaviour modes.</td>
|
|
148
148
|
</tr>
|
|
149
149
|
<tr>
|
|
150
150
|
<td><code>media</code></td>
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
<td><code>animation</code></td>
|
|
163
163
|
<td>String</td>
|
|
164
164
|
<td>false</td>
|
|
165
|
-
<td>
|
|
165
|
+
<td>Space-separated names of animations. Comma-separated for animation out.</td>
|
|
166
166
|
</tr>
|
|
167
167
|
<tr>
|
|
168
168
|
<td><code>duration</code></td>
|
package/tests/tooltip.html
CHANGED
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
<td><code>animation</code></td>
|
|
91
91
|
<td>String</td>
|
|
92
92
|
<td>false</td>
|
|
93
|
-
<td>
|
|
93
|
+
<td>Space-separated names of animations. Comma-separated for animation out.</td>
|
|
94
94
|
</tr>
|
|
95
95
|
<tr>
|
|
96
96
|
<td><code>duration</code></td>
|
package/tests/upload.html
CHANGED
|
@@ -36,30 +36,30 @@
|
|
|
36
36
|
|
|
37
37
|
<script>
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
const bar = UIkit.util.$('#js-progressbar');
|
|
40
40
|
|
|
41
41
|
UIkit.upload('.js-upload', {
|
|
42
42
|
|
|
43
43
|
url: '',
|
|
44
44
|
multiple: true,
|
|
45
45
|
|
|
46
|
-
beforeSend
|
|
46
|
+
beforeSend() {
|
|
47
47
|
console.log('beforeSend', arguments);
|
|
48
48
|
},
|
|
49
|
-
beforeAll
|
|
49
|
+
beforeAll() {
|
|
50
50
|
console.log('beforeAll', arguments);
|
|
51
51
|
},
|
|
52
|
-
load
|
|
52
|
+
load() {
|
|
53
53
|
console.log('load', arguments);
|
|
54
54
|
},
|
|
55
|
-
error
|
|
55
|
+
error() {
|
|
56
56
|
console.log('error', arguments);
|
|
57
57
|
},
|
|
58
|
-
complete
|
|
58
|
+
complete() {
|
|
59
59
|
console.log('complete', arguments);
|
|
60
60
|
},
|
|
61
61
|
|
|
62
|
-
loadStart
|
|
62
|
+
loadStart(e) {
|
|
63
63
|
console.log('loadStart', arguments);
|
|
64
64
|
|
|
65
65
|
bar.hidden = false;
|
|
@@ -67,24 +67,24 @@
|
|
|
67
67
|
bar.value = e.loaded;
|
|
68
68
|
},
|
|
69
69
|
|
|
70
|
-
progress
|
|
70
|
+
progress(e) {
|
|
71
71
|
console.log('progress', arguments);
|
|
72
72
|
|
|
73
73
|
bar.max = e.total;
|
|
74
74
|
bar.value = e.loaded;
|
|
75
75
|
},
|
|
76
76
|
|
|
77
|
-
loadEnd
|
|
77
|
+
loadEnd(e) {
|
|
78
78
|
console.log('loadEnd', arguments);
|
|
79
79
|
|
|
80
80
|
bar.max = e.total;
|
|
81
81
|
bar.value = e.loaded;
|
|
82
82
|
},
|
|
83
83
|
|
|
84
|
-
completeAll
|
|
84
|
+
completeAll() {
|
|
85
85
|
console.log('completeAll', arguments);
|
|
86
86
|
|
|
87
|
-
setTimeout(
|
|
87
|
+
setTimeout(() => {
|
|
88
88
|
bar.hidden = true;
|
|
89
89
|
}, 1000);
|
|
90
90
|
|
package/tests/utility.html
CHANGED
|
@@ -434,6 +434,25 @@
|
|
|
434
434
|
<img class="uk-logo-inverse" src="images/dark.jpg" width="200" height="133" alt="">
|
|
435
435
|
</a>
|
|
436
436
|
</div>
|
|
437
|
+
<div>
|
|
438
|
+
<p>Picture</p>
|
|
439
|
+
<a class="uk-logo" href="#">
|
|
440
|
+
<picture>
|
|
441
|
+
<img src="images/photo.jpg" width="200" height="133" alt="">
|
|
442
|
+
</picture>
|
|
443
|
+
</a>
|
|
444
|
+
</div>
|
|
445
|
+
<div>
|
|
446
|
+
<p>+ Inverse Picture</p>
|
|
447
|
+
<a class="uk-logo" href="#">
|
|
448
|
+
<picture>
|
|
449
|
+
<img src="images/photo.jpg" width="200" height="133" alt="">
|
|
450
|
+
</picture>
|
|
451
|
+
<picture>
|
|
452
|
+
<img class="uk-logo-inverse" src="images/dark.jpg" width="200" height="133" alt="">
|
|
453
|
+
</picture>
|
|
454
|
+
</a>
|
|
455
|
+
</div>
|
|
437
456
|
</div>
|
|
438
457
|
|
|
439
458
|
</div>
|