uikit 3.16.25-dev.12f581d90 → 3.16.25-dev.931f07bf4
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 +6 -0
- package/build/prefix.js +5 -4
- package/build/scss.js +17 -7
- package/dist/css/uikit-core-rtl.css +6 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +6 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +6 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +6 -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 +3 -7
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +3 -7
- 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 +13 -9
- 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 +3 -7
- 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 +3 -7
- 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 +13 -9
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +18 -18
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/observables.js +11 -5
- package/src/js/components/parallax.js +2 -2
- package/src/js/core/sticky.js +2 -2
- package/src/js/mixin/slider-nav.js +3 -8
- package/src/less/components/slider.less +8 -2
- package/src/scss/components/inverse.scss +0 -1
- package/src/scss/components/slider.scss +8 -2
- package/src/scss/mixins-theme.scss +560 -552
- package/src/scss/mixins.scss +456 -448
- package/src/scss/variables-theme.scss +2 -2
- package/src/scss/variables.scss +2 -2
- package/build/scss/inverse.scss +0 -30
package/CHANGELOG.md
CHANGED
package/build/prefix.js
CHANGED
|
@@ -6,7 +6,7 @@ if (args.h || args.help) {
|
|
|
6
6
|
console.log(`
|
|
7
7
|
usage:
|
|
8
8
|
|
|
9
|
-
prefix.js [-p{refix}=
|
|
9
|
+
prefix.js [-p{refix}=prefix] [-s{ource}=folder to replace prefix in]
|
|
10
10
|
|
|
11
11
|
example:
|
|
12
12
|
|
|
@@ -17,6 +17,7 @@ if (args.h || args.help) {
|
|
|
17
17
|
process.exit(0);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
const path = args.s || args.source || 'dist';
|
|
20
21
|
const currentPrefix = await findExistingPrefix();
|
|
21
22
|
const prefix = await getPrefix();
|
|
22
23
|
|
|
@@ -27,7 +28,7 @@ if (currentPrefix === prefix) {
|
|
|
27
28
|
await replacePrefix(currentPrefix, prefix);
|
|
28
29
|
|
|
29
30
|
async function findExistingPrefix() {
|
|
30
|
-
return (await read(
|
|
31
|
+
return (await read(`${path}/css/uikit.css`)).match(
|
|
31
32
|
new RegExp(`(${validClassName.source})(-[a-z]+)?-grid`),
|
|
32
33
|
)?.[1];
|
|
33
34
|
}
|
|
@@ -58,13 +59,13 @@ async function getPrefix() {
|
|
|
58
59
|
}
|
|
59
60
|
|
|
60
61
|
async function replacePrefix(from, to) {
|
|
61
|
-
for (const file of await glob(
|
|
62
|
+
for (const file of await glob(`${path}/**/*.css`)) {
|
|
62
63
|
await replaceInFile(file, (data) =>
|
|
63
64
|
data.replace(new RegExp(`${from}-${/([a-z\d-]+)/.source}`, 'g'), `${to}-$1`),
|
|
64
65
|
);
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
for (const file of await glob(
|
|
68
|
+
for (const file of await glob(`${path}/**/*.js`)) {
|
|
68
69
|
await replaceInFile(file, (data) =>
|
|
69
70
|
data
|
|
70
71
|
.replace(new RegExp(`${from}-`, 'g'), `${to}-`)
|
package/build/scss.js
CHANGED
|
@@ -9,9 +9,12 @@ const coreMixins = {};
|
|
|
9
9
|
const themeMixins = {};
|
|
10
10
|
const coreVariables = {};
|
|
11
11
|
const themeVariables = {};
|
|
12
|
+
const inverseComponentMixins = [];
|
|
12
13
|
|
|
13
14
|
/* First Step: Go through all files */
|
|
14
|
-
for (const file of (await glob('src/less/**/*.less'))
|
|
15
|
+
for (const file of (await glob('src/less/**/*.less'))
|
|
16
|
+
.sort()
|
|
17
|
+
.sort((a, b) => a.endsWith('/inverse.less') - b.endsWith('/inverse.less'))) {
|
|
15
18
|
let source = await read(file);
|
|
16
19
|
|
|
17
20
|
/* replace all Less stuff with SCSS */
|
|
@@ -23,7 +26,7 @@ for (const file of (await glob('src/less/**/*.less')).sort()) {
|
|
|
23
26
|
/(:[^'"]*?\([^'"]+?)\s*\/\s*([0-9.-]+)\)/g,
|
|
24
27
|
(exp, m1, m2) => `${m1} * ${NP.round(1 / parseFloat(m2), 5)})`,
|
|
25
28
|
)
|
|
26
|
-
.replace(/--uk
|
|
29
|
+
.replace(/--uk-\S+: (\$\S+);/g, (exp, name) => exp.replace(name, `#{${name}}`))
|
|
27
30
|
.replace(/\\\$/g, '\\@') // revert classes using the @ symbol
|
|
28
31
|
.replace(/ e\(/g, ' unquote(') // convert escape function
|
|
29
32
|
.replace(/\.([\w-]*)\s*\((.*)\)\s*{/g, '@mixin $1($2){') // hook -> mixins
|
|
@@ -40,7 +43,7 @@ for (const file of (await glob('src/less/**/*.less')).sort()) {
|
|
|
40
43
|
}) // replace Less function fadeout with fade-out
|
|
41
44
|
.replace(/\.svg-fill/g, '@include svg-fill') // include svg-fill mixin
|
|
42
45
|
.replace(
|
|
43
|
-
/(.*):extend\((\.[\w\\@-]*) all\) when \((\$[\w-]*) = (
|
|
46
|
+
/(.*):extend\((\.[\w\\@-]*) all\) when \((\$[\w-]*) = (\w+)\) {}/g,
|
|
44
47
|
'@if ( $3 == $4 ) { $1 { @extend $2 !optional;} }',
|
|
45
48
|
) // update conditional extend and add !optional to ignore warnings
|
|
46
49
|
.replace(
|
|
@@ -63,10 +66,17 @@ for (const file of (await glob('src/less/**/*.less')).sort()) {
|
|
|
63
66
|
/* File name of the current file */
|
|
64
67
|
const filename = path.basename(file, '.less');
|
|
65
68
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
69
|
+
if (filename === 'inverse') {
|
|
70
|
+
source = source.replace(
|
|
71
|
+
/\*\//,
|
|
72
|
+
`*/\n@mixin hook-inverse() {\n${inverseComponentMixins
|
|
73
|
+
.map((mixin) => ` @include ${mixin}();\n`)
|
|
74
|
+
.join('')}}`,
|
|
75
|
+
);
|
|
76
|
+
} else if (source.match(/hook-inverse(?!-)/)) {
|
|
77
|
+
source = source.replace(/hook-inverse(?!-)/, `hook-inverse-component-${filename}`);
|
|
78
|
+
inverseComponentMixins.push(`hook-inverse-component-${filename}`);
|
|
79
|
+
}
|
|
70
80
|
|
|
71
81
|
/* get all the mixins and remove them from the file */
|
|
72
82
|
source = getMixinsFromFile(file, source);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.25-dev.
|
|
1
|
+
/*! UIkit 3.16.25-dev.931f07bf4 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -3608,10 +3608,14 @@ select.uk-form-width-xsmall {
|
|
|
3608
3608
|
/* Container
|
|
3609
3609
|
========================================================================== */
|
|
3610
3610
|
/*
|
|
3611
|
-
* Clip child elements
|
|
3611
|
+
* 1. Clip child elements
|
|
3612
|
+
* 2. Prevent accidental scrolling through elements in slide getting focused
|
|
3612
3613
|
*/
|
|
3613
3614
|
.uk-slider-container {
|
|
3615
|
+
/* 1 */
|
|
3614
3616
|
overflow: hidden;
|
|
3617
|
+
/* 2 */
|
|
3618
|
+
overflow: clip;
|
|
3615
3619
|
}
|
|
3616
3620
|
/*
|
|
3617
3621
|
* Widen container to prevent box-shadows from clipping, `large-box-shadow`
|