@nswds/app 1.126.1 → 1.126.3
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/globals.css +3799 -7709
- package/dist/index.cjs +325 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4512 -4513
- package/dist/index.d.ts +4512 -4513
- package/dist/index.js +325 -299
- package/dist/index.js.map +1 -1
- package/dist/styles.css +3859 -7737
- package/dist/styles.css.map +1 -1
- package/package.json +21 -14
package/dist/index.cjs
CHANGED
|
@@ -4865,12 +4865,9 @@ var ScrollButton = ({ icon, onClick, disabled }) => {
|
|
|
4865
4865
|
}
|
|
4866
4866
|
return () => clearInterval(intervalRef.current);
|
|
4867
4867
|
}, [isPressed, onClick]);
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
setIsPressed(false);
|
|
4872
|
-
}
|
|
4873
|
-
}, [disabled]);
|
|
4868
|
+
if (disabled && isPressed) {
|
|
4869
|
+
setIsPressed(false);
|
|
4870
|
+
}
|
|
4874
4871
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
4875
4872
|
"button",
|
|
4876
4873
|
{
|
|
@@ -6138,12 +6135,9 @@ var ScrollButton2 = ({ icon, onClick, disabled }) => {
|
|
|
6138
6135
|
}
|
|
6139
6136
|
return () => clearInterval(intervalRef.current);
|
|
6140
6137
|
}, [isPressed, onClick]);
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
setIsPressed(false);
|
|
6145
|
-
}
|
|
6146
|
-
}, [disabled]);
|
|
6138
|
+
if (disabled && isPressed) {
|
|
6139
|
+
setIsPressed(false);
|
|
6140
|
+
}
|
|
6147
6141
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6148
6142
|
"button",
|
|
6149
6143
|
{
|
|
@@ -11741,12 +11735,9 @@ var ScrollButton3 = ({ icon, onClick, disabled }) => {
|
|
|
11741
11735
|
}
|
|
11742
11736
|
return () => clearInterval(intervalRef.current);
|
|
11743
11737
|
}, [isPressed, onClick]);
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
setIsPressed(false);
|
|
11748
|
-
}
|
|
11749
|
-
}, [disabled]);
|
|
11738
|
+
if (disabled && isPressed) {
|
|
11739
|
+
setIsPressed(false);
|
|
11740
|
+
}
|
|
11750
11741
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11751
11742
|
"button",
|
|
11752
11743
|
{
|
|
@@ -12240,7 +12231,7 @@ var ComboChart = React5__namespace.default.forwardRef((props, forwardedRef) => {
|
|
|
12240
12231
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12241
12232
|
RechartsPrimitive.YAxis,
|
|
12242
12233
|
{
|
|
12243
|
-
yAxisId: enableBiaxial ? "left" :
|
|
12234
|
+
yAxisId: enableBiaxial ? "left" : 0,
|
|
12244
12235
|
width: mergedBarSeries.yAxisWidth,
|
|
12245
12236
|
hide: !mergedBarSeries.showYAxis,
|
|
12246
12237
|
axisLine: false,
|
|
@@ -12372,7 +12363,7 @@ var ComboChart = React5__namespace.default.forwardRef((props, forwardedRef) => {
|
|
|
12372
12363
|
mergedBarSeries.categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12373
12364
|
RechartsPrimitive.Bar,
|
|
12374
12365
|
{
|
|
12375
|
-
yAxisId: enableBiaxial ? "left" :
|
|
12366
|
+
yAxisId: enableBiaxial ? "left" : 0,
|
|
12376
12367
|
className: cn(
|
|
12377
12368
|
getColorClassName(
|
|
12378
12369
|
barCategoryColors.get(category),
|
|
@@ -12394,7 +12385,7 @@ var ComboChart = React5__namespace.default.forwardRef((props, forwardedRef) => {
|
|
|
12394
12385
|
onValueChange ? mergedLineSeries.categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12395
12386
|
RechartsPrimitive.Line,
|
|
12396
12387
|
{
|
|
12397
|
-
yAxisId: enableBiaxial ? "right" :
|
|
12388
|
+
yAxisId: enableBiaxial ? "right" : 0,
|
|
12398
12389
|
className: cn("cursor-pointer"),
|
|
12399
12390
|
strokeOpacity: 0,
|
|
12400
12391
|
name: category,
|
|
@@ -12417,7 +12408,7 @@ var ComboChart = React5__namespace.default.forwardRef((props, forwardedRef) => {
|
|
|
12417
12408
|
mergedLineSeries.categories.map((category) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
12418
12409
|
RechartsPrimitive.Line,
|
|
12419
12410
|
{
|
|
12420
|
-
yAxisId: enableBiaxial ? "right" :
|
|
12411
|
+
yAxisId: enableBiaxial ? "right" : 0,
|
|
12421
12412
|
className: cn(
|
|
12422
12413
|
getColorClassName(
|
|
12423
12414
|
lineCategoryColors.get(category),
|
|
@@ -14495,7 +14486,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
14495
14486
|
|
|
14496
14487
|
// package.json
|
|
14497
14488
|
var package_default = {
|
|
14498
|
-
version: "1.126.
|
|
14489
|
+
version: "1.126.2"};
|
|
14499
14490
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
14500
14491
|
function flattenText(nodes) {
|
|
14501
14492
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -15150,12 +15141,9 @@ var ScrollButton4 = ({ icon, onClick, disabled }) => {
|
|
|
15150
15141
|
}
|
|
15151
15142
|
return () => clearInterval(intervalRef.current);
|
|
15152
15143
|
}, [isPressed, onClick]);
|
|
15153
|
-
|
|
15154
|
-
|
|
15155
|
-
|
|
15156
|
-
setIsPressed(false);
|
|
15157
|
-
}
|
|
15158
|
-
}, [disabled]);
|
|
15144
|
+
if (disabled && isPressed) {
|
|
15145
|
+
setIsPressed(false);
|
|
15146
|
+
}
|
|
15159
15147
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15160
15148
|
"button",
|
|
15161
15149
|
{
|
|
@@ -16867,9 +16855,7 @@ var MotionGlobalConfig = {};
|
|
|
16867
16855
|
var isNumericalString = (v) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(v);
|
|
16868
16856
|
|
|
16869
16857
|
// node_modules/motion-utils/dist/es/is-object.mjs
|
|
16870
|
-
|
|
16871
|
-
return typeof value === "object" && value !== null;
|
|
16872
|
-
}
|
|
16858
|
+
var isObject = (value) => typeof value === "object" && value !== null;
|
|
16873
16859
|
|
|
16874
16860
|
// node_modules/motion-utils/dist/es/is-zero-value-string.mjs
|
|
16875
16861
|
var isZeroValueString = (v) => /^0[^.\s]+$/u.test(v);
|
|
@@ -16889,13 +16875,12 @@ function memo(callback) {
|
|
|
16889
16875
|
var noop = /* @__NO_SIDE_EFFECTS__ */ (any) => any;
|
|
16890
16876
|
|
|
16891
16877
|
// node_modules/motion-utils/dist/es/pipe.mjs
|
|
16892
|
-
var
|
|
16893
|
-
var pipe = (...transformers) => transformers.reduce(combineFunctions);
|
|
16878
|
+
var pipe = (...transformers) => transformers.reduce((a, b) => (v) => b(a(v)));
|
|
16894
16879
|
|
|
16895
16880
|
// node_modules/motion-utils/dist/es/progress.mjs
|
|
16896
16881
|
var progress = /* @__NO_SIDE_EFFECTS__ */ (from, to, value) => {
|
|
16897
|
-
const
|
|
16898
|
-
return
|
|
16882
|
+
const range = to - from;
|
|
16883
|
+
return range ? (value - from) / range : 1;
|
|
16899
16884
|
};
|
|
16900
16885
|
|
|
16901
16886
|
// node_modules/motion-utils/dist/es/subscription-manager.mjs
|
|
@@ -16933,9 +16918,7 @@ var secondsToMilliseconds = /* @__NO_SIDE_EFFECTS__ */ (seconds) => seconds * 1e
|
|
|
16933
16918
|
var millisecondsToSeconds = /* @__NO_SIDE_EFFECTS__ */ (milliseconds) => milliseconds / 1e3;
|
|
16934
16919
|
|
|
16935
16920
|
// node_modules/motion-utils/dist/es/velocity-per-second.mjs
|
|
16936
|
-
|
|
16937
|
-
return frameDuration ? velocity * (1e3 / frameDuration) : 0;
|
|
16938
|
-
}
|
|
16921
|
+
var velocityPerSecond = /* @__NO_SIDE_EFFECTS__ */ (velocity, frameDuration) => frameDuration ? velocity * (1e3 / frameDuration) : 0;
|
|
16939
16922
|
|
|
16940
16923
|
// node_modules/motion-utils/dist/es/warn-once.mjs
|
|
16941
16924
|
var warned = /* @__PURE__ */ new Set();
|
|
@@ -16965,6 +16948,7 @@ function binarySubdivide(x, lowerBound, upperBound, mX1, mX2) {
|
|
|
16965
16948
|
} while (Math.abs(currentX) > subdivisionPrecision && ++i < subdivisionMaxIterations);
|
|
16966
16949
|
return currentT;
|
|
16967
16950
|
}
|
|
16951
|
+
// @__NO_SIDE_EFFECTS__
|
|
16968
16952
|
function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
16969
16953
|
if (mX1 === mY1 && mX2 === mY2)
|
|
16970
16954
|
return noop;
|
|
@@ -16973,10 +16957,10 @@ function cubicBezier(mX1, mY1, mX2, mY2) {
|
|
|
16973
16957
|
}
|
|
16974
16958
|
|
|
16975
16959
|
// node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
16976
|
-
var mirrorEasing = (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
|
|
16960
|
+
var mirrorEasing = /* @__NO_SIDE_EFFECTS__ */ (easing) => (p) => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
|
|
16977
16961
|
|
|
16978
16962
|
// node_modules/motion-utils/dist/es/easing/modifiers/reverse.mjs
|
|
16979
|
-
var reverseEasing = (easing) => (p) => 1 - easing(1 - p);
|
|
16963
|
+
var reverseEasing = /* @__NO_SIDE_EFFECTS__ */ (easing) => (p) => 1 - easing(1 - p);
|
|
16980
16964
|
|
|
16981
16965
|
// node_modules/motion-utils/dist/es/easing/back.mjs
|
|
16982
16966
|
var backOut = /* @__PURE__ */ cubicBezier(0.33, 1.53, 0.69, 0.99);
|
|
@@ -16997,12 +16981,12 @@ var easeOut = /* @__PURE__ */ cubicBezier(0, 0, 0.58, 1);
|
|
|
16997
16981
|
var easeInOut = /* @__PURE__ */ cubicBezier(0.42, 0, 0.58, 1);
|
|
16998
16982
|
|
|
16999
16983
|
// node_modules/motion-utils/dist/es/easing/utils/is-easing-array.mjs
|
|
17000
|
-
var isEasingArray = (ease2) => {
|
|
16984
|
+
var isEasingArray = /* @__NO_SIDE_EFFECTS__ */ (ease2) => {
|
|
17001
16985
|
return Array.isArray(ease2) && typeof ease2[0] !== "number";
|
|
17002
16986
|
};
|
|
17003
16987
|
|
|
17004
16988
|
// node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.mjs
|
|
17005
|
-
var isBezierDefinition = (easing) => Array.isArray(easing) && typeof easing[0] === "number";
|
|
16989
|
+
var isBezierDefinition = /* @__NO_SIDE_EFFECTS__ */ (easing) => Array.isArray(easing) && typeof easing[0] === "number";
|
|
17006
16990
|
|
|
17007
16991
|
// node_modules/motion-utils/dist/es/easing/utils/map.mjs
|
|
17008
16992
|
var easingLookup = {
|
|
@@ -17054,7 +17038,7 @@ var stepsOrder = [
|
|
|
17054
17038
|
];
|
|
17055
17039
|
|
|
17056
17040
|
// node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
17057
|
-
function createRenderStep(runNextFrame
|
|
17041
|
+
function createRenderStep(runNextFrame) {
|
|
17058
17042
|
let thisFrame = /* @__PURE__ */ new Set();
|
|
17059
17043
|
let nextFrame = /* @__PURE__ */ new Set();
|
|
17060
17044
|
let isProcessing = false;
|
|
@@ -18506,7 +18490,7 @@ var transformPropOrder = [
|
|
|
18506
18490
|
"skewX",
|
|
18507
18491
|
"skewY"
|
|
18508
18492
|
];
|
|
18509
|
-
var transformProps = /* @__PURE__ */ (() => new Set(transformPropOrder))();
|
|
18493
|
+
var transformProps = /* @__PURE__ */ (() => /* @__PURE__ */ new Set([...transformPropOrder, "pathRotation"]))();
|
|
18510
18494
|
|
|
18511
18495
|
// node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.mjs
|
|
18512
18496
|
var isNumOrPxType = (v) => v === number || v === px;
|
|
@@ -18751,8 +18735,7 @@ function startWaapiAnimation(element, valueName, keyframes2, { delay: delay2 = 0
|
|
|
18751
18735
|
};
|
|
18752
18736
|
if (pseudoElement)
|
|
18753
18737
|
options.pseudoElement = pseudoElement;
|
|
18754
|
-
|
|
18755
|
-
return animation;
|
|
18738
|
+
return element.animate(keyframeOptions, options);
|
|
18756
18739
|
}
|
|
18757
18740
|
|
|
18758
18741
|
// node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
@@ -19230,201 +19213,6 @@ function calcChildStagger(children, child, delayChildren, staggerChildren = 0, s
|
|
|
19230
19213
|
return delayIsFunction ? delayChildren(index, numChildren) : staggerDirection === 1 ? index * staggerChildren : maxStaggerDuration - index * staggerChildren;
|
|
19231
19214
|
}
|
|
19232
19215
|
|
|
19233
|
-
// node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs
|
|
19234
|
-
var splitCSSVariableRegex = (
|
|
19235
|
-
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
19236
|
-
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
19237
|
-
);
|
|
19238
|
-
function parseCSSVariable(current) {
|
|
19239
|
-
const match = splitCSSVariableRegex.exec(current);
|
|
19240
|
-
if (!match)
|
|
19241
|
-
return [,];
|
|
19242
|
-
const [, token1, token2, fallback] = match;
|
|
19243
|
-
return [`--${token1 ?? token2}`, fallback];
|
|
19244
|
-
}
|
|
19245
|
-
var maxDepth = 4;
|
|
19246
|
-
function getVariableValue(current, element, depth = 1) {
|
|
19247
|
-
invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
19248
|
-
const [token, fallback] = parseCSSVariable(current);
|
|
19249
|
-
if (!token)
|
|
19250
|
-
return;
|
|
19251
|
-
const resolved = window.getComputedStyle(element).getPropertyValue(token);
|
|
19252
|
-
if (resolved) {
|
|
19253
|
-
const trimmed = resolved.trim();
|
|
19254
|
-
return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;
|
|
19255
|
-
}
|
|
19256
|
-
return isCSSVariableToken(fallback) ? getVariableValue(fallback, element, depth + 1) : fallback;
|
|
19257
|
-
}
|
|
19258
|
-
|
|
19259
|
-
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
19260
|
-
var underDampedSpring = {
|
|
19261
|
-
type: "spring",
|
|
19262
|
-
stiffness: 500,
|
|
19263
|
-
damping: 25,
|
|
19264
|
-
restSpeed: 10
|
|
19265
|
-
};
|
|
19266
|
-
var criticallyDampedSpring = (target) => ({
|
|
19267
|
-
type: "spring",
|
|
19268
|
-
stiffness: 550,
|
|
19269
|
-
damping: target === 0 ? 2 * Math.sqrt(550) : 30,
|
|
19270
|
-
restSpeed: 10
|
|
19271
|
-
});
|
|
19272
|
-
var keyframesTransition = {
|
|
19273
|
-
type: "keyframes",
|
|
19274
|
-
duration: 0.8
|
|
19275
|
-
};
|
|
19276
|
-
var ease = {
|
|
19277
|
-
type: "keyframes",
|
|
19278
|
-
ease: [0.25, 0.1, 0.35, 1],
|
|
19279
|
-
duration: 0.3
|
|
19280
|
-
};
|
|
19281
|
-
var getDefaultTransition = (valueKey, { keyframes: keyframes2 }) => {
|
|
19282
|
-
if (keyframes2.length > 2) {
|
|
19283
|
-
return keyframesTransition;
|
|
19284
|
-
} else if (transformProps.has(valueKey)) {
|
|
19285
|
-
return valueKey.startsWith("scale") ? criticallyDampedSpring(keyframes2[1]) : underDampedSpring;
|
|
19286
|
-
}
|
|
19287
|
-
return ease;
|
|
19288
|
-
};
|
|
19289
|
-
|
|
19290
|
-
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
19291
|
-
function resolveTransition(transition, parentTransition) {
|
|
19292
|
-
if (transition?.inherit && parentTransition) {
|
|
19293
|
-
const { inherit: _, ...rest } = transition;
|
|
19294
|
-
return { ...parentTransition, ...rest };
|
|
19295
|
-
}
|
|
19296
|
-
return transition;
|
|
19297
|
-
}
|
|
19298
|
-
|
|
19299
|
-
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
19300
|
-
function getValueTransition(transition, key) {
|
|
19301
|
-
const valueTransition = transition?.[key] ?? transition?.["default"] ?? transition;
|
|
19302
|
-
if (valueTransition !== transition) {
|
|
19303
|
-
return resolveTransition(valueTransition, transition);
|
|
19304
|
-
}
|
|
19305
|
-
return valueTransition;
|
|
19306
|
-
}
|
|
19307
|
-
|
|
19308
|
-
// node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
|
|
19309
|
-
var orchestrationKeys = /* @__PURE__ */ new Set([
|
|
19310
|
-
"when",
|
|
19311
|
-
"delay",
|
|
19312
|
-
"delayChildren",
|
|
19313
|
-
"staggerChildren",
|
|
19314
|
-
"staggerDirection",
|
|
19315
|
-
"repeat",
|
|
19316
|
-
"repeatType",
|
|
19317
|
-
"repeatDelay",
|
|
19318
|
-
"from",
|
|
19319
|
-
"elapsed"
|
|
19320
|
-
]);
|
|
19321
|
-
function isTransitionDefined(transition) {
|
|
19322
|
-
for (const key in transition) {
|
|
19323
|
-
if (!orchestrationKeys.has(key))
|
|
19324
|
-
return true;
|
|
19325
|
-
}
|
|
19326
|
-
return false;
|
|
19327
|
-
}
|
|
19328
|
-
|
|
19329
|
-
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
19330
|
-
var animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {
|
|
19331
|
-
const valueTransition = getValueTransition(transition, name) || {};
|
|
19332
|
-
const delay2 = valueTransition.delay || transition.delay || 0;
|
|
19333
|
-
let { elapsed = 0 } = transition;
|
|
19334
|
-
elapsed = elapsed - secondsToMilliseconds(delay2);
|
|
19335
|
-
const options = {
|
|
19336
|
-
keyframes: Array.isArray(target) ? target : [null, target],
|
|
19337
|
-
ease: "easeOut",
|
|
19338
|
-
velocity: value.getVelocity(),
|
|
19339
|
-
...valueTransition,
|
|
19340
|
-
delay: -elapsed,
|
|
19341
|
-
onUpdate: (v) => {
|
|
19342
|
-
value.set(v);
|
|
19343
|
-
valueTransition.onUpdate && valueTransition.onUpdate(v);
|
|
19344
|
-
},
|
|
19345
|
-
onComplete: () => {
|
|
19346
|
-
onComplete();
|
|
19347
|
-
valueTransition.onComplete && valueTransition.onComplete();
|
|
19348
|
-
},
|
|
19349
|
-
name,
|
|
19350
|
-
motionValue: value,
|
|
19351
|
-
element: isHandoff ? void 0 : element
|
|
19352
|
-
};
|
|
19353
|
-
if (!isTransitionDefined(valueTransition)) {
|
|
19354
|
-
Object.assign(options, getDefaultTransition(name, options));
|
|
19355
|
-
}
|
|
19356
|
-
options.duration && (options.duration = secondsToMilliseconds(options.duration));
|
|
19357
|
-
options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));
|
|
19358
|
-
if (options.from !== void 0) {
|
|
19359
|
-
options.keyframes[0] = options.from;
|
|
19360
|
-
}
|
|
19361
|
-
let shouldSkip = false;
|
|
19362
|
-
if (options.type === false || options.duration === 0 && !options.repeatDelay) {
|
|
19363
|
-
makeAnimationInstant(options);
|
|
19364
|
-
if (options.delay === 0) {
|
|
19365
|
-
shouldSkip = true;
|
|
19366
|
-
}
|
|
19367
|
-
}
|
|
19368
|
-
if (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations || element?.shouldSkipAnimations) {
|
|
19369
|
-
shouldSkip = true;
|
|
19370
|
-
makeAnimationInstant(options);
|
|
19371
|
-
options.delay = 0;
|
|
19372
|
-
}
|
|
19373
|
-
options.allowFlatten = !valueTransition.type && !valueTransition.ease;
|
|
19374
|
-
if (shouldSkip && !isHandoff && value.get() !== void 0) {
|
|
19375
|
-
const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);
|
|
19376
|
-
if (finalKeyframe !== void 0) {
|
|
19377
|
-
frame.update(() => {
|
|
19378
|
-
options.onUpdate(finalKeyframe);
|
|
19379
|
-
options.onComplete();
|
|
19380
|
-
});
|
|
19381
|
-
return;
|
|
19382
|
-
}
|
|
19383
|
-
}
|
|
19384
|
-
return valueTransition.isSync ? new JSAnimation(options) : new AsyncMotionValueAnimation(options);
|
|
19385
|
-
};
|
|
19386
|
-
|
|
19387
|
-
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
19388
|
-
function getValueState(visualElement) {
|
|
19389
|
-
const state = [{}, {}];
|
|
19390
|
-
visualElement?.values.forEach((value, key) => {
|
|
19391
|
-
state[0][key] = value.get();
|
|
19392
|
-
state[1][key] = value.getVelocity();
|
|
19393
|
-
});
|
|
19394
|
-
return state;
|
|
19395
|
-
}
|
|
19396
|
-
function resolveVariantFromProps(props, definition, custom, visualElement) {
|
|
19397
|
-
if (typeof definition === "function") {
|
|
19398
|
-
const [current, velocity] = getValueState(visualElement);
|
|
19399
|
-
definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
|
|
19400
|
-
}
|
|
19401
|
-
if (typeof definition === "string") {
|
|
19402
|
-
definition = props.variants && props.variants[definition];
|
|
19403
|
-
}
|
|
19404
|
-
if (typeof definition === "function") {
|
|
19405
|
-
const [current, velocity] = getValueState(visualElement);
|
|
19406
|
-
definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
|
|
19407
|
-
}
|
|
19408
|
-
return definition;
|
|
19409
|
-
}
|
|
19410
|
-
|
|
19411
|
-
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
19412
|
-
function resolveVariant(visualElement, definition, custom) {
|
|
19413
|
-
const props = visualElement.getProps();
|
|
19414
|
-
return resolveVariantFromProps(props, definition, custom !== void 0 ? custom : props.custom, visualElement);
|
|
19415
|
-
}
|
|
19416
|
-
|
|
19417
|
-
// node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
19418
|
-
var positionalKeys = /* @__PURE__ */ new Set([
|
|
19419
|
-
"width",
|
|
19420
|
-
"height",
|
|
19421
|
-
"top",
|
|
19422
|
-
"left",
|
|
19423
|
-
"right",
|
|
19424
|
-
"bottom",
|
|
19425
|
-
...transformPropOrder
|
|
19426
|
-
]);
|
|
19427
|
-
|
|
19428
19216
|
// node_modules/motion-dom/dist/es/value/index.mjs
|
|
19429
19217
|
var MAX_VELOCITY_DELTA = 30;
|
|
19430
19218
|
var isFloat = (value) => {
|
|
@@ -19704,6 +19492,201 @@ function motionValue(init, options) {
|
|
|
19704
19492
|
return new MotionValue(init, options);
|
|
19705
19493
|
}
|
|
19706
19494
|
|
|
19495
|
+
// node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
19496
|
+
function resolveTransition(transition, parentTransition) {
|
|
19497
|
+
if (transition?.inherit && parentTransition) {
|
|
19498
|
+
const { inherit: _, ...rest } = transition;
|
|
19499
|
+
return { ...parentTransition, ...rest };
|
|
19500
|
+
}
|
|
19501
|
+
return transition;
|
|
19502
|
+
}
|
|
19503
|
+
|
|
19504
|
+
// node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
19505
|
+
function getValueTransition(transition, key) {
|
|
19506
|
+
const valueTransition = transition?.[key] ?? transition?.["default"] ?? transition;
|
|
19507
|
+
if (valueTransition !== transition) {
|
|
19508
|
+
return resolveTransition(valueTransition, transition);
|
|
19509
|
+
}
|
|
19510
|
+
return valueTransition;
|
|
19511
|
+
}
|
|
19512
|
+
|
|
19513
|
+
// node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
19514
|
+
var underDampedSpring = {
|
|
19515
|
+
type: "spring",
|
|
19516
|
+
stiffness: 500,
|
|
19517
|
+
damping: 25,
|
|
19518
|
+
restSpeed: 10
|
|
19519
|
+
};
|
|
19520
|
+
var criticallyDampedSpring = (target) => ({
|
|
19521
|
+
type: "spring",
|
|
19522
|
+
stiffness: 550,
|
|
19523
|
+
damping: target === 0 ? 2 * Math.sqrt(550) : 30,
|
|
19524
|
+
restSpeed: 10
|
|
19525
|
+
});
|
|
19526
|
+
var keyframesTransition = {
|
|
19527
|
+
type: "keyframes",
|
|
19528
|
+
duration: 0.8
|
|
19529
|
+
};
|
|
19530
|
+
var ease = {
|
|
19531
|
+
type: "keyframes",
|
|
19532
|
+
ease: [0.25, 0.1, 0.35, 1],
|
|
19533
|
+
duration: 0.3
|
|
19534
|
+
};
|
|
19535
|
+
var getDefaultTransition = (valueKey, { keyframes: keyframes2 }) => {
|
|
19536
|
+
if (keyframes2.length > 2) {
|
|
19537
|
+
return keyframesTransition;
|
|
19538
|
+
} else if (transformProps.has(valueKey)) {
|
|
19539
|
+
return valueKey.startsWith("scale") ? criticallyDampedSpring(keyframes2[1]) : underDampedSpring;
|
|
19540
|
+
}
|
|
19541
|
+
return ease;
|
|
19542
|
+
};
|
|
19543
|
+
|
|
19544
|
+
// node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.mjs
|
|
19545
|
+
var orchestrationKeys = /* @__PURE__ */ new Set([
|
|
19546
|
+
"when",
|
|
19547
|
+
"delay",
|
|
19548
|
+
"delayChildren",
|
|
19549
|
+
"staggerChildren",
|
|
19550
|
+
"staggerDirection",
|
|
19551
|
+
"repeat",
|
|
19552
|
+
"repeatType",
|
|
19553
|
+
"repeatDelay",
|
|
19554
|
+
"from",
|
|
19555
|
+
"elapsed"
|
|
19556
|
+
]);
|
|
19557
|
+
function isTransitionDefined(transition) {
|
|
19558
|
+
for (const key in transition) {
|
|
19559
|
+
if (!orchestrationKeys.has(key))
|
|
19560
|
+
return true;
|
|
19561
|
+
}
|
|
19562
|
+
return false;
|
|
19563
|
+
}
|
|
19564
|
+
|
|
19565
|
+
// node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
19566
|
+
var animateMotionValue = (name, value, target, transition = {}, element, isHandoff) => (onComplete) => {
|
|
19567
|
+
const valueTransition = getValueTransition(transition, name) || {};
|
|
19568
|
+
const delay2 = valueTransition.delay || transition.delay || 0;
|
|
19569
|
+
let { elapsed = 0 } = transition;
|
|
19570
|
+
elapsed = elapsed - secondsToMilliseconds(delay2);
|
|
19571
|
+
const options = {
|
|
19572
|
+
keyframes: Array.isArray(target) ? target : [null, target],
|
|
19573
|
+
ease: "easeOut",
|
|
19574
|
+
velocity: value.getVelocity(),
|
|
19575
|
+
...valueTransition,
|
|
19576
|
+
delay: -elapsed,
|
|
19577
|
+
onUpdate: (v) => {
|
|
19578
|
+
value.set(v);
|
|
19579
|
+
valueTransition.onUpdate && valueTransition.onUpdate(v);
|
|
19580
|
+
},
|
|
19581
|
+
onComplete: () => {
|
|
19582
|
+
onComplete();
|
|
19583
|
+
valueTransition.onComplete && valueTransition.onComplete();
|
|
19584
|
+
},
|
|
19585
|
+
name,
|
|
19586
|
+
motionValue: value,
|
|
19587
|
+
element: isHandoff ? void 0 : element
|
|
19588
|
+
};
|
|
19589
|
+
if (!isTransitionDefined(valueTransition)) {
|
|
19590
|
+
Object.assign(options, getDefaultTransition(name, options));
|
|
19591
|
+
}
|
|
19592
|
+
options.duration && (options.duration = secondsToMilliseconds(options.duration));
|
|
19593
|
+
options.repeatDelay && (options.repeatDelay = secondsToMilliseconds(options.repeatDelay));
|
|
19594
|
+
if (options.from !== void 0) {
|
|
19595
|
+
options.keyframes[0] = options.from;
|
|
19596
|
+
}
|
|
19597
|
+
let shouldSkip = false;
|
|
19598
|
+
if (options.type === false || options.duration === 0 && !options.repeatDelay) {
|
|
19599
|
+
makeAnimationInstant(options);
|
|
19600
|
+
if (options.delay === 0) {
|
|
19601
|
+
shouldSkip = true;
|
|
19602
|
+
}
|
|
19603
|
+
}
|
|
19604
|
+
if (MotionGlobalConfig.instantAnimations || MotionGlobalConfig.skipAnimations || element?.shouldSkipAnimations || valueTransition.skipAnimations) {
|
|
19605
|
+
shouldSkip = true;
|
|
19606
|
+
makeAnimationInstant(options);
|
|
19607
|
+
options.delay = 0;
|
|
19608
|
+
}
|
|
19609
|
+
options.allowFlatten = !valueTransition.type && !valueTransition.ease;
|
|
19610
|
+
if (shouldSkip && !isHandoff && value.get() !== void 0) {
|
|
19611
|
+
const finalKeyframe = getFinalKeyframe(options.keyframes, valueTransition);
|
|
19612
|
+
if (finalKeyframe !== void 0) {
|
|
19613
|
+
frame.update(() => {
|
|
19614
|
+
options.onUpdate(finalKeyframe);
|
|
19615
|
+
options.onComplete();
|
|
19616
|
+
});
|
|
19617
|
+
return;
|
|
19618
|
+
}
|
|
19619
|
+
}
|
|
19620
|
+
return valueTransition.isSync ? new JSAnimation(options) : new AsyncMotionValueAnimation(options);
|
|
19621
|
+
};
|
|
19622
|
+
|
|
19623
|
+
// node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.mjs
|
|
19624
|
+
var splitCSSVariableRegex = (
|
|
19625
|
+
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
19626
|
+
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
19627
|
+
);
|
|
19628
|
+
function parseCSSVariable(current) {
|
|
19629
|
+
const match = splitCSSVariableRegex.exec(current);
|
|
19630
|
+
if (!match)
|
|
19631
|
+
return [,];
|
|
19632
|
+
const [, token1, token2, fallback] = match;
|
|
19633
|
+
return [`--${token1 ?? token2}`, fallback];
|
|
19634
|
+
}
|
|
19635
|
+
var maxDepth = 4;
|
|
19636
|
+
function getVariableValue(current, element, depth = 1) {
|
|
19637
|
+
invariant(depth <= maxDepth, `Max CSS variable fallback depth detected in property "${current}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
19638
|
+
const [token, fallback] = parseCSSVariable(current);
|
|
19639
|
+
if (!token)
|
|
19640
|
+
return;
|
|
19641
|
+
const resolved = window.getComputedStyle(element).getPropertyValue(token);
|
|
19642
|
+
if (resolved) {
|
|
19643
|
+
const trimmed = resolved.trim();
|
|
19644
|
+
return isNumericalString(trimmed) ? parseFloat(trimmed) : trimmed;
|
|
19645
|
+
}
|
|
19646
|
+
return isCSSVariableToken(fallback) ? getVariableValue(fallback, element, depth + 1) : fallback;
|
|
19647
|
+
}
|
|
19648
|
+
|
|
19649
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
19650
|
+
function getValueState(visualElement) {
|
|
19651
|
+
const state = [{}, {}];
|
|
19652
|
+
visualElement?.values.forEach((value, key) => {
|
|
19653
|
+
state[0][key] = value.get();
|
|
19654
|
+
state[1][key] = value.getVelocity();
|
|
19655
|
+
});
|
|
19656
|
+
return state;
|
|
19657
|
+
}
|
|
19658
|
+
function resolveVariantFromProps(props, definition, custom, visualElement) {
|
|
19659
|
+
if (typeof definition === "function") {
|
|
19660
|
+
const [current, velocity] = getValueState(visualElement);
|
|
19661
|
+
definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
|
|
19662
|
+
}
|
|
19663
|
+
if (typeof definition === "string") {
|
|
19664
|
+
definition = props.variants && props.variants[definition];
|
|
19665
|
+
}
|
|
19666
|
+
if (typeof definition === "function") {
|
|
19667
|
+
const [current, velocity] = getValueState(visualElement);
|
|
19668
|
+
definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
|
|
19669
|
+
}
|
|
19670
|
+
return definition;
|
|
19671
|
+
}
|
|
19672
|
+
|
|
19673
|
+
// node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
19674
|
+
function resolveVariant(visualElement, definition, custom) {
|
|
19675
|
+
const props = visualElement.getProps();
|
|
19676
|
+
return resolveVariantFromProps(props, definition, custom !== void 0 ? custom : props.custom, visualElement);
|
|
19677
|
+
}
|
|
19678
|
+
|
|
19679
|
+
// node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
19680
|
+
var positionalKeys = /* @__PURE__ */ new Set([
|
|
19681
|
+
"width",
|
|
19682
|
+
"height",
|
|
19683
|
+
"top",
|
|
19684
|
+
"left",
|
|
19685
|
+
"right",
|
|
19686
|
+
"bottom",
|
|
19687
|
+
...transformPropOrder
|
|
19688
|
+
]);
|
|
19689
|
+
|
|
19707
19690
|
// node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.mjs
|
|
19708
19691
|
var isKeyframesTarget = (v) => {
|
|
19709
19692
|
return Array.isArray(v);
|
|
@@ -19775,10 +19758,15 @@ function animateTarget(visualElement, targetAndTransition, { delay: delay2 = 0,
|
|
|
19775
19758
|
const defaultTransition = visualElement.getDefaultTransition();
|
|
19776
19759
|
transition = transition ? resolveTransition(transition, defaultTransition) : defaultTransition;
|
|
19777
19760
|
const reduceMotion = transition?.reduceMotion;
|
|
19761
|
+
const skipAnimations = transition?.skipAnimations;
|
|
19778
19762
|
if (transitionOverride)
|
|
19779
19763
|
transition = transitionOverride;
|
|
19780
19764
|
const animations2 = [];
|
|
19781
19765
|
const animationTypeState = type && visualElement.animationState && visualElement.animationState.getState()[type];
|
|
19766
|
+
const path = transition?.path;
|
|
19767
|
+
if (path) {
|
|
19768
|
+
path.animateVisualElement(visualElement, target, transition, delay2, animations2);
|
|
19769
|
+
}
|
|
19782
19770
|
for (const key in target) {
|
|
19783
19771
|
const value = visualElement.getValue(key, visualElement.latestValues[key] ?? null);
|
|
19784
19772
|
const valueTarget = target[key];
|
|
@@ -19789,6 +19777,8 @@ function animateTarget(visualElement, targetAndTransition, { delay: delay2 = 0,
|
|
|
19789
19777
|
delay: delay2,
|
|
19790
19778
|
...getValueTransition(transition || {}, key)
|
|
19791
19779
|
};
|
|
19780
|
+
if (skipAnimations)
|
|
19781
|
+
valueTransition.skipAnimations = true;
|
|
19792
19782
|
const currentValue = value.get();
|
|
19793
19783
|
if (currentValue !== void 0 && !value.isAnimating() && !Array.isArray(valueTarget) && valueTarget === currentValue && !valueTransition.velocity) {
|
|
19794
19784
|
frame.update(() => value.set(valueTarget));
|
|
@@ -19943,6 +19933,12 @@ var int = {
|
|
|
19943
19933
|
// node_modules/motion-dom/dist/es/value/types/maps/transform.mjs
|
|
19944
19934
|
var transformValueTypes = {
|
|
19945
19935
|
rotate: degrees,
|
|
19936
|
+
/**
|
|
19937
|
+
* Internal channel for `transition.path` orientToPath. Composed onto
|
|
19938
|
+
* `rotate` at the transform-build sites so the user's `rotate` is
|
|
19939
|
+
* never read or overwritten. Not part of `transformPropOrder`.
|
|
19940
|
+
*/
|
|
19941
|
+
pathRotation: degrees,
|
|
19946
19942
|
rotateX: degrees,
|
|
19947
19943
|
rotateY: degrees,
|
|
19948
19944
|
rotateZ: degrees,
|
|
@@ -20181,6 +20177,14 @@ var DOMKeyframesResolver = class extends KeyframeResolver {
|
|
|
20181
20177
|
}
|
|
20182
20178
|
};
|
|
20183
20179
|
|
|
20180
|
+
// node_modules/motion-dom/dist/es/utils/border-radius.mjs
|
|
20181
|
+
var cornerRadiusProps = [
|
|
20182
|
+
"borderTopLeftRadius",
|
|
20183
|
+
"borderTopRightRadius",
|
|
20184
|
+
"borderBottomRightRadius",
|
|
20185
|
+
"borderBottomLeftRadius"
|
|
20186
|
+
];
|
|
20187
|
+
|
|
20184
20188
|
// node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
20185
20189
|
function resolveElements(elementOrSelector, scope, selectorCache) {
|
|
20186
20190
|
if (elementOrSelector == null) {
|
|
@@ -20400,9 +20404,10 @@ function press(targetOrSelector, onPressStart, options = {}) {
|
|
|
20400
20404
|
claimedPointerDownEvents.add(startEvent);
|
|
20401
20405
|
}
|
|
20402
20406
|
const onPressEnd = onPressStart(target, startEvent);
|
|
20407
|
+
const endEventOptions = { ...eventOptions, capture: true };
|
|
20403
20408
|
const onPointerEnd = (endEvent, success) => {
|
|
20404
|
-
window.removeEventListener("pointerup", onPointerUp);
|
|
20405
|
-
window.removeEventListener("pointercancel", onPointerCancel);
|
|
20409
|
+
window.removeEventListener("pointerup", onPointerUp, endEventOptions);
|
|
20410
|
+
window.removeEventListener("pointercancel", onPointerCancel, endEventOptions);
|
|
20406
20411
|
if (isPressing.has(target)) {
|
|
20407
20412
|
isPressing.delete(target);
|
|
20408
20413
|
}
|
|
@@ -20419,8 +20424,8 @@ function press(targetOrSelector, onPressStart, options = {}) {
|
|
|
20419
20424
|
const onPointerCancel = (cancelEvent) => {
|
|
20420
20425
|
onPointerEnd(cancelEvent, false);
|
|
20421
20426
|
};
|
|
20422
|
-
window.addEventListener("pointerup", onPointerUp,
|
|
20423
|
-
window.addEventListener("pointercancel", onPointerCancel,
|
|
20427
|
+
window.addEventListener("pointerup", onPointerUp, endEventOptions);
|
|
20428
|
+
window.addEventListener("pointercancel", onPointerCancel, endEventOptions);
|
|
20424
20429
|
};
|
|
20425
20430
|
targets.forEach((target) => {
|
|
20426
20431
|
const pointerDownTarget = options.useGlobalTarget ? window : target;
|
|
@@ -20831,8 +20836,6 @@ var VisualElement = class {
|
|
|
20831
20836
|
removeOnChange();
|
|
20832
20837
|
if (removeSyncCheck)
|
|
20833
20838
|
removeSyncCheck();
|
|
20834
|
-
if (value.owner)
|
|
20835
|
-
value.stop();
|
|
20836
20839
|
});
|
|
20837
20840
|
}
|
|
20838
20841
|
sortNodePosition(other) {
|
|
@@ -21251,6 +21254,11 @@ function buildTransform(latestValues, transform, transformTemplate) {
|
|
|
21251
21254
|
}
|
|
21252
21255
|
}
|
|
21253
21256
|
}
|
|
21257
|
+
const pathRotation = latestValues.pathRotation;
|
|
21258
|
+
if (pathRotation) {
|
|
21259
|
+
transformIsDefault = false;
|
|
21260
|
+
transformString += `rotate(${getValueAsType(pathRotation, numberValueTypes.pathRotation)}) `;
|
|
21261
|
+
}
|
|
21254
21262
|
transformString = transformString.trim();
|
|
21255
21263
|
if (transformTemplate) {
|
|
21256
21264
|
transformString = transformTemplate(transform, transformIsDefault ? "" : transformString);
|
|
@@ -21358,12 +21366,7 @@ var correctBoxShadow = {
|
|
|
21358
21366
|
var scaleCorrectors = {
|
|
21359
21367
|
borderRadius: {
|
|
21360
21368
|
...correctBorderRadius,
|
|
21361
|
-
applyTo: [
|
|
21362
|
-
"borderTopLeftRadius",
|
|
21363
|
-
"borderTopRightRadius",
|
|
21364
|
-
"borderBottomLeftRadius",
|
|
21365
|
-
"borderBottomRightRadius"
|
|
21366
|
-
]
|
|
21369
|
+
applyTo: [...cornerRadiusProps]
|
|
21367
21370
|
},
|
|
21368
21371
|
borderTopLeftRadius: correctBorderRadius,
|
|
21369
21372
|
borderTopRightRadius: correctBorderRadius,
|
|
@@ -21708,7 +21711,7 @@ function createAnimationState(visualElement) {
|
|
|
21708
21711
|
continue;
|
|
21709
21712
|
let valueHasChanged = false;
|
|
21710
21713
|
if (isKeyframesTarget(next) && isKeyframesTarget(prev)) {
|
|
21711
|
-
valueHasChanged = !shallowCompare(next, prev);
|
|
21714
|
+
valueHasChanged = !shallowCompare(next, prev) || variantDidChange;
|
|
21712
21715
|
} else {
|
|
21713
21716
|
valueHasChanged = next !== prev;
|
|
21714
21717
|
}
|
|
@@ -21968,11 +21971,13 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
21968
21971
|
transform += `scale(${1 / treeScale.x}, ${1 / treeScale.y}) `;
|
|
21969
21972
|
}
|
|
21970
21973
|
if (latestTransform) {
|
|
21971
|
-
const { transformPerspective, rotate: rotate2, rotateX, rotateY, skewX, skewY } = latestTransform;
|
|
21974
|
+
const { transformPerspective, rotate: rotate2, pathRotation, rotateX, rotateY, skewX, skewY } = latestTransform;
|
|
21972
21975
|
if (transformPerspective)
|
|
21973
21976
|
transform = `perspective(${transformPerspective}px) ${transform}`;
|
|
21974
21977
|
if (rotate2)
|
|
21975
21978
|
transform += `rotate(${rotate2}deg) `;
|
|
21979
|
+
if (pathRotation)
|
|
21980
|
+
transform += `rotate(${pathRotation}deg) `;
|
|
21976
21981
|
if (rotateX)
|
|
21977
21982
|
transform += `rotateX(${rotateX}deg) `;
|
|
21978
21983
|
if (rotateY)
|
|
@@ -21991,13 +21996,7 @@ function buildProjectionTransform(delta, treeScale, latestTransform) {
|
|
|
21991
21996
|
}
|
|
21992
21997
|
|
|
21993
21998
|
// node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
21994
|
-
var
|
|
21995
|
-
"borderTopLeftRadius",
|
|
21996
|
-
"borderTopRightRadius",
|
|
21997
|
-
"borderBottomLeftRadius",
|
|
21998
|
-
"borderBottomRightRadius"
|
|
21999
|
-
];
|
|
22000
|
-
var numBorders = borderLabels.length;
|
|
21999
|
+
var numBorders = cornerRadiusProps.length;
|
|
22001
22000
|
var asNumber = (value) => typeof value === "string" ? parseFloat(value) : value;
|
|
22002
22001
|
var isPx = (value) => typeof value === "number" || px.test(value);
|
|
22003
22002
|
function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOnlyMember) {
|
|
@@ -22008,7 +22007,7 @@ function mixValues(target, follow, lead, progress2, shouldCrossfadeOpacity, isOn
|
|
|
22008
22007
|
target.opacity = mixNumber(follow.opacity ?? 1, lead.opacity ?? 1, progress2);
|
|
22009
22008
|
}
|
|
22010
22009
|
for (let i = 0; i < numBorders; i++) {
|
|
22011
|
-
const borderLabel =
|
|
22010
|
+
const borderLabel = cornerRadiusProps[i];
|
|
22012
22011
|
let followRadius = getRadius(follow, borderLabel);
|
|
22013
22012
|
let leadRadius = getRadius(lead, borderLabel);
|
|
22014
22013
|
if (followRadius === void 0 && leadRadius === void 0)
|
|
@@ -22054,7 +22053,7 @@ function animateSingleValue(value, keyframes2, options) {
|
|
|
22054
22053
|
// node_modules/motion-dom/dist/es/events/add-dom-event.mjs
|
|
22055
22054
|
function addDomEvent(target, eventName, handler, options = { passive: true }) {
|
|
22056
22055
|
target.addEventListener(eventName, handler, options);
|
|
22057
|
-
return () => target.removeEventListener(eventName, handler);
|
|
22056
|
+
return () => target.removeEventListener(eventName, handler, options);
|
|
22058
22057
|
}
|
|
22059
22058
|
|
|
22060
22059
|
// node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
|
|
@@ -22362,7 +22361,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
22362
22361
|
animationOptions.type = false;
|
|
22363
22362
|
}
|
|
22364
22363
|
this.startAnimation(animationOptions);
|
|
22365
|
-
this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged);
|
|
22364
|
+
this.setAnimationOrigin(delta, hasOnlyRelativeTargetChanged, animationOptions.path);
|
|
22366
22365
|
} else {
|
|
22367
22366
|
if (!hasLayoutChanged) {
|
|
22368
22367
|
finishAnimation(this);
|
|
@@ -22834,7 +22833,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
22834
22833
|
this.projectionDelta = createDelta();
|
|
22835
22834
|
this.projectionDeltaWithTransform = createDelta();
|
|
22836
22835
|
}
|
|
22837
|
-
setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false) {
|
|
22836
|
+
setAnimationOrigin(delta, hasOnlyRelativeTargetChanged = false, pathFn) {
|
|
22838
22837
|
const snapshot = this.snapshot;
|
|
22839
22838
|
const snapshotLatestValues = snapshot ? snapshot.latestValues : {};
|
|
22840
22839
|
const mixedValues = { ...this.latestValues };
|
|
@@ -22852,10 +22851,23 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
22852
22851
|
const shouldCrossfadeOpacity = Boolean(isSharedLayoutAnimation && !isOnlyMember && this.options.crossfade === true && !this.path.some(hasOpacityCrossfade));
|
|
22853
22852
|
this.animationProgress = 0;
|
|
22854
22853
|
let prevRelativeTarget;
|
|
22854
|
+
const interpolate3 = pathFn?.interpolateProjection(delta);
|
|
22855
22855
|
this.mixTargetDelta = (latest) => {
|
|
22856
22856
|
const progress2 = latest / 1e3;
|
|
22857
|
-
|
|
22858
|
-
|
|
22857
|
+
const point = interpolate3?.(progress2);
|
|
22858
|
+
if (point) {
|
|
22859
|
+
targetDelta.x.translate = point.x;
|
|
22860
|
+
targetDelta.x.scale = mixNumber(delta.x.scale, 1, progress2);
|
|
22861
|
+
targetDelta.x.origin = delta.x.origin;
|
|
22862
|
+
targetDelta.x.originPoint = delta.x.originPoint;
|
|
22863
|
+
targetDelta.y.translate = point.y;
|
|
22864
|
+
targetDelta.y.scale = mixNumber(delta.y.scale, 1, progress2);
|
|
22865
|
+
targetDelta.y.origin = delta.y.origin;
|
|
22866
|
+
targetDelta.y.originPoint = delta.y.originPoint;
|
|
22867
|
+
} else {
|
|
22868
|
+
mixAxisDeltaLinear(targetDelta.x, delta.x, progress2);
|
|
22869
|
+
mixAxisDeltaLinear(targetDelta.y, delta.y, progress2);
|
|
22870
|
+
}
|
|
22859
22871
|
this.setTargetDelta(targetDelta);
|
|
22860
22872
|
if (this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout) {
|
|
22861
22873
|
calcRelativePosition(relativeLayout, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0);
|
|
@@ -22871,6 +22883,11 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
22871
22883
|
this.animationValues = mixedValues;
|
|
22872
22884
|
mixValues(mixedValues, snapshotLatestValues, this.latestValues, progress2, shouldCrossfadeOpacity, isOnlyMember);
|
|
22873
22885
|
}
|
|
22886
|
+
if (point && point.rotate !== void 0) {
|
|
22887
|
+
if (!this.animationValues)
|
|
22888
|
+
this.animationValues = mixedValues;
|
|
22889
|
+
this.animationValues.pathRotation = point.rotate;
|
|
22890
|
+
}
|
|
22874
22891
|
this.root.scheduleUpdateProjection();
|
|
22875
22892
|
this.scheduleRender();
|
|
22876
22893
|
this.animationProgress = progress2;
|
|
@@ -22897,8 +22914,6 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
|
|
|
22897
22914
|
this.mixTargetDelta(latest);
|
|
22898
22915
|
options.onUpdate && options.onUpdate(latest);
|
|
22899
22916
|
},
|
|
22900
|
-
onStop: () => {
|
|
22901
|
-
},
|
|
22902
22917
|
onComplete: () => {
|
|
22903
22918
|
options.onComplete && options.onComplete();
|
|
22904
22919
|
this.completeAnimation();
|
|
@@ -23227,7 +23242,7 @@ function resetSkewAndRotation(node) {
|
|
|
23227
23242
|
function removeLeadSnapshots(stack) {
|
|
23228
23243
|
stack.removeLeadSnapshot();
|
|
23229
23244
|
}
|
|
23230
|
-
function
|
|
23245
|
+
function mixAxisDeltaLinear(output, delta, p) {
|
|
23231
23246
|
output.translate = mixNumber(delta.translate, 0, p);
|
|
23232
23247
|
output.scale = mixNumber(delta.scale, 1, p);
|
|
23233
23248
|
output.origin = delta.origin;
|
|
@@ -23732,7 +23747,7 @@ var useSVGVisualState = /* @__PURE__ */ makeUseVisualState({
|
|
|
23732
23747
|
});
|
|
23733
23748
|
|
|
23734
23749
|
// node_modules/framer-motion/dist/es/motion/utils/symbol.mjs
|
|
23735
|
-
var motionComponentSymbol = Symbol.for("motionComponentSymbol");
|
|
23750
|
+
var motionComponentSymbol = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
23736
23751
|
function useMotionRef(visualState, visualElement, externalRef) {
|
|
23737
23752
|
const externalRefContainer = React5.useRef(externalRef);
|
|
23738
23753
|
React5.useInsertionEffect(() => {
|
|
@@ -23743,6 +23758,9 @@ function useMotionRef(visualState, visualElement, externalRef) {
|
|
|
23743
23758
|
if (instance) {
|
|
23744
23759
|
visualState.onMount?.(instance);
|
|
23745
23760
|
}
|
|
23761
|
+
if (visualElement) {
|
|
23762
|
+
instance ? visualElement.mount(instance) : visualElement.unmount();
|
|
23763
|
+
}
|
|
23746
23764
|
const ref = externalRefContainer.current;
|
|
23747
23765
|
if (typeof ref === "function") {
|
|
23748
23766
|
if (instance) {
|
|
@@ -23759,9 +23777,6 @@ function useMotionRef(visualState, visualElement, externalRef) {
|
|
|
23759
23777
|
} else if (ref) {
|
|
23760
23778
|
ref.current = instance;
|
|
23761
23779
|
}
|
|
23762
|
-
if (visualElement) {
|
|
23763
|
-
instance ? visualElement.mount(instance) : visualElement.unmount();
|
|
23764
|
-
}
|
|
23765
23780
|
}, [visualElement]);
|
|
23766
23781
|
}
|
|
23767
23782
|
var SwitchLayoutGroupContext = React5.createContext({});
|
|
@@ -24011,7 +24026,7 @@ var ExitAnimationFeature = class extends Feature {
|
|
|
24011
24026
|
if (isPresent && prevIsPresent === false) {
|
|
24012
24027
|
if (this.isExitComplete) {
|
|
24013
24028
|
const { initial, custom } = this.node.getProps();
|
|
24014
|
-
if (typeof initial === "string") {
|
|
24029
|
+
if (typeof initial === "string" || typeof initial === "object" && initial !== null && !Array.isArray(initial)) {
|
|
24015
24030
|
const resolved = resolveVariant(this.node, initial, custom);
|
|
24016
24031
|
if (resolved) {
|
|
24017
24032
|
const { transition, transitionEnd, ...target } = resolved;
|
|
@@ -24161,7 +24176,8 @@ var PanSession = class {
|
|
|
24161
24176
|
this.history = [{ ...point, timestamp }];
|
|
24162
24177
|
const { onSessionStart } = handlers;
|
|
24163
24178
|
onSessionStart && onSessionStart(event, getPanInfo(initialInfo, this.history));
|
|
24164
|
-
|
|
24179
|
+
const eventOptions = { passive: true, capture: true };
|
|
24180
|
+
this.removeListeners = pipe(addPointerEvent(this.contextWindow, "pointermove", this.handlePointerMove, eventOptions), addPointerEvent(this.contextWindow, "pointerup", this.handlePointerUp, eventOptions), addPointerEvent(this.contextWindow, "pointercancel", this.handlePointerUp, eventOptions));
|
|
24165
24181
|
if (element) {
|
|
24166
24182
|
this.startScrollTracking(element);
|
|
24167
24183
|
}
|
|
@@ -24574,6 +24590,10 @@ var VisualElementDragControls = class {
|
|
|
24574
24590
|
const { projection } = this.visualElement;
|
|
24575
24591
|
if (!projection || !projection.layout)
|
|
24576
24592
|
return false;
|
|
24593
|
+
if (projection.root) {
|
|
24594
|
+
projection.root.scroll = void 0;
|
|
24595
|
+
projection.root.updateScroll();
|
|
24596
|
+
}
|
|
24577
24597
|
const constraintsBox = measurePageBox(constraintsElement, projection.root, this.visualElement.getTransformPagePoint());
|
|
24578
24598
|
let measuredConstraints = calcViewportConstraints(projection.layout.layoutBox, constraintsBox);
|
|
24579
24599
|
if (onMeasureDragConstraints) {
|
|
@@ -24630,7 +24650,7 @@ var VisualElementDragControls = class {
|
|
|
24630
24650
|
const dragKey = `_drag${axis.toUpperCase()}`;
|
|
24631
24651
|
const props = this.visualElement.getProps();
|
|
24632
24652
|
const externalMotionValue = props[dragKey];
|
|
24633
|
-
return externalMotionValue ? externalMotionValue : this.visualElement.getValue(axis,
|
|
24653
|
+
return externalMotionValue ? externalMotionValue : this.visualElement.getValue(axis, this.visualElement.latestValues[axis] ?? 0);
|
|
24634
24654
|
}
|
|
24635
24655
|
snapToCursor(point) {
|
|
24636
24656
|
eachAxis((axis) => {
|
|
@@ -26191,7 +26211,7 @@ function NSWCard({
|
|
|
26191
26211
|
{
|
|
26192
26212
|
className: cn(
|
|
26193
26213
|
"h-full rounded-[inherit] border border-(--nsw-card-border)",
|
|
26194
|
-
hasImage && "
|
|
26214
|
+
hasImage && "rounded-t-none border-t-0"
|
|
26195
26215
|
),
|
|
26196
26216
|
children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full flex-col p-8", children: bodyChildren })
|
|
26197
26217
|
}
|
|
@@ -26203,7 +26223,7 @@ function NSWCard({
|
|
|
26203
26223
|
{
|
|
26204
26224
|
className: cn(
|
|
26205
26225
|
"flex h-full flex-col rounded-[inherit] border border-(--nsw-card-border) p-8",
|
|
26206
|
-
hasImage && "
|
|
26226
|
+
hasImage && "rounded-t-none border-t-0"
|
|
26207
26227
|
),
|
|
26208
26228
|
children: bodyChildren
|
|
26209
26229
|
}
|
|
@@ -26876,18 +26896,18 @@ function Skeleton({ className, ...props }) {
|
|
|
26876
26896
|
);
|
|
26877
26897
|
}
|
|
26878
26898
|
var MOBILE_BREAKPOINT = 768;
|
|
26899
|
+
function subscribeToViewport(callback) {
|
|
26900
|
+
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
26901
|
+
mql.addEventListener("change", callback);
|
|
26902
|
+
return () => mql.removeEventListener("change", callback);
|
|
26903
|
+
}
|
|
26879
26904
|
function useIsMobile() {
|
|
26880
|
-
|
|
26881
|
-
|
|
26882
|
-
|
|
26883
|
-
|
|
26884
|
-
|
|
26885
|
-
|
|
26886
|
-
mql.addEventListener("change", onChange);
|
|
26887
|
-
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
26888
|
-
return () => mql.removeEventListener("change", onChange);
|
|
26889
|
-
}, []);
|
|
26890
|
-
return !!isMobile;
|
|
26905
|
+
return React5__namespace.useSyncExternalStore(
|
|
26906
|
+
subscribeToViewport,
|
|
26907
|
+
() => window.innerWidth < MOBILE_BREAKPOINT,
|
|
26908
|
+
// No viewport on the server — match the old `undefined → false` default.
|
|
26909
|
+
() => false
|
|
26910
|
+
);
|
|
26891
26911
|
}
|
|
26892
26912
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
26893
26913
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
@@ -30626,13 +30646,19 @@ var POOL_SIZE_MULTIPLIER = 128;
|
|
|
30626
30646
|
var pool;
|
|
30627
30647
|
var poolOffset;
|
|
30628
30648
|
var fillPool = (bytes) => {
|
|
30629
|
-
if (
|
|
30630
|
-
|
|
30631
|
-
|
|
30632
|
-
|
|
30633
|
-
|
|
30634
|
-
|
|
30635
|
-
poolOffset
|
|
30649
|
+
if (bytes < 0) throw new RangeError("Wrong ID size");
|
|
30650
|
+
try {
|
|
30651
|
+
if (!pool || pool.length < bytes) {
|
|
30652
|
+
pool = Buffer.allocUnsafe(bytes * POOL_SIZE_MULTIPLIER);
|
|
30653
|
+
crypto__default.default.randomFillSync(pool);
|
|
30654
|
+
poolOffset = 0;
|
|
30655
|
+
} else if (poolOffset + bytes > pool.length) {
|
|
30656
|
+
crypto__default.default.randomFillSync(pool);
|
|
30657
|
+
poolOffset = 0;
|
|
30658
|
+
}
|
|
30659
|
+
} catch (e) {
|
|
30660
|
+
pool = void 0;
|
|
30661
|
+
throw e;
|
|
30636
30662
|
}
|
|
30637
30663
|
poolOffset += bytes;
|
|
30638
30664
|
};
|