uikit 3.9.2-dev.836238c9b → 3.9.3-dev.5bb6fc46c
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 +6 -8
- package/build/scss.js +4 -0
- package/build/util.js +9 -10
- 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 +20 -15
- 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 +20 -15
- package/dist/js/uikit.min.js +2 -2
- package/package.json +2 -1
- package/src/js/util/dimensions.js +8 -5
- 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,34 +1,32 @@
|
|
|
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 = {cwd: resolve(`${__dirname}/..`), encoding: 'utf8'};
|
|
9
7
|
if (args.f || args.force || await isDevCommit()) {
|
|
10
8
|
|
|
11
9
|
// increase version patch number
|
|
12
10
|
const version = inc(await getVersion(), 'patch');
|
|
13
11
|
|
|
14
12
|
// get current git hash
|
|
15
|
-
const hash = (await run('git rev-parse --short HEAD'
|
|
13
|
+
const hash = (await run('git rev-parse --short HEAD')).trim();
|
|
16
14
|
|
|
17
15
|
// set version of package.json
|
|
18
|
-
await run(`npm version ${version}-dev.${hash} --git-tag-version false
|
|
16
|
+
await run(`npm version ${version}-dev.${hash} --git-tag-version false`);
|
|
19
17
|
|
|
20
18
|
// create dist files
|
|
21
|
-
await run('yarn compile && yarn compile-rtl && yarn build-scss'
|
|
19
|
+
await run('yarn compile && yarn compile-rtl && yarn build-scss');
|
|
22
20
|
|
|
23
21
|
// publish to dev tag
|
|
24
|
-
await run('npm publish --tag dev'
|
|
22
|
+
await run('npm publish --tag dev');
|
|
25
23
|
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
async function isDevCommit() {
|
|
29
27
|
|
|
30
28
|
// check for changes to publish (%B: raw body (unwrapped subject and body)
|
|
31
|
-
const message = await run('git log -1 --pretty=%B'
|
|
29
|
+
const message = await run('git log -1 --pretty=%B');
|
|
32
30
|
|
|
33
31
|
const type = message.match(/^(revert: )?(feat|fix|polish|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/);
|
|
34
32
|
|
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
|
|
|
@@ -223,10 +221,11 @@ export async function icons(src) {
|
|
|
223
221
|
|
|
224
222
|
}
|
|
225
223
|
|
|
226
|
-
export async function run(cmd) {
|
|
227
|
-
const {stdout, stderr} = await exec(cmd);
|
|
224
|
+
export async function run(cmd, options) {
|
|
225
|
+
const {stdout, stderr} = await exec(cmd, options);
|
|
228
226
|
|
|
229
|
-
|
|
227
|
+
stdout && console.log(stdout.trim());
|
|
228
|
+
stderr && console.log(stderr.trim());
|
|
230
229
|
|
|
231
230
|
return stdout;
|
|
232
231
|
}
|
|
@@ -236,7 +235,7 @@ export function ucfirst(str) {
|
|
|
236
235
|
}
|
|
237
236
|
|
|
238
237
|
export async function getVersion() {
|
|
239
|
-
return (await readJson(
|
|
238
|
+
return (await readJson('package.json')).version;
|
|
240
239
|
}
|
|
241
240
|
|
|
242
241
|
export async function replaceInFile(file, fn) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.3-dev.5bb6fc46c | 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
|