uikit 3.9.5-dev.ce77459c6 → 3.10.1-dev.2a182d8f9

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 (63) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/build/build.js +5 -5
  3. package/build/less.js +30 -11
  4. package/build/publishDev.js +2 -1
  5. package/build/util.js +1 -20
  6. package/dist/css/uikit-core-rtl.css +15 -7
  7. package/dist/css/uikit-core-rtl.min.css +1 -1
  8. package/dist/css/uikit-core.css +12 -4
  9. package/dist/css/uikit-core.min.css +1 -1
  10. package/dist/css/uikit-rtl.css +15 -7
  11. package/dist/css/uikit-rtl.min.css +1 -1
  12. package/dist/css/uikit.css +12 -4
  13. package/dist/css/uikit.min.css +1 -1
  14. package/dist/js/components/countdown.js +1 -1
  15. package/dist/js/components/countdown.min.js +1 -1
  16. package/dist/js/components/filter.js +1 -1
  17. package/dist/js/components/filter.min.js +1 -1
  18. package/dist/js/components/lightbox-panel.js +1 -1
  19. package/dist/js/components/lightbox-panel.min.js +1 -1
  20. package/dist/js/components/lightbox.js +1 -1
  21. package/dist/js/components/lightbox.min.js +1 -1
  22. package/dist/js/components/notification.js +1 -1
  23. package/dist/js/components/notification.min.js +1 -1
  24. package/dist/js/components/parallax.js +1 -1
  25. package/dist/js/components/parallax.min.js +1 -1
  26. package/dist/js/components/slider-parallax.js +1 -1
  27. package/dist/js/components/slider-parallax.min.js +1 -1
  28. package/dist/js/components/slider.js +1 -1
  29. package/dist/js/components/slider.min.js +1 -1
  30. package/dist/js/components/slideshow-parallax.js +1 -1
  31. package/dist/js/components/slideshow-parallax.min.js +1 -1
  32. package/dist/js/components/slideshow.js +5 -1
  33. package/dist/js/components/slideshow.min.js +1 -1
  34. package/dist/js/components/sortable.js +2 -2
  35. package/dist/js/components/sortable.min.js +1 -1
  36. package/dist/js/components/tooltip.js +1 -1
  37. package/dist/js/components/tooltip.min.js +1 -1
  38. package/dist/js/components/upload.js +1 -1
  39. package/dist/js/components/upload.min.js +1 -1
  40. package/dist/js/uikit-core.js +117 -53
  41. package/dist/js/uikit-core.min.js +1 -1
  42. package/dist/js/uikit-icons.js +1 -1
  43. package/dist/js/uikit-icons.min.js +1 -1
  44. package/dist/js/uikit.js +122 -54
  45. package/dist/js/uikit.min.js +1 -1
  46. package/package.json +9 -11
  47. package/src/js/components/slideshow.js +4 -0
  48. package/src/js/components/sortable.js +1 -1
  49. package/src/js/core/img.js +93 -47
  50. package/src/js/util/dom.js +2 -5
  51. package/src/js/util/selector.js +4 -2
  52. package/src/less/components/list.less +1 -1
  53. package/src/less/components/search.less +9 -6
  54. package/src/less/components/utility.less +3 -2
  55. package/src/less/components/width.less +7 -0
  56. package/src/scss/components/list.scss +1 -1
  57. package/src/scss/components/search.scss +9 -6
  58. package/src/scss/components/utility.scss +3 -2
  59. package/src/scss/components/width.scss +7 -0
  60. package/src/scss/variables-theme.scss +4 -0
  61. package/src/scss/variables.scss +4 -0
  62. package/tests/image.html +40 -14
  63. package/tests/search.html +1 -1
package/CHANGELOG.md CHANGED
@@ -2,20 +2,31 @@
2
2
 
3
3
  ## WIP
4
4
 
5
+ ### Fixed
6
+
7
+ - Fix Slideshow component no longer throws if items list does not exist
8
+
9
+ ## 3.10.0 (January 12, 2022)
10
+
5
11
  ### Added
6
12
 
7
- - Add support for <picture> element in Img component
13
+ - Add intrinsic widths to Width component
8
14
  - Add 'aria-haspopup' attribute to Drop component's toggle
15
+ - Add padding variable to search icon in Search component
16
+ - Add position bottom variable to box-shadow bottom in Utility component
9
17
 
10
18
  ### Changed
11
19
 
12
- - Img component no longer sets a placeholder (use height/width instead)
13
20
  - Disable Sticky component if it's element is higher than viewport
14
21
 
15
22
  ### Fixed
16
23
 
17
24
  - Fix initial iframe width for `uk-responsive` which caused an expanded viewport on iOS devices
18
25
  - Fix link toggle style if not hovered
26
+ - Fix compiling Slideshow css in rtl mode
27
+ - Fix Sortable component no longer scrolls `overflow: hidden` containers
28
+ - Fix 'yarn watch' not watching changes in less files
29
+ - Fix `domPath()` for elements within forms that include inputs with name 'id'
19
30
 
20
31
  ## 3.9.4 (November 25, 2021)
21
32
 
package/build/build.js CHANGED
@@ -4,9 +4,9 @@ import {args, compile, glob, icons} from './util.js';
4
4
 
5
5
  const bundles = getBundleTasks();
6
6
  const components = await getComponentTasks();
7
- const buildAll = args.all || Object.keys(args).filter(name =>
8
- ['d', 'debug', 'nominify', 'watch'].includes(name)
9
- ).length <= 1;
7
+ const buildAll = args.all || !Object.keys(args).filter(name =>
8
+ !['d', 'debug', 'nominify', 'watch', '_'].includes(name)
9
+ ).length;
10
10
 
11
11
  if (args.h || args.help) {
12
12
  console.log(`
@@ -16,8 +16,8 @@ if (args.h || args.help) {
16
16
 
17
17
  examples:
18
18
 
19
- build.js // builds all of uikit, including icons and does minification (implies 'all')
20
- build.js uikit icons -d // builds all of uikit and the icons, skipping the minification
19
+ build.js // builds all of uikit, including icons, components and does minification (implies 'all')
20
+ build.js uikit icons -d // builds uikit and the icons, skipping the minification and components
21
21
  build.js core lightbox -d // builds uikit-core and the lightbox, skipping the minification
22
22
 
23
23
  available components:
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);
@@ -28,7 +28,8 @@ async function isDevCommit() {
28
28
  // check for changes to publish (%B: raw body (unwrapped subject and body)
29
29
  const message = await run('git log -1 --pretty=%B');
30
30
 
31
- const type = message.match(/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/);
31
+ // https://www.conventionalcommits.org/en/v1.0.0/
32
+ const type = message.match(/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types|build)(\(.+\))?: .{1,50}/);
32
33
 
33
34
  return type && ['feat', 'fix', 'refactor', 'perf'].includes(type[2]);
34
35
 
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.ce77459c6 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1-dev.2a182d8f9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -648,7 +648,7 @@ a.uk-link-reset,
648
648
  content: "";
649
649
  /* 1 */
650
650
  position: absolute;
651
- top: calc(50% - ((0.2px + 0.05em) / 2));
651
+ top: calc(50% - (calc(0.2px + 0.05em) / 2));
652
652
  /* 2 */
653
653
  width: 2000px;
654
654
  /* 3 */
@@ -773,7 +773,7 @@ a.uk-link-reset,
773
773
  counter-increment: decimal;
774
774
  }
775
775
  [class*='uk-list'] > ::before {
776
- content: '';
776
+ content: "";
777
777
  position: relative;
778
778
  right: -30px;
779
779
  width: 30px;
@@ -6720,6 +6720,14 @@ ul.uk-nav-sub {
6720
6720
  min-width: 1px;
6721
6721
  }
6722
6722
  }
6723
+ /* Intrinsic Widths
6724
+ ========================================================================== */
6725
+ .uk-width-max-content {
6726
+ width: max-content;
6727
+ }
6728
+ .uk-width-min-content {
6729
+ width: min-content;
6730
+ }
6723
6731
  /* ========================================================================
6724
6732
  Component: Height
6725
6733
  ========================================================================== */
@@ -7141,7 +7149,7 @@ td.uk-text-break {
7141
7149
  position: absolute;
7142
7150
  right: 50%;
7143
7151
  top: 50%;
7144
- --uk-position-translate-x: -50%;
7152
+ --uk-position-translate-x: 50%;
7145
7153
  --uk-position-translate-y: -50%;
7146
7154
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
7147
7155
  }
@@ -7676,7 +7684,7 @@ iframe.uk-cover {
7676
7684
  vertical-align: middle;
7677
7685
  }
7678
7686
  .uk-box-shadow-bottom::after {
7679
- content: '';
7687
+ content: "";
7680
7688
  /* 1 */
7681
7689
  position: absolute;
7682
7690
  bottom: -30px;
@@ -8509,7 +8517,7 @@ iframe.uk-cover {
8509
8517
  .uk-position-center {
8510
8518
  top: calc(50% - var(--uk-position-margin-offset));
8511
8519
  right: calc(50% - var(--uk-position-margin-offset));
8512
- --uk-position-translate-x: -50%;
8520
+ --uk-position-translate-x: 50%;
8513
8521
  --uk-position-translate-y: -50%;
8514
8522
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
8515
8523
  /* 1 */
@@ -8540,7 +8548,7 @@ iframe.uk-cover {
8540
8548
  .uk-position-top-center,
8541
8549
  .uk-position-bottom-center {
8542
8550
  right: calc(50% - var(--uk-position-margin-offset));
8543
- --uk-position-translate-x: -50%;
8551
+ --uk-position-translate-x: 50%;
8544
8552
  transform: translate(var(--uk-position-translate-x), 0);
8545
8553
  /* 1 */
8546
8554
  width: max-content;