uikit 3.18.4-dev.cee46c589 → 3.19.1-dev.a49c72e42

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 (67) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/build/scss.js +3 -0
  3. package/dist/css/uikit-core-rtl.css +314 -43
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +314 -43
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +314 -43
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +314 -43
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +1 -1
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +1 -1
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -1
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +12 -9
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +2 -2
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +19 -17
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +2 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +31 -26
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +2 -2
  44. package/src/images/components/navbar-toggle-icon.svg +2 -2
  45. package/src/images/icons/bluesky.svg +3 -0
  46. package/src/js/components/internal/slider-transitioner.js +2 -2
  47. package/src/js/components/slider.js +12 -7
  48. package/src/js/components/tooltip.js +1 -1
  49. package/src/js/core/height-match.js +12 -0
  50. package/src/js/core/img.js +1 -16
  51. package/src/js/core/video.js +6 -8
  52. package/src/less/components/flex.less +110 -2
  53. package/src/less/components/heading.less +2 -2
  54. package/src/less/components/slider.less +1 -1
  55. package/src/less/components/utility.less +1 -1
  56. package/src/less/components/width.less +146 -30
  57. package/src/less/theme/text.less +1 -1
  58. package/src/scss/components/flex.scss +110 -2
  59. package/src/scss/components/heading.scss +2 -2
  60. package/src/scss/components/slider.scss +1 -1
  61. package/src/scss/components/width.scss +146 -30
  62. package/src/scss/mixins-theme.scss +1 -1
  63. package/src/scss/mixins.scss +1 -1
  64. package/src/scss/variables-theme.scss +1 -1
  65. package/tests/slider.html +12 -1
  66. package/tests/slideshow.html +2 -2
  67. package/tests/utility.html +36 -11
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.18.4-dev.cee46c589",
5
+ "version": "3.19.1-dev.a49c72e42",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -23,7 +23,7 @@
23
23
  "devDependencies": {
24
24
  "@rollup/plugin-alias": "^5.1.0",
25
25
  "@rollup/plugin-replace": "^5.0.5",
26
- "archiver": "^6.0.1",
26
+ "archiver": "^7.0.0",
27
27
  "camelcase": "^8.0.0",
28
28
  "chokidar-cli": "^3.0.0",
29
29
  "clean-css": "^5.3.3",
@@ -1,14 +1,14 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
2
  <style>
3
3
 
4
- .uk-navbar-toggle-animate svg > [class*='line-'] {
4
+ .uk-navbar-toggle-icon svg > [class*='line-'] {
5
5
  transition: 0.2s ease-in-out;
6
6
  transition-property: transform, opacity;
7
7
  transform-origin: center;
8
8
  opacity: 1;
9
9
  }
10
10
 
11
- .uk-navbar-toggle-animate svg > .line-3 { opacity: 0; }
11
+ .uk-navbar-toggle-icon svg > .line-3 { opacity: 0; }
12
12
  .uk-navbar-toggle-animate[aria-expanded="true"] svg > .line-3 { opacity: 1; }
13
13
 
14
14
  .uk-navbar-toggle-animate[aria-expanded="true"] svg > .line-2 { transform: rotate(45deg); }
@@ -0,0 +1,3 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.993,9.149c-.772-1.495-2.865-4.288-4.813-5.662-1.866-1.317-2.58-1.09-3.043-.878-.54.246-.637,1.075-.637,1.563s.265,4.003.444,4.587c.579,1.939,2.628,2.595,4.519,2.382.096-.014.193-.029.294-.039-.096.014-.198.029-.294.039-2.768.41-5.233,1.418-2.001,5.011,3.55,3.675,4.866-.786,5.541-3.053.675,2.262,1.452,6.564,5.474,3.053,3.024-3.053.83-4.601-1.939-5.011-.096-.01-.198-.024-.294-.039.101.014.198.024.294.039,1.89.212,3.945-.444,4.519-2.382.174-.588.444-4.099.444-4.587s-.096-1.317-.637-1.563c-.468-.212-1.177-.439-3.043.878-1.963,1.379-4.056,4.167-4.827,5.662h0Z" />
3
+ </svg>
@@ -147,8 +147,8 @@ export function getMax(list) {
147
147
  return Math.max(0, getWidth(list) - dimensions(list).width);
148
148
  }
149
149
 
150
- export function getWidth(list) {
151
- return sumBy(children(list), (el) => dimensions(el).width);
150
+ export function getWidth(list, index) {
151
+ return sumBy(children(list).slice(0, index), (el) => dimensions(el).width);
152
152
  }
153
153
 
154
154
  function centerEl(el, list) {
@@ -33,6 +33,7 @@ export default {
33
33
  props: {
34
34
  center: Boolean,
35
35
  sets: Boolean,
36
+ active: String,
36
37
  },
37
38
 
38
39
  data: {
@@ -42,6 +43,7 @@ export default {
42
43
  selList: '.uk-slider-items',
43
44
  selNav: '.uk-slider-nav',
44
45
  clsContainer: 'uk-slider-container',
46
+ active: 'all',
45
47
  Transitioner,
46
48
  },
47
49
 
@@ -235,7 +237,11 @@ export default {
235
237
  },
236
238
 
237
239
  updateActiveClasses(currentIndex = this.index) {
238
- const actives = this._getTransitioner(currentIndex).getActives();
240
+ let actives = this._getTransitioner(currentIndex).getActives();
241
+
242
+ if (this.active !== 'all') {
243
+ actives = [this.slides[this.getValidIndex(currentIndex)]];
244
+ }
239
245
 
240
246
  const activeClasses = [
241
247
  this.clsActive,
@@ -296,11 +302,10 @@ export default {
296
302
 
297
303
  getIndexAt(percent) {
298
304
  let index = -1;
299
- const firstSlideWidth = dimensions(this.slides[0]).width;
300
- const lastSlideWidth = dimensions(last(this.slides)).width;
301
- const scrollDist =
302
- getWidth(this.list) -
303
- (this.center ? firstSlideWidth / 2 + lastSlideWidth / 2 : lastSlideWidth);
305
+ const scrollDist = this.center
306
+ ? getWidth(this.list) -
307
+ (dimensions(this.slides[0]).width / 2 + dimensions(last(this.slides)).width / 2)
308
+ : getWidth(this.list, this.maxIndex);
304
309
 
305
310
  let dist = percent * scrollDist;
306
311
  let slidePercent = 0;
@@ -361,7 +366,7 @@ function isFinite(list, center) {
361
366
  }
362
367
 
363
368
  if (
364
- diff >
369
+ Math.trunc(diff) >
365
370
  sumBy(
366
371
  slides.filter((slide) => !slidesInView.has(slide)),
367
372
  (slide) => dimensions(slide).width,
@@ -136,7 +136,7 @@ export default {
136
136
  // Clicking a button does not give it focus on all browsers and platforms
137
137
  // https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
138
138
  [`focus ${pointerEnter} ${pointerDown}`](e) {
139
- if (!isTouch(e)) {
139
+ if (!isTouch(e) || e.type === pointerDown) {
140
140
  this.show();
141
141
  }
142
142
  },
@@ -24,6 +24,18 @@ export default {
24
24
  elements.reduce((elements, el) => elements.concat(el, ...el.children), [$el]),
25
25
  }),
26
26
 
27
+ events: {
28
+ name: 'loadingdone',
29
+
30
+ el() {
31
+ return document.fonts;
32
+ },
33
+
34
+ handler() {
35
+ this.$emit('resize');
36
+ },
37
+ },
38
+
27
39
  update: {
28
40
  read() {
29
41
  return {
@@ -7,8 +7,6 @@ import {
7
7
  data,
8
8
  escape,
9
9
  fragment,
10
- hasAttr,
11
- inBrowser,
12
10
  includes,
13
11
  isArray,
14
12
  isEmpty,
@@ -22,8 +20,6 @@ import {
22
20
  import { intersection } from '../api/observables';
23
21
  import { parseOptions } from '../api/options';
24
22
 
25
- const nativeLazyLoad = inBrowser && 'loading' in HTMLImageElement.prototype;
26
-
27
23
  export default {
28
24
  args: 'dataSrc',
29
25
 
@@ -46,15 +42,10 @@ export default {
46
42
  connected() {
47
43
  if (this.loading !== 'lazy') {
48
44
  this.load();
49
- return;
50
- }
51
-
52
- if (nativeLazyLoad && isImg(this.$el)) {
45
+ } else if (isImg(this.$el)) {
53
46
  this.$el.loading = 'lazy';
54
47
  setSrcAttrs(this.$el);
55
48
  }
56
-
57
- ensureSrcAttribute(this.$el);
58
49
  },
59
50
 
60
51
  disconnected() {
@@ -163,12 +154,6 @@ function parseSources(sources) {
163
154
  return sources.filter((source) => !isEmpty(source));
164
155
  }
165
156
 
166
- function ensureSrcAttribute(el) {
167
- if (isImg(el) && !hasAttr(el, 'src')) {
168
- attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
169
- }
170
- }
171
-
172
157
  function isImg(el) {
173
158
  return isTag(el, 'img');
174
159
  }
@@ -32,14 +32,12 @@ export default {
32
32
  intersection({
33
33
  filter: ({ $el, autoplay }) => autoplay && isVideo($el),
34
34
  handler([{ isIntersecting }]) {
35
- if (
36
- isIntersecting ||
37
- this.$el.webkitDisplayingFullscreen ||
38
- document.fullscreenElement === this.$el
39
- ) {
40
- play(this.$el);
41
- } else {
42
- pause(this.$el);
35
+ if (!document.fullscreenElement) {
36
+ if (isIntersecting) {
37
+ play(this.$el);
38
+ } else {
39
+ pause(this.$el);
40
+ }
43
41
  }
44
42
  },
45
43
  args: { intersecting: false },
@@ -29,7 +29,6 @@
29
29
  .uk-flex-between { justify-content: space-between; }
30
30
  .uk-flex-around { justify-content: space-around; }
31
31
 
32
-
33
32
  /* Phone landscape and bigger */
34
33
  @media (min-width: @breakpoint-small) {
35
34
 
@@ -85,6 +84,46 @@
85
84
  .uk-flex-middle { align-items: center; }
86
85
  .uk-flex-bottom { align-items: flex-end; }
87
86
 
87
+ /* Phone landscape and bigger */
88
+ @media (min-width: @breakpoint-small) {
89
+
90
+ .uk-flex-stretch\@s { align-items: stretch; }
91
+ .uk-flex-top\@s { align-items: flex-start; }
92
+ .uk-flex-middle\@s { align-items: center; }
93
+ .uk-flex-bottom\@s { align-items: flex-end; }
94
+
95
+ }
96
+
97
+ /* Tablet landscape and bigger */
98
+ @media (min-width: @breakpoint-medium) {
99
+
100
+ .uk-flex-stretch\@m { align-items: stretch; }
101
+ .uk-flex-top\@m { align-items: flex-start; }
102
+ .uk-flex-middle\@m { align-items: center; }
103
+ .uk-flex-bottom\@m { align-items: flex-end; }
104
+
105
+ }
106
+
107
+ /* Desktop and bigger */
108
+ @media (min-width: @breakpoint-large) {
109
+
110
+ .uk-flex-stretch\@l { align-items: stretch; }
111
+ .uk-flex-top\@l { align-items: flex-start; }
112
+ .uk-flex-middle\@l { align-items: center; }
113
+ .uk-flex-bottom\@l { align-items: flex-end; }
114
+
115
+ }
116
+
117
+ /* Large screen and bigger */
118
+ @media (min-width: @breakpoint-xlarge) {
119
+
120
+ .uk-flex-stretch\@xl { align-items: stretch; }
121
+ .uk-flex-top\@xl { align-items: flex-start; }
122
+ .uk-flex-middle\@xl { align-items: center; }
123
+ .uk-flex-bottom\@xl { align-items: flex-end; }
124
+
125
+ }
126
+
88
127
 
89
128
  /* Direction
90
129
  ========================================================================== */
@@ -95,6 +134,38 @@
95
134
  .uk-flex-column { flex-direction: column; }
96
135
  .uk-flex-column-reverse { flex-direction: column-reverse; }
97
136
 
137
+ /* Phone landscape and bigger */
138
+ @media (min-width: @breakpoint-small) {
139
+
140
+ .uk-flex-row\@s { flex-direction: row; }
141
+ .uk-flex-column\@s { flex-direction: column; }
142
+
143
+ }
144
+
145
+ /* Tablet landscape and bigger */
146
+ @media (min-width: @breakpoint-medium) {
147
+
148
+ .uk-flex-row\@m { flex-direction: row; }
149
+ .uk-flex-column\@m { flex-direction: column; }
150
+
151
+ }
152
+
153
+ /* Desktop and bigger */
154
+ @media (min-width: @breakpoint-large) {
155
+
156
+ .uk-flex-row\@l { flex-direction: row; }
157
+ .uk-flex-column\@l { flex-direction: column; }
158
+
159
+ }
160
+
161
+ /* Large screen and bigger */
162
+ @media (min-width: @breakpoint-xlarge) {
163
+
164
+ .uk-flex-row\@xl { flex-direction: row; }
165
+ .uk-flex-column\@xl { flex-direction: column; }
166
+
167
+ }
168
+
98
169
 
99
170
  /* Wrap
100
171
  ========================================================================== */
@@ -128,7 +199,6 @@
128
199
  .uk-flex-first { order: -1;}
129
200
  .uk-flex-last { order: 99;}
130
201
 
131
-
132
202
  /* Phone landscape and bigger */
133
203
  @media (min-width: @breakpoint-small) {
134
204
 
@@ -170,6 +240,8 @@
170
240
  * Content dimensions, but shrinks
171
241
  */
172
242
 
243
+ .uk-flex-initial { flex: initial; }
244
+
173
245
  /*
174
246
  * No Flex: 0 0 auto
175
247
  * Content dimensions
@@ -191,6 +263,42 @@
191
263
 
192
264
  .uk-flex-1 { flex: 1; }
193
265
 
266
+ /* Phone landscape and bigger */
267
+ @media (min-width: @breakpoint-small) {
268
+
269
+ .uk-flex-initial\@s { flex: initial; }
270
+ .uk-flex-none\@s { flex: none; }
271
+ .uk-flex-1\@s { flex: 1; }
272
+
273
+ }
274
+
275
+ /* Tablet landscape and bigger */
276
+ @media (min-width: @breakpoint-medium) {
277
+
278
+ .uk-flex-initial\@m { flex: initial; }
279
+ .uk-flex-none\@m { flex: none; }
280
+ .uk-flex-1\@m { flex: 1; }
281
+
282
+ }
283
+
284
+ /* Desktop and bigger */
285
+ @media (min-width: @breakpoint-large) {
286
+
287
+ .uk-flex-initial\@l { flex: initial; }
288
+ .uk-flex-none\@l { flex: none; }
289
+ .uk-flex-1\@l { flex: 1; }
290
+
291
+ }
292
+
293
+ /* Large screen and bigger */
294
+ @media (min-width: @breakpoint-xlarge) {
295
+
296
+ .uk-flex-initial\@xl { flex: initial; }
297
+ .uk-flex-none\@xl { flex: none; }
298
+ .uk-flex-1\@xl { flex: 1; }
299
+
300
+ }
301
+
194
302
 
195
303
  // Hooks
196
304
  // ========================================================================
@@ -13,8 +13,8 @@
13
13
  // Variables
14
14
  // ========================================================================
15
15
 
16
- @heading-small-font-size: @heading-small-font-size-m * 0.8; // 38px 0.73
17
- @heading-medium-font-size: @heading-medium-font-size-m * 0.825; // 40px 0.714
16
+ @heading-small-font-size: @heading-small-font-size-m * 0.8; // 38px 0.73
17
+ @heading-medium-font-size: @heading-medium-font-size-m * 0.825; // 40px 0.714
18
18
  @heading-large-font-size: @heading-large-font-size-m * 0.85; // 50px 0.78
19
19
  @heading-xlarge-font-size: @heading-large-font-size-m; // 4rem / 64px
20
20
  @heading-2xlarge-font-size: @heading-xlarge-font-size-m; // 6rem / 96px
@@ -106,7 +106,7 @@
106
106
 
107
107
  .uk-slider-items > * {
108
108
  /* 1 */
109
- flex: none;
109
+ flex: none !important;
110
110
  box-sizing: border-box;
111
111
  max-width: 100%;
112
112
  /* 2 */
@@ -528,7 +528,7 @@
528
528
  .hook-inverse-logo-hover();
529
529
  }
530
530
 
531
- .uk-logo:has(.uk-logo-inverse) > :not(picture:has(img.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
531
+ .uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
532
532
  .uk-logo-inverse { display: block; }
533
533
 
534
534
  }