uikit 3.21.18-dev.25d905542 → 3.21.18-dev.718f435ef

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/dist/css/uikit-core-rtl.css +7 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +7 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +7 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +7 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +12 -7
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +4 -7
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +15 -13
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/components/countdown.js +9 -4
  44. package/src/js/core/navbar.js +3 -6
  45. package/src/less/components/text.less +11 -0
  46. package/src/scss/components/text.scss +10 -0
  47. package/src/scss/variables-theme.scss +1 -0
  48. package/src/scss/variables.scss +1 -0
  49. package/tests/countdown.html +6 -0
  50. package/tests/text.html +8 -0
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.21.18-dev.25d905542",
5
+ "version": "3.21.18-dev.718f435ef",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -10,12 +10,14 @@ export default {
10
10
  date: String,
11
11
  clsWrapper: String,
12
12
  role: String,
13
+ reload: Boolean,
13
14
  },
14
15
 
15
16
  data: {
16
17
  date: '',
17
18
  clsWrapper: '.uk-countdown-%unit%',
18
19
  role: 'timer',
20
+ reload: false,
19
21
  },
20
22
 
21
23
  connected() {
@@ -47,10 +49,6 @@ export default {
47
49
  start() {
48
50
  this.stop();
49
51
  this.update();
50
- if (!this.timer) {
51
- trigger(this.$el, 'countdownstart');
52
- this.timer = setInterval(this.update, 1000);
53
- }
54
52
  },
55
53
 
56
54
  stop() {
@@ -65,11 +63,18 @@ export default {
65
63
  const timespan = getTimeSpan(this.date);
66
64
 
67
65
  if (!timespan.total) {
66
+ const started = !!this.timer;
68
67
  this.stop();
69
68
  if (!this.end) {
70
69
  trigger(this.$el, 'countdownend');
71
70
  this.end = true;
71
+ if (this.reload && started) {
72
+ window.location.reload();
73
+ }
72
74
  }
75
+ } else if (!this.timer) {
76
+ trigger(this.$el, 'countdownstart');
77
+ this.timer = setInterval(this.update, 1000);
73
78
  }
74
79
 
75
80
  for (const unit of units) {
@@ -1,4 +1,5 @@
1
1
  import { $$, addClass, css, hasClass, offset, removeClass } from 'uikit-util';
2
+ import { active } from './drop';
2
3
  import Dropnav from './dropnav';
3
4
 
4
5
  const clsNavbarTransparent = 'uk-navbar-transparent';
@@ -56,14 +57,10 @@ export default {
56
57
 
57
58
  el: ({ dropContainer }) => dropContainer,
58
59
 
59
- async handler(e) {
60
- if (!this.getDropdown(e.target)) {
61
- return;
62
- }
63
-
60
+ async handler() {
64
61
  await awaitMacroTask();
65
62
 
66
- if (!this.getActive() && this._transparent) {
63
+ if (this._transparent && (!active || !this.dropContainer.contains(active.$el))) {
67
64
  addClass(this.navbarContainer, clsNavbarTransparent);
68
65
  this._transparent = null;
69
66
  }
@@ -33,6 +33,8 @@
33
33
 
34
34
  @text-background-color: @global-primary-background;
35
35
 
36
+ @text-stroke-text-stroke: ~'calc(1.4px + 0.002em)';
37
+
36
38
 
37
39
  /* ========================================================================
38
40
  Component: Text
@@ -239,6 +241,15 @@ td.uk-text-truncate { max-width: 0; }
239
241
  td.uk-text-break { word-break: break-word; }
240
242
 
241
243
 
244
+ /* Stroke modifiers
245
+ ========================================================================== */
246
+
247
+ .uk-text-stroke {
248
+ -webkit-text-stroke: @text-stroke-text-stroke;
249
+ -webkit-text-fill-color: transparent;
250
+ }
251
+
252
+
242
253
  // Hooks
243
254
  // ========================================================================
244
255
 
@@ -16,6 +16,7 @@
16
16
 
17
17
 
18
18
 
19
+
19
20
  /* ========================================================================
20
21
  Component: Text
21
22
  ========================================================================== */
@@ -221,6 +222,15 @@ td.uk-text-truncate { max-width: 0; }
221
222
  td.uk-text-break { word-break: break-word; }
222
223
 
223
224
 
225
+ /* Stroke modifiers
226
+ ========================================================================== */
227
+
228
+ .uk-text-stroke {
229
+ -webkit-text-stroke: $text-stroke-text-stroke;
230
+ -webkit-text-fill-color: transparent;
231
+ }
232
+
233
+
224
234
  // Hooks
225
235
  // ========================================================================
226
236
 
@@ -1101,6 +1101,7 @@ $text-success-color: $global-success-background !default;
1101
1101
  $text-warning-color: $global-warning-background !default;
1102
1102
  $text-danger-color: $global-danger-background !default;
1103
1103
  $text-background-color: $global-primary-background !default;
1104
+ $text-stroke-text-stroke: unquote('calc(1.4px + 0.002em)') !default;
1104
1105
  $inverse-text-lead-color: $inverse-global-color !default;
1105
1106
  $inverse-text-meta-color: $inverse-global-muted-color !default;
1106
1107
  $inverse-text-muted-color: $inverse-global-muted-color !default;
@@ -1099,6 +1099,7 @@ $text-success-color: $global-success-background !default;
1099
1099
  $text-warning-color: $global-warning-background !default;
1100
1100
  $text-danger-color: $global-danger-background !default;
1101
1101
  $text-background-color: $global-primary-background !default;
1102
+ $text-stroke-text-stroke: unquote('calc(1.4px + 0.002em)') !default;
1102
1103
  $inverse-text-lead-color: $inverse-global-color !default;
1103
1104
  $inverse-text-meta-color: $inverse-global-muted-color !default;
1104
1105
  $inverse-text-muted-color: $inverse-global-muted-color !default;
@@ -102,6 +102,12 @@
102
102
  <td>false</td>
103
103
  <td>Any string parsable by <code>Date.parse</code> - <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date/parse" target="_blank">Reference</a>.</td>
104
104
  </tr>
105
+ <tr>
106
+ <td><code>reload</code></td>
107
+ <td>Boolean</td>
108
+ <td>false</td>
109
+ <td>Reload page after countdown reaches end. The page is only reloaded, if the timer has previously been started once.</td>
110
+ </tr>
105
111
  </tbody>
106
112
  </table>
107
113
  </div>
package/tests/text.html CHANGED
@@ -141,6 +141,14 @@
141
141
  </div>
142
142
  </div>
143
143
 
144
+ <h2>Text Stroke</h2>
145
+
146
+ <h1 class="uk-heading-2xlarge uk-text-stroke uk-margin-small">2X-Large</h1>
147
+ <h1 class="uk-heading-xlarge uk-text-stroke uk-margin-small">X-Large</h1>
148
+ <h1 class="uk-heading-large uk-text-stroke uk-margin-small">Heading L</h1>
149
+ <h1 class="uk-heading-medium uk-text-stroke uk-margin-small">Heading M</h1>
150
+ <h1 class="uk-heading-small uk-text-stroke uk-margin-small">Heading S</h1>
151
+
144
152
  </div>
145
153
 
146
154
  </body>