uikit 3.13.9 → 3.13.11-dev.1296bb84c

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 (102) hide show
  1. package/CHANGELOG.md +41 -1
  2. package/build/build.js +4 -1
  3. package/dist/css/uikit-core-rtl.css +49 -8
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +49 -8
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +49 -6
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +49 -6
  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 +7 -3
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +7 -3
  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 +21 -12
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +21 -12
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +2 -2
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +21 -12
  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 +2 -2
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +62 -30
  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 +433 -314
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +480 -322
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/components/slider.js +1 -1
  45. package/src/js/components/sortable.js +2 -3
  46. package/src/js/components/tooltip.js +38 -3
  47. package/src/js/core/cover.js +27 -14
  48. package/src/js/core/drop.js +40 -17
  49. package/src/js/core/height-match.js +1 -1
  50. package/src/js/core/margin.js +9 -2
  51. package/src/js/core/navbar.js +18 -6
  52. package/src/js/core/scrollspy-nav.js +6 -11
  53. package/src/js/core/sticky.js +58 -22
  54. package/src/js/core/toggle.js +8 -8
  55. package/src/js/mixin/media.js +12 -9
  56. package/src/js/mixin/modal.js +6 -2
  57. package/src/js/mixin/parallax.js +8 -3
  58. package/src/js/mixin/position.js +24 -24
  59. package/src/js/uikit-core.js +0 -4
  60. package/src/js/util/lang.js +34 -42
  61. package/src/js/util/position.js +180 -125
  62. package/src/js/util/viewport.js +42 -22
  63. package/src/less/components/drop.less +0 -1
  64. package/src/less/components/dropdown.less +11 -1
  65. package/src/less/components/icon.less +3 -0
  66. package/src/less/components/nav.less +23 -0
  67. package/src/less/components/navbar.less +26 -2
  68. package/src/less/components/search.less +2 -0
  69. package/src/less/components/sticky.less +8 -3
  70. package/src/less/components/utility.less +1 -0
  71. package/src/less/theme/dropdown.less +4 -0
  72. package/src/less/theme/nav.less +6 -0
  73. package/src/less/theme/navbar.less +4 -0
  74. package/src/less/theme/search.less +6 -0
  75. package/src/scss/components/drop.scss +0 -1
  76. package/src/scss/components/dropdown.scss +11 -1
  77. package/src/scss/components/icon.scss +3 -0
  78. package/src/scss/components/nav.scss +23 -0
  79. package/src/scss/components/navbar.scss +26 -2
  80. package/src/scss/components/search.scss +2 -0
  81. package/src/scss/components/sticky.scss +8 -3
  82. package/src/scss/components/utility.scss +1 -0
  83. package/src/scss/mixins-theme.scss +5 -0
  84. package/src/scss/mixins.scss +5 -0
  85. package/src/scss/theme/dropdown.scss +4 -0
  86. package/src/scss/theme/nav.scss +6 -0
  87. package/src/scss/theme/navbar.scss +4 -0
  88. package/src/scss/theme/search.scss +6 -0
  89. package/src/scss/variables-theme.scss +5 -1
  90. package/src/scss/variables.scss +5 -1
  91. package/tests/alert.html +1 -1
  92. package/tests/animation.html +216 -214
  93. package/tests/drop.html +154 -80
  94. package/tests/dropdown.html +16 -2
  95. package/tests/nav.html +27 -0
  96. package/tests/navbar.html +56 -5
  97. package/tests/parallax.html +5 -5
  98. package/tests/position.html +38 -39
  99. package/tests/sticky-navbar.html +6 -6
  100. package/tests/sticky-parallax.html +29 -13
  101. package/tests/sticky.html +300 -49
  102. package/src/js/core/core.js +0 -25
package/CHANGELOG.md CHANGED
@@ -1,5 +1,46 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Added
6
+
7
+ - Add position shifting to Drop and Dropdown components
8
+ - Add axis flipping if overflowing on both sides to Drop and Dropdown components
9
+ - Add `max-width` to prevent overflowing the viewport to Drop and Dropdown components
10
+ - Add `display` option to Drop and Dropdown components
11
+ - Add support for negative `start` value in Sticky component
12
+ - Add `overflow-flip` option to Sticky component
13
+ - Add navbar justify to Navbar component
14
+ - Add subtitle classes to Nav, Dropdown and Navbar components
15
+ - Add support for `vw`,`vh`,`%` and `px` units to scale property in Parallax component
16
+ - Add resize horizontal class to Utility component
17
+
18
+ ### Changed
19
+
20
+ - Rename `top` and `bottom` options to `start` and `end` in Sticky component
21
+ - Allow text to wrap into the next line for navs in Dropdown component
22
+
23
+ ### Removed
24
+
25
+ - Remove `position: auto` option in Sticky component, use `overflow-flip` option instead
26
+ - Remove `overflow-x: hidden` on html element, while horizontal animation is active
27
+
28
+ ### Fixed
29
+
30
+ - Fix dropbar dropdown alignment if boundary-align is true
31
+ - Fix viewport helper functions take border into account
32
+ - Fix Sticky component responsiveness on window resize
33
+ - Fix Cover component correctly applies ratio if only one of width/height is provided
34
+ - Fix responsiveness in Grid, Margin and Height Match component
35
+
36
+ ## 3.13.10 (April 20, 2022)
37
+
38
+ ### Fixed
39
+
40
+ - Revert: Fix reposition Drop on scroll
41
+ - Fix Toggle component does not `defaultPrevent()` click on anchor with touch gesture
42
+ - Fix Sticky component uses wrong offsetParent while it's positioned fixed
43
+
3
44
  ## 3.13.9 (April 20, 2022)
4
45
 
5
46
  ### Fixed
@@ -35,7 +76,6 @@
35
76
 
36
77
  - Image component no longer sets a `background-size` for elements with `background-size` set to `auto`
37
78
 
38
-
39
79
  ### Fixed
40
80
 
41
81
  - Fix Position component
package/build/build.js CHANGED
@@ -1,6 +1,9 @@
1
1
  import camelize from 'camelcase';
2
2
  import { basename, resolve } from 'path';
3
3
  import { args, compile, glob, icons } from './util.js';
4
+ import pLimit from 'p-limit';
5
+
6
+ const limit = pLimit(Number(process.env.cpus || 2));
4
7
 
5
8
  const bundles = getBundleTasks();
6
9
  const components = await getComponentTasks();
@@ -42,7 +45,7 @@ if (buildAll) {
42
45
  .filter((t) => t);
43
46
  }
44
47
 
45
- await Promise.all(Object.values(tasks).map((task) => task()));
48
+ await Promise.all(Object.values(tasks).map((task) => limit(task)));
46
49
 
47
50
  function getBundleTasks() {
48
51
  return {
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.13.9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.13.11-dev.1296bb84c | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -1136,9 +1136,12 @@ button.uk-icon:not(:disabled) {
1136
1136
  ========================================================================== */
1137
1137
  /*
1138
1138
  * Link
1139
+ * 1. Allow text within link
1139
1140
  */
1140
1141
  .uk-icon-link {
1141
1142
  color: #999;
1143
+ /* 1 */
1144
+ text-decoration: none !important;
1142
1145
  }
1143
1146
  .uk-icon-link:hover {
1144
1147
  color: #666;
@@ -3231,7 +3234,6 @@ select.uk-form-width-xsmall {
3231
3234
  /* 3 */
3232
3235
  box-sizing: border-box;
3233
3236
  width: 300px;
3234
- max-width: 100vw;
3235
3237
  }
3236
3238
  /* Show */
3237
3239
  .uk-drop.uk-open {
@@ -3274,9 +3276,6 @@ select.uk-form-width-xsmall {
3274
3276
  /* Nav
3275
3277
  * Adopts `uk-nav`
3276
3278
  ========================================================================== */
3277
- .uk-dropdown-nav {
3278
- white-space: nowrap;
3279
- }
3280
3279
  /*
3281
3280
  * Items
3282
3281
  */
@@ -3288,6 +3287,12 @@ select.uk-form-width-xsmall {
3288
3287
  .uk-dropdown-nav > li.uk-active > a {
3289
3288
  color: #666;
3290
3289
  }
3290
+ /*
3291
+ * Subtitle
3292
+ */
3293
+ .uk-dropdown-nav .uk-nav-subtitle {
3294
+ font-size: 0.875rem;
3295
+ }
3291
3296
  /*
3292
3297
  * Header
3293
3298
  */
@@ -3645,17 +3650,20 @@ select.uk-form-width-xsmall {
3645
3650
  Component: Sticky
3646
3651
  ========================================================================== */
3647
3652
  /*
3648
- * Create position context so it's t the same like when fixed.
3653
+ * 1. Create position context so it's t the same like when fixed.
3654
+ * 2. More robust if padding and border are used and the sticky height is transitioned
3649
3655
  */
3650
3656
  .uk-sticky {
3657
+ /* 1 */
3651
3658
  position: relative;
3659
+ /* 2 */
3660
+ box-sizing: border-box;
3652
3661
  }
3653
3662
  /*
3654
3663
  * 1. Force new layer to resolve frame rate issues on devices with lower frame rates
3655
3664
  */
3656
3665
  .uk-sticky-fixed {
3657
3666
  z-index: 980;
3658
- box-sizing: border-box;
3659
3667
  margin: 0 !important;
3660
3668
  /* 1 */
3661
3669
  -webkit-backface-visibility: hidden;
@@ -4645,6 +4653,12 @@ ul.uk-nav-sub {
4645
4653
  .uk-nav-default > li.uk-active > a {
4646
4654
  color: #333;
4647
4655
  }
4656
+ /*
4657
+ * Subtitle
4658
+ */
4659
+ .uk-nav-default .uk-nav-subtitle {
4660
+ font-size: 0.875rem;
4661
+ }
4648
4662
  /*
4649
4663
  * Header
4650
4664
  */
@@ -4687,6 +4701,12 @@ ul.uk-nav-sub {
4687
4701
  .uk-nav-primary > li.uk-active > a {
4688
4702
  color: #333;
4689
4703
  }
4704
+ /*
4705
+ * Subtitle
4706
+ */
4707
+ .uk-nav-primary .uk-nav-subtitle {
4708
+ font-size: 1.25rem;
4709
+ }
4690
4710
  /*
4691
4711
  * Header
4692
4712
  */
@@ -4917,6 +4937,16 @@ ul.uk-nav-sub {
4917
4937
  .uk-navbar-subtitle {
4918
4938
  font-size: 0.875rem;
4919
4939
  }
4940
+ /* Justify modifier
4941
+ ========================================================================== */
4942
+ .uk-navbar-justify .uk-navbar-right,
4943
+ .uk-navbar-justify .uk-navbar-left,
4944
+ .uk-navbar-justify .uk-navbar-nav,
4945
+ .uk-navbar-justify .uk-navbar-nav > li,
4946
+ .uk-navbar-justify .uk-navbar-item,
4947
+ .uk-navbar-justify .uk-navbar-toggle {
4948
+ flex-grow: 1;
4949
+ }
4920
4950
  /* Style modifiers
4921
4951
  ========================================================================== */
4922
4952
  /* Dropdown
@@ -4993,7 +5023,9 @@ ul.uk-nav-sub {
4993
5023
  --uk-position-offset: 0px;
4994
5024
  /* 2 */
4995
5025
  margin-bottom: 0px;
4996
- padding: 15px;
5026
+ /* 3 */
5027
+ padding-right: 15px;
5028
+ padding-left: 15px;
4997
5029
  }
4998
5030
  /* Dropdown Nav
4999
5031
  * Adopts `uk-nav`
@@ -5012,6 +5044,12 @@ ul.uk-nav-sub {
5012
5044
  .uk-navbar-dropdown-nav > li.uk-active > a {
5013
5045
  color: #333;
5014
5046
  }
5047
+ /*
5048
+ * Subtitle
5049
+ */
5050
+ .uk-navbar-dropdown-nav .uk-nav-subtitle {
5051
+ font-size: 0.875rem;
5052
+ }
5015
5053
  /*
5016
5054
  * Header
5017
5055
  */
@@ -7373,6 +7411,9 @@ iframe[data-uk-cover] {
7373
7411
  .uk-resize {
7374
7412
  resize: both;
7375
7413
  }
7414
+ .uk-resize-horizontal {
7415
+ resize: horizontal;
7416
+ }
7376
7417
  .uk-resize-vertical {
7377
7418
  resize: vertical;
7378
7419
  }