uikit 3.9.5-dev.600ee2ba9 → 3.9.5-dev.9bd185c49

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 +14 -2
  2. package/README.md +4 -4
  3. package/build/less.js +30 -11
  4. package/build/util.js +1 -20
  5. package/dist/css/uikit-core-rtl.css +23 -12
  6. package/dist/css/uikit-core-rtl.min.css +1 -1
  7. package/dist/css/uikit-core.css +20 -9
  8. package/dist/css/uikit-core.min.css +1 -1
  9. package/dist/css/uikit-rtl.css +23 -12
  10. package/dist/css/uikit-rtl.min.css +1 -1
  11. package/dist/css/uikit.css +20 -9
  12. package/dist/css/uikit.min.css +1 -1
  13. package/dist/js/components/countdown.js +1 -1
  14. package/dist/js/components/countdown.min.js +1 -1
  15. package/dist/js/components/filter.js +1 -1
  16. package/dist/js/components/filter.min.js +1 -1
  17. package/dist/js/components/lightbox-panel.js +1 -1
  18. package/dist/js/components/lightbox-panel.min.js +1 -1
  19. package/dist/js/components/lightbox.js +1 -1
  20. package/dist/js/components/lightbox.min.js +1 -1
  21. package/dist/js/components/notification.js +1 -1
  22. package/dist/js/components/notification.min.js +1 -1
  23. package/dist/js/components/parallax.js +1 -1
  24. package/dist/js/components/parallax.min.js +1 -1
  25. package/dist/js/components/slider-parallax.js +1 -1
  26. package/dist/js/components/slider-parallax.min.js +1 -1
  27. package/dist/js/components/slider.js +1 -1
  28. package/dist/js/components/slider.min.js +1 -1
  29. package/dist/js/components/slideshow-parallax.js +1 -1
  30. package/dist/js/components/slideshow-parallax.min.js +1 -1
  31. package/dist/js/components/slideshow.js +1 -1
  32. package/dist/js/components/slideshow.min.js +1 -1
  33. package/dist/js/components/sortable.js +2 -2
  34. package/dist/js/components/sortable.min.js +1 -1
  35. package/dist/js/components/tooltip.js +1 -1
  36. package/dist/js/components/tooltip.min.js +1 -1
  37. package/dist/js/components/upload.js +1 -1
  38. package/dist/js/components/upload.min.js +1 -1
  39. package/dist/js/uikit-core.js +62 -67
  40. package/dist/js/uikit-core.min.js +1 -1
  41. package/dist/js/uikit-icons.js +1 -1
  42. package/dist/js/uikit-icons.min.js +1 -1
  43. package/dist/js/uikit.js +63 -68
  44. package/dist/js/uikit.min.js +1 -1
  45. package/package.json +6 -8
  46. package/src/js/components/sortable.js +1 -1
  47. package/src/js/core/cover.js +1 -2
  48. package/src/js/core/img.js +40 -57
  49. package/src/js/core/sticky.js +6 -1
  50. package/src/js/util/dom.js +2 -5
  51. package/src/less/components/cover.less +1 -2
  52. package/src/less/components/link.less +6 -3
  53. package/src/less/components/list.less +1 -1
  54. package/src/less/components/search.less +31 -6
  55. package/src/less/components/utility.less +7 -1
  56. package/src/less/theme/search.less +6 -0
  57. package/src/scss/components/cover.scss +1 -2
  58. package/src/scss/components/link.scss +6 -3
  59. package/src/scss/components/list.scss +1 -1
  60. package/src/scss/components/search.scss +23 -6
  61. package/src/scss/components/utility.scss +7 -1
  62. package/src/scss/mixins-theme.scss +12 -0
  63. package/src/scss/mixins.scss +12 -0
  64. package/src/scss/theme/search.scss +6 -0
  65. package/src/scss/variables-theme.scss +3 -0
  66. package/src/scss/variables.scss +3 -0
  67. package/tests/search.html +1 -1
package/CHANGELOG.md CHANGED
@@ -4,8 +4,20 @@
4
4
 
5
5
  ### Added
6
6
 
7
- - Add support for <picture> element in Img component
8
7
  - Add 'aria-haspopup' attribute to Drop component's toggle
8
+ - Add padding variable to search icon in Search component
9
+
10
+ ### Changed
11
+
12
+ - Disable Sticky component if it's element is higher than viewport
13
+
14
+ ### Fixed
15
+
16
+ - Fix initial iframe width for `uk-responsive` which caused an expanded viewport on iOS devices
17
+ - Fix link toggle style if not hovered
18
+ - Fix compiling Slideshow css in rtl mode
19
+ - Fix Sortable component no longer scrolls `overflow: hidden` containers
20
+ - Fix 'yarn watch' not watching changes in less files
9
21
 
10
22
  ## 3.9.4 (November 25, 2021)
11
23
 
@@ -206,7 +218,7 @@
206
218
  ### Fixed
207
219
 
208
220
  - Fix animation set to `false` in Sortable component
209
- - Fix Tooltip on elements with class 'uk-active' applied
221
+ - Fix Tooltip on elements with class `uk-active` applied
210
222
  - Fix Slider parallax states
211
223
 
212
224
  ## 3.6.18 (March 12, 2021)
package/README.md CHANGED
@@ -46,13 +46,13 @@ Finding bugs, sending pull requests or improving our docs - any contribution is
46
46
 
47
47
  ## Versioning
48
48
 
49
- UIkit is maintained by using the [Semantic Versioning Specification (SemVer)](http://semver.org).
49
+ UIkit is maintained by using the [Semantic Versioning Specification (SemVer)](https://semver.org).
50
50
 
51
51
  ## Browser Support
52
52
 
53
- ![Chrome](https://raw.github.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png) | ![Firefox](https://raw.github.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/master/src/edge/edge_48x48.png) | ![IE](https://raw.github.com/alrra/browser-logos/master/src/archive/internet-explorer_9-11/internet-explorer_9-11_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/master/src/safari/safari_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/master/src/opera/opera_48x48.png)
54
- --- | --- | --- | --- | --- | --- |
55
- Latest ✔ | Latest ✔ | Latest ✔ | 11+ ✔ | 9.1+ ✔ | Latest ✔ |
53
+ | ![Firefox](https://raw.github.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/main/src/opera/opera_48x48.png) |
54
+ | -------- | -------- | -------- | -------- | -------- |
55
+ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
56
56
 
57
57
  Tested With<br>[![BrowserStack](https://user-images.githubusercontent.com/355427/27389060-9f716c82-569d-11e7-923c-bd5fe7f1c55a.png)](https://www.browserstack.com)
58
58
 
package/build/less.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import rtlcss from 'rtlcss';
2
- import postcss from 'postcss';
3
2
  import {basename} from 'path';
4
3
  import {args, banner, glob, minify, pathExists, read, readJson, renderLess, write} from './util.js';
5
4
 
@@ -42,12 +41,9 @@ async function compile(file, dist, develop, rtl) {
42
41
  })).replace(/\.\.\/dist\//g, '');
43
42
 
44
43
  if (rtl) {
45
- output = postcss([
46
- css => {
47
- css.insertBefore(css.nodes[0], postcss.comment({text: 'rtl:begin:rename'}));
48
- css.insertAfter(css.nodes[css.nodes.length - 1], postcss.comment({text: 'rtl:end:rename'}));
49
- },
50
- rtlcss({
44
+ output = rtlcss.process(
45
+ output,
46
+ {
51
47
  stringMap: [{
52
48
  name: 'previous-next',
53
49
  priority: 100,
@@ -58,10 +54,33 @@ async function compile(file, dist, develop, rtl) {
58
54
  ignoreCase: false
59
55
  }
60
56
  }]
61
- })
62
- ]).process(output).css;
63
-
64
- output = output.replace(/stroke-dashoffset: (\d+)px/g, 'stroke-dashoffset: -$1px');
57
+ },
58
+ [
59
+ {
60
+ name: 'customNegate',
61
+ priority: 50,
62
+ directives: {
63
+ control: {},
64
+ value: []
65
+ },
66
+ processors: [
67
+ {
68
+ expr: ['--uk-position-translate-x', 'stroke-dashoffset'].join('|'),
69
+ action(prop, value, context) {
70
+ return {prop, value: context.util.negate(value)};
71
+ }
72
+ },
73
+
74
+ ]
75
+ }
76
+ ],
77
+ {
78
+ pre(root, postcss) {
79
+ root.prepend(postcss.comment({text: 'rtl:begin:rename'}));
80
+ root.append(postcss.comment({text: 'rtl:end:rename'}));
81
+ }
82
+ }
83
+ );
65
84
  }
66
85
 
67
86
  await write(dist, banner + output);
package/build/util.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import less from 'less';
2
2
  import fs from 'fs-extra';
3
3
  import pLimit from 'p-limit';
4
- import postcss from 'postcss';
5
4
  import globImport from 'glob';
6
5
  import {optimize} from 'svgo';
7
6
  import {promisify} from 'util';
@@ -75,25 +74,7 @@ export async function minify(file) {
75
74
  }
76
75
 
77
76
  export function renderLess(data, options) {
78
- return limit(async () => postcss()
79
- .use({
80
- postcssPlugin: 'calc',
81
- Once(root) {
82
- root.walk(node => {
83
- const {type} = node;
84
- if (type === 'decl') {
85
- node.value = postcss.list.space(node.value).map(value =>
86
- value.startsWith('calc(')
87
- ? value.replace(/(.)calc/g, '$1')
88
- : value
89
- ).join(' ');
90
- }
91
- });
92
- }
93
- })
94
- .process((await less.render(data, options)).css)
95
- .css
96
- );
77
+ return limit(async () => (await less.render(data, options)).css);
97
78
  }
98
79
 
99
80
  export async function compile(file, dest, {external, globals, name, aliases, replaces} = {}) {
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.9.5-dev.600ee2ba9 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.9.5-dev.9bd185c49 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -478,7 +478,8 @@ template {
478
478
  /* Muted
479
479
  ========================================================================== */
480
480
  a.uk-link-muted,
481
- .uk-link-muted a {
481
+ .uk-link-muted a,
482
+ .uk-link-toggle .uk-link-muted {
482
483
  color: #999;
483
484
  }
484
485
  a.uk-link-muted:hover,
@@ -489,7 +490,8 @@ a.uk-link-muted:hover,
489
490
  /* Text
490
491
  ========================================================================== */
491
492
  a.uk-link-text,
492
- .uk-link-text a {
493
+ .uk-link-text a,
494
+ .uk-link-toggle .uk-link-text {
493
495
  color: inherit;
494
496
  }
495
497
  a.uk-link-text:hover,
@@ -500,7 +502,8 @@ a.uk-link-text:hover,
500
502
  /* Heading
501
503
  ========================================================================== */
502
504
  a.uk-link-heading,
503
- .uk-link-heading a {
505
+ .uk-link-heading a,
506
+ .uk-link-toggle .uk-link-heading {
504
507
  color: inherit;
505
508
  }
506
509
  a.uk-link-heading:hover,
@@ -645,7 +648,7 @@ a.uk-link-reset,
645
648
  content: "";
646
649
  /* 1 */
647
650
  position: absolute;
648
- top: calc(50% - ((0.2px + 0.05em) / 2));
651
+ top: calc(50% - (calc(0.2px + 0.05em) / 2));
649
652
  /* 2 */
650
653
  width: 2000px;
651
654
  /* 3 */
@@ -770,7 +773,7 @@ a.uk-link-reset,
770
773
  counter-increment: decimal;
771
774
  }
772
775
  [class*='uk-list'] > ::before {
773
- content: '';
776
+ content: "";
774
777
  position: relative;
775
778
  right: -30px;
776
779
  width: 30px;
@@ -3231,6 +3234,7 @@ select.uk-form-width-xsmall {
3231
3234
  background: transparent;
3232
3235
  font-size: 1.5rem;
3233
3236
  }
3237
+ /* Focus */
3234
3238
  /*
3235
3239
  * Icon
3236
3240
  */
@@ -3256,6 +3260,7 @@ select.uk-form-width-xsmall {
3256
3260
  background: transparent;
3257
3261
  font-size: 2.625rem;
3258
3262
  }
3263
+ /* Focus */
3259
3264
  /*
3260
3265
  * Icon
3261
3266
  */
@@ -7122,13 +7127,13 @@ td.uk-text-break {
7122
7127
  ========================================================================== */
7123
7128
  /*
7124
7129
  * Works with iframes and embedded content
7125
- * 1. Apply transform instantly. Needed if transform is transitioned.
7130
+ * 1. Use attribute to apply transform instantly. Needed if transform is transitioned.
7126
7131
  * 2. Reset responsiveness for embedded content
7127
7132
  * 3. Center object
7128
7133
  * Note: Percent values on the `top` property only works if this element
7129
7134
  * is absolute positioned or if the container has a height
7130
7135
  */
7131
- .uk-cover,
7136
+ /* 1 */
7132
7137
  [uk-cover] {
7133
7138
  /* 2 */
7134
7139
  max-width: none;
@@ -7136,7 +7141,7 @@ td.uk-text-break {
7136
7141
  position: absolute;
7137
7142
  right: 50%;
7138
7143
  top: 50%;
7139
- --uk-position-translate-x: -50%;
7144
+ --uk-position-translate-x: 50%;
7140
7145
  --uk-position-translate-y: -50%;
7141
7146
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
7142
7147
  }
@@ -7600,6 +7605,12 @@ iframe.uk-cover {
7600
7605
  /* 3 */
7601
7606
  max-width: none;
7602
7607
  }
7608
+ /*
7609
+ * Fix initial iframe width. Without the viewport is expanded on iOS devices
7610
+ */
7611
+ [uk-responsive] {
7612
+ max-width: 100%;
7613
+ }
7603
7614
  /* Border
7604
7615
  ========================================================================== */
7605
7616
  .uk-border-circle {
@@ -7665,7 +7676,7 @@ iframe.uk-cover {
7665
7676
  vertical-align: middle;
7666
7677
  }
7667
7678
  .uk-box-shadow-bottom::after {
7668
- content: '';
7679
+ content: "";
7669
7680
  /* 1 */
7670
7681
  position: absolute;
7671
7682
  bottom: -30px;
@@ -8498,7 +8509,7 @@ iframe.uk-cover {
8498
8509
  .uk-position-center {
8499
8510
  top: calc(50% - var(--uk-position-margin-offset));
8500
8511
  right: calc(50% - var(--uk-position-margin-offset));
8501
- --uk-position-translate-x: -50%;
8512
+ --uk-position-translate-x: 50%;
8502
8513
  --uk-position-translate-y: -50%;
8503
8514
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
8504
8515
  /* 1 */
@@ -8529,7 +8540,7 @@ iframe.uk-cover {
8529
8540
  .uk-position-top-center,
8530
8541
  .uk-position-bottom-center {
8531
8542
  right: calc(50% - var(--uk-position-margin-offset));
8532
- --uk-position-translate-x: -50%;
8543
+ --uk-position-translate-x: 50%;
8533
8544
  transform: translate(var(--uk-position-translate-x), 0);
8534
8545
  /* 1 */
8535
8546
  width: max-content;