@nswds/app 1.89.7 → 1.90.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/globals.css +90 -1
- package/dist/index.cjs +73 -91
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +73 -91
- package/dist/index.js.map +1 -1
- package/dist/styles.css +90 -1
- package/dist/styles.css.map +1 -1
- package/package.json +7 -6
package/dist/globals.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties;
|
|
3
3
|
@layer theme, base, components, utilities;
|
|
4
4
|
@layer theme, base, components, utilities;
|
|
@@ -9449,6 +9449,22 @@
|
|
|
9449
9449
|
display: none;
|
|
9450
9450
|
}
|
|
9451
9451
|
}
|
|
9452
|
+
.dark\:divide-grey-100\/10 {
|
|
9453
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9454
|
+
:where(& > :not(:last-child)) {
|
|
9455
|
+
border-color: var(--color-grey-100);
|
|
9456
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
9457
|
+
border-color: color-mix(in oklab, var(--color-grey-100) 10%, transparent);
|
|
9458
|
+
}
|
|
9459
|
+
}
|
|
9460
|
+
}
|
|
9461
|
+
}
|
|
9462
|
+
.dark\:border-b {
|
|
9463
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9464
|
+
border-bottom-style: var(--tw-border-style);
|
|
9465
|
+
border-bottom-width: 1px;
|
|
9466
|
+
}
|
|
9467
|
+
}
|
|
9452
9468
|
.dark\:border-\(--badge-bg\) {
|
|
9453
9469
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9454
9470
|
border-color: var(--badge-bg);
|
|
@@ -9531,6 +9547,11 @@
|
|
|
9531
9547
|
border-color: var(--input);
|
|
9532
9548
|
}
|
|
9533
9549
|
}
|
|
9550
|
+
.dark\:border-primary-200 {
|
|
9551
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9552
|
+
border-color: var(--color-primary-200);
|
|
9553
|
+
}
|
|
9554
|
+
}
|
|
9534
9555
|
.dark\:border-primary-600 {
|
|
9535
9556
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9536
9557
|
border-color: var(--color-primary-600);
|
|
@@ -9541,6 +9562,11 @@
|
|
|
9541
9562
|
border-color: var(--color-slate-800);
|
|
9542
9563
|
}
|
|
9543
9564
|
}
|
|
9565
|
+
.dark\:border-transparent {
|
|
9566
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9567
|
+
border-color: transparent;
|
|
9568
|
+
}
|
|
9569
|
+
}
|
|
9544
9570
|
.dark\:border-white {
|
|
9545
9571
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9546
9572
|
border-color: var(--color-white);
|
|
@@ -9741,6 +9767,11 @@
|
|
|
9741
9767
|
}
|
|
9742
9768
|
}
|
|
9743
9769
|
}
|
|
9770
|
+
.dark\:bg-primary-950 {
|
|
9771
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9772
|
+
background-color: var(--color-primary-950);
|
|
9773
|
+
}
|
|
9774
|
+
}
|
|
9744
9775
|
.dark\:bg-slate-900\/95 {
|
|
9745
9776
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9746
9777
|
background-color: color-mix(in srgb, oklch(20.8% 0.042 265.755) 95%, transparent);
|
|
@@ -9954,6 +9985,11 @@
|
|
|
9954
9985
|
color: var(--color-grey-50);
|
|
9955
9986
|
}
|
|
9956
9987
|
}
|
|
9988
|
+
.dark\:text-grey-100 {
|
|
9989
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9990
|
+
color: var(--color-grey-100);
|
|
9991
|
+
}
|
|
9992
|
+
}
|
|
9957
9993
|
.dark\:text-grey-200 {
|
|
9958
9994
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9959
9995
|
color: var(--color-grey-200);
|
|
@@ -9979,6 +10015,11 @@
|
|
|
9979
10015
|
color: var(--muted-foreground);
|
|
9980
10016
|
}
|
|
9981
10017
|
}
|
|
10018
|
+
.dark\:text-primary-200 {
|
|
10019
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10020
|
+
color: var(--color-primary-200);
|
|
10021
|
+
}
|
|
10022
|
+
}
|
|
9982
10023
|
.dark\:text-primary-500 {
|
|
9983
10024
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
9984
10025
|
color: var(--color-primary-500);
|
|
@@ -10023,6 +10064,14 @@
|
|
|
10023
10064
|
box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
|
|
10024
10065
|
}
|
|
10025
10066
|
}
|
|
10067
|
+
.dark\:shadow-black\/40 {
|
|
10068
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10069
|
+
--tw-shadow-color: color-mix(in srgb, #000 40%, transparent);
|
|
10070
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
10071
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-black) 40%, transparent) var(--tw-shadow-alpha), transparent);
|
|
10072
|
+
}
|
|
10073
|
+
}
|
|
10074
|
+
}
|
|
10026
10075
|
.dark\:ring-danger-700\/30 {
|
|
10027
10076
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10028
10077
|
--tw-ring-color: var(--danger-700);
|
|
@@ -10502,6 +10551,15 @@
|
|
|
10502
10551
|
}
|
|
10503
10552
|
}
|
|
10504
10553
|
}
|
|
10554
|
+
.dark\:hover\:bg-grey-800 {
|
|
10555
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10556
|
+
&:hover {
|
|
10557
|
+
@media (hover: hover) {
|
|
10558
|
+
background-color: var(--color-grey-800);
|
|
10559
|
+
}
|
|
10560
|
+
}
|
|
10561
|
+
}
|
|
10562
|
+
}
|
|
10505
10563
|
.dark\:hover\:bg-input\/50 {
|
|
10506
10564
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10507
10565
|
&:hover {
|
|
@@ -10514,6 +10572,18 @@
|
|
|
10514
10572
|
}
|
|
10515
10573
|
}
|
|
10516
10574
|
}
|
|
10575
|
+
.dark\:hover\:bg-primary-200\/10 {
|
|
10576
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10577
|
+
&:hover {
|
|
10578
|
+
@media (hover: hover) {
|
|
10579
|
+
background-color: var(--color-primary-200);
|
|
10580
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
10581
|
+
background-color: color-mix(in oklab, var(--color-primary-200) 10%, transparent);
|
|
10582
|
+
}
|
|
10583
|
+
}
|
|
10584
|
+
}
|
|
10585
|
+
}
|
|
10586
|
+
}
|
|
10517
10587
|
.dark\:hover\:bg-white\/10 {
|
|
10518
10588
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10519
10589
|
&:hover {
|
|
@@ -10562,6 +10632,15 @@
|
|
|
10562
10632
|
}
|
|
10563
10633
|
}
|
|
10564
10634
|
}
|
|
10635
|
+
.dark\:hover\:text-primary-200 {
|
|
10636
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10637
|
+
&:hover {
|
|
10638
|
+
@media (hover: hover) {
|
|
10639
|
+
color: var(--color-primary-200);
|
|
10640
|
+
}
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10565
10644
|
.dark\:hover\:text-slate-300 {
|
|
10566
10645
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
10567
10646
|
&:hover {
|
|
@@ -11154,6 +11233,16 @@
|
|
|
11154
11233
|
}
|
|
11155
11234
|
}
|
|
11156
11235
|
}
|
|
11236
|
+
.dark\:sm\:border-grey-100\/10 {
|
|
11237
|
+
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
11238
|
+
@media (width >= 40rem) {
|
|
11239
|
+
border-color: var(--color-grey-100);
|
|
11240
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
11241
|
+
border-color: color-mix(in oklab, var(--color-grey-100) 10%, transparent);
|
|
11242
|
+
}
|
|
11243
|
+
}
|
|
11244
|
+
}
|
|
11245
|
+
}
|
|
11157
11246
|
.dark\:sm\:border-white\/5 {
|
|
11158
11247
|
&:where([data-theme=dark], [data-theme=dark] *) {
|
|
11159
11248
|
@media (width >= 40rem) {
|
package/dist/index.cjs
CHANGED
|
@@ -17557,7 +17557,7 @@ function FormatToggle({ format, setFormat }) {
|
|
|
17557
17557
|
|
|
17558
17558
|
// package.json
|
|
17559
17559
|
var package_default = {
|
|
17560
|
-
version: "1.
|
|
17560
|
+
version: "1.89.0"};
|
|
17561
17561
|
var SluggerContext = React5__namespace.default.createContext(null);
|
|
17562
17562
|
function flattenText(nodes) {
|
|
17563
17563
|
if (nodes == null || typeof nodes === "boolean") return "";
|
|
@@ -18896,7 +18896,7 @@ function MainNavigation({ navigation }) {
|
|
|
18896
18896
|
"aria-label": "Main Navigation",
|
|
18897
18897
|
role: "navigation",
|
|
18898
18898
|
id: "nsw-main-navigation",
|
|
18899
|
-
className: "sticky z-40 hidden bg-grey-100 shadow-md shadow-grey-900/5 sm:px-6 lg:block lg:px-4 dark:shadow-none",
|
|
18899
|
+
className: "sticky z-40 hidden bg-grey-100 shadow-md shadow-grey-900/5 sm:px-6 lg:block lg:px-4 dark:border-b dark:border-grey-800 dark:bg-grey-900 dark:shadow-none",
|
|
18900
18900
|
style: {
|
|
18901
18901
|
top: `${headerHeight}px`,
|
|
18902
18902
|
transition: "top 0.2s ease-in-out"
|
|
@@ -18931,9 +18931,9 @@ function TopLevel({ title, href }) {
|
|
|
18931
18931
|
// Base styles
|
|
18932
18932
|
"inline-flex items-center gap-x-1 p-4 transition lg:px-8",
|
|
18933
18933
|
// Text styles
|
|
18934
|
-
"text-base leading-6 font-bold text-grey-800",
|
|
18934
|
+
"text-base leading-6 font-bold text-grey-800 dark:text-grey-100",
|
|
18935
18935
|
// Hover styles
|
|
18936
|
-
"hover:bg-primary-800/10"
|
|
18936
|
+
"hover:bg-primary-800/10 hover:text-primary-800 dark:hover:bg-primary-200/10 dark:hover:text-primary-200"
|
|
18937
18937
|
),
|
|
18938
18938
|
children: title
|
|
18939
18939
|
},
|
|
@@ -18948,14 +18948,12 @@ function MegaMenu({ title, href, links }) {
|
|
|
18948
18948
|
className: cn(
|
|
18949
18949
|
"inline-flex items-center gap-x-1 p-4 transition lg:px-8",
|
|
18950
18950
|
// Text styles
|
|
18951
|
-
"text-base leading-6 font-bold text-grey-800 hover:text-primary-800 dark:text-grey-
|
|
18951
|
+
"text-base leading-6 font-bold text-grey-800 hover:text-primary-800 dark:text-grey-100 dark:hover:text-primary-200",
|
|
18952
18952
|
// Hover styles
|
|
18953
|
-
"hover:bg-primary-800/10 hover:font-bold hover:
|
|
18954
|
-
// Focus styles,
|
|
18955
|
-
"",
|
|
18953
|
+
"hover:bg-primary-800/10 hover:font-bold dark:hover:bg-primary-200/10",
|
|
18956
18954
|
// Border styles
|
|
18957
18955
|
"border-b-2",
|
|
18958
|
-
open ? "border-primary-800" : "border-transparent"
|
|
18956
|
+
open ? "border-primary-800 dark:border-primary-200" : "border-transparent dark:border-transparent"
|
|
18959
18957
|
),
|
|
18960
18958
|
children: [
|
|
18961
18959
|
title,
|
|
@@ -18975,13 +18973,13 @@ function MegaMenu({ title, href, links }) {
|
|
|
18975
18973
|
Headless4.PopoverPanel,
|
|
18976
18974
|
{
|
|
18977
18975
|
transition: true,
|
|
18978
|
-
className: "absolute inset-x-0 top-0 -z-10 pt-14 shadow transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[enter]:ease-out data-[leave]:duration-150 data-[leave]:ease-in",
|
|
18979
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto grid bg-white", children: [
|
|
18976
|
+
className: "absolute inset-x-0 top-0 -z-10 pt-14 shadow transition data-[closed]:-translate-y-1 data-[closed]:opacity-0 data-[enter]:duration-200 data-[enter]:ease-out data-[leave]:duration-150 data-[leave]:ease-in dark:shadow-black/40",
|
|
18977
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mx-auto grid bg-white dark:bg-grey-900", children: [
|
|
18980
18978
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
18981
18979
|
Link13__default.default,
|
|
18982
18980
|
{
|
|
18983
18981
|
href,
|
|
18984
|
-
className: "group flex items-center px-8 py-8 text-xl font-bold text-primary-800 hover:bg-primary-800/10",
|
|
18982
|
+
className: "group flex items-center px-8 py-8 text-xl font-bold text-primary-800 hover:bg-primary-800/10 dark:text-primary-200 dark:hover:bg-primary-200/10",
|
|
18985
18983
|
children: [
|
|
18986
18984
|
/* @__PURE__ */ jsxRuntime.jsx("span", { "aria-hidden": "true", className: "absolute inset-0" }),
|
|
18987
18985
|
title,
|
|
@@ -18994,21 +18992,15 @@ function MegaMenu({ title, href, links }) {
|
|
|
18994
18992
|
{
|
|
18995
18993
|
className: cn(
|
|
18996
18994
|
// Base styles
|
|
18997
|
-
"relative mx-2 border-t bg-white p-4 hover:bg-primary-800/10 hover:font-bold hover:text-primary-800 [&:nth-last-child(-n+3)]:border-b",
|
|
18998
|
-
// Hover styles
|
|
18999
|
-
"",
|
|
18995
|
+
"relative mx-2 border-t border-grey-200 bg-white p-4 hover:bg-primary-800/10 hover:font-bold hover:text-primary-800 dark:border-grey-700 dark:bg-grey-900 dark:hover:bg-primary-200/10 dark:hover:text-primary-200 [&:nth-last-child(-n+3)]:border-b",
|
|
19000
18996
|
// Focus styles
|
|
19001
18997
|
"focus-within:rounded-sm focus-within:outline focus-within:outline-inherit"
|
|
19002
18998
|
),
|
|
19003
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-grey-900", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
18999
|
+
children: /* @__PURE__ */ jsxRuntime.jsx("h3", { className: "text-base font-semibold text-grey-900 dark:text-grey-100", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
19004
19000
|
Link13__default.default,
|
|
19005
19001
|
{
|
|
19006
19002
|
href: item.href,
|
|
19007
19003
|
className: cn(
|
|
19008
|
-
// Base styles
|
|
19009
|
-
"",
|
|
19010
|
-
// Hover styles
|
|
19011
|
-
"",
|
|
19012
19004
|
// Focus styles
|
|
19013
19005
|
"outline-none"
|
|
19014
19006
|
),
|
|
@@ -19027,7 +19019,7 @@ function MegaMenu({ title, href, links }) {
|
|
|
19027
19019
|
] }) });
|
|
19028
19020
|
}
|
|
19029
19021
|
function Masthead() {
|
|
19030
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "nsw-masthead", className: "w-full bg-primary-800", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex w-full items-center justify-between px-4 py-2 sm:px-6 lg:px-12", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-x-12", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-white", children: "A NSW Government website" }) }) }) });
|
|
19022
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { id: "nsw-masthead", className: "w-full bg-primary-800 dark:bg-primary-950", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "mx-auto flex w-full items-center justify-between px-4 py-2 sm:px-6 lg:px-12", children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center gap-x-12", children: /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-white", children: "A NSW Government website" }) }) }) });
|
|
19031
19023
|
}
|
|
19032
19024
|
function Menubar({ className, ...props }) {
|
|
19033
19025
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -22970,16 +22962,68 @@ function variantLabelsAsDependency(prop) {
|
|
|
22970
22962
|
return Array.isArray(prop) ? prop.join(" ") : prop;
|
|
22971
22963
|
}
|
|
22972
22964
|
|
|
22973
|
-
// node_modules/framer-motion/dist/es/projection/styles/scale-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22965
|
+
// node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs
|
|
22966
|
+
function pixelsToPercent(pixels, axis) {
|
|
22967
|
+
if (axis.max === axis.min)
|
|
22968
|
+
return 0;
|
|
22969
|
+
return pixels / (axis.max - axis.min) * 100;
|
|
22970
|
+
}
|
|
22971
|
+
var correctBorderRadius = {
|
|
22972
|
+
correct: (latest, node) => {
|
|
22973
|
+
if (!node.target)
|
|
22974
|
+
return latest;
|
|
22975
|
+
if (typeof latest === "string") {
|
|
22976
|
+
if (px.test(latest)) {
|
|
22977
|
+
latest = parseFloat(latest);
|
|
22978
|
+
} else {
|
|
22979
|
+
return latest;
|
|
22980
|
+
}
|
|
22980
22981
|
}
|
|
22982
|
+
const x = pixelsToPercent(latest, node.target.x);
|
|
22983
|
+
const y = pixelsToPercent(latest, node.target.y);
|
|
22984
|
+
return `${x}% ${y}%`;
|
|
22981
22985
|
}
|
|
22982
|
-
}
|
|
22986
|
+
};
|
|
22987
|
+
|
|
22988
|
+
// node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs
|
|
22989
|
+
var correctBoxShadow = {
|
|
22990
|
+
correct: (latest, { treeScale, projectionDelta }) => {
|
|
22991
|
+
const original = latest;
|
|
22992
|
+
const shadow = complex.parse(latest);
|
|
22993
|
+
if (shadow.length > 5)
|
|
22994
|
+
return original;
|
|
22995
|
+
const template = complex.createTransformer(latest);
|
|
22996
|
+
const offset = typeof shadow[0] !== "number" ? 1 : 0;
|
|
22997
|
+
const xScale = projectionDelta.x.scale * treeScale.x;
|
|
22998
|
+
const yScale = projectionDelta.y.scale * treeScale.y;
|
|
22999
|
+
shadow[0 + offset] /= xScale;
|
|
23000
|
+
shadow[1 + offset] /= yScale;
|
|
23001
|
+
const averageScale = mixNumber(xScale, yScale, 0.5);
|
|
23002
|
+
if (typeof shadow[2 + offset] === "number")
|
|
23003
|
+
shadow[2 + offset] /= averageScale;
|
|
23004
|
+
if (typeof shadow[3 + offset] === "number")
|
|
23005
|
+
shadow[3 + offset] /= averageScale;
|
|
23006
|
+
return template(shadow);
|
|
23007
|
+
}
|
|
23008
|
+
};
|
|
23009
|
+
|
|
23010
|
+
// node_modules/framer-motion/dist/es/projection/styles/scale-correction.mjs
|
|
23011
|
+
var scaleCorrectors = {
|
|
23012
|
+
borderRadius: {
|
|
23013
|
+
...correctBorderRadius,
|
|
23014
|
+
applyTo: [
|
|
23015
|
+
"borderTopLeftRadius",
|
|
23016
|
+
"borderTopRightRadius",
|
|
23017
|
+
"borderBottomLeftRadius",
|
|
23018
|
+
"borderBottomRightRadius"
|
|
23019
|
+
]
|
|
23020
|
+
},
|
|
23021
|
+
borderTopLeftRadius: correctBorderRadius,
|
|
23022
|
+
borderTopRightRadius: correctBorderRadius,
|
|
23023
|
+
borderBottomLeftRadius: correctBorderRadius,
|
|
23024
|
+
borderBottomRightRadius: correctBorderRadius,
|
|
23025
|
+
boxShadow: correctBoxShadow
|
|
23026
|
+
};
|
|
22983
23027
|
|
|
22984
23028
|
// node_modules/framer-motion/dist/es/motion/utils/is-forced-motion-value.mjs
|
|
22985
23029
|
function isForcedMotionValue(key, { layout: layout2, layoutId }) {
|
|
@@ -25635,51 +25679,6 @@ var globalProjectionState = {
|
|
|
25635
25679
|
hasEverUpdated: false
|
|
25636
25680
|
};
|
|
25637
25681
|
|
|
25638
|
-
// node_modules/framer-motion/dist/es/projection/styles/scale-border-radius.mjs
|
|
25639
|
-
function pixelsToPercent(pixels, axis) {
|
|
25640
|
-
if (axis.max === axis.min)
|
|
25641
|
-
return 0;
|
|
25642
|
-
return pixels / (axis.max - axis.min) * 100;
|
|
25643
|
-
}
|
|
25644
|
-
var correctBorderRadius = {
|
|
25645
|
-
correct: (latest, node) => {
|
|
25646
|
-
if (!node.target)
|
|
25647
|
-
return latest;
|
|
25648
|
-
if (typeof latest === "string") {
|
|
25649
|
-
if (px.test(latest)) {
|
|
25650
|
-
latest = parseFloat(latest);
|
|
25651
|
-
} else {
|
|
25652
|
-
return latest;
|
|
25653
|
-
}
|
|
25654
|
-
}
|
|
25655
|
-
const x = pixelsToPercent(latest, node.target.x);
|
|
25656
|
-
const y = pixelsToPercent(latest, node.target.y);
|
|
25657
|
-
return `${x}% ${y}%`;
|
|
25658
|
-
}
|
|
25659
|
-
};
|
|
25660
|
-
|
|
25661
|
-
// node_modules/framer-motion/dist/es/projection/styles/scale-box-shadow.mjs
|
|
25662
|
-
var correctBoxShadow = {
|
|
25663
|
-
correct: (latest, { treeScale, projectionDelta }) => {
|
|
25664
|
-
const original = latest;
|
|
25665
|
-
const shadow = complex.parse(latest);
|
|
25666
|
-
if (shadow.length > 5)
|
|
25667
|
-
return original;
|
|
25668
|
-
const template = complex.createTransformer(latest);
|
|
25669
|
-
const offset = typeof shadow[0] !== "number" ? 1 : 0;
|
|
25670
|
-
const xScale = projectionDelta.x.scale * treeScale.x;
|
|
25671
|
-
const yScale = projectionDelta.y.scale * treeScale.y;
|
|
25672
|
-
shadow[0 + offset] /= xScale;
|
|
25673
|
-
shadow[1 + offset] /= yScale;
|
|
25674
|
-
const averageScale = mixNumber(xScale, yScale, 0.5);
|
|
25675
|
-
if (typeof shadow[2 + offset] === "number")
|
|
25676
|
-
shadow[2 + offset] /= averageScale;
|
|
25677
|
-
if (typeof shadow[3 + offset] === "number")
|
|
25678
|
-
shadow[3 + offset] /= averageScale;
|
|
25679
|
-
return template(shadow);
|
|
25680
|
-
}
|
|
25681
|
-
};
|
|
25682
|
-
|
|
25683
25682
|
// node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.mjs
|
|
25684
25683
|
var hasTakenAnySnapshot = false;
|
|
25685
25684
|
var MeasureLayoutWithContext = class extends React5.Component {
|
|
@@ -25691,7 +25690,6 @@ var MeasureLayoutWithContext = class extends React5.Component {
|
|
|
25691
25690
|
componentDidMount() {
|
|
25692
25691
|
const { visualElement, layoutGroup, switchLayoutGroup, layoutId } = this.props;
|
|
25693
25692
|
const { projection } = visualElement;
|
|
25694
|
-
addScaleCorrector(defaultScaleCorrectors);
|
|
25695
25693
|
if (projection) {
|
|
25696
25694
|
if (layoutGroup.group)
|
|
25697
25695
|
layoutGroup.group.add(projection);
|
|
@@ -25773,22 +25771,6 @@ function MeasureLayout(props) {
|
|
|
25773
25771
|
const layoutGroup = React5.useContext(LayoutGroupContext);
|
|
25774
25772
|
return jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup, switchLayoutGroup: React5.useContext(SwitchLayoutGroupContext), isPresent, safeToRemove });
|
|
25775
25773
|
}
|
|
25776
|
-
var defaultScaleCorrectors = {
|
|
25777
|
-
borderRadius: {
|
|
25778
|
-
...correctBorderRadius,
|
|
25779
|
-
applyTo: [
|
|
25780
|
-
"borderTopLeftRadius",
|
|
25781
|
-
"borderTopRightRadius",
|
|
25782
|
-
"borderBottomLeftRadius",
|
|
25783
|
-
"borderBottomRightRadius"
|
|
25784
|
-
]
|
|
25785
|
-
},
|
|
25786
|
-
borderTopLeftRadius: correctBorderRadius,
|
|
25787
|
-
borderTopRightRadius: correctBorderRadius,
|
|
25788
|
-
borderBottomLeftRadius: correctBorderRadius,
|
|
25789
|
-
borderBottomRightRadius: correctBorderRadius,
|
|
25790
|
-
boxShadow: correctBoxShadow
|
|
25791
|
-
};
|
|
25792
25774
|
|
|
25793
25775
|
// node_modules/framer-motion/dist/es/animation/animate/single-value.mjs
|
|
25794
25776
|
function animateSingleValue(value, keyframes2, options) {
|