plossy 0.1.0 → 0.1.1
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/dist/plossy.css +156 -151
- package/dist/plossy.esm.js +12 -10
- package/dist/plossy.js +12 -10
- package/dist/plossy.min.css +2 -2
- package/dist/plossy.min.js +4 -4
- package/package.json +3 -1
package/dist/plossy.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Plossy v0.1.
|
|
2
|
+
* Plossy v0.1.1 | MIT License
|
|
3
3
|
*
|
|
4
4
|
* Includes icons from Lucide (https://lucide.dev), some of them derived from Feather.
|
|
5
5
|
* Full third-party notices (also shipped as LICENSE-LUCIDE):
|
|
@@ -233,7 +233,7 @@ async function animateClass(el, className) {
|
|
|
233
233
|
el.classList.remove(className);
|
|
234
234
|
}
|
|
235
235
|
var heightAnimations = /* @__PURE__ */ new WeakMap();
|
|
236
|
-
function toggleHeight(el, show, { duration =
|
|
236
|
+
function toggleHeight(el, show, { duration = 360, easing = "cubic-bezier(0.33, 0.5, 0.2, 1)" } = {}) {
|
|
237
237
|
const running2 = heightAnimations.get(el);
|
|
238
238
|
const from = running2 ? getComputedStyle(el) : null;
|
|
239
239
|
const startFrame = from ? { height: from.height, paddingTop: from.paddingTop, paddingBottom: from.paddingBottom, opacity: from.opacity } : null;
|
|
@@ -486,7 +486,7 @@ __publicField(Accordion, "defaults", {
|
|
|
486
486
|
// pozwala zamknąć wszystkie pozycje
|
|
487
487
|
active: null,
|
|
488
488
|
// indeks pozycji otwartej na starcie
|
|
489
|
-
duration:
|
|
489
|
+
duration: 380
|
|
490
490
|
});
|
|
491
491
|
register("accordion", Accordion);
|
|
492
492
|
|
|
@@ -561,7 +561,7 @@ var Alert = class extends Component {
|
|
|
561
561
|
transform: "scale(0.97)"
|
|
562
562
|
};
|
|
563
563
|
try {
|
|
564
|
-
await el.animate([from, faded, to], { duration, easing: "cubic-bezier(0.
|
|
564
|
+
await el.animate([from, faded, to], { duration, easing: "cubic-bezier(0.33, 0.5, 0.2, 1)" }).finished;
|
|
565
565
|
} catch {
|
|
566
566
|
}
|
|
567
567
|
}
|
|
@@ -1162,7 +1162,7 @@ __publicField(Nav, "defaults", {
|
|
|
1162
1162
|
// pozwala otworzyć wiele podmenu naraz
|
|
1163
1163
|
collapsible: true,
|
|
1164
1164
|
// pozwala zamknąć wszystkie
|
|
1165
|
-
duration:
|
|
1165
|
+
duration: 340
|
|
1166
1166
|
});
|
|
1167
1167
|
register("navbar", Navbar);
|
|
1168
1168
|
register("nav", Nav);
|
|
@@ -5128,6 +5128,8 @@ var Overlay = class extends Component {
|
|
|
5128
5128
|
lockScroll();
|
|
5129
5129
|
try {
|
|
5130
5130
|
el.showModal();
|
|
5131
|
+
el.scrollTop = 0;
|
|
5132
|
+
el.scrollLeft = 0;
|
|
5131
5133
|
} catch (error) {
|
|
5132
5134
|
this.state = "closed";
|
|
5133
5135
|
opened.delete(this);
|
|
@@ -5371,7 +5373,7 @@ delegateOpen("offcanvas");
|
|
|
5371
5373
|
var POSITIONS = ["top-right", "top-left", "top-center", "bottom-left", "bottom-center", "bottom-right"];
|
|
5372
5374
|
var STATUSES = ["primary", "secondary", "success", "warning", "danger", "info"];
|
|
5373
5375
|
var ICONS = { primary: "bell", success: "circle-check", warning: "triangle-alert", danger: "circle-x", info: "info" };
|
|
5374
|
-
var EASE = "cubic-bezier(0.
|
|
5376
|
+
var EASE = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
5375
5377
|
var SWIPE_DISTANCE = 72;
|
|
5376
5378
|
var DEFAULTS = {
|
|
5377
5379
|
message: "",
|
|
@@ -6064,7 +6066,7 @@ var LightboxPanel = class {
|
|
|
6064
6066
|
try {
|
|
6065
6067
|
image.animate(frames, timing);
|
|
6066
6068
|
} catch {
|
|
6067
|
-
image.animate(frames, { ...timing, easing: "cubic-bezier(0.
|
|
6069
|
+
image.animate(frames, { ...timing, easing: "cubic-bezier(0.33, 0.5, 0.2, 1)" });
|
|
6068
6070
|
}
|
|
6069
6071
|
return true;
|
|
6070
6072
|
}
|
|
@@ -6400,7 +6402,7 @@ __publicField(Toggle, "defaults", {
|
|
|
6400
6402
|
// wiele celów pokazywanych po kolei
|
|
6401
6403
|
media: false,
|
|
6402
6404
|
// aktywny dopiero od podanej szerokości (px, '@m' lub zapytanie media)
|
|
6403
|
-
duration:
|
|
6405
|
+
duration: 360
|
|
6404
6406
|
});
|
|
6405
6407
|
__publicField(Toggle, "primary", "target");
|
|
6406
6408
|
register("toggle", Toggle);
|
|
@@ -8451,7 +8453,7 @@ register("slideshow", Slideshow);
|
|
|
8451
8453
|
|
|
8452
8454
|
// src/js/components/sortable.js
|
|
8453
8455
|
var IGNORE = 'input, textarea, select, option, button, [contenteditable]:not([contenteditable="false"]), .pl-sortable-nodrag';
|
|
8454
|
-
var EASE2 = "cubic-bezier(0.
|
|
8456
|
+
var EASE2 = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
8455
8457
|
var HOLD = 260;
|
|
8456
8458
|
var animating = /* @__PURE__ */ new WeakMap();
|
|
8457
8459
|
function flip(containers2, mutate, duration) {
|
|
@@ -8937,7 +8939,7 @@ __publicField(Sortable, "primary", "group");
|
|
|
8937
8939
|
register("sortable", Sortable);
|
|
8938
8940
|
|
|
8939
8941
|
// src/js/components/filter.js
|
|
8940
|
-
var EASE3 = "cubic-bezier(0.
|
|
8942
|
+
var EASE3 = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
8941
8943
|
var CONTROL = "[data-pl-filter-control]";
|
|
8942
8944
|
var collator = typeof Intl !== "undefined" ? new Intl.Collator("pl", { numeric: true, sensitivity: "base" }) : null;
|
|
8943
8945
|
function parseControl(control) {
|
package/dist/plossy.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Plossy v0.1.
|
|
2
|
+
* Plossy v0.1.1 | MIT License
|
|
3
3
|
*
|
|
4
4
|
* Includes icons from Lucide (https://lucide.dev), some of them derived from Feather.
|
|
5
5
|
* Full third-party notices (also shipped as LICENSE-LUCIDE):
|
|
@@ -234,7 +234,7 @@
|
|
|
234
234
|
el.classList.remove(className);
|
|
235
235
|
}
|
|
236
236
|
var heightAnimations = /* @__PURE__ */ new WeakMap();
|
|
237
|
-
function toggleHeight(el, show, { duration =
|
|
237
|
+
function toggleHeight(el, show, { duration = 360, easing = "cubic-bezier(0.33, 0.5, 0.2, 1)" } = {}) {
|
|
238
238
|
const running2 = heightAnimations.get(el);
|
|
239
239
|
const from = running2 ? getComputedStyle(el) : null;
|
|
240
240
|
const startFrame = from ? { height: from.height, paddingTop: from.paddingTop, paddingBottom: from.paddingBottom, opacity: from.opacity } : null;
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
// pozwala zamknąć wszystkie pozycje
|
|
488
488
|
active: null,
|
|
489
489
|
// indeks pozycji otwartej na starcie
|
|
490
|
-
duration:
|
|
490
|
+
duration: 380
|
|
491
491
|
});
|
|
492
492
|
register("accordion", Accordion);
|
|
493
493
|
|
|
@@ -562,7 +562,7 @@
|
|
|
562
562
|
transform: "scale(0.97)"
|
|
563
563
|
};
|
|
564
564
|
try {
|
|
565
|
-
await el.animate([from, faded, to], { duration, easing: "cubic-bezier(0.
|
|
565
|
+
await el.animate([from, faded, to], { duration, easing: "cubic-bezier(0.33, 0.5, 0.2, 1)" }).finished;
|
|
566
566
|
} catch {
|
|
567
567
|
}
|
|
568
568
|
}
|
|
@@ -1163,7 +1163,7 @@
|
|
|
1163
1163
|
// pozwala otworzyć wiele podmenu naraz
|
|
1164
1164
|
collapsible: true,
|
|
1165
1165
|
// pozwala zamknąć wszystkie
|
|
1166
|
-
duration:
|
|
1166
|
+
duration: 340
|
|
1167
1167
|
});
|
|
1168
1168
|
register("navbar", Navbar);
|
|
1169
1169
|
register("nav", Nav);
|
|
@@ -5129,6 +5129,8 @@
|
|
|
5129
5129
|
lockScroll();
|
|
5130
5130
|
try {
|
|
5131
5131
|
el.showModal();
|
|
5132
|
+
el.scrollTop = 0;
|
|
5133
|
+
el.scrollLeft = 0;
|
|
5132
5134
|
} catch (error) {
|
|
5133
5135
|
this.state = "closed";
|
|
5134
5136
|
opened.delete(this);
|
|
@@ -5372,7 +5374,7 @@
|
|
|
5372
5374
|
var POSITIONS = ["top-right", "top-left", "top-center", "bottom-left", "bottom-center", "bottom-right"];
|
|
5373
5375
|
var STATUSES = ["primary", "secondary", "success", "warning", "danger", "info"];
|
|
5374
5376
|
var ICONS = { primary: "bell", success: "circle-check", warning: "triangle-alert", danger: "circle-x", info: "info" };
|
|
5375
|
-
var EASE = "cubic-bezier(0.
|
|
5377
|
+
var EASE = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
5376
5378
|
var SWIPE_DISTANCE = 72;
|
|
5377
5379
|
var DEFAULTS = {
|
|
5378
5380
|
message: "",
|
|
@@ -6065,7 +6067,7 @@
|
|
|
6065
6067
|
try {
|
|
6066
6068
|
image.animate(frames, timing);
|
|
6067
6069
|
} catch {
|
|
6068
|
-
image.animate(frames, { ...timing, easing: "cubic-bezier(0.
|
|
6070
|
+
image.animate(frames, { ...timing, easing: "cubic-bezier(0.33, 0.5, 0.2, 1)" });
|
|
6069
6071
|
}
|
|
6070
6072
|
return true;
|
|
6071
6073
|
}
|
|
@@ -6401,7 +6403,7 @@
|
|
|
6401
6403
|
// wiele celów pokazywanych po kolei
|
|
6402
6404
|
media: false,
|
|
6403
6405
|
// aktywny dopiero od podanej szerokości (px, '@m' lub zapytanie media)
|
|
6404
|
-
duration:
|
|
6406
|
+
duration: 360
|
|
6405
6407
|
});
|
|
6406
6408
|
__publicField(Toggle, "primary", "target");
|
|
6407
6409
|
register("toggle", Toggle);
|
|
@@ -8452,7 +8454,7 @@
|
|
|
8452
8454
|
|
|
8453
8455
|
// src/js/components/sortable.js
|
|
8454
8456
|
var IGNORE = 'input, textarea, select, option, button, [contenteditable]:not([contenteditable="false"]), .pl-sortable-nodrag';
|
|
8455
|
-
var EASE2 = "cubic-bezier(0.
|
|
8457
|
+
var EASE2 = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
8456
8458
|
var HOLD = 260;
|
|
8457
8459
|
var animating = /* @__PURE__ */ new WeakMap();
|
|
8458
8460
|
function flip(containers2, mutate, duration) {
|
|
@@ -8938,7 +8940,7 @@
|
|
|
8938
8940
|
register("sortable", Sortable);
|
|
8939
8941
|
|
|
8940
8942
|
// src/js/components/filter.js
|
|
8941
|
-
var EASE3 = "cubic-bezier(0.
|
|
8943
|
+
var EASE3 = "cubic-bezier(0.33, 0.5, 0.2, 1)";
|
|
8942
8944
|
var CONTROL = "[data-pl-filter-control]";
|
|
8943
8945
|
var collator = typeof Intl !== "undefined" ? new Intl.Collator("pl", { numeric: true, sensitivity: "base" }) : null;
|
|
8944
8946
|
function parseControl(control) {
|