uikit 3.24.2 → 3.24.3-dev.61bf04af
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 +22 -0
- package/dist/css/uikit-core-rtl.css +72 -42
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +72 -42
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +100 -82
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +100 -82
- 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 +8 -8
- 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 +57 -45
- 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 -13
- package/dist/js/uikit.min.js +1 -1
- package/package.json +6 -6
- package/src/images/components/accordion-icon.svg +20 -0
- package/src/js/components/internal/slider-transitioner.js +1 -1
- package/src/js/components/slider.js +6 -7
- package/src/js/core/accordion.js +3 -3
- package/src/js/core/height-viewport.js +12 -1
- package/src/js/core/icon.js +2 -0
- package/src/js/core/index.js +1 -0
- package/src/less/components/accordion.less +109 -46
- package/src/less/components/card.less +1 -1
- package/src/less/components/nav.less +1 -0
- package/src/less/components/overlay.less +2 -2
- package/src/less/theme/accordion.less +31 -38
- package/src/scss/components/accordion.scss +77 -30
- package/src/scss/components/nav.scss +1 -0
- package/src/scss/mixins-theme.scss +39 -23
- package/src/scss/mixins.scss +38 -15
- package/src/scss/variables-theme.scss +13 -15
- package/src/scss/variables.scss +11 -11
- package/tests/accordion.html +76 -17
- package/tests/card.html +86 -0
- package/tests/height-viewport.html +12 -3
- package/tests/index.html +4 -4
- package/tests/overlay.html +177 -9
- package/src/images/backgrounds/accordion-close.svg +0 -4
- package/src/images/backgrounds/accordion-open.svg +0 -3
package/dist/js/uikit-core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.24.
|
|
1
|
+
/*! UIkit 3.24.3-dev.61bf04af | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
@@ -2166,7 +2166,7 @@
|
|
|
2166
2166
|
};
|
|
2167
2167
|
App.util = util;
|
|
2168
2168
|
App.options = {};
|
|
2169
|
-
App.version = "3.24.
|
|
2169
|
+
App.version = "3.24.3-dev.61bf04af";
|
|
2170
2170
|
|
|
2171
2171
|
const PREFIX = "uk-";
|
|
2172
2172
|
const DATA = "__uikit__";
|
|
@@ -2789,8 +2789,8 @@
|
|
|
2789
2789
|
collapsible: true,
|
|
2790
2790
|
multiple: false,
|
|
2791
2791
|
clsOpen: "uk-open",
|
|
2792
|
-
toggle: "
|
|
2793
|
-
content: "
|
|
2792
|
+
toggle: ".uk-accordion-title",
|
|
2793
|
+
content: ".uk-accordion-content",
|
|
2794
2794
|
offset: 0
|
|
2795
2795
|
},
|
|
2796
2796
|
computed: {
|
|
@@ -2847,7 +2847,7 @@
|
|
|
2847
2847
|
}
|
|
2848
2848
|
},
|
|
2849
2849
|
{
|
|
2850
|
-
name: "shown hidden",
|
|
2850
|
+
name: "show hide shown hidden",
|
|
2851
2851
|
self: true,
|
|
2852
2852
|
delegate: ({ targets }) => targets,
|
|
2853
2853
|
handler() {
|
|
@@ -4285,7 +4285,47 @@
|
|
|
4285
4285
|
}
|
|
4286
4286
|
};
|
|
4287
4287
|
|
|
4288
|
+
var Media = {
|
|
4289
|
+
props: {
|
|
4290
|
+
media: Boolean
|
|
4291
|
+
},
|
|
4292
|
+
data: {
|
|
4293
|
+
media: false
|
|
4294
|
+
},
|
|
4295
|
+
connected() {
|
|
4296
|
+
const media = toMedia(this.media, this.$el);
|
|
4297
|
+
this.matchMedia = true;
|
|
4298
|
+
if (media) {
|
|
4299
|
+
this.mediaObj = window.matchMedia(media);
|
|
4300
|
+
const handler = () => {
|
|
4301
|
+
this.matchMedia = this.mediaObj.matches;
|
|
4302
|
+
trigger(this.$el, createEvent("mediachange", false, true, [this.mediaObj]));
|
|
4303
|
+
};
|
|
4304
|
+
this.offMediaObj = on(this.mediaObj, "change", () => {
|
|
4305
|
+
handler();
|
|
4306
|
+
this.$emit("resize");
|
|
4307
|
+
});
|
|
4308
|
+
handler();
|
|
4309
|
+
}
|
|
4310
|
+
},
|
|
4311
|
+
disconnected() {
|
|
4312
|
+
var _a;
|
|
4313
|
+
(_a = this.offMediaObj) == null ? void 0 : _a.call(this);
|
|
4314
|
+
}
|
|
4315
|
+
};
|
|
4316
|
+
function toMedia(value, element) {
|
|
4317
|
+
if (isString(value)) {
|
|
4318
|
+
if (startsWith(value, "@")) {
|
|
4319
|
+
value = toFloat(css(element, `--uk-breakpoint-${value.slice(1)}`));
|
|
4320
|
+
} else if (isNaN(value)) {
|
|
4321
|
+
return value;
|
|
4322
|
+
}
|
|
4323
|
+
}
|
|
4324
|
+
return value && isNumeric(value) ? `(min-width: ${value}px)` : "";
|
|
4325
|
+
}
|
|
4326
|
+
|
|
4288
4327
|
var heightViewport = {
|
|
4328
|
+
mixins: [Media],
|
|
4289
4329
|
props: {
|
|
4290
4330
|
expand: Boolean,
|
|
4291
4331
|
offsetTop: Boolean,
|
|
@@ -4310,6 +4350,9 @@
|
|
|
4310
4350
|
if (!isVisible(this.$el)) {
|
|
4311
4351
|
return false;
|
|
4312
4352
|
}
|
|
4353
|
+
if (!this.matchMedia) {
|
|
4354
|
+
return { minHeight: false };
|
|
4355
|
+
}
|
|
4313
4356
|
let minHeight = "";
|
|
4314
4357
|
const box = boxModelAdjust(this.$el, "height", "content-box");
|
|
4315
4358
|
const { body, scrollingElement } = document;
|
|
@@ -4346,12 +4389,18 @@
|
|
|
4346
4389
|
return { minHeight };
|
|
4347
4390
|
},
|
|
4348
4391
|
write({ minHeight }) {
|
|
4349
|
-
css(
|
|
4392
|
+
css(
|
|
4393
|
+
this.$el,
|
|
4394
|
+
this.property,
|
|
4395
|
+
minHeight === false ? "" : `max(${this.min || 0}px, ${minHeight})`
|
|
4396
|
+
);
|
|
4350
4397
|
},
|
|
4351
4398
|
events: ["resize"]
|
|
4352
4399
|
}
|
|
4353
4400
|
};
|
|
4354
4401
|
|
|
4402
|
+
var accordionIcon = "<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\"><style>.uk-accordion-icon svg>[class*="line-"]{transition:0.2s ease-out;transition-property:transform, opacity;transform-origin:center}[aria-expanded="true"] .uk-accordion-icon svg>.line-1{transform:rotate(-45deg);opacity:0}[aria-expanded="true"] .uk-accordion-icon svg>.line-2{transform:rotate(90deg)}</style><rect width=\"13\" height=\"1\" fill=\"#000\" x=\"0\" y=\"6\" class=\"line-1\"/><rect width=\"1\" height=\"13\" fill=\"#000\" x=\"6\" y=\"0\" class=\"line-2\"/></svg>";
|
|
4403
|
+
|
|
4355
4404
|
var closeIcon = "<svg width=\"14\" height=\"14\" viewBox=\"0 0 14 14\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"1\" y1=\"1\" x2=\"13\" y2=\"13\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.1\" x1=\"13\" y1=\"1\" x2=\"1\" y2=\"13\"/></svg>";
|
|
4356
4405
|
|
|
4357
4406
|
var closeLarge = "<svg width=\"20\" height=\"20\" viewBox=\"0 0 20 20\"><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"1\" y1=\"1\" x2=\"19\" y2=\"19\"/><line fill=\"none\" stroke=\"#000\" stroke-width=\"1.4\" x1=\"19\" y1=\"1\" x2=\"1\" y2=\"19\"/></svg>";
|
|
@@ -4496,6 +4545,7 @@
|
|
|
4496
4545
|
spinner,
|
|
4497
4546
|
totop,
|
|
4498
4547
|
marker,
|
|
4548
|
+
"accordion-icon": accordionIcon,
|
|
4499
4549
|
"close-icon": closeIcon,
|
|
4500
4550
|
"close-large": closeLarge,
|
|
4501
4551
|
"drop-parent-icon": dropParentIcon,
|
|
@@ -4925,45 +4975,6 @@
|
|
|
4925
4975
|
return true;
|
|
4926
4976
|
}
|
|
4927
4977
|
|
|
4928
|
-
var Media = {
|
|
4929
|
-
props: {
|
|
4930
|
-
media: Boolean
|
|
4931
|
-
},
|
|
4932
|
-
data: {
|
|
4933
|
-
media: false
|
|
4934
|
-
},
|
|
4935
|
-
connected() {
|
|
4936
|
-
const media = toMedia(this.media, this.$el);
|
|
4937
|
-
this.matchMedia = true;
|
|
4938
|
-
if (media) {
|
|
4939
|
-
this.mediaObj = window.matchMedia(media);
|
|
4940
|
-
const handler = () => {
|
|
4941
|
-
this.matchMedia = this.mediaObj.matches;
|
|
4942
|
-
trigger(this.$el, createEvent("mediachange", false, true, [this.mediaObj]));
|
|
4943
|
-
};
|
|
4944
|
-
this.offMediaObj = on(this.mediaObj, "change", () => {
|
|
4945
|
-
handler();
|
|
4946
|
-
this.$emit("resize");
|
|
4947
|
-
});
|
|
4948
|
-
handler();
|
|
4949
|
-
}
|
|
4950
|
-
},
|
|
4951
|
-
disconnected() {
|
|
4952
|
-
var _a;
|
|
4953
|
-
(_a = this.offMediaObj) == null ? void 0 : _a.call(this);
|
|
4954
|
-
}
|
|
4955
|
-
};
|
|
4956
|
-
function toMedia(value, element) {
|
|
4957
|
-
if (isString(value)) {
|
|
4958
|
-
if (startsWith(value, "@")) {
|
|
4959
|
-
value = toFloat(css(element, `--uk-breakpoint-${value.slice(1)}`));
|
|
4960
|
-
} else if (isNaN(value)) {
|
|
4961
|
-
return value;
|
|
4962
|
-
}
|
|
4963
|
-
}
|
|
4964
|
-
return value && isNumeric(value) ? `(min-width: ${value}px)` : "";
|
|
4965
|
-
}
|
|
4966
|
-
|
|
4967
4978
|
var leader = {
|
|
4968
4979
|
mixins: [Class, Media],
|
|
4969
4980
|
props: {
|
|
@@ -6671,6 +6682,7 @@
|
|
|
6671
6682
|
var components = /*#__PURE__*/Object.freeze({
|
|
6672
6683
|
__proto__: null,
|
|
6673
6684
|
Accordion: Accordion,
|
|
6685
|
+
AccordionIcon: IconComponent,
|
|
6674
6686
|
Alert: alert,
|
|
6675
6687
|
Close: Close,
|
|
6676
6688
|
Cover: cover,
|