@vanduo-oss/framework 1.4.0 → 1.4.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/README.md +11 -9
- package/css/components/affix.css +11 -11
- package/css/components/alerts.css +55 -55
- package/css/components/avatar.css +62 -62
- package/css/components/badges.css +25 -25
- package/css/components/breadcrumbs.css +31 -31
- package/css/components/bubble.css +40 -40
- package/css/components/button-group.css +2 -2
- package/css/components/buttons.css +33 -33
- package/css/components/cards.css +76 -76
- package/css/components/chips.css +27 -27
- package/css/components/code-snippet.css +132 -132
- package/css/components/collapsible.css +60 -60
- package/css/components/collections.css +58 -58
- package/css/components/datepicker.css +52 -52
- package/css/components/doc-search.css +63 -63
- package/css/components/doc-tabs.css +1 -1
- package/css/components/draggable.css +69 -69
- package/css/components/dropdown.css +48 -48
- package/css/components/fab.css +60 -60
- package/css/components/flow.css +55 -55
- package/css/components/footer.css +52 -52
- package/css/components/forms.css +373 -373
- package/css/components/image-box.css +39 -39
- package/css/components/modals.css +47 -47
- package/css/components/music-player.css +150 -150
- package/css/components/navbar.css +71 -71
- package/css/components/pagination.css +50 -50
- package/css/components/preloader.css +18 -18
- package/css/components/progress.css +16 -16
- package/css/components/rating.css +18 -18
- package/css/components/ripple.css +10 -10
- package/css/components/sidenav.css +67 -67
- package/css/components/skeleton.css +13 -13
- package/css/components/spinner.css +30 -30
- package/css/components/spotlight.css +27 -27
- package/css/components/stepper.css +36 -36
- package/css/components/suggest.css +35 -35
- package/css/components/tabs.css +46 -46
- package/css/components/theme-customizer.css +73 -73
- package/css/components/timeline.css +43 -43
- package/css/components/timepicker.css +29 -29
- package/css/components/toast.css +27 -27
- package/css/components/tooltips.css +77 -77
- package/css/components/transfer.css +35 -35
- package/css/components/tree.css +25 -25
- package/css/components/waypoint.css +12 -12
- package/css/core/colors.css +610 -610
- package/css/core/grid.css +127 -127
- package/css/core/helpers.css +338 -338
- package/css/core/tokens.css +69 -81
- package/css/core/typography.css +91 -91
- package/css/effects/morph.css +17 -17
- package/css/effects/parallax.css +6 -6
- package/css/utilities/color-utilities.css +273 -273
- package/css/utilities/media.css +2 -2
- package/css/utilities/shadow.css +75 -75
- package/css/utilities/table.css +40 -40
- package/css/utilities/transitions.css +38 -38
- package/css/vanduo.css +1 -2
- package/dist/build-info.json +3 -3
- package/dist/vanduo.cjs.js +20 -20
- package/dist/vanduo.cjs.js.map +2 -2
- package/dist/vanduo.cjs.min.js +4 -4
- package/dist/vanduo.cjs.min.js.map +2 -2
- package/dist/vanduo.css +4030 -4127
- package/dist/vanduo.css.map +1 -1
- package/dist/vanduo.esm.js +20 -20
- package/dist/vanduo.esm.js.map +2 -2
- package/dist/vanduo.esm.min.js +4 -4
- package/dist/vanduo.esm.min.js.map +2 -2
- package/dist/vanduo.js +20 -20
- package/dist/vanduo.js.map +2 -2
- package/dist/vanduo.min.css +2 -2
- package/dist/vanduo.min.css.map +1 -1
- package/dist/vanduo.min.js +4 -4
- package/dist/vanduo.min.js.map +2 -2
- package/js/components/affix.js +2 -2
- package/js/components/image-box.js +2 -2
- package/js/components/morph.js +1 -1
- package/js/components/music-player.js +11 -11
- package/js/components/navbar.js +1 -1
- package/js/components/preloader.js +1 -1
- package/js/components/theme-customizer.js +4 -4
- package/js/components/vd-hex.js +8 -10
- package/package.json +1 -1
- package/css/core/vd-aliases.css +0 -108
package/dist/vanduo.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! Vanduo v1.4.
|
|
1
|
+
/*! Vanduo v1.4.1 | Built: 2026-05-23T09:27:52.907Z | git:4799a84 | development */
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -201,7 +201,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
201
201
|
// js/vanduo.js
|
|
202
202
|
(function() {
|
|
203
203
|
"use strict";
|
|
204
|
-
const VANDUO_VERSION = true ? "1.4.
|
|
204
|
+
const VANDUO_VERSION = true ? "1.4.1" : "0.0.0-dev";
|
|
205
205
|
const hasOwn = Object.prototype.hasOwnProperty;
|
|
206
206
|
const Vanduo2 = {
|
|
207
207
|
version: VANDUO_VERSION,
|
|
@@ -2119,7 +2119,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
2119
2119
|
this.caption.style.display = "none";
|
|
2120
2120
|
}
|
|
2121
2121
|
const scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;
|
|
2122
|
-
document.body.style.setProperty("--scrollbar-width", `${scrollbarWidth}px`);
|
|
2122
|
+
document.body.style.setProperty("--vd-scrollbar-width", `${scrollbarWidth}px`);
|
|
2123
2123
|
document.body.classList.add("body-image-box-open");
|
|
2124
2124
|
this.backdrop.classList.add("is-visible");
|
|
2125
2125
|
this.backdrop.focus();
|
|
@@ -2143,7 +2143,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
2143
2143
|
this.isOpen = false;
|
|
2144
2144
|
this.backdrop.classList.remove("is-visible");
|
|
2145
2145
|
document.body.classList.remove("body-image-box-open");
|
|
2146
|
-
document.body.style.removeProperty("--scrollbar-width");
|
|
2146
|
+
document.body.style.removeProperty("--vd-scrollbar-width");
|
|
2147
2147
|
if (this.currentTrigger) {
|
|
2148
2148
|
this.currentTrigger.focus();
|
|
2149
2149
|
this.currentTrigger.dispatchEvent(new CustomEvent("imageBox:close", { bubbles: true }));
|
|
@@ -2578,7 +2578,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
2578
2578
|
*/
|
|
2579
2579
|
getBreakpoint: function() {
|
|
2580
2580
|
const root = getComputedStyle(document.documentElement);
|
|
2581
|
-
const breakpointValue = root.getPropertyValue("--breakpoint-lg").trim();
|
|
2581
|
+
const breakpointValue = root.getPropertyValue("--vd-breakpoint-lg").trim();
|
|
2582
2582
|
const parsed = parseInt(breakpointValue, 10);
|
|
2583
2583
|
return isNaN(parsed) ? 992 : parsed;
|
|
2584
2584
|
},
|
|
@@ -3227,7 +3227,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
3227
3227
|
}
|
|
3228
3228
|
value = Math.max(0, Math.min(100, value));
|
|
3229
3229
|
if (animate) {
|
|
3230
|
-
el.style.transition = "width var(--transition-duration-slow) var(--transition-ease)";
|
|
3230
|
+
el.style.transition = "width var(--vd-transition-duration-slow) var(--vd-transition-ease)";
|
|
3231
3231
|
} else {
|
|
3232
3232
|
el.style.transition = "none";
|
|
3233
3233
|
setTimeout(() => {
|
|
@@ -4503,7 +4503,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
4503
4503
|
}
|
|
4504
4504
|
this.state.radius = radius;
|
|
4505
4505
|
document.documentElement.setAttribute("data-radius", radius);
|
|
4506
|
-
document.documentElement.style.setProperty("--radius-scale", radius);
|
|
4506
|
+
document.documentElement.style.setProperty("--vd-radius-scale", radius);
|
|
4507
4507
|
this.savePreference(this.STORAGE_KEYS.RADIUS, radius);
|
|
4508
4508
|
this.dispatchEvent("radius-change", { radius });
|
|
4509
4509
|
},
|
|
@@ -4733,11 +4733,11 @@ module.exports = __toCommonJS(index_exports);
|
|
|
4733
4733
|
};
|
|
4734
4734
|
let primarySwatches = "";
|
|
4735
4735
|
for (const [key, value] of Object.entries(this.PRIMARY_COLORS)) {
|
|
4736
|
-
primarySwatches += `<button class="tc-color-swatch${key === this.state.primary ? " is-active" : ""}" data-color="${esc(key)}" style="--swatch-color: ${safeColor(value.color)}" title="${esc(value.name)}"></button>`;
|
|
4736
|
+
primarySwatches += `<button class="tc-color-swatch${key === this.state.primary ? " is-active" : ""}" data-color="${esc(key)}" style="--vd-swatch-color: ${safeColor(value.color)}" title="${esc(value.name)}"></button>`;
|
|
4737
4737
|
}
|
|
4738
4738
|
let neutralSwatches = "";
|
|
4739
4739
|
for (const [key, value] of Object.entries(this.NEUTRAL_COLORS)) {
|
|
4740
|
-
neutralSwatches += `<button class="tc-neutral-swatch${key === this.state.neutral ? " is-active" : ""}" data-neutral="${esc(key)}" style="--swatch-color: ${safeColor(value.color)}" title="${esc(value.name)}"><span>${esc(value.name)}</span></button>`;
|
|
4740
|
+
neutralSwatches += `<button class="tc-neutral-swatch${key === this.state.neutral ? " is-active" : ""}" data-neutral="${esc(key)}" style="--vd-swatch-color: ${safeColor(value.color)}" title="${esc(value.name)}"><span>${esc(value.name)}</span></button>`;
|
|
4741
4741
|
}
|
|
4742
4742
|
let radiusButtons = "";
|
|
4743
4743
|
this.RADIUS_OPTIONS.forEach((r) => {
|
|
@@ -7465,7 +7465,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
7465
7465
|
}
|
|
7466
7466
|
el.classList.add("is-morphing");
|
|
7467
7467
|
let duration = MORPH_DURATION_MS;
|
|
7468
|
-
const custom = getComputedStyle(el).getPropertyValue("--morph-duration");
|
|
7468
|
+
const custom = getComputedStyle(el).getPropertyValue("--vd-morph-duration");
|
|
7469
7469
|
if (custom) {
|
|
7470
7470
|
const parsed = parseFloat(custom);
|
|
7471
7471
|
if (!isNaN(parsed)) duration = parsed * (custom.indexOf("ms") !== -1 ? 1 : 1e3);
|
|
@@ -8385,7 +8385,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
8385
8385
|
const sentinel = document.createElement("div");
|
|
8386
8386
|
sentinel.style.cssText = "display:block;height:1px;margin-bottom:-1px;visibility:hidden;pointer-events:none;";
|
|
8387
8387
|
el.parentNode.insertBefore(sentinel, el);
|
|
8388
|
-
el.style.setProperty("--affix-top-offset", offset + "px");
|
|
8388
|
+
el.style.setProperty("--vd-affix-top-offset", offset + "px");
|
|
8389
8389
|
function stick() {
|
|
8390
8390
|
if (isStuck) return;
|
|
8391
8391
|
isStuck = true;
|
|
@@ -8431,7 +8431,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
8431
8431
|
},
|
|
8432
8432
|
() => {
|
|
8433
8433
|
el.classList.remove("is-stuck");
|
|
8434
|
-
el.style.removeProperty("--affix-top-offset");
|
|
8434
|
+
el.style.removeProperty("--vd-affix-top-offset");
|
|
8435
8435
|
}
|
|
8436
8436
|
);
|
|
8437
8437
|
this.instances.set(el, { cleanup, observer, sentinel, scrollParent });
|
|
@@ -10307,8 +10307,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
10307
10307
|
const max = parseFloat(input.max) || 1;
|
|
10308
10308
|
const val = parseFloat(input.value) || 0;
|
|
10309
10309
|
const pct = (val - min) / (max - min) * 100;
|
|
10310
|
-
input.style.setProperty("--fill", pct + "%");
|
|
10311
|
-
input.style.backgroundImage = "linear-gradient(to right, var(--music-player-track-fill, currentColor) 0%, var(--music-player-track-fill, currentColor) " + pct + "%, var(--music-player-track-bg, #ccc) " + pct + "%, var(--music-player-track-bg, #ccc) 100%)";
|
|
10310
|
+
input.style.setProperty("--vd-fill", pct + "%");
|
|
10311
|
+
input.style.backgroundImage = "linear-gradient(to right, var(--vd-music-player-track-fill, currentColor) 0%, var(--vd-music-player-track-fill, currentColor) " + pct + "%, var(--vd-music-player-track-bg, #ccc) " + pct + "%, var(--vd-music-player-track-bg, #ccc) 100%)";
|
|
10312
10312
|
}
|
|
10313
10313
|
function icon(name) {
|
|
10314
10314
|
const el = document.createElement("i");
|
|
@@ -10993,8 +10993,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
10993
10993
|
"vd-music-player-floating-bottom-right",
|
|
10994
10994
|
"is-position-custom"
|
|
10995
10995
|
);
|
|
10996
|
-
container.style.removeProperty("--music-player-floating-top");
|
|
10997
|
-
container.style.removeProperty("--music-player-floating-left");
|
|
10996
|
+
container.style.removeProperty("--vd-music-player-floating-top");
|
|
10997
|
+
container.style.removeProperty("--vd-music-player-floating-left");
|
|
10998
10998
|
if (r && r.parent && r.parent.isConnected) {
|
|
10999
10999
|
r.parent.insertBefore(container, r.next);
|
|
11000
11000
|
}
|
|
@@ -11086,8 +11086,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
11086
11086
|
*/
|
|
11087
11087
|
_setCornerPosition: function(container, which) {
|
|
11088
11088
|
container.classList.remove("is-position-custom", "vd-music-player-floating-bottom-left", "vd-music-player-floating-bottom-right");
|
|
11089
|
-
container.style.removeProperty("--music-player-floating-top");
|
|
11090
|
-
container.style.removeProperty("--music-player-floating-left");
|
|
11089
|
+
container.style.removeProperty("--vd-music-player-floating-top");
|
|
11090
|
+
container.style.removeProperty("--vd-music-player-floating-left");
|
|
11091
11091
|
if (which === "bottom-left") {
|
|
11092
11092
|
container.classList.add("vd-music-player-floating-bottom-left");
|
|
11093
11093
|
} else {
|
|
@@ -11102,8 +11102,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
11102
11102
|
_setCustomPositionFromRect: function(container, left, top) {
|
|
11103
11103
|
container.classList.remove("vd-music-player-floating-bottom-left", "vd-music-player-floating-bottom-right");
|
|
11104
11104
|
container.classList.add("is-position-custom");
|
|
11105
|
-
container.style.setProperty("--music-player-floating-left", left + "px");
|
|
11106
|
-
container.style.setProperty("--music-player-floating-top", top + "px");
|
|
11105
|
+
container.style.setProperty("--vd-music-player-floating-left", left + "px");
|
|
11106
|
+
container.style.setProperty("--vd-music-player-floating-top", top + "px");
|
|
11107
11107
|
},
|
|
11108
11108
|
/**
|
|
11109
11109
|
* @param {HTMLElement} container
|