@nswds/app 1.41.0 → 1.43.0

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/index.js CHANGED
@@ -7449,7 +7449,7 @@ function Heading({
7449
7449
 
7450
7450
  // package.json
7451
7451
  var package_default = {
7452
- version: "1.40.1"};
7452
+ version: "1.42.0"};
7453
7453
  function Logo(props) {
7454
7454
  return /* @__PURE__ */ jsxs(Fragment, { children: [
7455
7455
  /* @__PURE__ */ jsx("span", { className: "sr-only", children: "NSW Government" }),
@@ -8765,6 +8765,11 @@ var color = {
8765
8765
  },
8766
8766
  transform: (v) => {
8767
8767
  return typeof v === "string" ? v : v.hasOwnProperty("red") ? rgba.transform(v) : hsla.transform(v);
8768
+ },
8769
+ getAnimatableNone: (v) => {
8770
+ const parsed = color.parse(v);
8771
+ parsed.alpha = 0;
8772
+ return color.transform(parsed);
8768
8773
  }
8769
8774
  };
8770
8775
 
@@ -8835,7 +8840,7 @@ function createTransformer(source) {
8835
8840
  return output;
8836
8841
  };
8837
8842
  }
8838
- var convertNumbersToZero = (v) => typeof v === "number" ? 0 : v;
8843
+ var convertNumbersToZero = (v) => typeof v === "number" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;
8839
8844
  function getAnimatableNone(v) {
8840
8845
  const parsed = parseComplexValue(v);
8841
8846
  const transformer = createTransformer(v);
@@ -9039,7 +9044,7 @@ var generateLinearEasing = (easing, duration, resolution = 10) => {
9039
9044
  let points = "";
9040
9045
  const numPoints = Math.max(Math.round(duration / resolution), 2);
9041
9046
  for (let i = 0; i < numPoints; i++) {
9042
- points += easing(i / (numPoints - 1)) + ", ";
9047
+ points += Math.round(easing(i / (numPoints - 1)) * 1e4) / 1e4 + ", ";
9043
9048
  }
9044
9049
  return `linear(${points.substring(0, points.length - 2)})`;
9045
9050
  };
@@ -11462,7 +11467,7 @@ function isValidMotionProp(key) {
11462
11467
  // node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
11463
11468
  var shouldForward = (key) => !isValidMotionProp(key);
11464
11469
  function loadExternalIsValidProp(isValidProp) {
11465
- if (!isValidProp)
11470
+ if (typeof isValidProp !== "function")
11466
11471
  return;
11467
11472
  shouldForward = (key) => key.startsWith("on") ? !isValidMotionProp(key) : isValidProp(key);
11468
11473
  }
@@ -14731,6 +14736,7 @@ function createProjectionNode2({ attachResizeListener, defaultParent, measureScr
14731
14736
  this.motionValue || (this.motionValue = motionValue(0));
14732
14737
  this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {
14733
14738
  ...options,
14739
+ velocity: 0,
14734
14740
  isSync: true,
14735
14741
  onUpdate: (latest) => {
14736
14742
  this.mixTargetDelta(latest);