uikit 3.9.2-dev.836238c9b → 3.9.2-dev.a89eca15f
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.
- package/CHANGELOG.md +8 -0
- package/build/build.js +2 -3
- package/build/icons.js +18 -0
- package/build/less.js +1 -1
- package/build/publishDev.js +2 -3
- package/build/scss.js +4 -0
- package/build/util.js +5 -7
- package/dist/css/uikit-core-rtl.css +2 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +2 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +2 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +2 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +10 -8
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +10 -8
- package/dist/js/uikit.min.js +2 -2
- package/package.json +2 -1
- package/src/js/util/style.js +9 -7
- package/src/less/components/leader.less +1 -1
- package/src/scss/components/card.scss +8 -8
- package/src/scss/components/form-range.scss +1 -1
- package/src/scss/components/leader.scss +1 -1
- package/src/scss/components/modal.scss +2 -2
- package/src/scss/components/notification.scss +1 -1
- package/src/scss/components/spinner.scss +2 -2
- package/src/scss/components/table.scss +2 -2
- package/src/scss/mixins-theme.scss +2 -2
- package/src/scss/variables-theme.scss +11 -11
- package/src/scss/variables.scss +11 -11
- package/tests/js/index.js +3 -2
package/CHANGELOG.md
CHANGED
package/build/build.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import camelize from 'camelcase';
|
|
2
2
|
import {basename, resolve} from 'path';
|
|
3
|
-
import {
|
|
3
|
+
import {args, compile, glob, icons} from './util.js';
|
|
4
4
|
|
|
5
5
|
const bundles = getBundleTasks();
|
|
6
6
|
const components = await getComponentTasks();
|
|
7
7
|
|
|
8
8
|
if (args.h || args.help) {
|
|
9
|
-
|
|
10
9
|
console.log(`
|
|
11
10
|
usage:
|
|
12
11
|
|
|
@@ -74,7 +73,7 @@ async function getComponentTasks() {
|
|
|
74
73
|
name,
|
|
75
74
|
external: ['uikit', 'uikit-util'],
|
|
76
75
|
globals: {uikit: 'UIkit', 'uikit-util': 'UIkit.util'},
|
|
77
|
-
aliases: {component: resolve(
|
|
76
|
+
aliases: {component: resolve('src/js/components', name)},
|
|
78
77
|
replaces: {NAME: `'${camelize(name)}'`}
|
|
79
78
|
});
|
|
80
79
|
|
package/build/icons.js
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
import {args, compile, glob, icons} from './util.js';
|
|
2
2
|
|
|
3
|
+
if (args.h || args.help) {
|
|
4
|
+
console.log(`
|
|
5
|
+
|
|
6
|
+
Builds additional custom uikit icons found in './custom/*/icons'
|
|
7
|
+
|
|
8
|
+
usage:
|
|
9
|
+
|
|
10
|
+
icons.js [custom|name]
|
|
11
|
+
|
|
12
|
+
-c|--custom
|
|
13
|
+
Specify custom folder to look for icons (default: './custom/*/icons')
|
|
14
|
+
-n|--name
|
|
15
|
+
Specify name regex to match against folder (default: '([a-z]+)/icons$')
|
|
16
|
+
|
|
17
|
+
`);
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|
|
20
|
+
|
|
3
21
|
const path = args.c || args.custom || 'custom/*/icons';
|
|
4
22
|
const match = args.n || args.name || '([a-z]+)/icons$';
|
|
5
23
|
|
package/build/less.js
CHANGED
package/build/publishDev.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import semver from 'semver';
|
|
2
|
-
import {
|
|
3
|
-
import {__dirname, args, getVersion, run} from './util.js';
|
|
2
|
+
import {args, getVersion, run} from './util.js';
|
|
4
3
|
|
|
5
4
|
const {inc} = semver;
|
|
6
5
|
|
|
7
6
|
// default exec options
|
|
8
|
-
const options = {
|
|
7
|
+
const options = {encoding: 'utf8'};
|
|
9
8
|
if (args.f || args.force || await isDevCommit()) {
|
|
10
9
|
|
|
11
10
|
// increase version patch number
|
package/build/scss.js
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
import NP from 'number-precision';
|
|
1
2
|
import {glob, read, write} from './util.js';
|
|
2
3
|
|
|
4
|
+
NP.enableBoundaryChecking(false);
|
|
5
|
+
|
|
3
6
|
const themeMixins = {};
|
|
4
7
|
const coreMixins = {};
|
|
5
8
|
const themeVar = {};
|
|
@@ -78,6 +81,7 @@ for (const file of await glob('src/less/**/*.less')) {
|
|
|
78
81
|
let scssData = data.replace(/\/less\//g, '/scss/') // change less/ dir to scss/ on imports
|
|
79
82
|
.replace(/\.less/g, '.scss') // change .less extensions to .scss on imports
|
|
80
83
|
.replace(/@/g, '$') // convert variables
|
|
84
|
+
.replace(/(:[^'"]*?\([^'"]+?)\s*\/\s*([0-9.-]+)\)/g, (exp, m1, m2) => `${m1} * ${NP.round(1 / parseFloat(m2), 5)})`)
|
|
81
85
|
.replace(/--uk-[^\s]+: (\$[^\s]+);/g, (exp, name) => exp.replace(name, `#{${name}}`))
|
|
82
86
|
.replace(/\\\$/g, '\\@') // revert classes using the @ symbol
|
|
83
87
|
.replace(/ e\(/g, ' unquote(') // convert escape function
|
package/build/util.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import less from 'less';
|
|
2
|
-
import {URL} from 'url';
|
|
3
2
|
import fs from 'fs-extra';
|
|
4
3
|
import postcss from 'postcss';
|
|
5
4
|
import globImport from 'glob';
|
|
6
|
-
import {rollup, watch as rollupWatch} from 'rollup';
|
|
7
5
|
import {optimize} from 'svgo';
|
|
8
6
|
import {promisify} from 'util';
|
|
9
7
|
import minimist from 'minimist';
|
|
@@ -14,13 +12,13 @@ import alias from '@rollup/plugin-alias';
|
|
|
14
12
|
import modify from 'rollup-plugin-modify';
|
|
15
13
|
import {uglify} from 'rollup-plugin-uglify';
|
|
16
14
|
import replace from '@rollup/plugin-replace';
|
|
17
|
-
import {basename, dirname,
|
|
15
|
+
import {basename, dirname, join} from 'path';
|
|
18
16
|
import {exec as execImport} from 'child_process';
|
|
17
|
+
import {rollup, watch as rollupWatch} from 'rollup';
|
|
19
18
|
|
|
20
19
|
export const exec = promisify(execImport);
|
|
21
20
|
export const glob = promisify(globImport);
|
|
22
21
|
export const {pathExists, readJson} = fs;
|
|
23
|
-
export const __dirname = new URL('.', import.meta.url).pathname;
|
|
24
22
|
|
|
25
23
|
export const banner = `/*! UIkit ${await getVersion()} | https://www.getuikit.com | (c) 2014 - ${new Date().getFullYear()} YOOtheme | MIT License */\n`;
|
|
26
24
|
export const validClassName = /[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/;
|
|
@@ -55,7 +53,7 @@ export async function write(dest, data) {
|
|
|
55
53
|
|
|
56
54
|
export async function logFile(file) {
|
|
57
55
|
const data = await read(file);
|
|
58
|
-
console.log(`${cyan(
|
|
56
|
+
console.log(`${cyan(file)} ${getSize(data)}`);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
export async function minify(file) {
|
|
@@ -67,7 +65,7 @@ export async function minify(file) {
|
|
|
67
65
|
returnPromise: true
|
|
68
66
|
}).minify([file]);
|
|
69
67
|
|
|
70
|
-
await write(`${
|
|
68
|
+
await write(`${join(dirname(file), basename(file, '.css'))}.min.css`, styles);
|
|
71
69
|
|
|
72
70
|
return styles;
|
|
73
71
|
|
|
@@ -236,7 +234,7 @@ export function ucfirst(str) {
|
|
|
236
234
|
}
|
|
237
235
|
|
|
238
236
|
export async function getVersion() {
|
|
239
|
-
return (await readJson(
|
|
237
|
+
return (await readJson('package.json')).version;
|
|
240
238
|
}
|
|
241
239
|
|
|
242
240
|
export async function replaceInFile(file, fn) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.2-dev.
|
|
1
|
+
/*! UIkit 3.9.2-dev.a89eca15f | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -4068,7 +4068,7 @@ select.uk-form-width-xsmall {
|
|
|
4068
4068
|
content: '.';
|
|
4069
4069
|
}
|
|
4070
4070
|
:root {
|
|
4071
|
-
--uk-leader-fill-content:
|
|
4071
|
+
--uk-leader-fill-content: '.';
|
|
4072
4072
|
}
|
|
4073
4073
|
/* ========================================================================
|
|
4074
4074
|
Component: Notification
|