@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.cjs +10 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/package.json +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7502,7 +7502,7 @@ function Heading({
|
|
|
7502
7502
|
|
|
7503
7503
|
// package.json
|
|
7504
7504
|
var package_default = {
|
|
7505
|
-
version: "1.
|
|
7505
|
+
version: "1.42.0"};
|
|
7506
7506
|
function Logo(props) {
|
|
7507
7507
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7508
7508
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "NSW Government" }),
|
|
@@ -8818,6 +8818,11 @@ var color = {
|
|
|
8818
8818
|
},
|
|
8819
8819
|
transform: (v) => {
|
|
8820
8820
|
return typeof v === "string" ? v : v.hasOwnProperty("red") ? rgba.transform(v) : hsla.transform(v);
|
|
8821
|
+
},
|
|
8822
|
+
getAnimatableNone: (v) => {
|
|
8823
|
+
const parsed = color.parse(v);
|
|
8824
|
+
parsed.alpha = 0;
|
|
8825
|
+
return color.transform(parsed);
|
|
8821
8826
|
}
|
|
8822
8827
|
};
|
|
8823
8828
|
|
|
@@ -8888,7 +8893,7 @@ function createTransformer(source) {
|
|
|
8888
8893
|
return output;
|
|
8889
8894
|
};
|
|
8890
8895
|
}
|
|
8891
|
-
var convertNumbersToZero = (v) => typeof v === "number" ? 0 : v;
|
|
8896
|
+
var convertNumbersToZero = (v) => typeof v === "number" ? 0 : color.test(v) ? color.getAnimatableNone(v) : v;
|
|
8892
8897
|
function getAnimatableNone(v) {
|
|
8893
8898
|
const parsed = parseComplexValue(v);
|
|
8894
8899
|
const transformer = createTransformer(v);
|
|
@@ -9092,7 +9097,7 @@ var generateLinearEasing = (easing, duration, resolution = 10) => {
|
|
|
9092
9097
|
let points = "";
|
|
9093
9098
|
const numPoints = Math.max(Math.round(duration / resolution), 2);
|
|
9094
9099
|
for (let i = 0; i < numPoints; i++) {
|
|
9095
|
-
points += easing(i / (numPoints - 1)) + ", ";
|
|
9100
|
+
points += Math.round(easing(i / (numPoints - 1)) * 1e4) / 1e4 + ", ";
|
|
9096
9101
|
}
|
|
9097
9102
|
return `linear(${points.substring(0, points.length - 2)})`;
|
|
9098
9103
|
};
|
|
@@ -11515,7 +11520,7 @@ function isValidMotionProp(key) {
|
|
|
11515
11520
|
// node_modules/framer-motion/dist/es/render/dom/utils/filter-props.mjs
|
|
11516
11521
|
var shouldForward = (key) => !isValidMotionProp(key);
|
|
11517
11522
|
function loadExternalIsValidProp(isValidProp) {
|
|
11518
|
-
if (
|
|
11523
|
+
if (typeof isValidProp !== "function")
|
|
11519
11524
|
return;
|
|
11520
11525
|
shouldForward = (key) => key.startsWith("on") ? !isValidMotionProp(key) : isValidProp(key);
|
|
11521
11526
|
}
|
|
@@ -14784,6 +14789,7 @@ function createProjectionNode2({ attachResizeListener, defaultParent, measureScr
|
|
|
14784
14789
|
this.motionValue || (this.motionValue = motionValue(0));
|
|
14785
14790
|
this.currentAnimation = animateSingleValue(this.motionValue, [0, 1e3], {
|
|
14786
14791
|
...options,
|
|
14792
|
+
velocity: 0,
|
|
14787
14793
|
isSync: true,
|
|
14788
14794
|
onUpdate: (latest) => {
|
|
14789
14795
|
this.mixTargetDelta(latest);
|