@carbonplan/components 13.3.0 → 13.4.0-develop.1
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/dst/index.d.mts +10 -8
- package/dst/index.d.ts +10 -8
- package/dst/index.js +639 -465
- package/dst/index.js.map +1 -1
- package/dst/index.mjs +619 -445
- package/dst/index.mjs.map +1 -1
- package/package.json +1 -1
package/dst/index.mjs
CHANGED
|
@@ -46,7 +46,7 @@ var Avatar = (_a) => {
|
|
|
46
46
|
github,
|
|
47
47
|
alt,
|
|
48
48
|
src,
|
|
49
|
-
sx:
|
|
49
|
+
sx: sx4
|
|
50
50
|
} = _b, props = __objRest(_b, [
|
|
51
51
|
"color",
|
|
52
52
|
"width",
|
|
@@ -83,7 +83,7 @@ var Avatar = (_a) => {
|
|
|
83
83
|
position: "relative",
|
|
84
84
|
display: "inline-block",
|
|
85
85
|
verticalAlign: "top"
|
|
86
|
-
},
|
|
86
|
+
}, sx4)
|
|
87
87
|
}, props),
|
|
88
88
|
/* @__PURE__ */ React.createElement(
|
|
89
89
|
Image,
|
|
@@ -123,7 +123,7 @@ import { Box as Box4 } from "theme-ui";
|
|
|
123
123
|
import React2 from "react";
|
|
124
124
|
import { Grid } from "theme-ui";
|
|
125
125
|
var Row = (_a) => {
|
|
126
|
-
var _b = _a, { children, sx:
|
|
126
|
+
var _b = _a, { children, sx: sx4, columns, gap } = _b, props = __objRest(_b, ["children", "sx", "columns", "gap"]);
|
|
127
127
|
const makeArray = (input) => {
|
|
128
128
|
if (!Array.isArray(input)) {
|
|
129
129
|
input = [input, input, input, input];
|
|
@@ -160,7 +160,7 @@ var Row = (_a) => {
|
|
|
160
160
|
sx: __spreadValues({
|
|
161
161
|
columnGap,
|
|
162
162
|
rowGap
|
|
163
|
-
},
|
|
163
|
+
}, sx4)
|
|
164
164
|
}),
|
|
165
165
|
children
|
|
166
166
|
);
|
|
@@ -177,7 +177,7 @@ var Column = (_a) => {
|
|
|
177
177
|
dl,
|
|
178
178
|
dr,
|
|
179
179
|
children,
|
|
180
|
-
sx:
|
|
180
|
+
sx: sx4
|
|
181
181
|
} = _b, props = __objRest(_b, [
|
|
182
182
|
"start",
|
|
183
183
|
"width",
|
|
@@ -237,7 +237,7 @@ var Column = (_a) => {
|
|
|
237
237
|
gridColumnEnd: end,
|
|
238
238
|
ml,
|
|
239
239
|
mr
|
|
240
|
-
},
|
|
240
|
+
}, sx4)
|
|
241
241
|
}),
|
|
242
242
|
children
|
|
243
243
|
);
|
|
@@ -258,7 +258,7 @@ var Group = ({
|
|
|
258
258
|
children,
|
|
259
259
|
direction = "vertical",
|
|
260
260
|
spacing = "md",
|
|
261
|
-
sx:
|
|
261
|
+
sx: sx4
|
|
262
262
|
}) => {
|
|
263
263
|
let marginValue;
|
|
264
264
|
if (typeof spacing === "string" && spacing in sizes) {
|
|
@@ -273,7 +273,7 @@ var Group = ({
|
|
|
273
273
|
}
|
|
274
274
|
const marginProperty = direction === "vertical" ? "mb" : "mr";
|
|
275
275
|
const additionalStyles = direction === "horizontal" ? { display: "inline-block" } : {};
|
|
276
|
-
return /* @__PURE__ */ React4.createElement(Box3, { sx:
|
|
276
|
+
return /* @__PURE__ */ React4.createElement(Box3, { sx: sx4 }, React4.Children.map(children, (child, i) => {
|
|
277
277
|
const childrenCount = React4.Children.count(children);
|
|
278
278
|
return /* @__PURE__ */ React4.createElement(
|
|
279
279
|
Box3,
|
|
@@ -342,7 +342,7 @@ var AvatarGroup = (_a) => {
|
|
|
342
342
|
width,
|
|
343
343
|
maxWidth,
|
|
344
344
|
fixedCount,
|
|
345
|
-
sx:
|
|
345
|
+
sx: sx4
|
|
346
346
|
} = _b, props = __objRest(_b, [
|
|
347
347
|
"members",
|
|
348
348
|
"direction",
|
|
@@ -378,7 +378,7 @@ var AvatarGroup = (_a) => {
|
|
|
378
378
|
}
|
|
379
379
|
const excess = limit !== void 0 && members.length > limit;
|
|
380
380
|
const overflow = limit !== void 0 ? members.length - limit + 1 : 0;
|
|
381
|
-
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, fixedCount && /* @__PURE__ */ React5.createElement(row_default, __spreadValues({ columns: fixedCount, gap, sx:
|
|
381
|
+
return /* @__PURE__ */ React5.createElement(React5.Fragment, null, fixedCount && /* @__PURE__ */ React5.createElement(row_default, __spreadValues({ columns: fixedCount, gap, sx: sx4 }, props), members.map((props2, idx) => /* @__PURE__ */ React5.createElement(column_default, { key: idx, start: start(idx) }, (!excess || limit !== void 0 && idx < limit - 1) && /* @__PURE__ */ React5.createElement(avatar_default, __spreadProps(__spreadValues({}, props2), { width, maxWidth })), excess && limit !== void 0 && idx === limit - 1 && /* @__PURE__ */ React5.createElement(Blank, { overflow, maxWidth })))), !fixedCount && /* @__PURE__ */ React5.createElement(group_default, __spreadValues({ direction, spacing, sx: sx4 }, props), members.map((props2, idx) => /* @__PURE__ */ React5.createElement(avatar_default, __spreadProps(__spreadValues({ key: idx }, props2), { width, maxWidth })))));
|
|
382
382
|
};
|
|
383
383
|
var avatar_group_default = AvatarGroup;
|
|
384
384
|
|
|
@@ -388,13 +388,13 @@ import { Box as Box5 } from "theme-ui";
|
|
|
388
388
|
import { transparentize } from "@theme-ui/color";
|
|
389
389
|
|
|
390
390
|
// src/utils/get-sx-color.ts
|
|
391
|
-
var getSxColor = (
|
|
391
|
+
var getSxColor = (sx4, fallback = "primary") => sx4 && typeof sx4 === "object" && "color" in sx4 && typeof sx4.color === "string" ? sx4.color : fallback;
|
|
392
392
|
var get_sx_color_default = getSxColor;
|
|
393
393
|
|
|
394
394
|
// src/badge.tsx
|
|
395
395
|
var Badge = (_a) => {
|
|
396
|
-
var _b = _a, { sx:
|
|
397
|
-
const color = get_sx_color_default(
|
|
396
|
+
var _b = _a, { sx: sx4, children } = _b, props = __objRest(_b, ["sx", "children"]);
|
|
397
|
+
const color = get_sx_color_default(sx4);
|
|
398
398
|
return /* @__PURE__ */ React6.createElement(
|
|
399
399
|
Box5,
|
|
400
400
|
__spreadValues({
|
|
@@ -407,7 +407,7 @@ var Badge = (_a) => {
|
|
|
407
407
|
textAlign: "center",
|
|
408
408
|
userSelect: "none",
|
|
409
409
|
fontSize: [2, 2, 2, 3]
|
|
410
|
-
},
|
|
410
|
+
}, sx4)
|
|
411
411
|
}, props),
|
|
412
412
|
/* @__PURE__ */ React6.createElement(
|
|
413
413
|
Box5,
|
|
@@ -516,7 +516,7 @@ var Button = (_a, ref) => {
|
|
|
516
516
|
prefix,
|
|
517
517
|
suffix,
|
|
518
518
|
inverted,
|
|
519
|
-
sx:
|
|
519
|
+
sx: sx4,
|
|
520
520
|
children,
|
|
521
521
|
align,
|
|
522
522
|
href,
|
|
@@ -536,7 +536,7 @@ var Button = (_a, ref) => {
|
|
|
536
536
|
if (!["xs", "sm", "md", "lg", "xl"].includes(size)) {
|
|
537
537
|
throw new Error("Size must be xs, sm, md, lg, or xl");
|
|
538
538
|
}
|
|
539
|
-
const _a2 =
|
|
539
|
+
const _a2 = sx4 && typeof sx4 === "object" ? sx4 : {}, { color: sxColor } = _a2, sxProp = __objRest(_a2, ["color"]);
|
|
540
540
|
const baseColor = typeof sxColor === "string" && sxColor || (inverted ? "secondary" : "primary");
|
|
541
541
|
const hoverColor = sxColor ? "primary" : inverted ? "primary" : "secondary";
|
|
542
542
|
const sizeConfig = {
|
|
@@ -715,7 +715,7 @@ var Callout = (_a, ref) => {
|
|
|
715
715
|
color,
|
|
716
716
|
href,
|
|
717
717
|
internal,
|
|
718
|
-
sx:
|
|
718
|
+
sx: sx4
|
|
719
719
|
} = _b, props = __objRest(_b, [
|
|
720
720
|
"label",
|
|
721
721
|
"children",
|
|
@@ -750,7 +750,7 @@ var Callout = (_a, ref) => {
|
|
|
750
750
|
color: hoverColor
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
},
|
|
753
|
+
}, sx4);
|
|
754
754
|
const Inner = /* @__PURE__ */ React10.createElement(React10.Fragment, null, /* @__PURE__ */ React10.createElement(Box8, { sx: { transition: "0.15s", letterSpacing: "body", pb: ["6px"] } }, children), /* @__PURE__ */ React10.createElement(
|
|
755
755
|
Box8,
|
|
756
756
|
{
|
|
@@ -997,7 +997,7 @@ var Colorbar = (_a) => {
|
|
|
997
997
|
format: format2 = (d) => d,
|
|
998
998
|
horizontal = false,
|
|
999
999
|
bottom = false,
|
|
1000
|
-
sx:
|
|
1000
|
+
sx: sx4,
|
|
1001
1001
|
sxClim
|
|
1002
1002
|
} = _b, props = __objRest(_b, [
|
|
1003
1003
|
"colormap",
|
|
@@ -1160,7 +1160,7 @@ var Colorbar = (_a) => {
|
|
|
1160
1160
|
justifyContent: "flex-start",
|
|
1161
1161
|
gap: ["3px", "6px", "6px", "7px"],
|
|
1162
1162
|
height: !horizontal ? "100%" : "unset"
|
|
1163
|
-
},
|
|
1163
|
+
}, sx4)
|
|
1164
1164
|
}),
|
|
1165
1165
|
label && /* @__PURE__ */ React12.createElement(Label, { label, units, horizontal }),
|
|
1166
1166
|
/* @__PURE__ */ React12.createElement(
|
|
@@ -1231,12 +1231,12 @@ __export(colors_exports, {
|
|
|
1231
1231
|
import React13 from "react";
|
|
1232
1232
|
import { Box as Box11 } from "theme-ui";
|
|
1233
1233
|
var InlineColor = (_a) => {
|
|
1234
|
-
var _b = _a, { sx:
|
|
1234
|
+
var _b = _a, { sx: sx4, color, children } = _b, props = __objRest(_b, ["sx", "color", "children"]);
|
|
1235
1235
|
return /* @__PURE__ */ React13.createElement(
|
|
1236
1236
|
Box11,
|
|
1237
1237
|
__spreadValues({
|
|
1238
1238
|
as: "span",
|
|
1239
|
-
sx: __spreadValues({ display: "inline-block", color },
|
|
1239
|
+
sx: __spreadValues({ display: "inline-block", color }, sx4)
|
|
1240
1240
|
}, props),
|
|
1241
1241
|
children
|
|
1242
1242
|
);
|
|
@@ -1279,13 +1279,13 @@ var Grey = (props) => {
|
|
|
1279
1279
|
};
|
|
1280
1280
|
|
|
1281
1281
|
// src/custom-404.tsx
|
|
1282
|
-
import
|
|
1283
|
-
import { Box as
|
|
1282
|
+
import React32 from "react";
|
|
1283
|
+
import { Box as Box22 } from "theme-ui";
|
|
1284
1284
|
import { PoopSad } from "@carbonplan/emoji";
|
|
1285
1285
|
|
|
1286
1286
|
// src/layout.tsx
|
|
1287
|
-
import
|
|
1288
|
-
import { useThemeUI as useThemeUI3, Container as Container3, Flex as
|
|
1287
|
+
import React31, { useEffect as useEffect8 } from "react";
|
|
1288
|
+
import { useThemeUI as useThemeUI3, Container as Container3, Flex as Flex5, Box as Box21 } from "theme-ui";
|
|
1289
1289
|
|
|
1290
1290
|
// src/meta.tsx
|
|
1291
1291
|
import React14 from "react";
|
|
@@ -1404,11 +1404,10 @@ var Meta = ({ title, description, card, url }) => {
|
|
|
1404
1404
|
};
|
|
1405
1405
|
var meta_default = Meta;
|
|
1406
1406
|
|
|
1407
|
-
// src/header.tsx
|
|
1408
|
-
import
|
|
1409
|
-
import { default as
|
|
1410
|
-
import { Box as
|
|
1411
|
-
import { Arrow as Arrow2 } from "@carbonplan/icons";
|
|
1407
|
+
// src/header/header.tsx
|
|
1408
|
+
import React22, { useState as useState3 } from "react";
|
|
1409
|
+
import { default as NextLink3 } from "next/link";
|
|
1410
|
+
import { Box as Box14, Flex as Flex3, Container, Link as Link4 } from "theme-ui";
|
|
1412
1411
|
|
|
1413
1412
|
// src/logo.tsx
|
|
1414
1413
|
import React15 from "react";
|
|
@@ -1490,11 +1489,24 @@ var Logo = (_a) => {
|
|
|
1490
1489
|
};
|
|
1491
1490
|
var logo_default = Logo;
|
|
1492
1491
|
|
|
1493
|
-
// src/menu.tsx
|
|
1492
|
+
// src/header/menu.tsx
|
|
1493
|
+
import React17 from "react";
|
|
1494
|
+
|
|
1495
|
+
// src/header/header-icon.tsx
|
|
1494
1496
|
import React16 from "react";
|
|
1495
1497
|
import { IconButton } from "theme-ui";
|
|
1496
|
-
var
|
|
1497
|
-
var _b = _a, {
|
|
1498
|
+
var HeaderIcon = (_a) => {
|
|
1499
|
+
var _b = _a, {
|
|
1500
|
+
label = "Toggle Menu",
|
|
1501
|
+
children,
|
|
1502
|
+
value,
|
|
1503
|
+
sx: sx4
|
|
1504
|
+
} = _b, props = __objRest(_b, [
|
|
1505
|
+
"label",
|
|
1506
|
+
"children",
|
|
1507
|
+
"value",
|
|
1508
|
+
"sx"
|
|
1509
|
+
]);
|
|
1498
1510
|
return /* @__PURE__ */ React16.createElement(
|
|
1499
1511
|
IconButton,
|
|
1500
1512
|
__spreadValues({
|
|
@@ -1511,8 +1523,8 @@ var Menu = (_a) => {
|
|
|
1511
1523
|
opacity: "1"
|
|
1512
1524
|
}
|
|
1513
1525
|
}
|
|
1514
|
-
},
|
|
1515
|
-
"aria-label":
|
|
1526
|
+
}, sx4),
|
|
1527
|
+
"aria-label": label
|
|
1516
1528
|
}, props),
|
|
1517
1529
|
!value && /* @__PURE__ */ React16.createElement(
|
|
1518
1530
|
"svg",
|
|
@@ -1526,9 +1538,7 @@ var Menu = (_a) => {
|
|
|
1526
1538
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1527
1539
|
viewBox: "0 0 68 36"
|
|
1528
1540
|
},
|
|
1529
|
-
|
|
1530
|
-
/* @__PURE__ */ React16.createElement("line", { x1: "52", y1: "6.1", x2: "16", y2: "6.1" }),
|
|
1531
|
-
/* @__PURE__ */ React16.createElement("line", { x1: "52", y1: "18", x2: "16", y2: "18" }),
|
|
1541
|
+
children,
|
|
1532
1542
|
/* @__PURE__ */ React16.createElement(
|
|
1533
1543
|
"path",
|
|
1534
1544
|
{
|
|
@@ -1579,9 +1589,19 @@ var Menu = (_a) => {
|
|
|
1579
1589
|
)
|
|
1580
1590
|
);
|
|
1581
1591
|
};
|
|
1592
|
+
var header_icon_default = HeaderIcon;
|
|
1593
|
+
|
|
1594
|
+
// src/header/menu.tsx
|
|
1595
|
+
var Menu = (props) => {
|
|
1596
|
+
return /* @__PURE__ */ React17.createElement(header_icon_default, __spreadValues({}, props), /* @__PURE__ */ React17.createElement("line", { x1: "52", y1: "29.9", x2: "16", y2: "29.9" }), /* @__PURE__ */ React17.createElement("line", { x1: "52", y1: "6.1", x2: "16", y2: "6.1" }), /* @__PURE__ */ React17.createElement("line", { x1: "52", y1: "18", x2: "16", y2: "18" }));
|
|
1597
|
+
};
|
|
1582
1598
|
var menu_default = Menu;
|
|
1583
1599
|
|
|
1584
|
-
// src/header.tsx
|
|
1600
|
+
// src/header/navigation-menu.tsx
|
|
1601
|
+
import React18, { useEffect as useEffect2 } from "react";
|
|
1602
|
+
import { default as NextLink2 } from "next/link";
|
|
1603
|
+
import { Link as Link2 } from "theme-ui";
|
|
1604
|
+
import { Arrow as Arrow2 } from "@carbonplan/icons";
|
|
1585
1605
|
var sx = {
|
|
1586
1606
|
link: (current, label, first = false) => {
|
|
1587
1607
|
return {
|
|
@@ -1606,7 +1626,7 @@ var sx = {
|
|
|
1606
1626
|
}
|
|
1607
1627
|
},
|
|
1608
1628
|
"&:hover": {
|
|
1609
|
-
color: current
|
|
1629
|
+
color: current == label ? "secondary" : "text"
|
|
1610
1630
|
}
|
|
1611
1631
|
};
|
|
1612
1632
|
}
|
|
@@ -1618,7 +1638,7 @@ var links = [
|
|
|
1618
1638
|
{ url: "press", display: "Press" }
|
|
1619
1639
|
];
|
|
1620
1640
|
var HoverArrow = () => {
|
|
1621
|
-
return /* @__PURE__ */
|
|
1641
|
+
return /* @__PURE__ */ React18.createElement(
|
|
1622
1642
|
Arrow2,
|
|
1623
1643
|
{
|
|
1624
1644
|
id: "arrow",
|
|
@@ -1641,7 +1661,7 @@ var Nav = ({ link, mode, nav, first, setExpanded }) => {
|
|
|
1641
1661
|
const { url, display } = link;
|
|
1642
1662
|
const href = mode === "remote" ? "https://carbonplan.org/" + url : "/" + url;
|
|
1643
1663
|
if (mode === "homepage" || mode === "local" && nav === url) {
|
|
1644
|
-
return /* @__PURE__ */
|
|
1664
|
+
return /* @__PURE__ */ React18.createElement(NextLink2, { href, passHref: true, legacyBehavior: true }, /* @__PURE__ */ React18.createElement(
|
|
1645
1665
|
Link2,
|
|
1646
1666
|
{
|
|
1647
1667
|
onClick: () => {
|
|
@@ -1649,34 +1669,311 @@ var Nav = ({ link, mode, nav, first, setExpanded }) => {
|
|
|
1649
1669
|
},
|
|
1650
1670
|
sx: sx.link(nav, url, first)
|
|
1651
1671
|
},
|
|
1652
|
-
/* @__PURE__ */
|
|
1672
|
+
/* @__PURE__ */ React18.createElement(HoverArrow, null),
|
|
1653
1673
|
display
|
|
1654
1674
|
));
|
|
1655
1675
|
} else {
|
|
1656
|
-
return /* @__PURE__ */
|
|
1676
|
+
return /* @__PURE__ */ React18.createElement(Link2, { href, sx: sx.link(nav, url, first) }, /* @__PURE__ */ React18.createElement(HoverArrow, null), display);
|
|
1677
|
+
}
|
|
1678
|
+
};
|
|
1679
|
+
var NavigationMenu = ({ nav, mode, setExpanded }) => {
|
|
1680
|
+
useEffect2(() => {
|
|
1681
|
+
const handler = (e) => {
|
|
1682
|
+
if (e.key === "Escape") setExpanded(false);
|
|
1683
|
+
};
|
|
1684
|
+
document.addEventListener("keydown", handler);
|
|
1685
|
+
return () => document.removeEventListener("keydown", handler);
|
|
1686
|
+
}, [setExpanded]);
|
|
1687
|
+
return /* @__PURE__ */ React18.createElement(React18.Fragment, null, links.map((d, i) => /* @__PURE__ */ React18.createElement(
|
|
1688
|
+
Nav,
|
|
1689
|
+
{
|
|
1690
|
+
key: i,
|
|
1691
|
+
link: d,
|
|
1692
|
+
mode,
|
|
1693
|
+
nav,
|
|
1694
|
+
first: i === 0,
|
|
1695
|
+
setExpanded
|
|
1696
|
+
}
|
|
1697
|
+
)));
|
|
1698
|
+
};
|
|
1699
|
+
var navigation_menu_default = NavigationMenu;
|
|
1700
|
+
|
|
1701
|
+
// src/header/search.tsx
|
|
1702
|
+
import React19 from "react";
|
|
1703
|
+
import { Search as SearchIcon } from "@carbonplan/icons";
|
|
1704
|
+
var Search = (props) => {
|
|
1705
|
+
return /* @__PURE__ */ React19.createElement(header_icon_default, __spreadProps(__spreadValues({}, props), { label: "Toggle Search" }), /* @__PURE__ */ React19.createElement(SearchIcon, { width: 50, height: 30, x: 8 }));
|
|
1706
|
+
};
|
|
1707
|
+
var search_default = Search;
|
|
1708
|
+
|
|
1709
|
+
// src/header/search-menu.tsx
|
|
1710
|
+
import React21, { useEffect as useEffect3, useState as useState2 } from "react";
|
|
1711
|
+
import { Box as Box13, Flex as Flex2, Link as Link3 } from "theme-ui";
|
|
1712
|
+
import { Arrow as Arrow3, RotatingArrow } from "@carbonplan/icons";
|
|
1713
|
+
|
|
1714
|
+
// src/input.tsx
|
|
1715
|
+
import React20, { forwardRef as forwardRef4 } from "react";
|
|
1716
|
+
import { Input as ThemedInput } from "theme-ui";
|
|
1717
|
+
var Input = (_a, ref) => {
|
|
1718
|
+
var _b = _a, { size = "sm", inverted, sx: sx4 } = _b, props = __objRest(_b, ["size", "inverted", "sx"]);
|
|
1719
|
+
const defaultColor = inverted ? "secondary" : "primary";
|
|
1720
|
+
const styles3 = __spreadValues(__spreadValues({
|
|
1721
|
+
color: defaultColor,
|
|
1722
|
+
borderColor: "secondary",
|
|
1723
|
+
borderStyle: "solid",
|
|
1724
|
+
borderWidth: "0px",
|
|
1725
|
+
borderBottomWidth: "1px",
|
|
1726
|
+
borderRadius: "0px",
|
|
1727
|
+
transition: "border 0.15s",
|
|
1728
|
+
width: "calc(min(15ch, 100%))",
|
|
1729
|
+
p: [0],
|
|
1730
|
+
py: ["2px"],
|
|
1731
|
+
"input::-webkit-outer-spin-button": {
|
|
1732
|
+
WebkitAppearance: "none",
|
|
1733
|
+
margin: 0
|
|
1734
|
+
},
|
|
1735
|
+
"input::-webkit-inner-spin-button": {
|
|
1736
|
+
WebkitAppearance: "none",
|
|
1737
|
+
margin: 0
|
|
1738
|
+
},
|
|
1739
|
+
":focus": {
|
|
1740
|
+
borderColor: "primary"
|
|
1741
|
+
},
|
|
1742
|
+
":focus-visible": {
|
|
1743
|
+
outline: "none !important",
|
|
1744
|
+
background: "none !important"
|
|
1745
|
+
}
|
|
1746
|
+
}, get_size_styles_default(size)), sx4);
|
|
1747
|
+
return /* @__PURE__ */ React20.createElement(ThemedInput, __spreadProps(__spreadValues({}, props), { ref, sx: styles3 }));
|
|
1748
|
+
};
|
|
1749
|
+
var input_default = forwardRef4(Input);
|
|
1750
|
+
|
|
1751
|
+
// src/header/search-menu.tsx
|
|
1752
|
+
var HoverArrow2 = ({ sx: sx4 }) => {
|
|
1753
|
+
return /* @__PURE__ */ React21.createElement(
|
|
1754
|
+
Arrow3,
|
|
1755
|
+
{
|
|
1756
|
+
id: "arrow",
|
|
1757
|
+
sx: __spreadValues({
|
|
1758
|
+
display: "inline-block",
|
|
1759
|
+
position: "absolute",
|
|
1760
|
+
right: ["4px", "-68px", "-80px", "-104px"],
|
|
1761
|
+
top: [void 0, void 0, "46px", "62px"],
|
|
1762
|
+
bottom: ["4px", "4px", void 0, void 0],
|
|
1763
|
+
opacity: 0,
|
|
1764
|
+
transition: "opacity 0.2s ease-out",
|
|
1765
|
+
transform: "rotate(45deg)",
|
|
1766
|
+
width: [24, 36, 48, 56],
|
|
1767
|
+
height: [24, 36, 48, 56]
|
|
1768
|
+
}, sx4)
|
|
1769
|
+
}
|
|
1770
|
+
);
|
|
1771
|
+
};
|
|
1772
|
+
var RESOURCES = [
|
|
1773
|
+
{
|
|
1774
|
+
label: "Carbon accounting",
|
|
1775
|
+
links: []
|
|
1776
|
+
},
|
|
1777
|
+
{
|
|
1778
|
+
label: "Climate impacts",
|
|
1779
|
+
links: []
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
label: "Organization",
|
|
1783
|
+
links: []
|
|
1784
|
+
}
|
|
1785
|
+
];
|
|
1786
|
+
var sx2 = {
|
|
1787
|
+
highlight: {
|
|
1788
|
+
mb: [2, 2, 3, 3],
|
|
1789
|
+
mt: [3, 3, 0, 0],
|
|
1790
|
+
fontSize: [3, 3, 3, 4],
|
|
1791
|
+
fontFamily: "heading",
|
|
1792
|
+
letterSpacing: "smallcaps",
|
|
1793
|
+
textTransform: "uppercase",
|
|
1794
|
+
color: "secondary"
|
|
1657
1795
|
}
|
|
1658
1796
|
};
|
|
1659
|
-
var
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1797
|
+
var SearchMenu = ({
|
|
1798
|
+
setExpanded
|
|
1799
|
+
}) => {
|
|
1800
|
+
const [value, setValue] = useState2("");
|
|
1801
|
+
const [resources, setResources] = useState2(RESOURCES);
|
|
1802
|
+
const destination = `/search?query=${value.trim()}`;
|
|
1803
|
+
useEffect3(() => {
|
|
1804
|
+
fetch("/resources.json").then((res) => res.json()).then((res) => {
|
|
1805
|
+
if (res.length === 3 && res.every((el) => el.label && Array.isArray(el.links))) {
|
|
1806
|
+
setResources(res);
|
|
1807
|
+
}
|
|
1808
|
+
}).catch(() => {
|
|
1809
|
+
setResources(RESOURCES);
|
|
1810
|
+
});
|
|
1811
|
+
}, []);
|
|
1812
|
+
useEffect3(() => {
|
|
1813
|
+
const handler = (e) => {
|
|
1814
|
+
if (e.key === "Escape") setExpanded(false);
|
|
1815
|
+
};
|
|
1816
|
+
document.addEventListener("keydown", handler);
|
|
1817
|
+
return () => document.removeEventListener("keydown", handler);
|
|
1818
|
+
}, [setExpanded]);
|
|
1819
|
+
return /* @__PURE__ */ React21.createElement(React21.Fragment, null, /* @__PURE__ */ React21.createElement(row_default, { columns: [6, 6, 10, 10] }, /* @__PURE__ */ React21.createElement(column_default, { start: 1, width: [6, 6, 10, 10] }, /* @__PURE__ */ React21.createElement(
|
|
1820
|
+
Flex2,
|
|
1821
|
+
{
|
|
1822
|
+
as: "form",
|
|
1823
|
+
onSubmit: (e) => {
|
|
1824
|
+
e.preventDefault();
|
|
1825
|
+
if (value.trim()) {
|
|
1826
|
+
window.location.href = destination;
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
sx: {
|
|
1830
|
+
flexDirection: ["column", "column", "row", "row"],
|
|
1831
|
+
gap: [0, 0, 7, 7],
|
|
1832
|
+
mt: ["1px", 0, 2, "29px"],
|
|
1833
|
+
position: "relative",
|
|
1834
|
+
borderStyle: "solid",
|
|
1835
|
+
borderColor: ["secondary", "secondary", "muted", "muted"],
|
|
1836
|
+
borderWidth: "0px",
|
|
1837
|
+
borderBottomWidth: "1px",
|
|
1838
|
+
"@media (hover: hover) and (pointer: fine)": {
|
|
1839
|
+
"&:hover #arrow": {
|
|
1840
|
+
opacity: 1
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
},
|
|
1845
|
+
/* @__PURE__ */ React21.createElement(
|
|
1846
|
+
Box13,
|
|
1847
|
+
__spreadProps(__spreadValues({
|
|
1848
|
+
as: "label"
|
|
1849
|
+
}, { htmlFor: "search" }), {
|
|
1850
|
+
sx: {
|
|
1851
|
+
color: "primary",
|
|
1852
|
+
fontSize: [6, 6, 7, 8],
|
|
1853
|
+
fontFamily: "heading",
|
|
1854
|
+
letterSpacing: "heading",
|
|
1855
|
+
py: [0, 3, 4, 5],
|
|
1856
|
+
textDecoration: "none",
|
|
1857
|
+
display: "block",
|
|
1858
|
+
transition: "color 0.15s"
|
|
1859
|
+
}
|
|
1860
|
+
}),
|
|
1861
|
+
"Search"
|
|
1862
|
+
),
|
|
1863
|
+
/* @__PURE__ */ React21.createElement(
|
|
1864
|
+
input_default,
|
|
1663
1865
|
{
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1866
|
+
autoFocus: true,
|
|
1867
|
+
id: "search",
|
|
1868
|
+
size: "xl",
|
|
1869
|
+
value,
|
|
1870
|
+
onChange: (e) => setValue(e.target.value),
|
|
1871
|
+
sx: {
|
|
1872
|
+
borderBottomWidth: 0,
|
|
1873
|
+
fontSize: [4, 6, 7, 8],
|
|
1874
|
+
flexShrink: 0
|
|
1875
|
+
},
|
|
1876
|
+
color: "secondary"
|
|
1670
1877
|
}
|
|
1671
|
-
)
|
|
1672
|
-
|
|
1878
|
+
),
|
|
1879
|
+
/* @__PURE__ */ React21.createElement(Link3, { href: destination }, /* @__PURE__ */ React21.createElement(
|
|
1880
|
+
HoverArrow2,
|
|
1881
|
+
{
|
|
1882
|
+
sx: {
|
|
1883
|
+
opacity: value ? 1 : [1, 1, 0, 0],
|
|
1884
|
+
pointerEvents: value ? "all" : "none"
|
|
1885
|
+
}
|
|
1886
|
+
}
|
|
1887
|
+
))
|
|
1888
|
+
))), /* @__PURE__ */ React21.createElement(
|
|
1889
|
+
row_default,
|
|
1890
|
+
{
|
|
1891
|
+
columns: [6, 6, 10, 10],
|
|
1892
|
+
sx: { display: ["none", "grid", "grid", "grid"] }
|
|
1893
|
+
},
|
|
1894
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: 1, width: 5, sx: { mt: [2, 2, 8, 8], mb: [1, 1, 4, 5] } }, /* @__PURE__ */ React21.createElement(Box13, { as: "h2", variant: "styles.h2", sx: { my: 0 } }, "Popular resources")),
|
|
1895
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: [1, 1, 2, 2], width: 3 }, /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[0].label), resources[0].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1896
|
+
button_default,
|
|
1897
|
+
{
|
|
1898
|
+
key: href,
|
|
1899
|
+
href,
|
|
1900
|
+
size: "md",
|
|
1901
|
+
sx: { mb: [1] },
|
|
1902
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1903
|
+
},
|
|
1904
|
+
label
|
|
1905
|
+
))),
|
|
1906
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: [4, 4, 5, 5], width: 3 }, /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[1].label), resources[1].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1907
|
+
button_default,
|
|
1908
|
+
{
|
|
1909
|
+
key: href,
|
|
1910
|
+
href,
|
|
1911
|
+
size: "md",
|
|
1912
|
+
sx: { mb: [1] },
|
|
1913
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1914
|
+
},
|
|
1915
|
+
label
|
|
1916
|
+
))),
|
|
1917
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: [1, 1, 8, 8], width: 3, sx: { mt: [0, 4, 0, 0] } }, /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[2].label), resources[2].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1918
|
+
button_default,
|
|
1919
|
+
{
|
|
1920
|
+
key: href,
|
|
1921
|
+
href,
|
|
1922
|
+
size: "md",
|
|
1923
|
+
sx: { mb: [1] },
|
|
1924
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1925
|
+
},
|
|
1926
|
+
label
|
|
1927
|
+
)))
|
|
1928
|
+
), /* @__PURE__ */ React21.createElement(
|
|
1929
|
+
row_default,
|
|
1930
|
+
{
|
|
1931
|
+
columns: [6, 6, 10, 10],
|
|
1932
|
+
sx: { display: ["grid", "none", "none", "none"] }
|
|
1933
|
+
},
|
|
1934
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: 1, width: 6 }, /* @__PURE__ */ React21.createElement(Box13, { as: "h2", variant: "styles.h3", sx: { my: 4 } }, "Popular resources"), /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[0].label), resources[0].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1935
|
+
button_default,
|
|
1936
|
+
{
|
|
1937
|
+
key: href,
|
|
1938
|
+
href,
|
|
1939
|
+
size: "xs",
|
|
1940
|
+
sx: { mb: [1] },
|
|
1941
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1942
|
+
},
|
|
1943
|
+
label
|
|
1944
|
+
))),
|
|
1945
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: 1, width: 6 }, /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[1].label), resources[1].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1946
|
+
button_default,
|
|
1947
|
+
{
|
|
1948
|
+
key: href,
|
|
1949
|
+
href,
|
|
1950
|
+
size: "xs",
|
|
1951
|
+
sx: { mb: [1] },
|
|
1952
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1953
|
+
},
|
|
1954
|
+
label
|
|
1955
|
+
))),
|
|
1956
|
+
/* @__PURE__ */ React21.createElement(column_default, { start: 1, width: 6 }, /* @__PURE__ */ React21.createElement(Box13, { sx: sx2.highlight }, resources[2].label), resources[2].links.map(({ label, href }) => /* @__PURE__ */ React21.createElement(
|
|
1957
|
+
button_default,
|
|
1958
|
+
{
|
|
1959
|
+
key: href,
|
|
1960
|
+
href,
|
|
1961
|
+
size: "xs",
|
|
1962
|
+
sx: { mb: [1] },
|
|
1963
|
+
suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
|
|
1964
|
+
},
|
|
1965
|
+
label
|
|
1966
|
+
)))
|
|
1967
|
+
));
|
|
1673
1968
|
};
|
|
1969
|
+
var search_menu_default = SearchMenu;
|
|
1970
|
+
|
|
1971
|
+
// src/header/header.tsx
|
|
1674
1972
|
var Header = ({ status, mode, nav, menuItems }) => {
|
|
1675
|
-
const [
|
|
1676
|
-
const
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
return /* @__PURE__ */ React17.createElement(
|
|
1973
|
+
const [menuExpanded, setMenuExpanded] = useState3(false);
|
|
1974
|
+
const [searchExpanded, setSearchExpanded] = useState3(false);
|
|
1975
|
+
const expanded = searchExpanded || menuExpanded;
|
|
1976
|
+
return /* @__PURE__ */ React22.createElement(
|
|
1680
1977
|
row_default,
|
|
1681
1978
|
{
|
|
1682
1979
|
sx: {
|
|
@@ -1684,20 +1981,20 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1684
1981
|
pb: [3]
|
|
1685
1982
|
}
|
|
1686
1983
|
},
|
|
1687
|
-
/* @__PURE__ */
|
|
1688
|
-
|
|
1984
|
+
/* @__PURE__ */ React22.createElement(column_default, { start: [1], width: [2] }, /* @__PURE__ */ React22.createElement(
|
|
1985
|
+
Box14,
|
|
1689
1986
|
{
|
|
1690
1987
|
sx: { pointerEvents: "all", display: "block", width: "fit-content" }
|
|
1691
1988
|
},
|
|
1692
|
-
(mode
|
|
1693
|
-
|
|
1989
|
+
(mode == "homepage" || mode == "local") && /* @__PURE__ */ React22.createElement(NextLink3, { href: "/", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React22.createElement(
|
|
1990
|
+
Link4,
|
|
1694
1991
|
{
|
|
1695
1992
|
"aria-label": "CarbonPlan Homepage",
|
|
1696
1993
|
sx: {
|
|
1697
1994
|
display: "block"
|
|
1698
1995
|
}
|
|
1699
1996
|
},
|
|
1700
|
-
/* @__PURE__ */
|
|
1997
|
+
/* @__PURE__ */ React22.createElement(
|
|
1701
1998
|
logo_default,
|
|
1702
1999
|
{
|
|
1703
2000
|
id: "logo",
|
|
@@ -1708,17 +2005,17 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1708
2005
|
}
|
|
1709
2006
|
)
|
|
1710
2007
|
)),
|
|
1711
|
-
(mode == null || mode
|
|
1712
|
-
|
|
2008
|
+
(mode == null || mode == "remote") && /* @__PURE__ */ React22.createElement(
|
|
2009
|
+
Link4,
|
|
1713
2010
|
{
|
|
1714
2011
|
href: "https://carbonplan.org",
|
|
1715
2012
|
"aria-label": "CarbonPlan Homepage",
|
|
1716
2013
|
sx: { display: "block" }
|
|
1717
2014
|
},
|
|
1718
|
-
/* @__PURE__ */
|
|
2015
|
+
/* @__PURE__ */ React22.createElement(logo_default, { sx: { cursor: "pointer", color: "primary" } })
|
|
1719
2016
|
)
|
|
1720
2017
|
)),
|
|
1721
|
-
/* @__PURE__ */
|
|
2018
|
+
/* @__PURE__ */ React22.createElement(
|
|
1722
2019
|
column_default,
|
|
1723
2020
|
{
|
|
1724
2021
|
start: [4, 9],
|
|
@@ -1729,8 +2026,8 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1729
2026
|
alignItems: "center"
|
|
1730
2027
|
}
|
|
1731
2028
|
},
|
|
1732
|
-
/* @__PURE__ */
|
|
1733
|
-
|
|
2029
|
+
/* @__PURE__ */ React22.createElement(
|
|
2030
|
+
Box14,
|
|
1734
2031
|
{
|
|
1735
2032
|
sx: {
|
|
1736
2033
|
fontSize: [1, 2, 3],
|
|
@@ -1741,15 +2038,15 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1741
2038
|
status ? `(${status})` : ""
|
|
1742
2039
|
)
|
|
1743
2040
|
),
|
|
1744
|
-
/* @__PURE__ */
|
|
2041
|
+
/* @__PURE__ */ React22.createElement(
|
|
1745
2042
|
column_default,
|
|
1746
2043
|
{
|
|
1747
2044
|
start: [status ? 6 : 4, 6, 11, 11],
|
|
1748
2045
|
width: [status ? 1 : 3, 3, 2, 2],
|
|
1749
2046
|
sx: { zIndex: 5e3 }
|
|
1750
2047
|
},
|
|
1751
|
-
/* @__PURE__ */
|
|
1752
|
-
|
|
2048
|
+
/* @__PURE__ */ React22.createElement(Flex3, { sx: { pointerEvents: "all", justifyContent: "flex-end" } }, /* @__PURE__ */ React22.createElement(
|
|
2049
|
+
Box14,
|
|
1753
2050
|
{
|
|
1754
2051
|
sx: {
|
|
1755
2052
|
display: [status ? "none" : "flex", "flex", "flex", "flex"],
|
|
@@ -1762,20 +2059,32 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1762
2059
|
}
|
|
1763
2060
|
},
|
|
1764
2061
|
menuItems
|
|
1765
|
-
), /* @__PURE__ */
|
|
2062
|
+
), /* @__PURE__ */ React22.createElement(Flex3, { sx: { gap: 4 } }, /* @__PURE__ */ React22.createElement(
|
|
2063
|
+
search_default,
|
|
2064
|
+
{
|
|
2065
|
+
value: searchExpanded,
|
|
2066
|
+
onClick: () => {
|
|
2067
|
+
setSearchExpanded(!searchExpanded);
|
|
2068
|
+
!searchExpanded && setMenuExpanded(false);
|
|
2069
|
+
}
|
|
2070
|
+
}
|
|
2071
|
+
), /* @__PURE__ */ React22.createElement(
|
|
1766
2072
|
menu_default,
|
|
1767
2073
|
{
|
|
1768
2074
|
sx: {
|
|
1769
2075
|
flexShrink: 0,
|
|
1770
2076
|
mr: ["-2px"]
|
|
1771
2077
|
},
|
|
1772
|
-
value:
|
|
1773
|
-
onClick:
|
|
2078
|
+
value: menuExpanded,
|
|
2079
|
+
onClick: () => {
|
|
2080
|
+
setMenuExpanded(!menuExpanded);
|
|
2081
|
+
!menuExpanded && setSearchExpanded(false);
|
|
2082
|
+
}
|
|
1774
2083
|
}
|
|
1775
|
-
))
|
|
2084
|
+
)))
|
|
1776
2085
|
),
|
|
1777
|
-
/* @__PURE__ */
|
|
1778
|
-
|
|
2086
|
+
/* @__PURE__ */ React22.createElement(
|
|
2087
|
+
Box14,
|
|
1779
2088
|
{
|
|
1780
2089
|
sx: {
|
|
1781
2090
|
opacity: expanded ? 1 : 0,
|
|
@@ -1793,42 +2102,31 @@ var Header = ({ status, mode, nav, menuItems }) => {
|
|
|
1793
2102
|
transition: "opacity 0.25s"
|
|
1794
2103
|
}
|
|
1795
2104
|
},
|
|
1796
|
-
/* @__PURE__ */
|
|
1797
|
-
|
|
2105
|
+
/* @__PURE__ */ React22.createElement(Container, null, /* @__PURE__ */ React22.createElement(row_default, null, menuExpanded && /* @__PURE__ */ React22.createElement(column_default, { start: [2, 4, 7, 7], width: [5, 4, 5, 5] }, /* @__PURE__ */ React22.createElement(Box14, { as: "nav", sx: { mt: [5, 5, 5, 6] } }, /* @__PURE__ */ React22.createElement(
|
|
2106
|
+
navigation_menu_default,
|
|
1798
2107
|
{
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
},
|
|
1805
|
-
/* @__PURE__ */ React17.createElement(
|
|
1806
|
-
NavGroup,
|
|
1807
|
-
{
|
|
1808
|
-
links,
|
|
1809
|
-
nav,
|
|
1810
|
-
mode,
|
|
1811
|
-
setExpanded
|
|
1812
|
-
}
|
|
1813
|
-
)
|
|
1814
|
-
))))
|
|
2108
|
+
nav,
|
|
2109
|
+
mode,
|
|
2110
|
+
setExpanded: setMenuExpanded
|
|
2111
|
+
}
|
|
2112
|
+
))), searchExpanded && !menuExpanded && /* @__PURE__ */ React22.createElement(column_default, { start: [1, 2, 2, 2], width: [6, 6, 10, 10] }, /* @__PURE__ */ React22.createElement(search_menu_default, { setExpanded: setSearchExpanded }))))
|
|
1815
2113
|
)
|
|
1816
2114
|
);
|
|
1817
2115
|
};
|
|
1818
2116
|
var header_default = Header;
|
|
1819
2117
|
|
|
1820
2118
|
// src/footer.tsx
|
|
1821
|
-
import
|
|
1822
|
-
import { Box as
|
|
1823
|
-
import { default as
|
|
2119
|
+
import React24, { useState as useState4, useEffect as useEffect4 } from "react";
|
|
2120
|
+
import { Box as Box16, Flex as Flex4, Link as Link5 } from "theme-ui";
|
|
2121
|
+
import { default as NextLink4 } from "next/link";
|
|
1824
2122
|
|
|
1825
2123
|
// src/monogram.tsx
|
|
1826
|
-
import
|
|
1827
|
-
import { Box as
|
|
2124
|
+
import React23 from "react";
|
|
2125
|
+
import { Box as Box15 } from "theme-ui";
|
|
1828
2126
|
var Monogram = (_a) => {
|
|
1829
2127
|
var props = __objRest(_a, []);
|
|
1830
|
-
return /* @__PURE__ */
|
|
1831
|
-
|
|
2128
|
+
return /* @__PURE__ */ React23.createElement(
|
|
2129
|
+
Box15,
|
|
1832
2130
|
__spreadValues(__spreadValues({
|
|
1833
2131
|
as: "svg"
|
|
1834
2132
|
}, {
|
|
@@ -1837,21 +2135,21 @@ var Monogram = (_a) => {
|
|
|
1837
2135
|
fill: "currentColor",
|
|
1838
2136
|
viewBox: "0 0 32 32"
|
|
1839
2137
|
}), props),
|
|
1840
|
-
/* @__PURE__ */
|
|
1841
|
-
/* @__PURE__ */
|
|
1842
|
-
/* @__PURE__ */
|
|
2138
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M21.9395,14.9395 L17.5005,19.3785 L17.5005,7.0005 L14.5005,7.0005 L14.5005,19.3785 L10.0605,14.9395 L7.9395,17.0605 L14.9395,24.0605 C15.2325,24.3535 15.6165,24.5005 16.0005,24.5005 C16.3835,24.5005 16.7675,24.3535 17.0605,24.0605 L24.0605,17.0605 L21.9395,14.9395 Z" }),
|
|
2139
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M27.5986,4 L22.8966,4 C26.5556,6.303 28.9996,10.366 28.9996,15 C28.9996,20.4 25.6896,25.039 20.9926,27 L26.5586,27 C29.8886,24.068 31.9996,19.785 31.9996,15 C31.9996,10.734 30.3196,6.868 27.5986,4" }),
|
|
2140
|
+
/* @__PURE__ */ React23.createElement("path", { d: "M3,15 C3,10.366 5.444,6.303 9.104,4 L4.401,4 C1.68,6.868 0,10.734 0,15 C0,19.785 2.112,24.068 5.441,27 L11.008,27 C6.311,25.039 3,20.4 3,15" })
|
|
1843
2141
|
);
|
|
1844
2142
|
};
|
|
1845
2143
|
var monogram_default = Monogram;
|
|
1846
2144
|
|
|
1847
2145
|
// src/footer.tsx
|
|
1848
2146
|
var Footer = () => {
|
|
1849
|
-
const [year, setYear] =
|
|
1850
|
-
|
|
2147
|
+
const [year, setYear] = useState4(null);
|
|
2148
|
+
useEffect4(() => {
|
|
1851
2149
|
setYear((/* @__PURE__ */ new Date()).getFullYear());
|
|
1852
2150
|
}, []);
|
|
1853
|
-
return /* @__PURE__ */
|
|
1854
|
-
|
|
2151
|
+
return /* @__PURE__ */ React24.createElement(
|
|
2152
|
+
Box16,
|
|
1855
2153
|
{
|
|
1856
2154
|
sx: {
|
|
1857
2155
|
mt: [7, 7, 7, 8],
|
|
@@ -1859,8 +2157,8 @@ var Footer = () => {
|
|
|
1859
2157
|
pb: [2, 1, 0, 0]
|
|
1860
2158
|
}
|
|
1861
2159
|
},
|
|
1862
|
-
/* @__PURE__ */
|
|
1863
|
-
|
|
2160
|
+
/* @__PURE__ */ React24.createElement(row_default, { sx: { mb: [0, 0, 4, 5] } }, /* @__PURE__ */ React24.createElement(column_default, { start: [1, 2], width: [3, 3] }, /* @__PURE__ */ React24.createElement(Box16, null, /* @__PURE__ */ React24.createElement(
|
|
2161
|
+
Box16,
|
|
1864
2162
|
{
|
|
1865
2163
|
sx: {
|
|
1866
2164
|
fontSize: [2, 2, 2, 3],
|
|
@@ -1870,8 +2168,8 @@ var Footer = () => {
|
|
|
1870
2168
|
}
|
|
1871
2169
|
},
|
|
1872
2170
|
"EMAIL"
|
|
1873
|
-
), /* @__PURE__ */
|
|
1874
|
-
|
|
2171
|
+
), /* @__PURE__ */ React24.createElement(
|
|
2172
|
+
Link5,
|
|
1875
2173
|
{
|
|
1876
2174
|
href: "mailto:hello@carbonplan.org",
|
|
1877
2175
|
sx: {
|
|
@@ -1880,7 +2178,7 @@ var Footer = () => {
|
|
|
1880
2178
|
}
|
|
1881
2179
|
},
|
|
1882
2180
|
"hello@carbonplan.org"
|
|
1883
|
-
))), /* @__PURE__ */
|
|
2181
|
+
))), /* @__PURE__ */ React24.createElement(
|
|
1884
2182
|
column_default,
|
|
1885
2183
|
{
|
|
1886
2184
|
start: [5],
|
|
@@ -1892,9 +2190,9 @@ var Footer = () => {
|
|
|
1892
2190
|
justifyContent: ["center"]
|
|
1893
2191
|
}
|
|
1894
2192
|
},
|
|
1895
|
-
/* @__PURE__ */
|
|
1896
|
-
), /* @__PURE__ */
|
|
1897
|
-
|
|
2193
|
+
/* @__PURE__ */ React24.createElement(monogram_default, { sx: { mt: ["-4px"], width: "60px", height: "60px" } })
|
|
2194
|
+
), /* @__PURE__ */ React24.createElement(column_default, { start: [1, 5, 5, 5], width: [3, 3], sx: { mt: [3, 0, 0, 0] } }, /* @__PURE__ */ React24.createElement(Box16, null, /* @__PURE__ */ React24.createElement(
|
|
2195
|
+
Box16,
|
|
1898
2196
|
{
|
|
1899
2197
|
sx: {
|
|
1900
2198
|
fontSize: [2, 2, 2, 3],
|
|
@@ -1904,8 +2202,8 @@ var Footer = () => {
|
|
|
1904
2202
|
}
|
|
1905
2203
|
},
|
|
1906
2204
|
"NEWSLETTER"
|
|
1907
|
-
), /* @__PURE__ */
|
|
1908
|
-
|
|
2205
|
+
), /* @__PURE__ */ React24.createElement(
|
|
2206
|
+
Link5,
|
|
1909
2207
|
{
|
|
1910
2208
|
href: "https://carbonplan.org/newsletter",
|
|
1911
2209
|
sx: {
|
|
@@ -1914,15 +2212,15 @@ var Footer = () => {
|
|
|
1914
2212
|
}
|
|
1915
2213
|
},
|
|
1916
2214
|
"Subscribe"
|
|
1917
|
-
))), /* @__PURE__ */
|
|
2215
|
+
))), /* @__PURE__ */ React24.createElement(
|
|
1918
2216
|
column_default,
|
|
1919
2217
|
{
|
|
1920
2218
|
start: [1, 9],
|
|
1921
2219
|
width: [5, 4, 3, 3],
|
|
1922
2220
|
sx: { mt: ["42px", "42px", 0, 0], mb: [3, 3, 0, 0] }
|
|
1923
2221
|
},
|
|
1924
|
-
/* @__PURE__ */
|
|
1925
|
-
|
|
2222
|
+
/* @__PURE__ */ React24.createElement(Box16, null, /* @__PURE__ */ React24.createElement(
|
|
2223
|
+
Box16,
|
|
1926
2224
|
{
|
|
1927
2225
|
sx: {
|
|
1928
2226
|
fontSize: [2, 2, 2, 3],
|
|
@@ -1933,7 +2231,7 @@ var Footer = () => {
|
|
|
1933
2231
|
"CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status."
|
|
1934
2232
|
))
|
|
1935
2233
|
)),
|
|
1936
|
-
/* @__PURE__ */
|
|
2234
|
+
/* @__PURE__ */ React24.createElement(row_default, { sx: { mb: ["2px"], mt: [5, 5, 4] } }, /* @__PURE__ */ React24.createElement(
|
|
1937
2235
|
column_default,
|
|
1938
2236
|
{
|
|
1939
2237
|
start: [1, 1, 2, 2],
|
|
@@ -1943,8 +2241,8 @@ var Footer = () => {
|
|
|
1943
2241
|
alignItems: ["flex-start", "flex-start", "flex-end"]
|
|
1944
2242
|
}
|
|
1945
2243
|
},
|
|
1946
|
-
/* @__PURE__ */
|
|
1947
|
-
|
|
2244
|
+
/* @__PURE__ */ React24.createElement(
|
|
2245
|
+
Box16,
|
|
1948
2246
|
{
|
|
1949
2247
|
sx: {
|
|
1950
2248
|
bottom: "0px",
|
|
@@ -1956,8 +2254,8 @@ var Footer = () => {
|
|
|
1956
2254
|
pt: [2]
|
|
1957
2255
|
}
|
|
1958
2256
|
},
|
|
1959
|
-
/* @__PURE__ */
|
|
1960
|
-
|
|
2257
|
+
/* @__PURE__ */ React24.createElement(
|
|
2258
|
+
Box16,
|
|
1961
2259
|
{
|
|
1962
2260
|
sx: {
|
|
1963
2261
|
color: "secondary",
|
|
@@ -1966,20 +2264,20 @@ var Footer = () => {
|
|
|
1966
2264
|
letterSpacing: "mono"
|
|
1967
2265
|
}
|
|
1968
2266
|
},
|
|
1969
|
-
/* @__PURE__ */
|
|
1970
|
-
|
|
2267
|
+
/* @__PURE__ */ React24.createElement(
|
|
2268
|
+
Flex4,
|
|
1971
2269
|
{
|
|
1972
2270
|
sx: {
|
|
1973
2271
|
flexDirection: ["column", "column", "row", "row"],
|
|
1974
2272
|
gap: [0, 0, "10px", "12px"]
|
|
1975
2273
|
}
|
|
1976
2274
|
},
|
|
1977
|
-
/* @__PURE__ */
|
|
1978
|
-
/* @__PURE__ */
|
|
2275
|
+
/* @__PURE__ */ React24.createElement(Box16, null, "(c) ", year),
|
|
2276
|
+
/* @__PURE__ */ React24.createElement(Box16, null, "CARBONPLAN")
|
|
1979
2277
|
)
|
|
1980
2278
|
)
|
|
1981
2279
|
)
|
|
1982
|
-
), /* @__PURE__ */
|
|
2280
|
+
), /* @__PURE__ */ React24.createElement(
|
|
1983
2281
|
column_default,
|
|
1984
2282
|
{
|
|
1985
2283
|
start: [4, 3, 5, 5],
|
|
@@ -1990,8 +2288,8 @@ var Footer = () => {
|
|
|
1990
2288
|
mt: [0, 0, 0, 0]
|
|
1991
2289
|
}
|
|
1992
2290
|
},
|
|
1993
|
-
/* @__PURE__ */
|
|
1994
|
-
|
|
2291
|
+
/* @__PURE__ */ React24.createElement(
|
|
2292
|
+
Box16,
|
|
1995
2293
|
{
|
|
1996
2294
|
sx: {
|
|
1997
2295
|
bottom: "0px",
|
|
@@ -2002,8 +2300,8 @@ var Footer = () => {
|
|
|
2002
2300
|
pt: [2]
|
|
2003
2301
|
}
|
|
2004
2302
|
},
|
|
2005
|
-
/* @__PURE__ */
|
|
2006
|
-
|
|
2303
|
+
/* @__PURE__ */ React24.createElement(
|
|
2304
|
+
Flex4,
|
|
2007
2305
|
{
|
|
2008
2306
|
sx: {
|
|
2009
2307
|
color: "secondary",
|
|
@@ -2014,8 +2312,8 @@ var Footer = () => {
|
|
|
2014
2312
|
gap: [0, 0, "10px", "12px"]
|
|
2015
2313
|
}
|
|
2016
2314
|
},
|
|
2017
|
-
/* @__PURE__ */
|
|
2018
|
-
|
|
2315
|
+
/* @__PURE__ */ React24.createElement(NextLink4, { href: "/terms", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React24.createElement(
|
|
2316
|
+
Box16,
|
|
2019
2317
|
{
|
|
2020
2318
|
as: "a",
|
|
2021
2319
|
sx: {
|
|
@@ -2027,9 +2325,9 @@ var Footer = () => {
|
|
|
2027
2325
|
},
|
|
2028
2326
|
"TERMS OF USE"
|
|
2029
2327
|
)),
|
|
2030
|
-
/* @__PURE__ */
|
|
2031
|
-
/* @__PURE__ */
|
|
2032
|
-
|
|
2328
|
+
/* @__PURE__ */ React24.createElement(Box16, { sx: { display: ["none", "none", "initial", "initial"] } }, " / "),
|
|
2329
|
+
/* @__PURE__ */ React24.createElement(NextLink4, { href: "/privacy", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React24.createElement(
|
|
2330
|
+
Box16,
|
|
2033
2331
|
{
|
|
2034
2332
|
as: "a",
|
|
2035
2333
|
sx: {
|
|
@@ -2043,14 +2341,14 @@ var Footer = () => {
|
|
|
2043
2341
|
))
|
|
2044
2342
|
)
|
|
2045
2343
|
)
|
|
2046
|
-
), /* @__PURE__ */
|
|
2344
|
+
), /* @__PURE__ */ React24.createElement(
|
|
2047
2345
|
column_default,
|
|
2048
2346
|
{
|
|
2049
2347
|
start: [5, 7, 9, 9],
|
|
2050
2348
|
width: [2, 2, 3, 3],
|
|
2051
2349
|
sx: { display: ["none", "initial", "initial", "initial"] }
|
|
2052
2350
|
},
|
|
2053
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ React24.createElement(
|
|
2054
2352
|
monogram_default,
|
|
2055
2353
|
{
|
|
2056
2354
|
sx: {
|
|
@@ -2067,17 +2365,17 @@ var Footer = () => {
|
|
|
2067
2365
|
var footer_default = Footer;
|
|
2068
2366
|
|
|
2069
2367
|
// src/dimmer.tsx
|
|
2070
|
-
import
|
|
2368
|
+
import React25 from "react";
|
|
2071
2369
|
import { IconButton as IconButton2, useColorMode } from "theme-ui";
|
|
2072
2370
|
import { useCallback } from "react";
|
|
2073
2371
|
import { Sun } from "@carbonplan/icons";
|
|
2074
2372
|
var Dimmer = (_a) => {
|
|
2075
|
-
var _b = _a, { sx:
|
|
2373
|
+
var _b = _a, { sx: sx4 = {} } = _b, props = __objRest(_b, ["sx"]);
|
|
2076
2374
|
const [colorMode, setColorMode] = useColorMode();
|
|
2077
2375
|
const toggle = useCallback(() => {
|
|
2078
2376
|
setColorMode(colorMode === "light" ? "dark" : "light");
|
|
2079
2377
|
}, [colorMode]);
|
|
2080
|
-
return /* @__PURE__ */
|
|
2378
|
+
return /* @__PURE__ */ React25.createElement(
|
|
2081
2379
|
IconButton2,
|
|
2082
2380
|
__spreadValues({
|
|
2083
2381
|
"aria-label": "Toggle dark mode",
|
|
@@ -2089,9 +2387,9 @@ var Dimmer = (_a) => {
|
|
|
2089
2387
|
display: "inline-block",
|
|
2090
2388
|
cursor: "pointer",
|
|
2091
2389
|
color: "secondary"
|
|
2092
|
-
},
|
|
2390
|
+
}, sx4)
|
|
2093
2391
|
}, props),
|
|
2094
|
-
/* @__PURE__ */
|
|
2392
|
+
/* @__PURE__ */ React25.createElement(
|
|
2095
2393
|
Sun,
|
|
2096
2394
|
{
|
|
2097
2395
|
sx: {
|
|
@@ -2110,13 +2408,13 @@ var Dimmer = (_a) => {
|
|
|
2110
2408
|
var dimmer_default = Dimmer;
|
|
2111
2409
|
|
|
2112
2410
|
// src/metadata.tsx
|
|
2113
|
-
import
|
|
2114
|
-
import { Box as
|
|
2115
|
-
import { useState as
|
|
2411
|
+
import React27 from "react";
|
|
2412
|
+
import { Box as Box18, Text as Text2 } from "theme-ui";
|
|
2413
|
+
import { useState as useState5, useEffect as useEffect5 } from "react";
|
|
2116
2414
|
|
|
2117
2415
|
// src/gitsha.tsx
|
|
2118
|
-
import
|
|
2119
|
-
import { Box as
|
|
2416
|
+
import React26 from "react";
|
|
2417
|
+
import { Box as Box17, Text, Link as Link6, useThemeUI as useThemeUI2 } from "theme-ui";
|
|
2120
2418
|
var GitSha = () => {
|
|
2121
2419
|
var _a;
|
|
2122
2420
|
const sha = process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA;
|
|
@@ -2127,8 +2425,8 @@ var GitSha = () => {
|
|
|
2127
2425
|
if (sha && owner && slug) {
|
|
2128
2426
|
const shortSha = sha.substring(0, 7);
|
|
2129
2427
|
const href = "https://github.com/" + owner + "/" + slug + "/tree/" + sha;
|
|
2130
|
-
return /* @__PURE__ */
|
|
2131
|
-
|
|
2428
|
+
return /* @__PURE__ */ React26.createElement(Box17, { sx: { display: "inline-block", width: "87px" } }, /* @__PURE__ */ React26.createElement(Separator, { color: typeof color === "string" ? color : void 0 }), /* @__PURE__ */ React26.createElement(
|
|
2429
|
+
Link6,
|
|
2132
2430
|
{
|
|
2133
2431
|
href,
|
|
2134
2432
|
sx: {
|
|
@@ -2146,7 +2444,7 @@ var GitSha = () => {
|
|
|
2146
2444
|
shortSha
|
|
2147
2445
|
));
|
|
2148
2446
|
} else {
|
|
2149
|
-
return /* @__PURE__ */
|
|
2447
|
+
return /* @__PURE__ */ React26.createElement(Box17, { sx: { display: "inline-block", width: "87px" } }, /* @__PURE__ */ React26.createElement(Separator, { color: typeof color === "string" ? color : void 0 }), /* @__PURE__ */ React26.createElement(
|
|
2150
2448
|
Text,
|
|
2151
2449
|
{
|
|
2152
2450
|
sx: {
|
|
@@ -2165,14 +2463,14 @@ var GitSha = () => {
|
|
|
2165
2463
|
}
|
|
2166
2464
|
};
|
|
2167
2465
|
var Separator = ({ color = "secondary" }) => {
|
|
2168
|
-
return /* @__PURE__ */
|
|
2466
|
+
return /* @__PURE__ */ React26.createElement("svg", { fill: color, opacity: "0.8", viewBox: "0 0 24 24", width: "24", height: "24" }, /* @__PURE__ */ React26.createElement("circle", { r: 5, cx: 19, cy: 19 }));
|
|
2169
2467
|
};
|
|
2170
2468
|
var gitsha_default = GitSha;
|
|
2171
2469
|
|
|
2172
2470
|
// src/metadata.tsx
|
|
2173
2471
|
var Value = ({ mode }) => {
|
|
2174
|
-
const [display, setDisplay] =
|
|
2175
|
-
|
|
2472
|
+
const [display, setDisplay] = useState5(init(mode));
|
|
2473
|
+
useEffect5(() => {
|
|
2176
2474
|
if (mode === "mouse") {
|
|
2177
2475
|
const setFromEvent = (e) => {
|
|
2178
2476
|
const x = format(e.clientX, 4);
|
|
@@ -2195,7 +2493,7 @@ var Value = ({ mode }) => {
|
|
|
2195
2493
|
};
|
|
2196
2494
|
}
|
|
2197
2495
|
}, []);
|
|
2198
|
-
return /* @__PURE__ */
|
|
2496
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2199
2497
|
Text2,
|
|
2200
2498
|
{
|
|
2201
2499
|
sx: {
|
|
@@ -2213,8 +2511,8 @@ var Value = ({ mode }) => {
|
|
|
2213
2511
|
);
|
|
2214
2512
|
};
|
|
2215
2513
|
var Metadata = ({ mode }) => {
|
|
2216
|
-
return /* @__PURE__ */
|
|
2217
|
-
|
|
2514
|
+
return /* @__PURE__ */ React27.createElement(
|
|
2515
|
+
Box18,
|
|
2218
2516
|
{
|
|
2219
2517
|
sx: {
|
|
2220
2518
|
userSelect: "none",
|
|
@@ -2226,8 +2524,8 @@ var Metadata = ({ mode }) => {
|
|
|
2226
2524
|
display: ["none", "none", "initial"]
|
|
2227
2525
|
}
|
|
2228
2526
|
},
|
|
2229
|
-
/* @__PURE__ */
|
|
2230
|
-
/* @__PURE__ */
|
|
2527
|
+
/* @__PURE__ */ React27.createElement(Value, { mode }),
|
|
2528
|
+
/* @__PURE__ */ React27.createElement(gitsha_default, null)
|
|
2231
2529
|
);
|
|
2232
2530
|
};
|
|
2233
2531
|
function init(mode) {
|
|
@@ -2248,8 +2546,8 @@ function scrollFraction(window2, document2) {
|
|
|
2248
2546
|
var metadata_default = Metadata;
|
|
2249
2547
|
|
|
2250
2548
|
// src/fade-in.tsx
|
|
2251
|
-
import
|
|
2252
|
-
import { Box as
|
|
2549
|
+
import React28 from "react";
|
|
2550
|
+
import { Box as Box19 } from "theme-ui";
|
|
2253
2551
|
import { keyframes } from "@emotion/react";
|
|
2254
2552
|
var fade = keyframes({
|
|
2255
2553
|
from: {
|
|
@@ -2269,8 +2567,8 @@ var FadeIn = (_a) => {
|
|
|
2269
2567
|
"delay",
|
|
2270
2568
|
"children"
|
|
2271
2569
|
]);
|
|
2272
|
-
return /* @__PURE__ */
|
|
2273
|
-
|
|
2570
|
+
return /* @__PURE__ */ React28.createElement(
|
|
2571
|
+
Box19,
|
|
2274
2572
|
__spreadProps(__spreadValues({}, delegated), {
|
|
2275
2573
|
sx: {
|
|
2276
2574
|
animationDuration: duration + "ms",
|
|
@@ -2286,7 +2584,7 @@ var FadeIn = (_a) => {
|
|
|
2286
2584
|
var fade_in_default = FadeIn;
|
|
2287
2585
|
|
|
2288
2586
|
// src/scrollbar.tsx
|
|
2289
|
-
import { useEffect as
|
|
2587
|
+
import { useEffect as useEffect6 } from "react";
|
|
2290
2588
|
|
|
2291
2589
|
// src/utils/get-scrollbar-width.ts
|
|
2292
2590
|
var getScrollbarWidth = (document2) => {
|
|
@@ -2306,7 +2604,7 @@ var get_scrollbar_width_default = getScrollbarWidth;
|
|
|
2306
2604
|
|
|
2307
2605
|
// src/scrollbar.tsx
|
|
2308
2606
|
var Scrollbar = () => {
|
|
2309
|
-
|
|
2607
|
+
useEffect6(() => {
|
|
2310
2608
|
if (typeof document !== "undefined") {
|
|
2311
2609
|
const delta = get_scrollbar_width_default(document);
|
|
2312
2610
|
if (delta > 0) {
|
|
@@ -2320,11 +2618,11 @@ var Scrollbar = () => {
|
|
|
2320
2618
|
var scrollbar_default = Scrollbar;
|
|
2321
2619
|
|
|
2322
2620
|
// src/guide.tsx
|
|
2323
|
-
import
|
|
2324
|
-
import { Box as
|
|
2621
|
+
import React29, { useState as useState6, useEffect as useEffect7 } from "react";
|
|
2622
|
+
import { Box as Box20, Container as Container2 } from "theme-ui";
|
|
2325
2623
|
var Guide = ({ color = "muted" }) => {
|
|
2326
|
-
const [display, setDisplay] =
|
|
2327
|
-
|
|
2624
|
+
const [display, setDisplay] = useState6(false);
|
|
2625
|
+
useEffect7(() => {
|
|
2328
2626
|
function handler(event) {
|
|
2329
2627
|
const { key, metaKey } = event;
|
|
2330
2628
|
if (key === ";" && metaKey) {
|
|
@@ -2336,8 +2634,8 @@ var Guide = ({ color = "muted" }) => {
|
|
|
2336
2634
|
document.removeEventListener("keydown", handler);
|
|
2337
2635
|
};
|
|
2338
2636
|
}, []);
|
|
2339
|
-
return /* @__PURE__ */
|
|
2340
|
-
|
|
2637
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2638
|
+
Box20,
|
|
2341
2639
|
{
|
|
2342
2640
|
sx: {
|
|
2343
2641
|
position: "fixed",
|
|
@@ -2349,13 +2647,13 @@ var Guide = ({ color = "muted" }) => {
|
|
|
2349
2647
|
display: display ? "initial" : "none"
|
|
2350
2648
|
}
|
|
2351
2649
|
},
|
|
2352
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ React29.createElement(Container2, null, /* @__PURE__ */ React29.createElement(Box20, { sx: { display: ["none", "none", "initial", "initial"] } }, /* @__PURE__ */ React29.createElement(
|
|
2353
2651
|
GuideColumns,
|
|
2354
2652
|
{
|
|
2355
2653
|
indices: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
|
|
2356
2654
|
color
|
|
2357
2655
|
}
|
|
2358
|
-
)), /* @__PURE__ */
|
|
2656
|
+
)), /* @__PURE__ */ React29.createElement(Box20, { sx: { display: ["none", "initial", "none", "none"] } }, /* @__PURE__ */ React29.createElement(GuideColumns, { indices: [1, 2, 3, 4, 5, 6, 7, 8], color })), /* @__PURE__ */ React29.createElement(Box20, { sx: { display: ["initial", "none", "none", "none"] } }, /* @__PURE__ */ React29.createElement(GuideColumns, { indices: [1, 2, 3, 4, 5, 6], color })))
|
|
2359
2657
|
);
|
|
2360
2658
|
};
|
|
2361
2659
|
var colorCycle = [
|
|
@@ -2372,7 +2670,7 @@ function GuideColumns({
|
|
|
2372
2670
|
indices,
|
|
2373
2671
|
color
|
|
2374
2672
|
}) {
|
|
2375
|
-
const
|
|
2673
|
+
const sx4 = {
|
|
2376
2674
|
outerGuideColumn: {
|
|
2377
2675
|
borderStyle: "solid",
|
|
2378
2676
|
borderWidth: "0px",
|
|
@@ -2388,8 +2686,8 @@ function GuideColumns({
|
|
|
2388
2686
|
opacity: color === "teal" ? 0.4 : 1
|
|
2389
2687
|
}
|
|
2390
2688
|
};
|
|
2391
|
-
return /* @__PURE__ */
|
|
2392
|
-
return /* @__PURE__ */
|
|
2689
|
+
return /* @__PURE__ */ React29.createElement(row_default, null, indices.map((i) => {
|
|
2690
|
+
return /* @__PURE__ */ React29.createElement(
|
|
2393
2691
|
column_default,
|
|
2394
2692
|
{
|
|
2395
2693
|
key: i,
|
|
@@ -2400,10 +2698,10 @@ function GuideColumns({
|
|
|
2400
2698
|
sx: __spreadValues({
|
|
2401
2699
|
bg: color === "teal" ? "teal" : "transparent",
|
|
2402
2700
|
height: "100vh"
|
|
2403
|
-
},
|
|
2701
|
+
}, sx4.innerGuideColumn)
|
|
2404
2702
|
},
|
|
2405
|
-
/* @__PURE__ */
|
|
2406
|
-
|
|
2703
|
+
/* @__PURE__ */ React29.createElement(
|
|
2704
|
+
Box20,
|
|
2407
2705
|
{
|
|
2408
2706
|
sx: __spreadValues({
|
|
2409
2707
|
mx: ["12px", 3, 3, 4],
|
|
@@ -2411,7 +2709,7 @@ function GuideColumns({
|
|
|
2411
2709
|
height: "100%",
|
|
2412
2710
|
borderLeftColor: color === "rainbow" ? colorCycle[i % 8] : "muted",
|
|
2413
2711
|
borderRightColor: color === "rainbow" ? colorCycle[i % 8] : "muted"
|
|
2414
|
-
},
|
|
2712
|
+
}, sx4.outerGuideColumn)
|
|
2415
2713
|
}
|
|
2416
2714
|
)
|
|
2417
2715
|
);
|
|
@@ -2420,96 +2718,9 @@ function GuideColumns({
|
|
|
2420
2718
|
var guide_default = Guide;
|
|
2421
2719
|
|
|
2422
2720
|
// src/settings.tsx
|
|
2423
|
-
import
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
var _b = _a, { value, sx: sx3 } = _b, props = __objRest(_b, ["value", "sx"]);
|
|
2427
|
-
return /* @__PURE__ */ React25.createElement(
|
|
2428
|
-
IconButton3,
|
|
2429
|
-
__spreadValues({
|
|
2430
|
-
sx: __spreadValues({
|
|
2431
|
-
cursor: "pointer",
|
|
2432
|
-
fill: "none",
|
|
2433
|
-
strokeWidth: "2px",
|
|
2434
|
-
stroke: "text",
|
|
2435
|
-
".paren": {
|
|
2436
|
-
opacity: "0"
|
|
2437
|
-
},
|
|
2438
|
-
"@media (hover: hover) and (pointer: fine)": {
|
|
2439
|
-
"&:hover .paren": {
|
|
2440
|
-
opacity: "1"
|
|
2441
|
-
}
|
|
2442
|
-
}
|
|
2443
|
-
}, sx3),
|
|
2444
|
-
"aria-label": "Toggle Menu"
|
|
2445
|
-
}, props),
|
|
2446
|
-
!value && /* @__PURE__ */ React25.createElement(
|
|
2447
|
-
"svg",
|
|
2448
|
-
{
|
|
2449
|
-
style: {
|
|
2450
|
-
width: "50px",
|
|
2451
|
-
height: "30px",
|
|
2452
|
-
marginTop: "-3px",
|
|
2453
|
-
flexShrink: 0
|
|
2454
|
-
},
|
|
2455
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2456
|
-
viewBox: "0 0 68 36"
|
|
2457
|
-
},
|
|
2458
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "24", y1: "2.1", x2: "24", y2: "6.1" }),
|
|
2459
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "24", y1: "24.1", x2: "24", y2: "33.9" }),
|
|
2460
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "44", y1: "2.1", x2: "44", y2: "12.1" }),
|
|
2461
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "44", y1: "30.1", x2: "44", y2: "33.9" }),
|
|
2462
|
-
/* @__PURE__ */ React25.createElement("circle", { cx: "24", cy: "15.1", r: "5" }),
|
|
2463
|
-
/* @__PURE__ */ React25.createElement("circle", { cx: "44", cy: "21.1", r: "5" }),
|
|
2464
|
-
/* @__PURE__ */ React25.createElement(
|
|
2465
|
-
"path",
|
|
2466
|
-
{
|
|
2467
|
-
style: { transition: "all 0.2s" },
|
|
2468
|
-
className: "paren",
|
|
2469
|
-
d: "M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"
|
|
2470
|
-
}
|
|
2471
|
-
),
|
|
2472
|
-
/* @__PURE__ */ React25.createElement(
|
|
2473
|
-
"path",
|
|
2474
|
-
{
|
|
2475
|
-
style: { transition: "all 0.2s" },
|
|
2476
|
-
className: "paren",
|
|
2477
|
-
d: "M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"
|
|
2478
|
-
}
|
|
2479
|
-
)
|
|
2480
|
-
),
|
|
2481
|
-
value && /* @__PURE__ */ React25.createElement(
|
|
2482
|
-
"svg",
|
|
2483
|
-
{
|
|
2484
|
-
style: {
|
|
2485
|
-
width: "50px",
|
|
2486
|
-
height: "30px",
|
|
2487
|
-
marginTop: "-3px",
|
|
2488
|
-
flexShrink: 0
|
|
2489
|
-
},
|
|
2490
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2491
|
-
viewBox: "0 0 68 36"
|
|
2492
|
-
},
|
|
2493
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "50.85", y1: "29.79", x2: "17.15", y2: "6.21" }),
|
|
2494
|
-
/* @__PURE__ */ React25.createElement("line", { x1: "17.15", y1: "29.79", x2: "50.85", y2: "6.21" }),
|
|
2495
|
-
/* @__PURE__ */ React25.createElement(
|
|
2496
|
-
"path",
|
|
2497
|
-
{
|
|
2498
|
-
style: { transition: "all 0.2s" },
|
|
2499
|
-
className: "paren",
|
|
2500
|
-
d: "M6.4,1.2c-6.3,10.3-6.3,23.3,0,33.6"
|
|
2501
|
-
}
|
|
2502
|
-
),
|
|
2503
|
-
/* @__PURE__ */ React25.createElement(
|
|
2504
|
-
"path",
|
|
2505
|
-
{
|
|
2506
|
-
style: { transition: "all 0.2s" },
|
|
2507
|
-
className: "paren",
|
|
2508
|
-
d: "M61.6,34.8c6.3-10.3,6.3-23.3,0-33.6"
|
|
2509
|
-
}
|
|
2510
|
-
)
|
|
2511
|
-
)
|
|
2512
|
-
);
|
|
2721
|
+
import React30 from "react";
|
|
2722
|
+
var Settings = (props) => {
|
|
2723
|
+
return /* @__PURE__ */ React30.createElement(header_icon_default, __spreadValues({ label: "Toggle Settings" }, props), /* @__PURE__ */ React30.createElement("line", { x1: "24", y1: "2.1", x2: "24", y2: "6.1" }), /* @__PURE__ */ React30.createElement("line", { x1: "24", y1: "24.1", x2: "24", y2: "33.9" }), /* @__PURE__ */ React30.createElement("line", { x1: "44", y1: "2.1", x2: "44", y2: "12.1" }), /* @__PURE__ */ React30.createElement("line", { x1: "44", y1: "30.1", x2: "44", y2: "33.9" }), /* @__PURE__ */ React30.createElement("circle", { cx: "24", cy: "15.1", r: "5" }), /* @__PURE__ */ React30.createElement("circle", { cx: "44", cy: "21.1", r: "5" }));
|
|
2513
2724
|
};
|
|
2514
2725
|
var settings_default = Settings;
|
|
2515
2726
|
|
|
@@ -2536,10 +2747,10 @@ var Layout = ({
|
|
|
2536
2747
|
}) => {
|
|
2537
2748
|
let content = children;
|
|
2538
2749
|
if (fade2) {
|
|
2539
|
-
content = /* @__PURE__ */
|
|
2750
|
+
content = /* @__PURE__ */ React31.createElement(fade_in_default, { duration: 250 }, content);
|
|
2540
2751
|
}
|
|
2541
2752
|
if (container) {
|
|
2542
|
-
content = /* @__PURE__ */
|
|
2753
|
+
content = /* @__PURE__ */ React31.createElement(Box21, { sx: { mb: [8, 8, 9, 10] } }, /* @__PURE__ */ React31.createElement(Container3, null, content));
|
|
2543
2754
|
}
|
|
2544
2755
|
const { theme } = useThemeUI3();
|
|
2545
2756
|
const hideOnPrint = printable ? {
|
|
@@ -2547,7 +2758,7 @@ var Layout = ({
|
|
|
2547
2758
|
display: "none"
|
|
2548
2759
|
}
|
|
2549
2760
|
} : {};
|
|
2550
|
-
|
|
2761
|
+
useEffect8(() => {
|
|
2551
2762
|
var _a;
|
|
2552
2763
|
if (!theme) return;
|
|
2553
2764
|
const handler = (e) => {
|
|
@@ -2564,7 +2775,7 @@ var Layout = ({
|
|
|
2564
2775
|
};
|
|
2565
2776
|
}, [theme == null ? void 0 : theme.breakpoints, settings == null ? void 0 : settings.value, settings == null ? void 0 : settings.onClick]);
|
|
2566
2777
|
const menuItems = [
|
|
2567
|
-
/* @__PURE__ */
|
|
2778
|
+
/* @__PURE__ */ React31.createElement(
|
|
2568
2779
|
dimmer_default,
|
|
2569
2780
|
{
|
|
2570
2781
|
key: "dimmer",
|
|
@@ -2583,7 +2794,7 @@ var Layout = ({
|
|
|
2583
2794
|
];
|
|
2584
2795
|
if (settings) {
|
|
2585
2796
|
menuItems.push(
|
|
2586
|
-
/* @__PURE__ */
|
|
2797
|
+
/* @__PURE__ */ React31.createElement(
|
|
2587
2798
|
settings_default,
|
|
2588
2799
|
__spreadValues({
|
|
2589
2800
|
key: "settings",
|
|
@@ -2592,16 +2803,16 @@ var Layout = ({
|
|
|
2592
2803
|
)
|
|
2593
2804
|
);
|
|
2594
2805
|
}
|
|
2595
|
-
return /* @__PURE__ */
|
|
2596
|
-
|
|
2806
|
+
return /* @__PURE__ */ React31.createElement(React31.Fragment, null, guide && /* @__PURE__ */ React31.createElement(guide_default, { color: typeof guide === "string" ? guide : void 0 }), scrollbar && /* @__PURE__ */ React31.createElement(scrollbar_default, null), /* @__PURE__ */ React31.createElement(meta_default, { card, description, title, url }), /* @__PURE__ */ React31.createElement(
|
|
2807
|
+
Flex5,
|
|
2597
2808
|
{
|
|
2598
2809
|
sx: {
|
|
2599
2810
|
flexDirection: "column",
|
|
2600
2811
|
minHeight: "100vh"
|
|
2601
2812
|
}
|
|
2602
2813
|
},
|
|
2603
|
-
header && /* @__PURE__ */
|
|
2604
|
-
|
|
2814
|
+
header && /* @__PURE__ */ React31.createElement(
|
|
2815
|
+
Box21,
|
|
2605
2816
|
{
|
|
2606
2817
|
as: "header",
|
|
2607
2818
|
sx: __spreadValues({
|
|
@@ -2617,7 +2828,7 @@ var Layout = ({
|
|
|
2617
2828
|
zIndex: 2e3
|
|
2618
2829
|
}, hideOnPrint)
|
|
2619
2830
|
},
|
|
2620
|
-
/* @__PURE__ */
|
|
2831
|
+
/* @__PURE__ */ React31.createElement(Container3, null, /* @__PURE__ */ React31.createElement(
|
|
2621
2832
|
header_default,
|
|
2622
2833
|
{
|
|
2623
2834
|
mode: links2,
|
|
@@ -2627,8 +2838,8 @@ var Layout = ({
|
|
|
2627
2838
|
}
|
|
2628
2839
|
))
|
|
2629
2840
|
),
|
|
2630
|
-
/* @__PURE__ */
|
|
2631
|
-
|
|
2841
|
+
/* @__PURE__ */ React31.createElement(
|
|
2842
|
+
Box21,
|
|
2632
2843
|
{
|
|
2633
2844
|
sx: {
|
|
2634
2845
|
width: "100%",
|
|
@@ -2637,8 +2848,8 @@ var Layout = ({
|
|
|
2637
2848
|
},
|
|
2638
2849
|
content
|
|
2639
2850
|
),
|
|
2640
|
-
footer && /* @__PURE__ */
|
|
2641
|
-
|
|
2851
|
+
footer && /* @__PURE__ */ React31.createElement(
|
|
2852
|
+
Box21,
|
|
2642
2853
|
{
|
|
2643
2854
|
as: "footer",
|
|
2644
2855
|
sx: __spreadValues({
|
|
@@ -2649,10 +2860,10 @@ var Layout = ({
|
|
|
2649
2860
|
borderTopWidth: "1px"
|
|
2650
2861
|
}, hideOnPrint)
|
|
2651
2862
|
},
|
|
2652
|
-
/* @__PURE__ */
|
|
2863
|
+
/* @__PURE__ */ React31.createElement(Container3, null, /* @__PURE__ */ React31.createElement(footer_default, null))
|
|
2653
2864
|
),
|
|
2654
|
-
dimmer === "bottom" && /* @__PURE__ */
|
|
2655
|
-
|
|
2865
|
+
dimmer === "bottom" && /* @__PURE__ */ React31.createElement(
|
|
2866
|
+
Box21,
|
|
2656
2867
|
{
|
|
2657
2868
|
sx: {
|
|
2658
2869
|
display: ["none", "none", "initial", "initial"],
|
|
@@ -2661,24 +2872,24 @@ var Layout = ({
|
|
|
2661
2872
|
bottom: [17, 17, 15, 15]
|
|
2662
2873
|
}
|
|
2663
2874
|
},
|
|
2664
|
-
/* @__PURE__ */
|
|
2875
|
+
/* @__PURE__ */ React31.createElement(dimmer_default, null)
|
|
2665
2876
|
),
|
|
2666
|
-
metadata && /* @__PURE__ */
|
|
2877
|
+
metadata && /* @__PURE__ */ React31.createElement(metadata_default, { mode: typeof metadata === "string" ? metadata : "mouse" })
|
|
2667
2878
|
));
|
|
2668
2879
|
};
|
|
2669
2880
|
var layout_default = Layout;
|
|
2670
2881
|
|
|
2671
2882
|
// src/custom-404.tsx
|
|
2672
2883
|
var Custom404 = () => {
|
|
2673
|
-
return /* @__PURE__ */
|
|
2884
|
+
return /* @__PURE__ */ React32.createElement(
|
|
2674
2885
|
layout_default,
|
|
2675
2886
|
{
|
|
2676
2887
|
footer: false,
|
|
2677
2888
|
title: "404 \u2013 CarbonPlan",
|
|
2678
2889
|
description: "Sorry but we can't seem to find the page you are looking for."
|
|
2679
2890
|
},
|
|
2680
|
-
/* @__PURE__ */
|
|
2681
|
-
|
|
2891
|
+
/* @__PURE__ */ React32.createElement(row_default, { sx: { mb: [5, 0, 0], pt: [0, 0, 6] } }, /* @__PURE__ */ React32.createElement(column_default, { start: [1, 1, 3, 3], width: [6, 4, 4, 4] }, /* @__PURE__ */ React32.createElement(Box22, { as: "h1", variant: "styles.h1" }, "Oops!"), /* @__PURE__ */ React32.createElement(
|
|
2892
|
+
Box22,
|
|
2682
2893
|
{
|
|
2683
2894
|
sx: {
|
|
2684
2895
|
fontSize: [4, 4, 4, 5],
|
|
@@ -2689,8 +2900,8 @@ var Custom404 = () => {
|
|
|
2689
2900
|
}
|
|
2690
2901
|
},
|
|
2691
2902
|
"Sorry but we can't seem to find the page you are looking for."
|
|
2692
|
-
), /* @__PURE__ */
|
|
2693
|
-
|
|
2903
|
+
), /* @__PURE__ */ React32.createElement(
|
|
2904
|
+
Box22,
|
|
2694
2905
|
{
|
|
2695
2906
|
sx: {
|
|
2696
2907
|
color: "secondary",
|
|
@@ -2701,8 +2912,8 @@ var Custom404 = () => {
|
|
|
2701
2912
|
}
|
|
2702
2913
|
},
|
|
2703
2914
|
"ERROR CODE 404"
|
|
2704
|
-
)), /* @__PURE__ */
|
|
2705
|
-
|
|
2915
|
+
)), /* @__PURE__ */ React32.createElement(column_default, { start: [2, 5, 7, 7], width: [4, 4, 4, 4] }, /* @__PURE__ */ React32.createElement(
|
|
2916
|
+
Box22,
|
|
2706
2917
|
{
|
|
2707
2918
|
sx: {
|
|
2708
2919
|
width: ["100%"],
|
|
@@ -2710,18 +2921,18 @@ var Custom404 = () => {
|
|
|
2710
2921
|
fill: "primary"
|
|
2711
2922
|
}
|
|
2712
2923
|
},
|
|
2713
|
-
/* @__PURE__ */
|
|
2924
|
+
/* @__PURE__ */ React32.createElement(PoopSad, { sx: { width: "100%", height: "auto" } })
|
|
2714
2925
|
)))
|
|
2715
2926
|
);
|
|
2716
2927
|
};
|
|
2717
2928
|
var custom_404_default = Custom404;
|
|
2718
2929
|
|
|
2719
2930
|
// src/expander.tsx
|
|
2720
|
-
import
|
|
2721
|
-
import { IconButton as
|
|
2722
|
-
var Expander = ({ value, id, onClick, sx:
|
|
2723
|
-
return /* @__PURE__ */
|
|
2724
|
-
|
|
2931
|
+
import React33 from "react";
|
|
2932
|
+
import { IconButton as IconButton3 } from "theme-ui";
|
|
2933
|
+
var Expander = ({ value, id, onClick, sx: sx4 }) => {
|
|
2934
|
+
return /* @__PURE__ */ React33.createElement(
|
|
2935
|
+
IconButton3,
|
|
2725
2936
|
{
|
|
2726
2937
|
onClick,
|
|
2727
2938
|
id,
|
|
@@ -2742,9 +2953,9 @@ var Expander = ({ value, id, onClick, sx: sx3 }) => {
|
|
|
2742
2953
|
stroke: "primary"
|
|
2743
2954
|
}
|
|
2744
2955
|
}
|
|
2745
|
-
},
|
|
2956
|
+
}, sx4)
|
|
2746
2957
|
},
|
|
2747
|
-
/* @__PURE__ */
|
|
2958
|
+
/* @__PURE__ */ React33.createElement("svg", { viewBox: "0 0 16 16" }, /* @__PURE__ */ React33.createElement(
|
|
2748
2959
|
"path",
|
|
2749
2960
|
{
|
|
2750
2961
|
d: "M8,0 V16 M0,8 H16",
|
|
@@ -2761,22 +2972,22 @@ var Expander = ({ value, id, onClick, sx: sx3 }) => {
|
|
|
2761
2972
|
var expander_default = Expander;
|
|
2762
2973
|
|
|
2763
2974
|
// src/figure.tsx
|
|
2764
|
-
import
|
|
2765
|
-
import { Box as
|
|
2766
|
-
var Figure = ({ as = "figure", children, sx:
|
|
2767
|
-
const childrenArray =
|
|
2975
|
+
import React34 from "react";
|
|
2976
|
+
import { Box as Box23 } from "theme-ui";
|
|
2977
|
+
var Figure = ({ as = "figure", children, sx: sx4 }) => {
|
|
2978
|
+
const childrenArray = React34.Children.toArray(children);
|
|
2768
2979
|
const captionElement = childrenArray.find((child) => {
|
|
2769
|
-
if (!
|
|
2980
|
+
if (!React34.isValidElement(child)) return false;
|
|
2770
2981
|
const type = child.type;
|
|
2771
2982
|
return typeof type !== "string" && "displayName" in type && (type.displayName === "FigureCaption" || type.displayName === "TableCaption");
|
|
2772
2983
|
});
|
|
2773
|
-
const captionProps =
|
|
2774
|
-
const captionType =
|
|
2984
|
+
const captionProps = React34.isValidElement(captionElement) ? captionElement.props : void 0;
|
|
2985
|
+
const captionType = React34.isValidElement(captionElement) ? captionElement.type : void 0;
|
|
2775
2986
|
const elementNumber = captionProps == null ? void 0 : captionProps.number;
|
|
2776
2987
|
const elementType = typeof captionType !== "string" && captionType && "displayName" in captionType && captionType.displayName === "TableCaption" ? "table" : "figure";
|
|
2777
2988
|
const id = elementNumber ? `${elementType}-${elementNumber}` : void 0;
|
|
2778
|
-
return /* @__PURE__ */
|
|
2779
|
-
|
|
2989
|
+
return /* @__PURE__ */ React34.createElement(
|
|
2990
|
+
Box23,
|
|
2780
2991
|
{
|
|
2781
2992
|
as,
|
|
2782
2993
|
id,
|
|
@@ -2787,38 +2998,38 @@ var Figure = ({ as = "figure", children, sx: sx3 }) => {
|
|
|
2787
2998
|
"@media print": {
|
|
2788
2999
|
breakInside: "avoid"
|
|
2789
3000
|
}
|
|
2790
|
-
},
|
|
3001
|
+
}, sx4)
|
|
2791
3002
|
},
|
|
2792
|
-
/* @__PURE__ */
|
|
3003
|
+
/* @__PURE__ */ React34.createElement(group_default, { spacing: [4, 4, 4, 5] }, children)
|
|
2793
3004
|
);
|
|
2794
3005
|
};
|
|
2795
3006
|
var figure_default = Figure;
|
|
2796
3007
|
|
|
2797
3008
|
// src/figure-caption.tsx
|
|
2798
|
-
import
|
|
3009
|
+
import React35 from "react";
|
|
2799
3010
|
var FigureCaption = ({
|
|
2800
3011
|
as = "figcaption",
|
|
2801
3012
|
number,
|
|
2802
3013
|
children
|
|
2803
3014
|
}) => {
|
|
2804
|
-
return /* @__PURE__ */
|
|
3015
|
+
return /* @__PURE__ */ React35.createElement(caption_default, { as, number, label: "figure" }, children);
|
|
2805
3016
|
};
|
|
2806
3017
|
FigureCaption.displayName = "FigureCaption";
|
|
2807
3018
|
var figure_caption_default = FigureCaption;
|
|
2808
3019
|
|
|
2809
3020
|
// src/filter.tsx
|
|
2810
|
-
import
|
|
2811
|
-
import { Box as
|
|
3021
|
+
import React37, { useMemo } from "react";
|
|
3022
|
+
import { Box as Box25 } from "theme-ui";
|
|
2812
3023
|
|
|
2813
3024
|
// src/tag.tsx
|
|
2814
|
-
import
|
|
2815
|
-
import { Box as
|
|
3025
|
+
import React36 from "react";
|
|
3026
|
+
import { Box as Box24 } from "theme-ui";
|
|
2816
3027
|
var Tag = (_a) => {
|
|
2817
|
-
var _b = _a, { label, value, sx:
|
|
2818
|
-
const color = get_sx_color_default(
|
|
3028
|
+
var _b = _a, { label, value, sx: sx4, children } = _b, props = __objRest(_b, ["label", "value", "sx", "children"]);
|
|
3029
|
+
const color = get_sx_color_default(sx4);
|
|
2819
3030
|
const isClickable = props && (props.onClick || props.onDoubleClick);
|
|
2820
|
-
return /* @__PURE__ */
|
|
2821
|
-
|
|
3031
|
+
return /* @__PURE__ */ React36.createElement(
|
|
3032
|
+
Box24,
|
|
2822
3033
|
__spreadValues({
|
|
2823
3034
|
as: isClickable ? "button" : "span",
|
|
2824
3035
|
role: "checkbox",
|
|
@@ -2845,7 +3056,7 @@ var Tag = (_a) => {
|
|
|
2845
3056
|
px: [0],
|
|
2846
3057
|
m: [0],
|
|
2847
3058
|
opacity: value == null || value ? 1 : color === "primary" ? 0.24 : 0.33
|
|
2848
|
-
},
|
|
3059
|
+
}, sx4)
|
|
2849
3060
|
}, props),
|
|
2850
3061
|
children
|
|
2851
3062
|
);
|
|
@@ -2853,7 +3064,7 @@ var Tag = (_a) => {
|
|
|
2853
3064
|
var tag_default = Tag;
|
|
2854
3065
|
|
|
2855
3066
|
// src/filter.tsx
|
|
2856
|
-
var
|
|
3067
|
+
var sx3 = {
|
|
2857
3068
|
label: {
|
|
2858
3069
|
fontFamily: "mono",
|
|
2859
3070
|
letterSpacing: "mono",
|
|
@@ -2925,7 +3136,7 @@ var Filter = (_a) => {
|
|
|
2925
3136
|
return Object.keys(values);
|
|
2926
3137
|
}
|
|
2927
3138
|
}, [order, ...Object.keys(values).sort()]);
|
|
2928
|
-
return /* @__PURE__ */
|
|
3139
|
+
return /* @__PURE__ */ React37.createElement(Box25, __spreadValues({}, props), label && /* @__PURE__ */ React37.createElement(Box25, { sx: sx3.label }, label), /* @__PURE__ */ React37.createElement(Box25, { sx: { mt: label ? [3] : 0 } }, showAll && /* @__PURE__ */ React37.createElement(
|
|
2929
3140
|
tag_default,
|
|
2930
3141
|
{
|
|
2931
3142
|
label: "all",
|
|
@@ -2939,7 +3150,7 @@ var Filter = (_a) => {
|
|
|
2939
3150
|
sx: { mr: [2] }
|
|
2940
3151
|
},
|
|
2941
3152
|
"All"
|
|
2942
|
-
), keys.map((d, i) => /* @__PURE__ */
|
|
3153
|
+
), keys.map((d, i) => /* @__PURE__ */ React37.createElement(
|
|
2943
3154
|
tag_default,
|
|
2944
3155
|
{
|
|
2945
3156
|
label: String(d),
|
|
@@ -2970,18 +3181,18 @@ var Filter = (_a) => {
|
|
|
2970
3181
|
var filter_default = Filter;
|
|
2971
3182
|
|
|
2972
3183
|
// src/heading.tsx
|
|
2973
|
-
import
|
|
2974
|
-
import { Box as
|
|
3184
|
+
import React39 from "react";
|
|
3185
|
+
import { Box as Box27 } from "theme-ui";
|
|
2975
3186
|
|
|
2976
3187
|
// src/sidenote.tsx
|
|
2977
|
-
import
|
|
2978
|
-
import { Box as
|
|
3188
|
+
import React38 from "react";
|
|
3189
|
+
import { Box as Box26 } from "theme-ui";
|
|
2979
3190
|
var Sidenote = ({ children, variant = "h1" }) => {
|
|
2980
3191
|
let mt;
|
|
2981
3192
|
if (variant === "h1") mt = [4, "27px", "42px", "54px"];
|
|
2982
3193
|
if (variant === "h2") mt = [4, 4, "14px", "25px"];
|
|
2983
|
-
return /* @__PURE__ */
|
|
2984
|
-
|
|
3194
|
+
return /* @__PURE__ */ React38.createElement(React38.Fragment, null, /* @__PURE__ */ React38.createElement(column_default, { start: [1, 4, 8, 8], width: [1, 1, 1, 1] }, /* @__PURE__ */ React38.createElement(
|
|
3195
|
+
Box26,
|
|
2985
3196
|
{
|
|
2986
3197
|
sx: {
|
|
2987
3198
|
mt,
|
|
@@ -2992,8 +3203,8 @@ var Sidenote = ({ children, variant = "h1" }) => {
|
|
|
2992
3203
|
}
|
|
2993
3204
|
},
|
|
2994
3205
|
"/"
|
|
2995
|
-
)), /* @__PURE__ */
|
|
2996
|
-
|
|
3206
|
+
)), /* @__PURE__ */ React38.createElement(column_default, { start: [2, 5, 9, 9], width: [3, 3, 2, 2] }, /* @__PURE__ */ React38.createElement(
|
|
3207
|
+
Box26,
|
|
2997
3208
|
{
|
|
2998
3209
|
sx: {
|
|
2999
3210
|
mt,
|
|
@@ -3016,7 +3227,7 @@ var Heading = ({
|
|
|
3016
3227
|
description,
|
|
3017
3228
|
descriptionStart = [1, 3, 5, 5],
|
|
3018
3229
|
descriptionWidth = [5, 5, 5, 4],
|
|
3019
|
-
sx:
|
|
3230
|
+
sx: sx4
|
|
3020
3231
|
}) => {
|
|
3021
3232
|
let titleWidth = [6, 6, 6, 6];
|
|
3022
3233
|
if (description) {
|
|
@@ -3027,8 +3238,8 @@ var Heading = ({
|
|
|
3027
3238
|
if (!["h1", "h2"].includes(variant)) {
|
|
3028
3239
|
throw new Error(`variant must be 'h1' or 'h2' but got '${variant}'`);
|
|
3029
3240
|
}
|
|
3030
|
-
return /* @__PURE__ */
|
|
3031
|
-
|
|
3241
|
+
return /* @__PURE__ */ React39.createElement(row_default, { sx: __spreadValues({ mt: [5, 6, 7, 8], mb: [5, 6, 7, 8] }, sx4) }, /* @__PURE__ */ React39.createElement(column_default, { start: [1, 1, 2, 2], width: titleWidth }, variant === "h1" && /* @__PURE__ */ React39.createElement(Box27, { as: "h1", variant: "styles.h1", sx: { my: [0, 0, 0, 0] } }, children), variant === "h2" && /* @__PURE__ */ React39.createElement(Box27, { as: "h2", variant: "styles.h2", sx: { my: [0, 0, 0, 0] } }, children)), sidenote && /* @__PURE__ */ React39.createElement(sidenote_default, { variant }, sidenote), description && /* @__PURE__ */ React39.createElement(column_default, { start: descriptionStart, width: descriptionWidth }, /* @__PURE__ */ React39.createElement(
|
|
3242
|
+
Box27,
|
|
3032
3243
|
{
|
|
3033
3244
|
sx: {
|
|
3034
3245
|
mt: [4, "5px", "20px", "31px"],
|
|
@@ -3040,47 +3251,10 @@ var Heading = ({
|
|
|
3040
3251
|
};
|
|
3041
3252
|
var heading_default = Heading;
|
|
3042
3253
|
|
|
3043
|
-
// src/input.tsx
|
|
3044
|
-
import React35, { forwardRef as forwardRef4 } from "react";
|
|
3045
|
-
import { Input as ThemedInput } from "theme-ui";
|
|
3046
|
-
var Input = (_a, ref) => {
|
|
3047
|
-
var _b = _a, { size = "sm", inverted, sx: sx3 } = _b, props = __objRest(_b, ["size", "inverted", "sx"]);
|
|
3048
|
-
const defaultColor = inverted ? "secondary" : "primary";
|
|
3049
|
-
const styles3 = __spreadValues(__spreadValues({
|
|
3050
|
-
color: defaultColor,
|
|
3051
|
-
borderColor: "secondary",
|
|
3052
|
-
borderStyle: "solid",
|
|
3053
|
-
borderWidth: "0px",
|
|
3054
|
-
borderBottomWidth: "1px",
|
|
3055
|
-
borderRadius: "0px",
|
|
3056
|
-
transition: "border 0.15s",
|
|
3057
|
-
width: "calc(min(15ch, 100%))",
|
|
3058
|
-
p: [0],
|
|
3059
|
-
py: ["2px"],
|
|
3060
|
-
"input::-webkit-outer-spin-button": {
|
|
3061
|
-
WebkitAppearance: "none",
|
|
3062
|
-
margin: 0
|
|
3063
|
-
},
|
|
3064
|
-
"input::-webkit-inner-spin-button": {
|
|
3065
|
-
WebkitAppearance: "none",
|
|
3066
|
-
margin: 0
|
|
3067
|
-
},
|
|
3068
|
-
":focus": {
|
|
3069
|
-
borderColor: "primary"
|
|
3070
|
-
},
|
|
3071
|
-
":focus-visible": {
|
|
3072
|
-
outline: "none !important",
|
|
3073
|
-
background: "none !important"
|
|
3074
|
-
}
|
|
3075
|
-
}, get_size_styles_default(size)), sx3);
|
|
3076
|
-
return /* @__PURE__ */ React35.createElement(ThemedInput, __spreadProps(__spreadValues({}, props), { ref, sx: styles3 }));
|
|
3077
|
-
};
|
|
3078
|
-
var input_default = forwardRef4(Input);
|
|
3079
|
-
|
|
3080
3254
|
// src/link-group.tsx
|
|
3081
|
-
import
|
|
3082
|
-
import { Flex as
|
|
3083
|
-
import { RotatingArrow } from "@carbonplan/icons";
|
|
3255
|
+
import React40 from "react";
|
|
3256
|
+
import { Flex as Flex6 } from "theme-ui";
|
|
3257
|
+
import { RotatingArrow as RotatingArrow2 } from "@carbonplan/icons";
|
|
3084
3258
|
var LinkGroup = ({
|
|
3085
3259
|
members,
|
|
3086
3260
|
color,
|
|
@@ -3089,20 +3263,20 @@ var LinkGroup = ({
|
|
|
3089
3263
|
rowGap = [2, 2, 2, 3],
|
|
3090
3264
|
columnGap = [3, 3, 3, 4],
|
|
3091
3265
|
direction = "horizontal",
|
|
3092
|
-
sx:
|
|
3266
|
+
sx: sx4
|
|
3093
3267
|
}) => {
|
|
3094
|
-
return /* @__PURE__ */
|
|
3095
|
-
|
|
3268
|
+
return /* @__PURE__ */ React40.createElement(
|
|
3269
|
+
Flex6,
|
|
3096
3270
|
{
|
|
3097
3271
|
sx: __spreadValues({
|
|
3098
3272
|
flexDirection: direction === "horizontal" ? "row" : "column",
|
|
3099
3273
|
rowGap,
|
|
3100
3274
|
columnGap,
|
|
3101
3275
|
flexWrap: "wrap"
|
|
3102
|
-
},
|
|
3276
|
+
}, sx4)
|
|
3103
3277
|
},
|
|
3104
3278
|
members.map((d, i) => {
|
|
3105
|
-
return /* @__PURE__ */
|
|
3279
|
+
return /* @__PURE__ */ React40.createElement(
|
|
3106
3280
|
button_default,
|
|
3107
3281
|
{
|
|
3108
3282
|
key: i,
|
|
@@ -3110,7 +3284,7 @@ var LinkGroup = ({
|
|
|
3110
3284
|
size,
|
|
3111
3285
|
sx: { color },
|
|
3112
3286
|
inverted,
|
|
3113
|
-
suffix: /* @__PURE__ */
|
|
3287
|
+
suffix: /* @__PURE__ */ React40.createElement(RotatingArrow2, null)
|
|
3114
3288
|
},
|
|
3115
3289
|
d.label
|
|
3116
3290
|
);
|
|
@@ -3120,14 +3294,14 @@ var LinkGroup = ({
|
|
|
3120
3294
|
var link_group_default = LinkGroup;
|
|
3121
3295
|
|
|
3122
3296
|
// src/select.tsx
|
|
3123
|
-
import
|
|
3124
|
-
import { Box as
|
|
3125
|
-
import { Arrow as
|
|
3297
|
+
import React41, { useRef as useRef2 } from "react";
|
|
3298
|
+
import { Box as Box28 } from "theme-ui";
|
|
3299
|
+
import { Arrow as Arrow4 } from "@carbonplan/icons";
|
|
3126
3300
|
var Select = (_a) => {
|
|
3127
3301
|
var _b = _a, {
|
|
3128
3302
|
children,
|
|
3129
3303
|
size = "sm",
|
|
3130
|
-
sx:
|
|
3304
|
+
sx: sx4,
|
|
3131
3305
|
sxSelect,
|
|
3132
3306
|
onChange
|
|
3133
3307
|
} = _b, props = __objRest(_b, [
|
|
@@ -3137,7 +3311,7 @@ var Select = (_a) => {
|
|
|
3137
3311
|
"sxSelect",
|
|
3138
3312
|
"onChange"
|
|
3139
3313
|
]);
|
|
3140
|
-
const color = get_sx_color_default(
|
|
3314
|
+
const color = get_sx_color_default(sx4);
|
|
3141
3315
|
const sizeStyles = get_size_styles_default(size);
|
|
3142
3316
|
const ref = useRef2(null);
|
|
3143
3317
|
if (!["xs", "sm", "md"].includes(size)) {
|
|
@@ -3165,15 +3339,15 @@ var Select = (_a) => {
|
|
|
3165
3339
|
};
|
|
3166
3340
|
const { height, width, top, ml } = sizeConfig[size];
|
|
3167
3341
|
const pr = width.map((d) => d + 12);
|
|
3168
|
-
return /* @__PURE__ */
|
|
3169
|
-
|
|
3342
|
+
return /* @__PURE__ */ React41.createElement(
|
|
3343
|
+
Box28,
|
|
3170
3344
|
{
|
|
3171
3345
|
sx: __spreadValues({
|
|
3172
3346
|
display: "inline-block"
|
|
3173
|
-
},
|
|
3347
|
+
}, sx4)
|
|
3174
3348
|
},
|
|
3175
|
-
/* @__PURE__ */
|
|
3176
|
-
|
|
3349
|
+
/* @__PURE__ */ React41.createElement(
|
|
3350
|
+
Box28,
|
|
3177
3351
|
__spreadValues({
|
|
3178
3352
|
as: "select",
|
|
3179
3353
|
ref,
|
|
@@ -3209,8 +3383,8 @@ var Select = (_a) => {
|
|
|
3209
3383
|
}, props),
|
|
3210
3384
|
children
|
|
3211
3385
|
),
|
|
3212
|
-
/* @__PURE__ */
|
|
3213
|
-
|
|
3386
|
+
/* @__PURE__ */ React41.createElement(
|
|
3387
|
+
Arrow4,
|
|
3214
3388
|
{
|
|
3215
3389
|
sx: {
|
|
3216
3390
|
width,
|
|
@@ -3229,15 +3403,15 @@ var Select = (_a) => {
|
|
|
3229
3403
|
var select_default = Select;
|
|
3230
3404
|
|
|
3231
3405
|
// src/slider.tsx
|
|
3232
|
-
import
|
|
3406
|
+
import React42, { forwardRef as forwardRef5 } from "react";
|
|
3233
3407
|
import { useThemeUI as useThemeUI4, Slider as ThemeSlider } from "theme-ui";
|
|
3234
3408
|
var Slider = (_a, ref) => {
|
|
3235
|
-
var _b = _a, { sx:
|
|
3236
|
-
const color = get_sx_color_default(
|
|
3409
|
+
var _b = _a, { sx: sx4 } = _b, props = __objRest(_b, ["sx"]);
|
|
3410
|
+
const color = get_sx_color_default(sx4);
|
|
3237
3411
|
const {
|
|
3238
3412
|
theme: { rawColors: colors }
|
|
3239
3413
|
} = useThemeUI4();
|
|
3240
|
-
return /* @__PURE__ */
|
|
3414
|
+
return /* @__PURE__ */ React42.createElement(
|
|
3241
3415
|
ThemeSlider,
|
|
3242
3416
|
__spreadValues({
|
|
3243
3417
|
ref,
|
|
@@ -3268,15 +3442,15 @@ var Slider = (_a, ref) => {
|
|
|
3268
3442
|
}
|
|
3269
3443
|
},
|
|
3270
3444
|
color
|
|
3271
|
-
},
|
|
3445
|
+
}, sx4)
|
|
3272
3446
|
}, props)
|
|
3273
3447
|
);
|
|
3274
3448
|
};
|
|
3275
3449
|
var slider_default = forwardRef5(Slider);
|
|
3276
3450
|
|
|
3277
3451
|
// src/table.tsx
|
|
3278
|
-
import
|
|
3279
|
-
import { Box as
|
|
3452
|
+
import React43 from "react";
|
|
3453
|
+
import { Box as Box29 } from "theme-ui";
|
|
3280
3454
|
var styles2 = {
|
|
3281
3455
|
reset: {
|
|
3282
3456
|
verticalAlign: "baseline",
|
|
@@ -3319,7 +3493,7 @@ var styles2 = {
|
|
|
3319
3493
|
};
|
|
3320
3494
|
var Table = ({
|
|
3321
3495
|
data,
|
|
3322
|
-
sx:
|
|
3496
|
+
sx: sx4,
|
|
3323
3497
|
color,
|
|
3324
3498
|
header,
|
|
3325
3499
|
columns,
|
|
@@ -3332,7 +3506,7 @@ var Table = ({
|
|
|
3332
3506
|
if (!start || !columns || !width) {
|
|
3333
3507
|
throw new Error("Must provide columns, start, and width");
|
|
3334
3508
|
}
|
|
3335
|
-
return /* @__PURE__ */
|
|
3509
|
+
return /* @__PURE__ */ React43.createElement(Box29, { as: "table", sx: __spreadValues({ display: "block" }, sx4) }, /* @__PURE__ */ React43.createElement(Box29, { as: "tbody", sx: { display: "block" } }, header && /* @__PURE__ */ React43.createElement(
|
|
3336
3510
|
row_default,
|
|
3337
3511
|
{
|
|
3338
3512
|
as: "tr",
|
|
@@ -3341,9 +3515,9 @@ var Table = ({
|
|
|
3341
3515
|
borderTopWidth: !borderTop ? "0px" : "1px"
|
|
3342
3516
|
})
|
|
3343
3517
|
},
|
|
3344
|
-
/* @__PURE__ */
|
|
3518
|
+
/* @__PURE__ */ React43.createElement(column_default, { as: "td", start: [1], width: columns, sx: styles2.index }, header)
|
|
3345
3519
|
), data.map((row, i) => {
|
|
3346
|
-
return /* @__PURE__ */
|
|
3520
|
+
return /* @__PURE__ */ React43.createElement(
|
|
3347
3521
|
row_default,
|
|
3348
3522
|
{
|
|
3349
3523
|
as: "tr",
|
|
@@ -3356,7 +3530,7 @@ var Table = ({
|
|
|
3356
3530
|
})
|
|
3357
3531
|
},
|
|
3358
3532
|
row.map((column, j) => {
|
|
3359
|
-
return /* @__PURE__ */
|
|
3533
|
+
return /* @__PURE__ */ React43.createElement(
|
|
3360
3534
|
column_default,
|
|
3361
3535
|
{
|
|
3362
3536
|
as: "td",
|
|
@@ -3374,27 +3548,27 @@ var Table = ({
|
|
|
3374
3548
|
var table_default = Table;
|
|
3375
3549
|
|
|
3376
3550
|
// src/table-caption.tsx
|
|
3377
|
-
import
|
|
3551
|
+
import React44 from "react";
|
|
3378
3552
|
var TableCaption = ({
|
|
3379
3553
|
as = "figcaption",
|
|
3380
3554
|
number,
|
|
3381
3555
|
children
|
|
3382
3556
|
}) => {
|
|
3383
|
-
return /* @__PURE__ */
|
|
3557
|
+
return /* @__PURE__ */ React44.createElement(caption_default, { as, number, label: "table" }, children);
|
|
3384
3558
|
};
|
|
3385
3559
|
TableCaption.displayName = "TableCaption";
|
|
3386
3560
|
var table_caption_default = TableCaption;
|
|
3387
3561
|
|
|
3388
3562
|
// src/toggle.tsx
|
|
3389
|
-
import
|
|
3390
|
-
import { Box as
|
|
3563
|
+
import React45, { forwardRef as forwardRef6 } from "react";
|
|
3564
|
+
import { Box as Box30 } from "theme-ui";
|
|
3391
3565
|
import { transparentize as transparentize2 } from "@theme-ui/color";
|
|
3392
3566
|
var Toggle = (_a, ref) => {
|
|
3393
|
-
var _b = _a, { value, onClick, disabled, sx:
|
|
3394
|
-
const color = get_sx_color_default(
|
|
3567
|
+
var _b = _a, { value, onClick, disabled, sx: sx4 } = _b, props = __objRest(_b, ["value", "onClick", "disabled", "sx"]);
|
|
3568
|
+
const color = get_sx_color_default(sx4);
|
|
3395
3569
|
const active = disabled ? false : value;
|
|
3396
|
-
return /* @__PURE__ */
|
|
3397
|
-
|
|
3570
|
+
return /* @__PURE__ */ React45.createElement(
|
|
3571
|
+
Box30,
|
|
3398
3572
|
__spreadValues({
|
|
3399
3573
|
ref,
|
|
3400
3574
|
as: "button",
|
|
@@ -3409,10 +3583,10 @@ var Toggle = (_a, ref) => {
|
|
|
3409
3583
|
p: [0],
|
|
3410
3584
|
m: [0],
|
|
3411
3585
|
display: "inline-block"
|
|
3412
|
-
},
|
|
3586
|
+
}, sx4)
|
|
3413
3587
|
}, props),
|
|
3414
|
-
/* @__PURE__ */
|
|
3415
|
-
|
|
3588
|
+
/* @__PURE__ */ React45.createElement(
|
|
3589
|
+
Box30,
|
|
3416
3590
|
{
|
|
3417
3591
|
sx: {
|
|
3418
3592
|
width: "50px",
|
|
@@ -3424,8 +3598,8 @@ var Toggle = (_a, ref) => {
|
|
|
3424
3598
|
display: "inline-block"
|
|
3425
3599
|
}
|
|
3426
3600
|
},
|
|
3427
|
-
/* @__PURE__ */
|
|
3428
|
-
|
|
3601
|
+
/* @__PURE__ */ React45.createElement(
|
|
3602
|
+
Box30,
|
|
3429
3603
|
{
|
|
3430
3604
|
sx: {
|
|
3431
3605
|
width: "14px",
|
|
@@ -3445,11 +3619,11 @@ var Toggle = (_a, ref) => {
|
|
|
3445
3619
|
var toggle_default = forwardRef6(Toggle);
|
|
3446
3620
|
|
|
3447
3621
|
// src/tray.tsx
|
|
3448
|
-
import
|
|
3449
|
-
import { Box as
|
|
3450
|
-
var Tray = ({ expanded, sx:
|
|
3451
|
-
return /* @__PURE__ */
|
|
3452
|
-
|
|
3622
|
+
import React46 from "react";
|
|
3623
|
+
import { Box as Box31 } from "theme-ui";
|
|
3624
|
+
var Tray = ({ expanded, sx: sx4, children }) => {
|
|
3625
|
+
return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
|
|
3626
|
+
Box31,
|
|
3453
3627
|
{
|
|
3454
3628
|
sx: {
|
|
3455
3629
|
position: "fixed",
|
|
@@ -3465,8 +3639,8 @@ var Tray = ({ expanded, sx: sx3, children }) => {
|
|
|
3465
3639
|
pointerEvents: expanded ? "all" : "none"
|
|
3466
3640
|
}
|
|
3467
3641
|
}
|
|
3468
|
-
), /* @__PURE__ */
|
|
3469
|
-
|
|
3642
|
+
), /* @__PURE__ */ React46.createElement(
|
|
3643
|
+
Box31,
|
|
3470
3644
|
{
|
|
3471
3645
|
sx: __spreadValues({
|
|
3472
3646
|
position: "fixed",
|
|
@@ -3486,9 +3660,9 @@ var Tray = ({ expanded, sx: sx3, children }) => {
|
|
|
3486
3660
|
pl: [3, 4, 5, 6],
|
|
3487
3661
|
pr: [3, 4, 5, 6],
|
|
3488
3662
|
transform: expanded ? "translateY(0)" : "translateY(-100%)"
|
|
3489
|
-
},
|
|
3663
|
+
}, sx4)
|
|
3490
3664
|
},
|
|
3491
|
-
/* @__PURE__ */
|
|
3665
|
+
/* @__PURE__ */ React46.createElement(row_default, null, /* @__PURE__ */ React46.createElement(column_default, { start: [1, 1, 1, 1], width: [6, 8, 10, 10] }, children))
|
|
3492
3666
|
));
|
|
3493
3667
|
};
|
|
3494
3668
|
var tray_default = Tray;
|
|
@@ -3524,10 +3698,10 @@ var formatDate = (date, options = defaultOptions) => {
|
|
|
3524
3698
|
var format_date_default = formatDate;
|
|
3525
3699
|
|
|
3526
3700
|
// src/utils/use-scrollbar-class.ts
|
|
3527
|
-
import { useEffect as
|
|
3701
|
+
import { useEffect as useEffect9, useState as useState7 } from "react";
|
|
3528
3702
|
var useScrollbarClass = () => {
|
|
3529
|
-
const [className, setClassName] =
|
|
3530
|
-
|
|
3703
|
+
const [className, setClassName] = useState7(null);
|
|
3704
|
+
useEffect9(() => {
|
|
3531
3705
|
if (document && get_scrollbar_width_default(document) > 0) {
|
|
3532
3706
|
setClassName("custom-scrollbar");
|
|
3533
3707
|
}
|