uikit 3.16.15-dev.8ea213467 → 3.16.15-dev.b0c8c0a4b
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 +1 -0
- package/build/util.js +47 -36
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- 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 +25 -22
- 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 +25 -22
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -2
- package/src/js/core/sticky.js +19 -13
- package/src/js/core/svg.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- Fix Drop component height if `inset: true` and `stretch: true`
|
|
8
8
|
- Fix Drop component `maxWidth` property with fractional viewport view
|
|
9
|
+
- Fix Sticky component listens for resize of itself as long as no transition is in Progress
|
|
9
10
|
|
|
10
11
|
## 3.16.14 (April 6, 2023)
|
|
11
12
|
|
package/build/util.js
CHANGED
|
@@ -6,7 +6,6 @@ import { optimize } from 'svgo';
|
|
|
6
6
|
import { promisify } from 'util';
|
|
7
7
|
import minimist from 'minimist';
|
|
8
8
|
import CleanCSS from 'clean-css';
|
|
9
|
-
import html from 'rollup-plugin-html';
|
|
10
9
|
import alias from '@rollup/plugin-alias';
|
|
11
10
|
import modify from 'rollup-plugin-modify';
|
|
12
11
|
import replace from '@rollup/plugin-replace';
|
|
@@ -99,17 +98,8 @@ export async function compile(file, dest, { external, globals, name, aliases, re
|
|
|
99
98
|
...aliases,
|
|
100
99
|
},
|
|
101
100
|
}),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
htmlMinifierOptions: {
|
|
105
|
-
collapseWhitespace: true,
|
|
106
|
-
minifyCSS: {
|
|
107
|
-
advanced: false,
|
|
108
|
-
keepSpecialComments: 0,
|
|
109
|
-
rebase: false,
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
}),
|
|
101
|
+
|
|
102
|
+
svgPlugin(),
|
|
113
103
|
|
|
114
104
|
esbuild({
|
|
115
105
|
target: 'safari12',
|
|
@@ -189,32 +179,9 @@ export async function compile(file, dest, { external, globals, name, aliases, re
|
|
|
189
179
|
}
|
|
190
180
|
|
|
191
181
|
export async function icons(src) {
|
|
192
|
-
const options = {
|
|
193
|
-
plugins: [
|
|
194
|
-
{
|
|
195
|
-
name: 'preset-default',
|
|
196
|
-
params: {
|
|
197
|
-
overrides: {
|
|
198
|
-
removeViewBox: false,
|
|
199
|
-
cleanupNumericValues: {
|
|
200
|
-
floatPrecision: 3,
|
|
201
|
-
},
|
|
202
|
-
convertPathData: false,
|
|
203
|
-
convertShapeToPath: false,
|
|
204
|
-
mergePaths: false,
|
|
205
|
-
minifyStyles: false,
|
|
206
|
-
removeUnknownsAndDefaults: false,
|
|
207
|
-
removeUselessStrokeAndFill: false,
|
|
208
|
-
sortAttrs: false,
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
],
|
|
213
|
-
};
|
|
214
|
-
|
|
215
182
|
const files = await glob(src);
|
|
216
183
|
const icons = await Promise.all(
|
|
217
|
-
files.map((file) => limit(async () => (await
|
|
184
|
+
files.map((file) => limit(async () => optimizeSvg(await read(file))))
|
|
218
185
|
);
|
|
219
186
|
|
|
220
187
|
return JSON.stringify(
|
|
@@ -255,3 +222,47 @@ function cyan(str) {
|
|
|
255
222
|
function getSize(data) {
|
|
256
223
|
return `${(data.length / 1024).toFixed(2)}kb`;
|
|
257
224
|
}
|
|
225
|
+
|
|
226
|
+
async function optimizeSvg(svg) {
|
|
227
|
+
const options = {
|
|
228
|
+
plugins: [
|
|
229
|
+
{
|
|
230
|
+
name: 'preset-default',
|
|
231
|
+
params: {
|
|
232
|
+
overrides: {
|
|
233
|
+
removeViewBox: false,
|
|
234
|
+
cleanupNumericValues: {
|
|
235
|
+
floatPrecision: 3,
|
|
236
|
+
},
|
|
237
|
+
convertPathData: false,
|
|
238
|
+
convertShapeToPath: false,
|
|
239
|
+
mergePaths: false,
|
|
240
|
+
minifyStyles: false,
|
|
241
|
+
removeUnknownsAndDefaults: false,
|
|
242
|
+
removeUselessStrokeAndFill: false,
|
|
243
|
+
sortAttrs: false,
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
},
|
|
247
|
+
],
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
return (await optimize(svg, options)).data;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
function svgPlugin() {
|
|
254
|
+
return {
|
|
255
|
+
name: 'svg-import',
|
|
256
|
+
|
|
257
|
+
transform: async (code, id) => {
|
|
258
|
+
if (!id.endsWith('.svg')) {
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return {
|
|
263
|
+
code: `export default ${JSON.stringify(await optimizeSvg(code))};`,
|
|
264
|
+
map: { mappings: '' },
|
|
265
|
+
};
|
|
266
|
+
},
|
|
267
|
+
};
|
|
268
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.16.15-dev.
|
|
1
|
+
/*! UIkit 3.16.15-dev.b0c8c0a4b | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|