uikit 3.10.2-dev.c8aa7eda2 → 3.11.1

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 (61) hide show
  1. package/CHANGELOG.md +35 -14
  2. package/build/icons.js +4 -4
  3. package/build/scope.js +4 -6
  4. package/dist/css/uikit-core-rtl.css +10 -1
  5. package/dist/css/uikit-core-rtl.min.css +1 -1
  6. package/dist/css/uikit-core.css +10 -1
  7. package/dist/css/uikit-core.min.css +1 -1
  8. package/dist/css/uikit-rtl.css +10 -1
  9. package/dist/css/uikit-rtl.min.css +1 -1
  10. package/dist/css/uikit.css +10 -1
  11. package/dist/css/uikit.min.css +1 -1
  12. package/dist/js/components/countdown.js +1 -1
  13. package/dist/js/components/countdown.min.js +1 -1
  14. package/dist/js/components/filter.js +1 -1
  15. package/dist/js/components/filter.min.js +1 -1
  16. package/dist/js/components/lightbox-panel.js +1 -1
  17. package/dist/js/components/lightbox-panel.min.js +1 -1
  18. package/dist/js/components/lightbox.js +1 -1
  19. package/dist/js/components/lightbox.min.js +1 -1
  20. package/dist/js/components/notification.js +1 -1
  21. package/dist/js/components/notification.min.js +1 -1
  22. package/dist/js/components/parallax.js +257 -264
  23. package/dist/js/components/parallax.min.js +1 -1
  24. package/dist/js/components/slider-parallax.js +215 -257
  25. package/dist/js/components/slider-parallax.min.js +1 -1
  26. package/dist/js/components/slider.js +1 -1
  27. package/dist/js/components/slider.min.js +1 -1
  28. package/dist/js/components/slideshow-parallax.js +215 -257
  29. package/dist/js/components/slideshow-parallax.min.js +1 -1
  30. package/dist/js/components/slideshow.js +1 -1
  31. package/dist/js/components/slideshow.min.js +1 -1
  32. package/dist/js/components/sortable.js +1 -1
  33. package/dist/js/components/sortable.min.js +1 -1
  34. package/dist/js/components/tooltip.js +1 -1
  35. package/dist/js/components/tooltip.min.js +1 -1
  36. package/dist/js/components/upload.js +1 -1
  37. package/dist/js/components/upload.min.js +1 -1
  38. package/dist/js/uikit-core.js +28 -26
  39. package/dist/js/uikit-core.min.js +1 -1
  40. package/dist/js/uikit-icons.js +1 -1
  41. package/dist/js/uikit-icons.min.js +1 -1
  42. package/dist/js/uikit.js +284 -289
  43. package/dist/js/uikit.min.js +1 -1
  44. package/package.json +5 -5
  45. package/src/js/components/parallax.js +38 -8
  46. package/src/js/core/grid.js +2 -2
  47. package/src/js/core/svg.js +9 -7
  48. package/src/js/mixin/parallax.js +209 -242
  49. package/src/js/util/dimensions.js +4 -2
  50. package/src/js/util/viewport.js +9 -13
  51. package/src/less/components/position.less +2 -0
  52. package/src/less/components/sticky.less +6 -0
  53. package/src/scss/components/position.scss +2 -0
  54. package/src/scss/components/sticky.scss +6 -0
  55. package/tests/index.html +1 -1
  56. package/tests/js/index.js +1 -1
  57. package/tests/notification.html +5 -5
  58. package/tests/parallax.html +66 -50
  59. package/tests/sticky-parallax.html +274 -0
  60. package/tests/sticky.html +2 -2
  61. package/tests/tab.html +1 -1
package/CHANGELOG.md CHANGED
@@ -1,12 +1,33 @@
1
1
  # Changelog
2
2
 
3
- ## WIP
3
+ ## 3.11.1 (February 7, 2022)
4
4
 
5
5
  ### Fixed
6
6
 
7
+ - Fix scoping css to exclude `:root` selector
8
+ - Fix `toPx()` correctly uses offsetHeight/Width
9
+
10
+ ## 3.11.0 (February 7, 2022)
11
+
12
+ ### Added
13
+
14
+ - Add `start` and `end` options to Parallax component
15
+ - Add negative z-index utility class to Position component
16
+ - Add Sticky Parallax test
17
+
18
+ ### Deprecated
19
+
20
+ - Deprecate `viewport` option in Parallax component: Use `end` option instead
21
+
22
+ ### Fixed
23
+
24
+ - Use same position context when uk-sticky sticks or not
7
25
  - Fix interdependent computed properties being evaluated too often
8
26
  - Fix `getIndex()` returns `-1` instead of `NaN` if called with empty elements parameter
9
27
  - Fix Scrollspy component no longer sets class `false`
28
+ - Fix Parallax component no longer rounds values to two digits after comma
29
+ - Fix Parallax component running backwards with 'viewport' option set to a value < 1
30
+ - Fix Parallax component easing option for values < -1 || > 1
10
31
 
11
32
  ## 3.10.1 (January 19, 2022)
12
33
 
@@ -16,7 +37,7 @@
16
37
  - Fix usage of `data-` prefix for Cover and Responsive component
17
38
  - Fix pointer events for iframes in Cover component
18
39
  - Fix Slideshow component no longer throws if items list does not exist
19
- - Fix space key no longer triggers Toggle on <input> elements
40
+ - Fix space key no longer triggers Toggle on `input` elements
20
41
 
21
42
  ## 3.10.0 (January 12, 2022)
22
43
 
@@ -160,7 +181,7 @@
160
181
  ### Fixed
161
182
 
162
183
  - Fix animation classes only partially being removed in Scrollspy component
163
- - Fix scrollIntoView did not return Promise if element is hidden
184
+ - Fix scrollIntoView did not return Promise if element is hidden
164
185
 
165
186
  ## 3.7.0 (June 29, 2021)
166
187
 
@@ -260,7 +281,7 @@
260
281
 
261
282
  ### Added
262
283
 
263
- - Add background-size modifier for width and height to Background component
284
+ - Add background-size modifier for width and height to Background component
264
285
 
265
286
  ### Fixed
266
287
 
@@ -307,7 +328,7 @@
307
328
 
308
329
  - Fix IE11 compatibility
309
330
  - Fix changing ratio does not correctly apply width and height in SVG component
310
- - Fix issues from hiding an already hidden Modal
331
+ - Fix issues from hiding an already hidden Modal
311
332
 
312
333
  ## 3.6.11 (January 14, 2021)
313
334
 
@@ -541,7 +562,7 @@
541
562
  ### Added
542
563
 
543
564
  - Add list marker utility support for WebKit
544
- - Add `uk-text-default` to Text component
565
+ - Add `uk-text-default` to Text component
545
566
  - Add multiple targets to Filter component
546
567
 
547
568
  ### Fixed
@@ -550,7 +571,7 @@
550
571
  - Fix empty slider throws exception
551
572
  - Fix pointer events ignored on SVGs in Sortable component
552
573
  - Fix Grid component divider rendering
553
- - Fix `<select>` closes Drop component in hover mode in Firefox
574
+ - Fix `<select>` closes Drop component in hover mode in Firefox
554
575
 
555
576
  ## 3.5.4 (June 12, 2020)
556
577
 
@@ -561,7 +582,7 @@
561
582
  ### Fixed
562
583
 
563
584
  - Fix prop observer for dataSrc option in Image component
564
- - Fix ajax function supports responseType 'json' in IE 11
585
+ - Fix ajax function supports responseType 'json' in IE 11
565
586
  - Fix Accordion component with `multiple: true` and `collapsible: false`
566
587
 
567
588
  ## 3.5.3 (May 29, 2020)
@@ -614,7 +635,7 @@
614
635
 
615
636
  ### Added
616
637
 
617
- - Add inBrowser check to enable server-side rendering
638
+ - Add inBrowser check to enable server-side rendering
618
639
 
619
640
  ### Fixed
620
641
 
@@ -674,7 +695,7 @@
674
695
 
675
696
  ### Changed
676
697
 
677
- - Change default dimensions to 1920x1080 for YouTube in Lightbox component
698
+ - Change default dimensions to 1920x1080 for YouTube in Lightbox component
678
699
 
679
700
  ### Fixed
680
701
 
@@ -692,7 +713,7 @@
692
713
 
693
714
  - Fix Height Match component not matching empty elements
694
715
  - Fix Scrollspy Nav component activating wrong elements
695
- - Fix Modal/Drop close on bgClick behaviour
716
+ - Fix Modal/Drop close on bgClick behaviour
696
717
  - Fix `z-index` on Modal stacked dialogs
697
718
 
698
719
  ## 3.3.6 (March 12, 2020)
@@ -818,7 +839,7 @@
818
839
  ### Fixed
819
840
 
820
841
  - Fix scrolling containers while dragging in Sortable component
821
- - Fix show/hide behaviour in Drop component
842
+ - Fix show/hide behaviour in Drop component
822
843
  - Fix Accordion component will scroll title into view if needed
823
844
  - Fix component initialization without element
824
845
 
@@ -918,7 +939,7 @@
918
939
  - Fix swipe gestures in Switcher component (Android)
919
940
  - Ensure at most one Height Viewport component set to `expand` is active
920
941
  - Height Viewport component no longer calculates its height if invisible
921
- - Fix using Sortable in scrolling container
942
+ - Fix using Sortable in scrolling container
922
943
  - Fix lazy loading images if parent element is fully clipped
923
944
  - Fix clicking Slideshow with `draggable: false` no longer pauses autoplay
924
945
  - Fix toggling modal while transition is in progress
@@ -962,7 +983,7 @@
962
983
  - Fix selector engine
963
984
  - Fix CSS selector in Lightbox component
964
985
  - Fix Drop not closing when Toggle component is clicked
965
-
986
+
966
987
  ## 3.1.3 (April 23, 2019)
967
988
 
968
989
  ### Fixed
package/build/icons.js CHANGED
@@ -2,16 +2,16 @@ import {args, compile, glob, icons} from './util.js';
2
2
 
3
3
  if (args.h || args.help) {
4
4
  console.log(`
5
-
5
+
6
6
  Builds additional custom uikit icons found in './custom/*/icons'
7
-
7
+
8
8
  usage:
9
9
 
10
10
  icons.js [custom|name]
11
11
 
12
- -c|--custom
12
+ -c|--custom
13
13
  Specify custom folder to look for icons (default: './custom/*/icons')
14
- -n|--name
14
+ -n|--name
15
15
  Specify name regex to match against folder (default: '([a-z]+)/icons$')
16
16
 
17
17
  `);
package/build/scope.js CHANGED
@@ -15,7 +15,7 @@ if (args.h || args.help) {
15
15
  `);
16
16
  process.exit(0);
17
17
  }
18
- const currentScopeRe = /\/\* scoped: ([^*]*) \*\//;
18
+ const currentScopeRe = /\/\* scoped: ([^*]*) \*\/\n/;
19
19
  const currentScopeLegacyRe = /\.(uk-scope)/;
20
20
 
21
21
  const files = await glob('dist/**/!(*.min).css');
@@ -65,9 +65,7 @@ async function scope(files, scope) {
65
65
  await replaceInFile(file, async data => {
66
66
  const output = await renderLess(`.${scope} {\n${stripComments(data)}\n}`);
67
67
  return `/* scoped: ${scope} */\n${
68
- output
69
- .replace(new RegExp(`.${scope} ${/{(.|[\r\n])*?}/.source}`), '')
70
- .replace(new RegExp(`.${scope}${/\s((\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html)/.source}`, 'g'), '$1')
68
+ output.replace(new RegExp(`.${scope}\\s((\\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html|:root)`, 'g'), '$1') // unescape
71
69
  }`;
72
70
  });
73
71
  await minify(file);
@@ -78,8 +76,8 @@ async function cleanup(files, scope) {
78
76
  const string = scope.split(' ').map(scope => `.${scope}`).join(' ');
79
77
  for (const file of files) {
80
78
  await replaceInFile(file, data => data
81
- .replace(new RegExp(/ */.source + string + / ({[\s\S]*?})?/.source, 'g'), '') // replace classes
82
- .replace(new RegExp(currentScopeRe.source, 'g'), '') // remove scope comment
79
+ .replace(currentScopeRe, '') // remove scope comment
80
+ .replace(new RegExp(` *${string} ({[\\s\\S]*?})?`, 'g'), '') // replace classes
83
81
  );
84
82
  }
85
83
  }
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.10.2-dev.c8aa7eda2 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.1 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -3777,6 +3777,12 @@ select.uk-form-width-xsmall {
3777
3777
  /* ========================================================================
3778
3778
  Component: Sticky
3779
3779
  ========================================================================== */
3780
+ /*
3781
+ * Create position context so it's t the same like when fixed.
3782
+ */
3783
+ .uk-sticky {
3784
+ position: relative;
3785
+ }
3780
3786
  /*
3781
3787
  * 1. Force new layer to resolve frame rate issues on devices with lower frame rates
3782
3788
  */
@@ -8612,6 +8618,9 @@ iframe[data-uk-cover] {
8612
8618
  .uk-position-z-index {
8613
8619
  z-index: 1;
8614
8620
  }
8621
+ .uk-position-z-index-negative {
8622
+ z-index: -1;
8623
+ }
8615
8624
  /* ========================================================================
8616
8625
  Component: Transition
8617
8626
  ========================================================================== */