@vanduo-oss/framework 1.4.4 → 1.4.6

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +71 -0
  2. package/README.md +23 -9
  3. package/css/components/draggable.css +4 -0
  4. package/css/components/forms.css +1 -0
  5. package/css/utilities/print.css +19 -17
  6. package/css/vanduo.css +2 -3
  7. package/dist/build-info.json +3 -3
  8. package/dist/vanduo-core.css +19266 -0
  9. package/dist/vanduo-core.css.map +1 -0
  10. package/dist/vanduo-core.min.css +2 -0
  11. package/dist/vanduo-core.min.css.map +1 -0
  12. package/dist/vanduo.cjs.js +8 -7
  13. package/dist/vanduo.cjs.js.map +2 -2
  14. package/dist/vanduo.cjs.min.js +3 -3
  15. package/dist/vanduo.cjs.min.js.map +3 -3
  16. package/dist/vanduo.css +11 -33398
  17. package/dist/vanduo.css.map +1 -1
  18. package/dist/vanduo.d.ts +77 -0
  19. package/dist/vanduo.esm.js +8 -7
  20. package/dist/vanduo.esm.js.map +2 -2
  21. package/dist/vanduo.esm.min.js +3 -3
  22. package/dist/vanduo.esm.min.js.map +3 -3
  23. package/dist/vanduo.js +8 -7
  24. package/dist/vanduo.js.map +2 -2
  25. package/dist/vanduo.min.css +2 -2
  26. package/dist/vanduo.min.css.map +1 -1
  27. package/dist/vanduo.min.js +3 -3
  28. package/dist/vanduo.min.js.map +3 -3
  29. package/js/components/parallax.js +13 -7
  30. package/package.json +7 -3
  31. package/css/components/doc-tabs.css +0 -38
  32. package/dist/icons/phosphor/bold/Phosphor-Bold.svg +0 -3057
  33. package/dist/icons/phosphor/bold/Phosphor-Bold.ttf +0 -0
  34. package/dist/icons/phosphor/bold/Phosphor-Bold.woff +0 -0
  35. package/dist/icons/phosphor/bold/Phosphor-Bold.woff2 +0 -0
  36. package/dist/icons/phosphor/bold/style.css +0 -4627
  37. package/dist/icons/phosphor/duotone/Phosphor-Duotone.svg +0 -3054
  38. package/dist/icons/phosphor/duotone/Phosphor-Duotone.ttf +0 -0
  39. package/dist/icons/phosphor/duotone/Phosphor-Duotone.woff +0 -0
  40. package/dist/icons/phosphor/duotone/Phosphor-Duotone.woff2 +0 -0
  41. package/dist/icons/phosphor/duotone/style.css +0 -12115
  42. package/dist/icons/phosphor/light/Phosphor-Light.svg +0 -3057
  43. package/dist/icons/phosphor/light/Phosphor-Light.ttf +0 -0
  44. package/dist/icons/phosphor/light/Phosphor-Light.woff +0 -0
  45. package/dist/icons/phosphor/light/Phosphor-Light.woff2 +0 -0
  46. package/dist/icons/phosphor/light/style.css +0 -4627
  47. package/dist/icons/phosphor/thin/Phosphor-Thin.svg +0 -3057
  48. package/dist/icons/phosphor/thin/Phosphor-Thin.ttf +0 -0
  49. package/dist/icons/phosphor/thin/Phosphor-Thin.woff +0 -0
  50. package/dist/icons/phosphor/thin/Phosphor-Thin.woff2 +0 -0
  51. package/dist/icons/phosphor/thin/style.css +0 -4627
@@ -1,4 +1,4 @@
1
- /*! Vanduo v1.4.4 | Built: 2026-06-07T19:14:20.877Z | git:781df0d | development */
1
+ /*! Vanduo v1.4.6 | Built: 2026-06-13T10:32:26.875Z | git:82019ff | 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.4" : "0.0.0-dev";
204
+ const VANDUO_VERSION = true ? "1.4.6" : "0.0.0-dev";
205
205
  const hasOwn = Object.prototype.hasOwnProperty;
206
206
  const Vanduo2 = {
207
207
  version: VANDUO_VERSION,
@@ -3104,13 +3104,13 @@ module.exports = __toCommonJS(index_exports);
3104
3104
  */
3105
3105
  initParallax: function(element) {
3106
3106
  element.dataset.parallaxInitialized = "true";
3107
- const disableMobile = element.classList.contains("parallax-disable-mobile");
3107
+ const disableMobile = element.classList.contains("vd-parallax-disable-mobile") || element.classList.contains("parallax-disable-mobile");
3108
3108
  if (disableMobile && this.isMobile) {
3109
3109
  return;
3110
3110
  }
3111
3111
  const layers = element.querySelectorAll(".vd-parallax-layer, .vd-parallax-bg");
3112
3112
  const speed = this.getSpeed(element);
3113
- const direction = element.classList.contains("parallax-horizontal") ? "horizontal" : "vertical";
3113
+ const direction = element.classList.contains("vd-parallax-horizontal") || element.classList.contains("parallax-horizontal") ? "horizontal" : "vertical";
3114
3114
  this.parallaxElements.set(element, {
3115
3115
  layers: Array.from(layers),
3116
3116
  speed,
@@ -3125,9 +3125,9 @@ module.exports = __toCommonJS(index_exports);
3125
3125
  * @returns {number} Speed multiplier
3126
3126
  */
3127
3127
  getSpeed: function(element) {
3128
- if (element.classList.contains("parallax-slow")) {
3128
+ if (element.classList.contains("vd-parallax-slow") || element.classList.contains("parallax-slow")) {
3129
3129
  return 0.5;
3130
- } else if (element.classList.contains("parallax-fast")) {
3130
+ } else if (element.classList.contains("vd-parallax-fast") || element.classList.contains("parallax-fast")) {
3131
3131
  return 1.5;
3132
3132
  }
3133
3133
  return 1;
@@ -3174,7 +3174,8 @@ module.exports = __toCommonJS(index_exports);
3174
3174
  ));
3175
3175
  const offset = (scrollProgress - 0.5) * config.speed * 100;
3176
3176
  config.layers.forEach((layer, _index) => {
3177
- const layerSpeed = layer.dataset.parallaxSpeed ? parseFloat(layer.dataset.parallaxSpeed) : 1;
3177
+ const layerSpeedAttr = layer.dataset.parallaxSpeed || layer.dataset.speed;
3178
+ const layerSpeed = layerSpeedAttr ? parseFloat(layerSpeedAttr) : 1;
3178
3179
  const layerOffset = offset * layerSpeed;
3179
3180
  if (config.direction === "horizontal") {
3180
3181
  layer.style.transform = `translateX(${layerOffset}px)`;