@carbonplan/components 13.3.0 → 13.4.0-develop.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/dst/index.mjs CHANGED
@@ -46,7 +46,7 @@ var Avatar = (_a) => {
46
46
  github,
47
47
  alt,
48
48
  src,
49
- sx: sx3
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
- }, sx3)
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: sx3, columns, gap } = _b, props = __objRest(_b, ["children", "sx", "columns", "gap"]);
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
- }, sx3)
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: sx3
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
- }, sx3)
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: sx3
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: sx3 }, React4.Children.map(children, (child, i) => {
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: sx3
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: sx3 }, 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: sx3 }, props), members.map((props2, idx) => /* @__PURE__ */ React5.createElement(avatar_default, __spreadProps(__spreadValues({ key: idx }, props2), { width, maxWidth })))));
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 = (sx3, fallback = "primary") => sx3 && typeof sx3 === "object" && "color" in sx3 && typeof sx3.color === "string" ? sx3.color : fallback;
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: sx3, children } = _b, props = __objRest(_b, ["sx", "children"]);
397
- const color = get_sx_color_default(sx3);
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
- }, sx3)
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: sx3,
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 = sx3 && typeof sx3 === "object" ? sx3 : {}, { color: sxColor } = _a2, sxProp = __objRest(_a2, ["color"]);
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: sx3
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
- }, sx3);
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: sx3,
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
- }, sx3)
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: sx3, color, children } = _b, props = __objRest(_b, ["sx", "color", "children"]);
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 }, sx3)
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 React27 from "react";
1283
- import { Box as Box21 } from "theme-ui";
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 React26, { useEffect as useEffect6 } from "react";
1288
- import { useThemeUI as useThemeUI3, Container as Container3, Flex as Flex4, Box as Box20 } from "theme-ui";
1287
+ import React31, { useEffect as useEffect7 } 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 React17, { useState as useState2 } from "react";
1409
- import { default as NextLink2 } from "next/link";
1410
- import { Box as Box13, Flex as Flex2, Container, Link as Link2 } from "theme-ui";
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 Menu = (_a) => {
1497
- var _b = _a, { value, sx: sx3 } = _b, props = __objRest(_b, ["value", "sx"]);
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
- }, sx3),
1515
- "aria-label": "Toggle Menu"
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
- /* @__PURE__ */ React16.createElement("line", { x1: "52", y1: "29.9", x2: "16", y2: "29.9" }),
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 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 === label ? "secondary" : "text"
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__ */ React17.createElement(
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__ */ React17.createElement(NextLink2, { href, passHref: true, legacyBehavior: true }, /* @__PURE__ */ React17.createElement(
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,302 @@ var Nav = ({ link, mode, nav, first, setExpanded }) => {
1649
1669
  },
1650
1670
  sx: sx.link(nav, url, first)
1651
1671
  },
1652
- /* @__PURE__ */ React17.createElement(HoverArrow, null),
1672
+ /* @__PURE__ */ React18.createElement(HoverArrow, null),
1653
1673
  display
1654
1674
  ));
1655
1675
  } else {
1656
- return /* @__PURE__ */ React17.createElement(Link2, { href, sx: sx.link(nav, url, first) }, /* @__PURE__ */ React17.createElement(HoverArrow, null), display);
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
+ return /* @__PURE__ */ React18.createElement(React18.Fragment, null, links.map((d, i) => /* @__PURE__ */ React18.createElement(
1681
+ Nav,
1682
+ {
1683
+ key: i,
1684
+ link: d,
1685
+ mode,
1686
+ nav,
1687
+ first: i === 0,
1688
+ setExpanded
1689
+ }
1690
+ )));
1691
+ };
1692
+ var navigation_menu_default = NavigationMenu;
1693
+
1694
+ // src/header/search.tsx
1695
+ import React19 from "react";
1696
+ import { Search as SearchIcon } from "@carbonplan/icons";
1697
+ var Search = (props) => {
1698
+ return /* @__PURE__ */ React19.createElement(header_icon_default, __spreadProps(__spreadValues({}, props), { label: "Toggle Search" }), /* @__PURE__ */ React19.createElement(SearchIcon, { width: 50, height: 30, x: 8 }));
1699
+ };
1700
+ var search_default = Search;
1701
+
1702
+ // src/header/search-menu.tsx
1703
+ import React21, { useEffect as useEffect2, useState as useState2 } from "react";
1704
+ import { Box as Box13, Flex as Flex2, Link as Link3 } from "theme-ui";
1705
+ import { Arrow as Arrow3, RotatingArrow } from "@carbonplan/icons";
1706
+
1707
+ // src/input.tsx
1708
+ import React20, { forwardRef as forwardRef4 } from "react";
1709
+ import { Input as ThemedInput } from "theme-ui";
1710
+ var Input = (_a, ref) => {
1711
+ var _b = _a, { size = "sm", inverted, sx: sx4 } = _b, props = __objRest(_b, ["size", "inverted", "sx"]);
1712
+ const defaultColor = inverted ? "secondary" : "primary";
1713
+ const styles3 = __spreadValues(__spreadValues({
1714
+ color: defaultColor,
1715
+ borderColor: "secondary",
1716
+ borderStyle: "solid",
1717
+ borderWidth: "0px",
1718
+ borderBottomWidth: "1px",
1719
+ borderRadius: "0px",
1720
+ transition: "border 0.15s",
1721
+ width: "calc(min(15ch, 100%))",
1722
+ p: [0],
1723
+ py: ["2px"],
1724
+ "input::-webkit-outer-spin-button": {
1725
+ WebkitAppearance: "none",
1726
+ margin: 0
1727
+ },
1728
+ "input::-webkit-inner-spin-button": {
1729
+ WebkitAppearance: "none",
1730
+ margin: 0
1731
+ },
1732
+ ":focus": {
1733
+ borderColor: "primary"
1734
+ },
1735
+ ":focus-visible": {
1736
+ outline: "none !important",
1737
+ background: "none !important"
1738
+ }
1739
+ }, get_size_styles_default(size)), sx4);
1740
+ return /* @__PURE__ */ React20.createElement(ThemedInput, __spreadProps(__spreadValues({}, props), { ref, sx: styles3 }));
1741
+ };
1742
+ var input_default = forwardRef4(Input);
1743
+
1744
+ // src/header/search-menu.tsx
1745
+ var HoverArrow2 = ({ sx: sx4 }) => {
1746
+ return /* @__PURE__ */ React21.createElement(
1747
+ Arrow3,
1748
+ {
1749
+ id: "arrow",
1750
+ sx: __spreadValues({
1751
+ display: "inline-block",
1752
+ position: "absolute",
1753
+ right: ["4px", "-68px", "-80px", "-104px"],
1754
+ top: [void 0, void 0, "46px", "62px"],
1755
+ bottom: ["4px", "4px", void 0, void 0],
1756
+ opacity: 0,
1757
+ transition: "opacity 0.2s ease-out",
1758
+ transform: "rotate(45deg)",
1759
+ width: [24, 36, 48, 56],
1760
+ height: [24, 36, 48, 56]
1761
+ }, sx4)
1762
+ }
1763
+ );
1764
+ };
1765
+ var RESOURCES = [
1766
+ {
1767
+ label: "Carbon accounting",
1768
+ links: []
1769
+ },
1770
+ {
1771
+ label: "Climate impacts",
1772
+ links: []
1773
+ },
1774
+ {
1775
+ label: "Organization",
1776
+ links: []
1777
+ }
1778
+ ];
1779
+ var sx2 = {
1780
+ highlight: {
1781
+ mb: [2, 2, 3, 3],
1782
+ mt: [3, 3, 0, 0],
1783
+ fontSize: [3, 3, 3, 4],
1784
+ fontFamily: "heading",
1785
+ letterSpacing: "smallcaps",
1786
+ textTransform: "uppercase",
1787
+ color: "secondary"
1657
1788
  }
1658
1789
  };
1659
- var NavGroup = ({ links: links2, nav, mode, setExpanded }) => {
1660
- return /* @__PURE__ */ React17.createElement(React17.Fragment, null, links2.map((d, i) => {
1661
- return /* @__PURE__ */ React17.createElement(
1662
- Nav,
1790
+ var SearchMenu = ({}) => {
1791
+ const [value, setValue] = useState2("");
1792
+ const [resources, setResources] = useState2(RESOURCES);
1793
+ const destination = `/search?query=${value.trim()}`;
1794
+ useEffect2(() => {
1795
+ fetch("/resources.json").then((res) => res.json()).then((res) => {
1796
+ if (res.length === 3 && res.every((el) => el.label && Array.isArray(el.links))) {
1797
+ setResources(res);
1798
+ }
1799
+ }).catch(() => {
1800
+ setResources(RESOURCES);
1801
+ });
1802
+ }, []);
1803
+ 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(
1804
+ Flex2,
1805
+ {
1806
+ as: "form",
1807
+ onSubmit: (e) => {
1808
+ e.preventDefault();
1809
+ if (value.trim()) {
1810
+ window.location.href = destination;
1811
+ }
1812
+ },
1813
+ sx: {
1814
+ flexDirection: ["column", "column", "row", "row"],
1815
+ gap: [0, 0, 7, 7],
1816
+ mt: ["1px", 0, 2, "29px"],
1817
+ position: "relative",
1818
+ borderStyle: "solid",
1819
+ borderColor: ["secondary", "secondary", "muted", "muted"],
1820
+ borderWidth: "0px",
1821
+ borderBottomWidth: "1px",
1822
+ "@media (hover: hover) and (pointer: fine)": {
1823
+ "&:hover #arrow": {
1824
+ opacity: 1
1825
+ }
1826
+ }
1827
+ }
1828
+ },
1829
+ /* @__PURE__ */ React21.createElement(
1830
+ Box13,
1831
+ __spreadProps(__spreadValues({
1832
+ as: "label"
1833
+ }, { htmlFor: "search" }), {
1834
+ sx: {
1835
+ color: "primary",
1836
+ fontSize: [6, 6, 7, 8],
1837
+ fontFamily: "heading",
1838
+ letterSpacing: "heading",
1839
+ py: [0, 3, 4, 5],
1840
+ textDecoration: "none",
1841
+ display: "block",
1842
+ transition: "color 0.15s"
1843
+ }
1844
+ }),
1845
+ "Search"
1846
+ ),
1847
+ /* @__PURE__ */ React21.createElement(
1848
+ input_default,
1663
1849
  {
1664
- key: i,
1665
- link: d,
1666
- mode,
1667
- nav,
1668
- first: i === 0,
1669
- setExpanded
1850
+ id: "search",
1851
+ size: "xl",
1852
+ value,
1853
+ onChange: (e) => setValue(e.target.value),
1854
+ sx: {
1855
+ borderBottomWidth: 0,
1856
+ fontSize: [4, 6, 7, 8],
1857
+ flexShrink: 0
1858
+ },
1859
+ color: "secondary"
1670
1860
  }
1671
- );
1672
- }));
1861
+ ),
1862
+ /* @__PURE__ */ React21.createElement(Link3, { href: destination }, /* @__PURE__ */ React21.createElement(
1863
+ HoverArrow2,
1864
+ {
1865
+ sx: {
1866
+ opacity: value ? 1 : [1, 1, 0, 0],
1867
+ pointerEvents: value ? "all" : "none"
1868
+ }
1869
+ }
1870
+ ))
1871
+ ))), /* @__PURE__ */ React21.createElement(
1872
+ row_default,
1873
+ {
1874
+ columns: [6, 6, 10, 10],
1875
+ sx: { display: ["none", "grid", "grid", "grid"] }
1876
+ },
1877
+ /* @__PURE__ */ React21.createElement(
1878
+ column_default,
1879
+ {
1880
+ start: 1,
1881
+ width: 5,
1882
+ sx: { mt: [2, 2, 8, 8], mb: [1, 1, , 6, 6] }
1883
+ },
1884
+ /* @__PURE__ */ React21.createElement(Box13, { as: "h2", variant: "styles.h2", sx: { my: 0 } }, "Popular resources")
1885
+ ),
1886
+ /* @__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(
1887
+ button_default,
1888
+ {
1889
+ key: href,
1890
+ href,
1891
+ size: "md",
1892
+ sx: { mb: [1] },
1893
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1894
+ },
1895
+ label
1896
+ ))),
1897
+ /* @__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(
1898
+ button_default,
1899
+ {
1900
+ key: href,
1901
+ href,
1902
+ size: "md",
1903
+ sx: { mb: [1] },
1904
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1905
+ },
1906
+ label
1907
+ ))),
1908
+ /* @__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(
1909
+ button_default,
1910
+ {
1911
+ key: href,
1912
+ href,
1913
+ size: "md",
1914
+ sx: { mb: [1] },
1915
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1916
+ },
1917
+ label
1918
+ )))
1919
+ ), /* @__PURE__ */ React21.createElement(
1920
+ row_default,
1921
+ {
1922
+ columns: [6, 6, 10, 10],
1923
+ sx: { display: ["grid", "none", "none", "none"] }
1924
+ },
1925
+ /* @__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(
1926
+ button_default,
1927
+ {
1928
+ key: href,
1929
+ href,
1930
+ size: "xs",
1931
+ sx: { mb: [1] },
1932
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1933
+ },
1934
+ label
1935
+ ))),
1936
+ /* @__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(
1937
+ button_default,
1938
+ {
1939
+ key: href,
1940
+ href,
1941
+ size: "xs",
1942
+ sx: { mb: [1] },
1943
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1944
+ },
1945
+ label
1946
+ ))),
1947
+ /* @__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(
1948
+ button_default,
1949
+ {
1950
+ key: href,
1951
+ href,
1952
+ size: "xs",
1953
+ sx: { mb: [1] },
1954
+ suffix: /* @__PURE__ */ React21.createElement(RotatingArrow, null)
1955
+ },
1956
+ label
1957
+ )))
1958
+ ));
1673
1959
  };
1960
+ var search_menu_default = SearchMenu;
1961
+
1962
+ // src/header/header.tsx
1674
1963
  var Header = ({ status, mode, nav, menuItems }) => {
1675
- const [expanded, setExpanded] = useState2(false);
1676
- const toggle = () => {
1677
- setExpanded(!expanded);
1678
- };
1679
- return /* @__PURE__ */ React17.createElement(
1964
+ const [menuExpanded, setMenuExpanded] = useState3(false);
1965
+ const [searchExpanded, setSearchExpanded] = useState3(false);
1966
+ const expanded = searchExpanded || menuExpanded;
1967
+ return /* @__PURE__ */ React22.createElement(
1680
1968
  row_default,
1681
1969
  {
1682
1970
  sx: {
@@ -1684,20 +1972,20 @@ var Header = ({ status, mode, nav, menuItems }) => {
1684
1972
  pb: [3]
1685
1973
  }
1686
1974
  },
1687
- /* @__PURE__ */ React17.createElement(column_default, { start: [1], width: [2] }, /* @__PURE__ */ React17.createElement(
1688
- Box13,
1975
+ /* @__PURE__ */ React22.createElement(column_default, { start: [1], width: [2] }, /* @__PURE__ */ React22.createElement(
1976
+ Box14,
1689
1977
  {
1690
1978
  sx: { pointerEvents: "all", display: "block", width: "fit-content" }
1691
1979
  },
1692
- (mode === "homepage" || mode === "local") && /* @__PURE__ */ React17.createElement(NextLink2, { href: "/", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React17.createElement(
1693
- Link2,
1980
+ (mode == "homepage" || mode == "local") && /* @__PURE__ */ React22.createElement(NextLink3, { href: "/", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React22.createElement(
1981
+ Link4,
1694
1982
  {
1695
1983
  "aria-label": "CarbonPlan Homepage",
1696
1984
  sx: {
1697
1985
  display: "block"
1698
1986
  }
1699
1987
  },
1700
- /* @__PURE__ */ React17.createElement(
1988
+ /* @__PURE__ */ React22.createElement(
1701
1989
  logo_default,
1702
1990
  {
1703
1991
  id: "logo",
@@ -1708,17 +1996,17 @@ var Header = ({ status, mode, nav, menuItems }) => {
1708
1996
  }
1709
1997
  )
1710
1998
  )),
1711
- (mode == null || mode === "remote") && /* @__PURE__ */ React17.createElement(
1712
- Link2,
1999
+ (mode == null || mode == "remote") && /* @__PURE__ */ React22.createElement(
2000
+ Link4,
1713
2001
  {
1714
2002
  href: "https://carbonplan.org",
1715
2003
  "aria-label": "CarbonPlan Homepage",
1716
2004
  sx: { display: "block" }
1717
2005
  },
1718
- /* @__PURE__ */ React17.createElement(logo_default, { sx: { cursor: "pointer", color: "primary" } })
2006
+ /* @__PURE__ */ React22.createElement(logo_default, { sx: { cursor: "pointer", color: "primary" } })
1719
2007
  )
1720
2008
  )),
1721
- /* @__PURE__ */ React17.createElement(
2009
+ /* @__PURE__ */ React22.createElement(
1722
2010
  column_default,
1723
2011
  {
1724
2012
  start: [4, 9],
@@ -1729,8 +2017,8 @@ var Header = ({ status, mode, nav, menuItems }) => {
1729
2017
  alignItems: "center"
1730
2018
  }
1731
2019
  },
1732
- /* @__PURE__ */ React17.createElement(
1733
- Box13,
2020
+ /* @__PURE__ */ React22.createElement(
2021
+ Box14,
1734
2022
  {
1735
2023
  sx: {
1736
2024
  fontSize: [1, 2, 3],
@@ -1741,15 +2029,15 @@ var Header = ({ status, mode, nav, menuItems }) => {
1741
2029
  status ? `(${status})` : ""
1742
2030
  )
1743
2031
  ),
1744
- /* @__PURE__ */ React17.createElement(
2032
+ /* @__PURE__ */ React22.createElement(
1745
2033
  column_default,
1746
2034
  {
1747
2035
  start: [status ? 6 : 4, 6, 11, 11],
1748
2036
  width: [status ? 1 : 3, 3, 2, 2],
1749
2037
  sx: { zIndex: 5e3 }
1750
2038
  },
1751
- /* @__PURE__ */ React17.createElement(Flex2, { sx: { pointerEvents: "all", justifyContent: "flex-end" } }, /* @__PURE__ */ React17.createElement(
1752
- Box13,
2039
+ /* @__PURE__ */ React22.createElement(Flex3, { sx: { pointerEvents: "all", justifyContent: "flex-end" } }, /* @__PURE__ */ React22.createElement(
2040
+ Box14,
1753
2041
  {
1754
2042
  sx: {
1755
2043
  display: [status ? "none" : "flex", "flex", "flex", "flex"],
@@ -1762,20 +2050,32 @@ var Header = ({ status, mode, nav, menuItems }) => {
1762
2050
  }
1763
2051
  },
1764
2052
  menuItems
1765
- ), /* @__PURE__ */ React17.createElement(
2053
+ ), /* @__PURE__ */ React22.createElement(Flex3, { sx: { gap: 4 } }, /* @__PURE__ */ React22.createElement(
2054
+ search_default,
2055
+ {
2056
+ value: searchExpanded,
2057
+ onClick: () => {
2058
+ setSearchExpanded(!searchExpanded);
2059
+ !searchExpanded && setMenuExpanded(false);
2060
+ }
2061
+ }
2062
+ ), /* @__PURE__ */ React22.createElement(
1766
2063
  menu_default,
1767
2064
  {
1768
2065
  sx: {
1769
2066
  flexShrink: 0,
1770
2067
  mr: ["-2px"]
1771
2068
  },
1772
- value: expanded,
1773
- onClick: toggle
2069
+ value: menuExpanded,
2070
+ onClick: () => {
2071
+ setMenuExpanded(!menuExpanded);
2072
+ !menuExpanded && setSearchExpanded(false);
2073
+ }
1774
2074
  }
1775
- ))
2075
+ )))
1776
2076
  ),
1777
- /* @__PURE__ */ React17.createElement(
1778
- Box13,
2077
+ /* @__PURE__ */ React22.createElement(
2078
+ Box14,
1779
2079
  {
1780
2080
  sx: {
1781
2081
  opacity: expanded ? 1 : 0,
@@ -1793,42 +2093,41 @@ var Header = ({ status, mode, nav, menuItems }) => {
1793
2093
  transition: "opacity 0.25s"
1794
2094
  }
1795
2095
  },
1796
- /* @__PURE__ */ React17.createElement(Container, null, /* @__PURE__ */ React17.createElement(row_default, null, /* @__PURE__ */ React17.createElement(column_default, { start: [2, 4, 7, 7], width: [5, 4, 5, 5] }, /* @__PURE__ */ React17.createElement(
1797
- Box13,
2096
+ /* @__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(
2097
+ Box14,
1798
2098
  {
1799
2099
  as: "nav",
1800
2100
  sx: {
1801
- display: expanded ? "inherit" : "none",
2101
+ display: menuExpanded ? "inherit" : "none",
1802
2102
  mt: [5, 5, 5, 6]
1803
2103
  }
1804
2104
  },
1805
- /* @__PURE__ */ React17.createElement(
1806
- NavGroup,
2105
+ /* @__PURE__ */ React22.createElement(
2106
+ navigation_menu_default,
1807
2107
  {
1808
- links,
1809
2108
  nav,
1810
2109
  mode,
1811
- setExpanded
2110
+ setExpanded: setMenuExpanded
1812
2111
  }
1813
2112
  )
1814
- ))))
2113
+ )) : /* @__PURE__ */ React22.createElement(column_default, { start: [1, 2, 2, 2], width: [6, 6, 10, 10] }, /* @__PURE__ */ React22.createElement(search_menu_default, { setExpanded: setSearchExpanded }))))
1815
2114
  )
1816
2115
  );
1817
2116
  };
1818
2117
  var header_default = Header;
1819
2118
 
1820
2119
  // src/footer.tsx
1821
- import React19, { useState as useState3, useEffect as useEffect2 } from "react";
1822
- import { Box as Box15, Flex as Flex3, Link as Link3 } from "theme-ui";
1823
- import { default as NextLink3 } from "next/link";
2120
+ import React24, { useState as useState4, useEffect as useEffect3 } from "react";
2121
+ import { Box as Box16, Flex as Flex4, Link as Link5 } from "theme-ui";
2122
+ import { default as NextLink4 } from "next/link";
1824
2123
 
1825
2124
  // src/monogram.tsx
1826
- import React18 from "react";
1827
- import { Box as Box14 } from "theme-ui";
2125
+ import React23 from "react";
2126
+ import { Box as Box15 } from "theme-ui";
1828
2127
  var Monogram = (_a) => {
1829
2128
  var props = __objRest(_a, []);
1830
- return /* @__PURE__ */ React18.createElement(
1831
- Box14,
2129
+ return /* @__PURE__ */ React23.createElement(
2130
+ Box15,
1832
2131
  __spreadValues(__spreadValues({
1833
2132
  as: "svg"
1834
2133
  }, {
@@ -1837,21 +2136,21 @@ var Monogram = (_a) => {
1837
2136
  fill: "currentColor",
1838
2137
  viewBox: "0 0 32 32"
1839
2138
  }), props),
1840
- /* @__PURE__ */ React18.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" }),
1841
- /* @__PURE__ */ React18.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" }),
1842
- /* @__PURE__ */ React18.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" })
2139
+ /* @__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" }),
2140
+ /* @__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" }),
2141
+ /* @__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
2142
  );
1844
2143
  };
1845
2144
  var monogram_default = Monogram;
1846
2145
 
1847
2146
  // src/footer.tsx
1848
2147
  var Footer = () => {
1849
- const [year, setYear] = useState3(null);
1850
- useEffect2(() => {
2148
+ const [year, setYear] = useState4(null);
2149
+ useEffect3(() => {
1851
2150
  setYear((/* @__PURE__ */ new Date()).getFullYear());
1852
2151
  }, []);
1853
- return /* @__PURE__ */ React19.createElement(
1854
- Box15,
2152
+ return /* @__PURE__ */ React24.createElement(
2153
+ Box16,
1855
2154
  {
1856
2155
  sx: {
1857
2156
  mt: [7, 7, 7, 8],
@@ -1859,8 +2158,8 @@ var Footer = () => {
1859
2158
  pb: [2, 1, 0, 0]
1860
2159
  }
1861
2160
  },
1862
- /* @__PURE__ */ React19.createElement(row_default, { sx: { mb: [0, 0, 4, 5] } }, /* @__PURE__ */ React19.createElement(column_default, { start: [1, 2], width: [3, 3] }, /* @__PURE__ */ React19.createElement(Box15, null, /* @__PURE__ */ React19.createElement(
1863
- Box15,
2161
+ /* @__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(
2162
+ Box16,
1864
2163
  {
1865
2164
  sx: {
1866
2165
  fontSize: [2, 2, 2, 3],
@@ -1870,8 +2169,8 @@ var Footer = () => {
1870
2169
  }
1871
2170
  },
1872
2171
  "EMAIL"
1873
- ), /* @__PURE__ */ React19.createElement(
1874
- Link3,
2172
+ ), /* @__PURE__ */ React24.createElement(
2173
+ Link5,
1875
2174
  {
1876
2175
  href: "mailto:hello@carbonplan.org",
1877
2176
  sx: {
@@ -1880,7 +2179,7 @@ var Footer = () => {
1880
2179
  }
1881
2180
  },
1882
2181
  "hello@carbonplan.org"
1883
- ))), /* @__PURE__ */ React19.createElement(
2182
+ ))), /* @__PURE__ */ React24.createElement(
1884
2183
  column_default,
1885
2184
  {
1886
2185
  start: [5],
@@ -1892,9 +2191,9 @@ var Footer = () => {
1892
2191
  justifyContent: ["center"]
1893
2192
  }
1894
2193
  },
1895
- /* @__PURE__ */ React19.createElement(monogram_default, { sx: { mt: ["-4px"], width: "60px", height: "60px" } })
1896
- ), /* @__PURE__ */ React19.createElement(column_default, { start: [1, 5, 5, 5], width: [3, 3], sx: { mt: [3, 0, 0, 0] } }, /* @__PURE__ */ React19.createElement(Box15, null, /* @__PURE__ */ React19.createElement(
1897
- Box15,
2194
+ /* @__PURE__ */ React24.createElement(monogram_default, { sx: { mt: ["-4px"], width: "60px", height: "60px" } })
2195
+ ), /* @__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(
2196
+ Box16,
1898
2197
  {
1899
2198
  sx: {
1900
2199
  fontSize: [2, 2, 2, 3],
@@ -1904,8 +2203,8 @@ var Footer = () => {
1904
2203
  }
1905
2204
  },
1906
2205
  "NEWSLETTER"
1907
- ), /* @__PURE__ */ React19.createElement(
1908
- Link3,
2206
+ ), /* @__PURE__ */ React24.createElement(
2207
+ Link5,
1909
2208
  {
1910
2209
  href: "https://carbonplan.org/newsletter",
1911
2210
  sx: {
@@ -1914,15 +2213,15 @@ var Footer = () => {
1914
2213
  }
1915
2214
  },
1916
2215
  "Subscribe"
1917
- ))), /* @__PURE__ */ React19.createElement(
2216
+ ))), /* @__PURE__ */ React24.createElement(
1918
2217
  column_default,
1919
2218
  {
1920
2219
  start: [1, 9],
1921
2220
  width: [5, 4, 3, 3],
1922
2221
  sx: { mt: ["42px", "42px", 0, 0], mb: [3, 3, 0, 0] }
1923
2222
  },
1924
- /* @__PURE__ */ React19.createElement(Box15, null, /* @__PURE__ */ React19.createElement(
1925
- Box15,
2223
+ /* @__PURE__ */ React24.createElement(Box16, null, /* @__PURE__ */ React24.createElement(
2224
+ Box16,
1926
2225
  {
1927
2226
  sx: {
1928
2227
  fontSize: [2, 2, 2, 3],
@@ -1933,7 +2232,7 @@ var Footer = () => {
1933
2232
  "CarbonPlan is a registered nonprofit public benefit corporation in California with 501(c)(3) status."
1934
2233
  ))
1935
2234
  )),
1936
- /* @__PURE__ */ React19.createElement(row_default, { sx: { mb: ["2px"], mt: [5, 5, 4] } }, /* @__PURE__ */ React19.createElement(
2235
+ /* @__PURE__ */ React24.createElement(row_default, { sx: { mb: ["2px"], mt: [5, 5, 4] } }, /* @__PURE__ */ React24.createElement(
1937
2236
  column_default,
1938
2237
  {
1939
2238
  start: [1, 1, 2, 2],
@@ -1943,8 +2242,8 @@ var Footer = () => {
1943
2242
  alignItems: ["flex-start", "flex-start", "flex-end"]
1944
2243
  }
1945
2244
  },
1946
- /* @__PURE__ */ React19.createElement(
1947
- Box15,
2245
+ /* @__PURE__ */ React24.createElement(
2246
+ Box16,
1948
2247
  {
1949
2248
  sx: {
1950
2249
  bottom: "0px",
@@ -1956,8 +2255,8 @@ var Footer = () => {
1956
2255
  pt: [2]
1957
2256
  }
1958
2257
  },
1959
- /* @__PURE__ */ React19.createElement(
1960
- Box15,
2258
+ /* @__PURE__ */ React24.createElement(
2259
+ Box16,
1961
2260
  {
1962
2261
  sx: {
1963
2262
  color: "secondary",
@@ -1966,20 +2265,20 @@ var Footer = () => {
1966
2265
  letterSpacing: "mono"
1967
2266
  }
1968
2267
  },
1969
- /* @__PURE__ */ React19.createElement(
1970
- Flex3,
2268
+ /* @__PURE__ */ React24.createElement(
2269
+ Flex4,
1971
2270
  {
1972
2271
  sx: {
1973
2272
  flexDirection: ["column", "column", "row", "row"],
1974
2273
  gap: [0, 0, "10px", "12px"]
1975
2274
  }
1976
2275
  },
1977
- /* @__PURE__ */ React19.createElement(Box15, null, "(c) ", year),
1978
- /* @__PURE__ */ React19.createElement(Box15, null, "CARBONPLAN")
2276
+ /* @__PURE__ */ React24.createElement(Box16, null, "(c) ", year),
2277
+ /* @__PURE__ */ React24.createElement(Box16, null, "CARBONPLAN")
1979
2278
  )
1980
2279
  )
1981
2280
  )
1982
- ), /* @__PURE__ */ React19.createElement(
2281
+ ), /* @__PURE__ */ React24.createElement(
1983
2282
  column_default,
1984
2283
  {
1985
2284
  start: [4, 3, 5, 5],
@@ -1990,8 +2289,8 @@ var Footer = () => {
1990
2289
  mt: [0, 0, 0, 0]
1991
2290
  }
1992
2291
  },
1993
- /* @__PURE__ */ React19.createElement(
1994
- Box15,
2292
+ /* @__PURE__ */ React24.createElement(
2293
+ Box16,
1995
2294
  {
1996
2295
  sx: {
1997
2296
  bottom: "0px",
@@ -2002,8 +2301,8 @@ var Footer = () => {
2002
2301
  pt: [2]
2003
2302
  }
2004
2303
  },
2005
- /* @__PURE__ */ React19.createElement(
2006
- Flex3,
2304
+ /* @__PURE__ */ React24.createElement(
2305
+ Flex4,
2007
2306
  {
2008
2307
  sx: {
2009
2308
  color: "secondary",
@@ -2014,8 +2313,8 @@ var Footer = () => {
2014
2313
  gap: [0, 0, "10px", "12px"]
2015
2314
  }
2016
2315
  },
2017
- /* @__PURE__ */ React19.createElement(NextLink3, { href: "/terms", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React19.createElement(
2018
- Box15,
2316
+ /* @__PURE__ */ React24.createElement(NextLink4, { href: "/terms", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React24.createElement(
2317
+ Box16,
2019
2318
  {
2020
2319
  as: "a",
2021
2320
  sx: {
@@ -2027,9 +2326,9 @@ var Footer = () => {
2027
2326
  },
2028
2327
  "TERMS OF USE"
2029
2328
  )),
2030
- /* @__PURE__ */ React19.createElement(Box15, { sx: { display: ["none", "none", "initial", "initial"] } }, " / "),
2031
- /* @__PURE__ */ React19.createElement(NextLink3, { href: "/privacy", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React19.createElement(
2032
- Box15,
2329
+ /* @__PURE__ */ React24.createElement(Box16, { sx: { display: ["none", "none", "initial", "initial"] } }, " / "),
2330
+ /* @__PURE__ */ React24.createElement(NextLink4, { href: "/privacy", passHref: true, legacyBehavior: true }, /* @__PURE__ */ React24.createElement(
2331
+ Box16,
2033
2332
  {
2034
2333
  as: "a",
2035
2334
  sx: {
@@ -2043,14 +2342,14 @@ var Footer = () => {
2043
2342
  ))
2044
2343
  )
2045
2344
  )
2046
- ), /* @__PURE__ */ React19.createElement(
2345
+ ), /* @__PURE__ */ React24.createElement(
2047
2346
  column_default,
2048
2347
  {
2049
2348
  start: [5, 7, 9, 9],
2050
2349
  width: [2, 2, 3, 3],
2051
2350
  sx: { display: ["none", "initial", "initial", "initial"] }
2052
2351
  },
2053
- /* @__PURE__ */ React19.createElement(
2352
+ /* @__PURE__ */ React24.createElement(
2054
2353
  monogram_default,
2055
2354
  {
2056
2355
  sx: {
@@ -2067,17 +2366,17 @@ var Footer = () => {
2067
2366
  var footer_default = Footer;
2068
2367
 
2069
2368
  // src/dimmer.tsx
2070
- import React20 from "react";
2369
+ import React25 from "react";
2071
2370
  import { IconButton as IconButton2, useColorMode } from "theme-ui";
2072
2371
  import { useCallback } from "react";
2073
2372
  import { Sun } from "@carbonplan/icons";
2074
2373
  var Dimmer = (_a) => {
2075
- var _b = _a, { sx: sx3 = {} } = _b, props = __objRest(_b, ["sx"]);
2374
+ var _b = _a, { sx: sx4 = {} } = _b, props = __objRest(_b, ["sx"]);
2076
2375
  const [colorMode, setColorMode] = useColorMode();
2077
2376
  const toggle = useCallback(() => {
2078
2377
  setColorMode(colorMode === "light" ? "dark" : "light");
2079
2378
  }, [colorMode]);
2080
- return /* @__PURE__ */ React20.createElement(
2379
+ return /* @__PURE__ */ React25.createElement(
2081
2380
  IconButton2,
2082
2381
  __spreadValues({
2083
2382
  "aria-label": "Toggle dark mode",
@@ -2089,9 +2388,9 @@ var Dimmer = (_a) => {
2089
2388
  display: "inline-block",
2090
2389
  cursor: "pointer",
2091
2390
  color: "secondary"
2092
- }, sx3)
2391
+ }, sx4)
2093
2392
  }, props),
2094
- /* @__PURE__ */ React20.createElement(
2393
+ /* @__PURE__ */ React25.createElement(
2095
2394
  Sun,
2096
2395
  {
2097
2396
  sx: {
@@ -2110,13 +2409,13 @@ var Dimmer = (_a) => {
2110
2409
  var dimmer_default = Dimmer;
2111
2410
 
2112
2411
  // src/metadata.tsx
2113
- import React22 from "react";
2114
- import { Box as Box17, Text as Text2 } from "theme-ui";
2115
- import { useState as useState4, useEffect as useEffect3 } from "react";
2412
+ import React27 from "react";
2413
+ import { Box as Box18, Text as Text2 } from "theme-ui";
2414
+ import { useState as useState5, useEffect as useEffect4 } from "react";
2116
2415
 
2117
2416
  // src/gitsha.tsx
2118
- import React21 from "react";
2119
- import { Box as Box16, Text, Link as Link4, useThemeUI as useThemeUI2 } from "theme-ui";
2417
+ import React26 from "react";
2418
+ import { Box as Box17, Text, Link as Link6, useThemeUI as useThemeUI2 } from "theme-ui";
2120
2419
  var GitSha = () => {
2121
2420
  var _a;
2122
2421
  const sha = process.env.NEXT_PUBLIC_VERCEL_GIT_COMMIT_SHA;
@@ -2127,8 +2426,8 @@ var GitSha = () => {
2127
2426
  if (sha && owner && slug) {
2128
2427
  const shortSha = sha.substring(0, 7);
2129
2428
  const href = "https://github.com/" + owner + "/" + slug + "/tree/" + sha;
2130
- return /* @__PURE__ */ React21.createElement(Box16, { sx: { display: "inline-block", width: "87px" } }, /* @__PURE__ */ React21.createElement(Separator, { color: typeof color === "string" ? color : void 0 }), /* @__PURE__ */ React21.createElement(
2131
- Link4,
2429
+ 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(
2430
+ Link6,
2132
2431
  {
2133
2432
  href,
2134
2433
  sx: {
@@ -2146,7 +2445,7 @@ var GitSha = () => {
2146
2445
  shortSha
2147
2446
  ));
2148
2447
  } else {
2149
- return /* @__PURE__ */ React21.createElement(Box16, { sx: { display: "inline-block", width: "87px" } }, /* @__PURE__ */ React21.createElement(Separator, { color: typeof color === "string" ? color : void 0 }), /* @__PURE__ */ React21.createElement(
2448
+ 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
2449
  Text,
2151
2450
  {
2152
2451
  sx: {
@@ -2165,14 +2464,14 @@ var GitSha = () => {
2165
2464
  }
2166
2465
  };
2167
2466
  var Separator = ({ color = "secondary" }) => {
2168
- return /* @__PURE__ */ React21.createElement("svg", { fill: color, opacity: "0.8", viewBox: "0 0 24 24", width: "24", height: "24" }, /* @__PURE__ */ React21.createElement("circle", { r: 5, cx: 19, cy: 19 }));
2467
+ 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
2468
  };
2170
2469
  var gitsha_default = GitSha;
2171
2470
 
2172
2471
  // src/metadata.tsx
2173
2472
  var Value = ({ mode }) => {
2174
- const [display, setDisplay] = useState4(init(mode));
2175
- useEffect3(() => {
2473
+ const [display, setDisplay] = useState5(init(mode));
2474
+ useEffect4(() => {
2176
2475
  if (mode === "mouse") {
2177
2476
  const setFromEvent = (e) => {
2178
2477
  const x = format(e.clientX, 4);
@@ -2195,7 +2494,7 @@ var Value = ({ mode }) => {
2195
2494
  };
2196
2495
  }
2197
2496
  }, []);
2198
- return /* @__PURE__ */ React22.createElement(
2497
+ return /* @__PURE__ */ React27.createElement(
2199
2498
  Text2,
2200
2499
  {
2201
2500
  sx: {
@@ -2213,8 +2512,8 @@ var Value = ({ mode }) => {
2213
2512
  );
2214
2513
  };
2215
2514
  var Metadata = ({ mode }) => {
2216
- return /* @__PURE__ */ React22.createElement(
2217
- Box17,
2515
+ return /* @__PURE__ */ React27.createElement(
2516
+ Box18,
2218
2517
  {
2219
2518
  sx: {
2220
2519
  userSelect: "none",
@@ -2226,8 +2525,8 @@ var Metadata = ({ mode }) => {
2226
2525
  display: ["none", "none", "initial"]
2227
2526
  }
2228
2527
  },
2229
- /* @__PURE__ */ React22.createElement(Value, { mode }),
2230
- /* @__PURE__ */ React22.createElement(gitsha_default, null)
2528
+ /* @__PURE__ */ React27.createElement(Value, { mode }),
2529
+ /* @__PURE__ */ React27.createElement(gitsha_default, null)
2231
2530
  );
2232
2531
  };
2233
2532
  function init(mode) {
@@ -2248,8 +2547,8 @@ function scrollFraction(window2, document2) {
2248
2547
  var metadata_default = Metadata;
2249
2548
 
2250
2549
  // src/fade-in.tsx
2251
- import React23 from "react";
2252
- import { Box as Box18 } from "theme-ui";
2550
+ import React28 from "react";
2551
+ import { Box as Box19 } from "theme-ui";
2253
2552
  import { keyframes } from "@emotion/react";
2254
2553
  var fade = keyframes({
2255
2554
  from: {
@@ -2269,8 +2568,8 @@ var FadeIn = (_a) => {
2269
2568
  "delay",
2270
2569
  "children"
2271
2570
  ]);
2272
- return /* @__PURE__ */ React23.createElement(
2273
- Box18,
2571
+ return /* @__PURE__ */ React28.createElement(
2572
+ Box19,
2274
2573
  __spreadProps(__spreadValues({}, delegated), {
2275
2574
  sx: {
2276
2575
  animationDuration: duration + "ms",
@@ -2286,7 +2585,7 @@ var FadeIn = (_a) => {
2286
2585
  var fade_in_default = FadeIn;
2287
2586
 
2288
2587
  // src/scrollbar.tsx
2289
- import { useEffect as useEffect4 } from "react";
2588
+ import { useEffect as useEffect5 } from "react";
2290
2589
 
2291
2590
  // src/utils/get-scrollbar-width.ts
2292
2591
  var getScrollbarWidth = (document2) => {
@@ -2306,7 +2605,7 @@ var get_scrollbar_width_default = getScrollbarWidth;
2306
2605
 
2307
2606
  // src/scrollbar.tsx
2308
2607
  var Scrollbar = () => {
2309
- useEffect4(() => {
2608
+ useEffect5(() => {
2310
2609
  if (typeof document !== "undefined") {
2311
2610
  const delta = get_scrollbar_width_default(document);
2312
2611
  if (delta > 0) {
@@ -2320,11 +2619,11 @@ var Scrollbar = () => {
2320
2619
  var scrollbar_default = Scrollbar;
2321
2620
 
2322
2621
  // src/guide.tsx
2323
- import React24, { useState as useState5, useEffect as useEffect5 } from "react";
2324
- import { Box as Box19, Container as Container2 } from "theme-ui";
2622
+ import React29, { useState as useState6, useEffect as useEffect6 } from "react";
2623
+ import { Box as Box20, Container as Container2 } from "theme-ui";
2325
2624
  var Guide = ({ color = "muted" }) => {
2326
- const [display, setDisplay] = useState5(false);
2327
- useEffect5(() => {
2625
+ const [display, setDisplay] = useState6(false);
2626
+ useEffect6(() => {
2328
2627
  function handler(event) {
2329
2628
  const { key, metaKey } = event;
2330
2629
  if (key === ";" && metaKey) {
@@ -2336,8 +2635,8 @@ var Guide = ({ color = "muted" }) => {
2336
2635
  document.removeEventListener("keydown", handler);
2337
2636
  };
2338
2637
  }, []);
2339
- return /* @__PURE__ */ React24.createElement(
2340
- Box19,
2638
+ return /* @__PURE__ */ React29.createElement(
2639
+ Box20,
2341
2640
  {
2342
2641
  sx: {
2343
2642
  position: "fixed",
@@ -2349,13 +2648,13 @@ var Guide = ({ color = "muted" }) => {
2349
2648
  display: display ? "initial" : "none"
2350
2649
  }
2351
2650
  },
2352
- /* @__PURE__ */ React24.createElement(Container2, null, /* @__PURE__ */ React24.createElement(Box19, { sx: { display: ["none", "none", "initial", "initial"] } }, /* @__PURE__ */ React24.createElement(
2651
+ /* @__PURE__ */ React29.createElement(Container2, null, /* @__PURE__ */ React29.createElement(Box20, { sx: { display: ["none", "none", "initial", "initial"] } }, /* @__PURE__ */ React29.createElement(
2353
2652
  GuideColumns,
2354
2653
  {
2355
2654
  indices: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12],
2356
2655
  color
2357
2656
  }
2358
- )), /* @__PURE__ */ React24.createElement(Box19, { sx: { display: ["none", "initial", "none", "none"] } }, /* @__PURE__ */ React24.createElement(GuideColumns, { indices: [1, 2, 3, 4, 5, 6, 7, 8], color })), /* @__PURE__ */ React24.createElement(Box19, { sx: { display: ["initial", "none", "none", "none"] } }, /* @__PURE__ */ React24.createElement(GuideColumns, { indices: [1, 2, 3, 4, 5, 6], color })))
2657
+ )), /* @__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
2658
  );
2360
2659
  };
2361
2660
  var colorCycle = [
@@ -2372,7 +2671,7 @@ function GuideColumns({
2372
2671
  indices,
2373
2672
  color
2374
2673
  }) {
2375
- const sx3 = {
2674
+ const sx4 = {
2376
2675
  outerGuideColumn: {
2377
2676
  borderStyle: "solid",
2378
2677
  borderWidth: "0px",
@@ -2388,8 +2687,8 @@ function GuideColumns({
2388
2687
  opacity: color === "teal" ? 0.4 : 1
2389
2688
  }
2390
2689
  };
2391
- return /* @__PURE__ */ React24.createElement(row_default, null, indices.map((i) => {
2392
- return /* @__PURE__ */ React24.createElement(
2690
+ return /* @__PURE__ */ React29.createElement(row_default, null, indices.map((i) => {
2691
+ return /* @__PURE__ */ React29.createElement(
2393
2692
  column_default,
2394
2693
  {
2395
2694
  key: i,
@@ -2400,10 +2699,10 @@ function GuideColumns({
2400
2699
  sx: __spreadValues({
2401
2700
  bg: color === "teal" ? "teal" : "transparent",
2402
2701
  height: "100vh"
2403
- }, sx3.innerGuideColumn)
2702
+ }, sx4.innerGuideColumn)
2404
2703
  },
2405
- /* @__PURE__ */ React24.createElement(
2406
- Box19,
2704
+ /* @__PURE__ */ React29.createElement(
2705
+ Box20,
2407
2706
  {
2408
2707
  sx: __spreadValues({
2409
2708
  mx: ["12px", 3, 3, 4],
@@ -2411,7 +2710,7 @@ function GuideColumns({
2411
2710
  height: "100%",
2412
2711
  borderLeftColor: color === "rainbow" ? colorCycle[i % 8] : "muted",
2413
2712
  borderRightColor: color === "rainbow" ? colorCycle[i % 8] : "muted"
2414
- }, sx3.outerGuideColumn)
2713
+ }, sx4.outerGuideColumn)
2415
2714
  }
2416
2715
  )
2417
2716
  );
@@ -2420,96 +2719,9 @@ function GuideColumns({
2420
2719
  var guide_default = Guide;
2421
2720
 
2422
2721
  // src/settings.tsx
2423
- import React25 from "react";
2424
- import { IconButton as IconButton3 } from "theme-ui";
2425
- var Settings = (_a) => {
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
- );
2722
+ import React30 from "react";
2723
+ var Settings = (props) => {
2724
+ 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
2725
  };
2514
2726
  var settings_default = Settings;
2515
2727
 
@@ -2536,10 +2748,10 @@ var Layout = ({
2536
2748
  }) => {
2537
2749
  let content = children;
2538
2750
  if (fade2) {
2539
- content = /* @__PURE__ */ React26.createElement(fade_in_default, { duration: 250 }, content);
2751
+ content = /* @__PURE__ */ React31.createElement(fade_in_default, { duration: 250 }, content);
2540
2752
  }
2541
2753
  if (container) {
2542
- content = /* @__PURE__ */ React26.createElement(Box20, { sx: { mb: [8, 8, 9, 10] } }, /* @__PURE__ */ React26.createElement(Container3, null, content));
2754
+ content = /* @__PURE__ */ React31.createElement(Box21, { sx: { mb: [8, 8, 9, 10] } }, /* @__PURE__ */ React31.createElement(Container3, null, content));
2543
2755
  }
2544
2756
  const { theme } = useThemeUI3();
2545
2757
  const hideOnPrint = printable ? {
@@ -2547,7 +2759,7 @@ var Layout = ({
2547
2759
  display: "none"
2548
2760
  }
2549
2761
  } : {};
2550
- useEffect6(() => {
2762
+ useEffect7(() => {
2551
2763
  var _a;
2552
2764
  if (!theme) return;
2553
2765
  const handler = (e) => {
@@ -2564,7 +2776,7 @@ var Layout = ({
2564
2776
  };
2565
2777
  }, [theme == null ? void 0 : theme.breakpoints, settings == null ? void 0 : settings.value, settings == null ? void 0 : settings.onClick]);
2566
2778
  const menuItems = [
2567
- /* @__PURE__ */ React26.createElement(
2779
+ /* @__PURE__ */ React31.createElement(
2568
2780
  dimmer_default,
2569
2781
  {
2570
2782
  key: "dimmer",
@@ -2583,7 +2795,7 @@ var Layout = ({
2583
2795
  ];
2584
2796
  if (settings) {
2585
2797
  menuItems.push(
2586
- /* @__PURE__ */ React26.createElement(
2798
+ /* @__PURE__ */ React31.createElement(
2587
2799
  settings_default,
2588
2800
  __spreadValues({
2589
2801
  key: "settings",
@@ -2592,16 +2804,16 @@ var Layout = ({
2592
2804
  )
2593
2805
  );
2594
2806
  }
2595
- return /* @__PURE__ */ React26.createElement(React26.Fragment, null, guide && /* @__PURE__ */ React26.createElement(guide_default, { color: typeof guide === "string" ? guide : void 0 }), scrollbar && /* @__PURE__ */ React26.createElement(scrollbar_default, null), /* @__PURE__ */ React26.createElement(meta_default, { card, description, title, url }), /* @__PURE__ */ React26.createElement(
2596
- Flex4,
2807
+ 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(
2808
+ Flex5,
2597
2809
  {
2598
2810
  sx: {
2599
2811
  flexDirection: "column",
2600
2812
  minHeight: "100vh"
2601
2813
  }
2602
2814
  },
2603
- header && /* @__PURE__ */ React26.createElement(
2604
- Box20,
2815
+ header && /* @__PURE__ */ React31.createElement(
2816
+ Box21,
2605
2817
  {
2606
2818
  as: "header",
2607
2819
  sx: __spreadValues({
@@ -2617,7 +2829,7 @@ var Layout = ({
2617
2829
  zIndex: 2e3
2618
2830
  }, hideOnPrint)
2619
2831
  },
2620
- /* @__PURE__ */ React26.createElement(Container3, null, /* @__PURE__ */ React26.createElement(
2832
+ /* @__PURE__ */ React31.createElement(Container3, null, /* @__PURE__ */ React31.createElement(
2621
2833
  header_default,
2622
2834
  {
2623
2835
  mode: links2,
@@ -2627,8 +2839,8 @@ var Layout = ({
2627
2839
  }
2628
2840
  ))
2629
2841
  ),
2630
- /* @__PURE__ */ React26.createElement(
2631
- Box20,
2842
+ /* @__PURE__ */ React31.createElement(
2843
+ Box21,
2632
2844
  {
2633
2845
  sx: {
2634
2846
  width: "100%",
@@ -2637,8 +2849,8 @@ var Layout = ({
2637
2849
  },
2638
2850
  content
2639
2851
  ),
2640
- footer && /* @__PURE__ */ React26.createElement(
2641
- Box20,
2852
+ footer && /* @__PURE__ */ React31.createElement(
2853
+ Box21,
2642
2854
  {
2643
2855
  as: "footer",
2644
2856
  sx: __spreadValues({
@@ -2649,10 +2861,10 @@ var Layout = ({
2649
2861
  borderTopWidth: "1px"
2650
2862
  }, hideOnPrint)
2651
2863
  },
2652
- /* @__PURE__ */ React26.createElement(Container3, null, /* @__PURE__ */ React26.createElement(footer_default, null))
2864
+ /* @__PURE__ */ React31.createElement(Container3, null, /* @__PURE__ */ React31.createElement(footer_default, null))
2653
2865
  ),
2654
- dimmer === "bottom" && /* @__PURE__ */ React26.createElement(
2655
- Box20,
2866
+ dimmer === "bottom" && /* @__PURE__ */ React31.createElement(
2867
+ Box21,
2656
2868
  {
2657
2869
  sx: {
2658
2870
  display: ["none", "none", "initial", "initial"],
@@ -2661,24 +2873,24 @@ var Layout = ({
2661
2873
  bottom: [17, 17, 15, 15]
2662
2874
  }
2663
2875
  },
2664
- /* @__PURE__ */ React26.createElement(dimmer_default, null)
2876
+ /* @__PURE__ */ React31.createElement(dimmer_default, null)
2665
2877
  ),
2666
- metadata && /* @__PURE__ */ React26.createElement(metadata_default, { mode: typeof metadata === "string" ? metadata : "mouse" })
2878
+ metadata && /* @__PURE__ */ React31.createElement(metadata_default, { mode: typeof metadata === "string" ? metadata : "mouse" })
2667
2879
  ));
2668
2880
  };
2669
2881
  var layout_default = Layout;
2670
2882
 
2671
2883
  // src/custom-404.tsx
2672
2884
  var Custom404 = () => {
2673
- return /* @__PURE__ */ React27.createElement(
2885
+ return /* @__PURE__ */ React32.createElement(
2674
2886
  layout_default,
2675
2887
  {
2676
2888
  footer: false,
2677
2889
  title: "404 \u2013 CarbonPlan",
2678
2890
  description: "Sorry but we can't seem to find the page you are looking for."
2679
2891
  },
2680
- /* @__PURE__ */ React27.createElement(row_default, { sx: { mb: [5, 0, 0], pt: [0, 0, 6] } }, /* @__PURE__ */ React27.createElement(column_default, { start: [1, 1, 3, 3], width: [6, 4, 4, 4] }, /* @__PURE__ */ React27.createElement(Box21, { as: "h1", variant: "styles.h1" }, "Oops!"), /* @__PURE__ */ React27.createElement(
2681
- Box21,
2892
+ /* @__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(
2893
+ Box22,
2682
2894
  {
2683
2895
  sx: {
2684
2896
  fontSize: [4, 4, 4, 5],
@@ -2689,8 +2901,8 @@ var Custom404 = () => {
2689
2901
  }
2690
2902
  },
2691
2903
  "Sorry but we can't seem to find the page you are looking for."
2692
- ), /* @__PURE__ */ React27.createElement(
2693
- Box21,
2904
+ ), /* @__PURE__ */ React32.createElement(
2905
+ Box22,
2694
2906
  {
2695
2907
  sx: {
2696
2908
  color: "secondary",
@@ -2701,8 +2913,8 @@ var Custom404 = () => {
2701
2913
  }
2702
2914
  },
2703
2915
  "ERROR CODE 404"
2704
- )), /* @__PURE__ */ React27.createElement(column_default, { start: [2, 5, 7, 7], width: [4, 4, 4, 4] }, /* @__PURE__ */ React27.createElement(
2705
- Box21,
2916
+ )), /* @__PURE__ */ React32.createElement(column_default, { start: [2, 5, 7, 7], width: [4, 4, 4, 4] }, /* @__PURE__ */ React32.createElement(
2917
+ Box22,
2706
2918
  {
2707
2919
  sx: {
2708
2920
  width: ["100%"],
@@ -2710,18 +2922,18 @@ var Custom404 = () => {
2710
2922
  fill: "primary"
2711
2923
  }
2712
2924
  },
2713
- /* @__PURE__ */ React27.createElement(PoopSad, { sx: { width: "100%", height: "auto" } })
2925
+ /* @__PURE__ */ React32.createElement(PoopSad, { sx: { width: "100%", height: "auto" } })
2714
2926
  )))
2715
2927
  );
2716
2928
  };
2717
2929
  var custom_404_default = Custom404;
2718
2930
 
2719
2931
  // src/expander.tsx
2720
- import React28 from "react";
2721
- import { IconButton as IconButton4 } from "theme-ui";
2722
- var Expander = ({ value, id, onClick, sx: sx3 }) => {
2723
- return /* @__PURE__ */ React28.createElement(
2724
- IconButton4,
2932
+ import React33 from "react";
2933
+ import { IconButton as IconButton3 } from "theme-ui";
2934
+ var Expander = ({ value, id, onClick, sx: sx4 }) => {
2935
+ return /* @__PURE__ */ React33.createElement(
2936
+ IconButton3,
2725
2937
  {
2726
2938
  onClick,
2727
2939
  id,
@@ -2742,9 +2954,9 @@ var Expander = ({ value, id, onClick, sx: sx3 }) => {
2742
2954
  stroke: "primary"
2743
2955
  }
2744
2956
  }
2745
- }, sx3)
2957
+ }, sx4)
2746
2958
  },
2747
- /* @__PURE__ */ React28.createElement("svg", { viewBox: "0 0 16 16" }, /* @__PURE__ */ React28.createElement(
2959
+ /* @__PURE__ */ React33.createElement("svg", { viewBox: "0 0 16 16" }, /* @__PURE__ */ React33.createElement(
2748
2960
  "path",
2749
2961
  {
2750
2962
  d: "M8,0 V16 M0,8 H16",
@@ -2761,22 +2973,22 @@ var Expander = ({ value, id, onClick, sx: sx3 }) => {
2761
2973
  var expander_default = Expander;
2762
2974
 
2763
2975
  // src/figure.tsx
2764
- import React29 from "react";
2765
- import { Box as Box22 } from "theme-ui";
2766
- var Figure = ({ as = "figure", children, sx: sx3 }) => {
2767
- const childrenArray = React29.Children.toArray(children);
2976
+ import React34 from "react";
2977
+ import { Box as Box23 } from "theme-ui";
2978
+ var Figure = ({ as = "figure", children, sx: sx4 }) => {
2979
+ const childrenArray = React34.Children.toArray(children);
2768
2980
  const captionElement = childrenArray.find((child) => {
2769
- if (!React29.isValidElement(child)) return false;
2981
+ if (!React34.isValidElement(child)) return false;
2770
2982
  const type = child.type;
2771
2983
  return typeof type !== "string" && "displayName" in type && (type.displayName === "FigureCaption" || type.displayName === "TableCaption");
2772
2984
  });
2773
- const captionProps = React29.isValidElement(captionElement) ? captionElement.props : void 0;
2774
- const captionType = React29.isValidElement(captionElement) ? captionElement.type : void 0;
2985
+ const captionProps = React34.isValidElement(captionElement) ? captionElement.props : void 0;
2986
+ const captionType = React34.isValidElement(captionElement) ? captionElement.type : void 0;
2775
2987
  const elementNumber = captionProps == null ? void 0 : captionProps.number;
2776
2988
  const elementType = typeof captionType !== "string" && captionType && "displayName" in captionType && captionType.displayName === "TableCaption" ? "table" : "figure";
2777
2989
  const id = elementNumber ? `${elementType}-${elementNumber}` : void 0;
2778
- return /* @__PURE__ */ React29.createElement(
2779
- Box22,
2990
+ return /* @__PURE__ */ React34.createElement(
2991
+ Box23,
2780
2992
  {
2781
2993
  as,
2782
2994
  id,
@@ -2787,38 +2999,38 @@ var Figure = ({ as = "figure", children, sx: sx3 }) => {
2787
2999
  "@media print": {
2788
3000
  breakInside: "avoid"
2789
3001
  }
2790
- }, sx3)
3002
+ }, sx4)
2791
3003
  },
2792
- /* @__PURE__ */ React29.createElement(group_default, { spacing: [4, 4, 4, 5] }, children)
3004
+ /* @__PURE__ */ React34.createElement(group_default, { spacing: [4, 4, 4, 5] }, children)
2793
3005
  );
2794
3006
  };
2795
3007
  var figure_default = Figure;
2796
3008
 
2797
3009
  // src/figure-caption.tsx
2798
- import React30 from "react";
3010
+ import React35 from "react";
2799
3011
  var FigureCaption = ({
2800
3012
  as = "figcaption",
2801
3013
  number,
2802
3014
  children
2803
3015
  }) => {
2804
- return /* @__PURE__ */ React30.createElement(caption_default, { as, number, label: "figure" }, children);
3016
+ return /* @__PURE__ */ React35.createElement(caption_default, { as, number, label: "figure" }, children);
2805
3017
  };
2806
3018
  FigureCaption.displayName = "FigureCaption";
2807
3019
  var figure_caption_default = FigureCaption;
2808
3020
 
2809
3021
  // src/filter.tsx
2810
- import React32, { useMemo } from "react";
2811
- import { Box as Box24 } from "theme-ui";
3022
+ import React37, { useMemo } from "react";
3023
+ import { Box as Box25 } from "theme-ui";
2812
3024
 
2813
3025
  // src/tag.tsx
2814
- import React31 from "react";
2815
- import { Box as Box23 } from "theme-ui";
3026
+ import React36 from "react";
3027
+ import { Box as Box24 } from "theme-ui";
2816
3028
  var Tag = (_a) => {
2817
- var _b = _a, { label, value, sx: sx3, children } = _b, props = __objRest(_b, ["label", "value", "sx", "children"]);
2818
- const color = get_sx_color_default(sx3);
3029
+ var _b = _a, { label, value, sx: sx4, children } = _b, props = __objRest(_b, ["label", "value", "sx", "children"]);
3030
+ const color = get_sx_color_default(sx4);
2819
3031
  const isClickable = props && (props.onClick || props.onDoubleClick);
2820
- return /* @__PURE__ */ React31.createElement(
2821
- Box23,
3032
+ return /* @__PURE__ */ React36.createElement(
3033
+ Box24,
2822
3034
  __spreadValues({
2823
3035
  as: isClickable ? "button" : "span",
2824
3036
  role: "checkbox",
@@ -2845,7 +3057,7 @@ var Tag = (_a) => {
2845
3057
  px: [0],
2846
3058
  m: [0],
2847
3059
  opacity: value == null || value ? 1 : color === "primary" ? 0.24 : 0.33
2848
- }, sx3)
3060
+ }, sx4)
2849
3061
  }, props),
2850
3062
  children
2851
3063
  );
@@ -2853,7 +3065,7 @@ var Tag = (_a) => {
2853
3065
  var tag_default = Tag;
2854
3066
 
2855
3067
  // src/filter.tsx
2856
- var sx2 = {
3068
+ var sx3 = {
2857
3069
  label: {
2858
3070
  fontFamily: "mono",
2859
3071
  letterSpacing: "mono",
@@ -2925,7 +3137,7 @@ var Filter = (_a) => {
2925
3137
  return Object.keys(values);
2926
3138
  }
2927
3139
  }, [order, ...Object.keys(values).sort()]);
2928
- return /* @__PURE__ */ React32.createElement(Box24, __spreadValues({}, props), label && /* @__PURE__ */ React32.createElement(Box24, { sx: sx2.label }, label), /* @__PURE__ */ React32.createElement(Box24, { sx: { mt: label ? [3] : 0 } }, showAll && /* @__PURE__ */ React32.createElement(
3140
+ 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
3141
  tag_default,
2930
3142
  {
2931
3143
  label: "all",
@@ -2939,7 +3151,7 @@ var Filter = (_a) => {
2939
3151
  sx: { mr: [2] }
2940
3152
  },
2941
3153
  "All"
2942
- ), keys.map((d, i) => /* @__PURE__ */ React32.createElement(
3154
+ ), keys.map((d, i) => /* @__PURE__ */ React37.createElement(
2943
3155
  tag_default,
2944
3156
  {
2945
3157
  label: String(d),
@@ -2970,18 +3182,18 @@ var Filter = (_a) => {
2970
3182
  var filter_default = Filter;
2971
3183
 
2972
3184
  // src/heading.tsx
2973
- import React34 from "react";
2974
- import { Box as Box26 } from "theme-ui";
3185
+ import React39 from "react";
3186
+ import { Box as Box27 } from "theme-ui";
2975
3187
 
2976
3188
  // src/sidenote.tsx
2977
- import React33 from "react";
2978
- import { Box as Box25 } from "theme-ui";
3189
+ import React38 from "react";
3190
+ import { Box as Box26 } from "theme-ui";
2979
3191
  var Sidenote = ({ children, variant = "h1" }) => {
2980
3192
  let mt;
2981
3193
  if (variant === "h1") mt = [4, "27px", "42px", "54px"];
2982
3194
  if (variant === "h2") mt = [4, 4, "14px", "25px"];
2983
- return /* @__PURE__ */ React33.createElement(React33.Fragment, null, /* @__PURE__ */ React33.createElement(column_default, { start: [1, 4, 8, 8], width: [1, 1, 1, 1] }, /* @__PURE__ */ React33.createElement(
2984
- Box25,
3195
+ 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(
3196
+ Box26,
2985
3197
  {
2986
3198
  sx: {
2987
3199
  mt,
@@ -2992,8 +3204,8 @@ var Sidenote = ({ children, variant = "h1" }) => {
2992
3204
  }
2993
3205
  },
2994
3206
  "/"
2995
- )), /* @__PURE__ */ React33.createElement(column_default, { start: [2, 5, 9, 9], width: [3, 3, 2, 2] }, /* @__PURE__ */ React33.createElement(
2996
- Box25,
3207
+ )), /* @__PURE__ */ React38.createElement(column_default, { start: [2, 5, 9, 9], width: [3, 3, 2, 2] }, /* @__PURE__ */ React38.createElement(
3208
+ Box26,
2997
3209
  {
2998
3210
  sx: {
2999
3211
  mt,
@@ -3016,7 +3228,7 @@ var Heading = ({
3016
3228
  description,
3017
3229
  descriptionStart = [1, 3, 5, 5],
3018
3230
  descriptionWidth = [5, 5, 5, 4],
3019
- sx: sx3
3231
+ sx: sx4
3020
3232
  }) => {
3021
3233
  let titleWidth = [6, 6, 6, 6];
3022
3234
  if (description) {
@@ -3027,8 +3239,8 @@ var Heading = ({
3027
3239
  if (!["h1", "h2"].includes(variant)) {
3028
3240
  throw new Error(`variant must be 'h1' or 'h2' but got '${variant}'`);
3029
3241
  }
3030
- return /* @__PURE__ */ React34.createElement(row_default, { sx: __spreadValues({ mt: [5, 6, 7, 8], mb: [5, 6, 7, 8] }, sx3) }, /* @__PURE__ */ React34.createElement(column_default, { start: [1, 1, 2, 2], width: titleWidth }, variant === "h1" && /* @__PURE__ */ React34.createElement(Box26, { as: "h1", variant: "styles.h1", sx: { my: [0, 0, 0, 0] } }, children), variant === "h2" && /* @__PURE__ */ React34.createElement(Box26, { as: "h2", variant: "styles.h2", sx: { my: [0, 0, 0, 0] } }, children)), sidenote && /* @__PURE__ */ React34.createElement(sidenote_default, { variant }, sidenote), description && /* @__PURE__ */ React34.createElement(column_default, { start: descriptionStart, width: descriptionWidth }, /* @__PURE__ */ React34.createElement(
3031
- Box26,
3242
+ 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(
3243
+ Box27,
3032
3244
  {
3033
3245
  sx: {
3034
3246
  mt: [4, "5px", "20px", "31px"],
@@ -3040,47 +3252,10 @@ var Heading = ({
3040
3252
  };
3041
3253
  var heading_default = Heading;
3042
3254
 
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
3255
  // src/link-group.tsx
3081
- import React36 from "react";
3082
- import { Flex as Flex5 } from "theme-ui";
3083
- import { RotatingArrow } from "@carbonplan/icons";
3256
+ import React40 from "react";
3257
+ import { Flex as Flex6 } from "theme-ui";
3258
+ import { RotatingArrow as RotatingArrow2 } from "@carbonplan/icons";
3084
3259
  var LinkGroup = ({
3085
3260
  members,
3086
3261
  color,
@@ -3089,20 +3264,20 @@ var LinkGroup = ({
3089
3264
  rowGap = [2, 2, 2, 3],
3090
3265
  columnGap = [3, 3, 3, 4],
3091
3266
  direction = "horizontal",
3092
- sx: sx3
3267
+ sx: sx4
3093
3268
  }) => {
3094
- return /* @__PURE__ */ React36.createElement(
3095
- Flex5,
3269
+ return /* @__PURE__ */ React40.createElement(
3270
+ Flex6,
3096
3271
  {
3097
3272
  sx: __spreadValues({
3098
3273
  flexDirection: direction === "horizontal" ? "row" : "column",
3099
3274
  rowGap,
3100
3275
  columnGap,
3101
3276
  flexWrap: "wrap"
3102
- }, sx3)
3277
+ }, sx4)
3103
3278
  },
3104
3279
  members.map((d, i) => {
3105
- return /* @__PURE__ */ React36.createElement(
3280
+ return /* @__PURE__ */ React40.createElement(
3106
3281
  button_default,
3107
3282
  {
3108
3283
  key: i,
@@ -3110,7 +3285,7 @@ var LinkGroup = ({
3110
3285
  size,
3111
3286
  sx: { color },
3112
3287
  inverted,
3113
- suffix: /* @__PURE__ */ React36.createElement(RotatingArrow, null)
3288
+ suffix: /* @__PURE__ */ React40.createElement(RotatingArrow2, null)
3114
3289
  },
3115
3290
  d.label
3116
3291
  );
@@ -3120,14 +3295,14 @@ var LinkGroup = ({
3120
3295
  var link_group_default = LinkGroup;
3121
3296
 
3122
3297
  // src/select.tsx
3123
- import React37, { useRef as useRef2 } from "react";
3124
- import { Box as Box27 } from "theme-ui";
3125
- import { Arrow as Arrow3 } from "@carbonplan/icons";
3298
+ import React41, { useRef as useRef2 } from "react";
3299
+ import { Box as Box28 } from "theme-ui";
3300
+ import { Arrow as Arrow4 } from "@carbonplan/icons";
3126
3301
  var Select = (_a) => {
3127
3302
  var _b = _a, {
3128
3303
  children,
3129
3304
  size = "sm",
3130
- sx: sx3,
3305
+ sx: sx4,
3131
3306
  sxSelect,
3132
3307
  onChange
3133
3308
  } = _b, props = __objRest(_b, [
@@ -3137,7 +3312,7 @@ var Select = (_a) => {
3137
3312
  "sxSelect",
3138
3313
  "onChange"
3139
3314
  ]);
3140
- const color = get_sx_color_default(sx3);
3315
+ const color = get_sx_color_default(sx4);
3141
3316
  const sizeStyles = get_size_styles_default(size);
3142
3317
  const ref = useRef2(null);
3143
3318
  if (!["xs", "sm", "md"].includes(size)) {
@@ -3165,15 +3340,15 @@ var Select = (_a) => {
3165
3340
  };
3166
3341
  const { height, width, top, ml } = sizeConfig[size];
3167
3342
  const pr = width.map((d) => d + 12);
3168
- return /* @__PURE__ */ React37.createElement(
3169
- Box27,
3343
+ return /* @__PURE__ */ React41.createElement(
3344
+ Box28,
3170
3345
  {
3171
3346
  sx: __spreadValues({
3172
3347
  display: "inline-block"
3173
- }, sx3)
3348
+ }, sx4)
3174
3349
  },
3175
- /* @__PURE__ */ React37.createElement(
3176
- Box27,
3350
+ /* @__PURE__ */ React41.createElement(
3351
+ Box28,
3177
3352
  __spreadValues({
3178
3353
  as: "select",
3179
3354
  ref,
@@ -3209,8 +3384,8 @@ var Select = (_a) => {
3209
3384
  }, props),
3210
3385
  children
3211
3386
  ),
3212
- /* @__PURE__ */ React37.createElement(
3213
- Arrow3,
3387
+ /* @__PURE__ */ React41.createElement(
3388
+ Arrow4,
3214
3389
  {
3215
3390
  sx: {
3216
3391
  width,
@@ -3229,15 +3404,15 @@ var Select = (_a) => {
3229
3404
  var select_default = Select;
3230
3405
 
3231
3406
  // src/slider.tsx
3232
- import React38, { forwardRef as forwardRef5 } from "react";
3407
+ import React42, { forwardRef as forwardRef5 } from "react";
3233
3408
  import { useThemeUI as useThemeUI4, Slider as ThemeSlider } from "theme-ui";
3234
3409
  var Slider = (_a, ref) => {
3235
- var _b = _a, { sx: sx3 } = _b, props = __objRest(_b, ["sx"]);
3236
- const color = get_sx_color_default(sx3);
3410
+ var _b = _a, { sx: sx4 } = _b, props = __objRest(_b, ["sx"]);
3411
+ const color = get_sx_color_default(sx4);
3237
3412
  const {
3238
3413
  theme: { rawColors: colors }
3239
3414
  } = useThemeUI4();
3240
- return /* @__PURE__ */ React38.createElement(
3415
+ return /* @__PURE__ */ React42.createElement(
3241
3416
  ThemeSlider,
3242
3417
  __spreadValues({
3243
3418
  ref,
@@ -3268,15 +3443,15 @@ var Slider = (_a, ref) => {
3268
3443
  }
3269
3444
  },
3270
3445
  color
3271
- }, sx3)
3446
+ }, sx4)
3272
3447
  }, props)
3273
3448
  );
3274
3449
  };
3275
3450
  var slider_default = forwardRef5(Slider);
3276
3451
 
3277
3452
  // src/table.tsx
3278
- import React39 from "react";
3279
- import { Box as Box28 } from "theme-ui";
3453
+ import React43 from "react";
3454
+ import { Box as Box29 } from "theme-ui";
3280
3455
  var styles2 = {
3281
3456
  reset: {
3282
3457
  verticalAlign: "baseline",
@@ -3319,7 +3494,7 @@ var styles2 = {
3319
3494
  };
3320
3495
  var Table = ({
3321
3496
  data,
3322
- sx: sx3,
3497
+ sx: sx4,
3323
3498
  color,
3324
3499
  header,
3325
3500
  columns,
@@ -3332,7 +3507,7 @@ var Table = ({
3332
3507
  if (!start || !columns || !width) {
3333
3508
  throw new Error("Must provide columns, start, and width");
3334
3509
  }
3335
- return /* @__PURE__ */ React39.createElement(Box28, { as: "table", sx: __spreadValues({ display: "block" }, sx3) }, /* @__PURE__ */ React39.createElement(Box28, { as: "tbody", sx: { display: "block" } }, header && /* @__PURE__ */ React39.createElement(
3510
+ 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
3511
  row_default,
3337
3512
  {
3338
3513
  as: "tr",
@@ -3341,9 +3516,9 @@ var Table = ({
3341
3516
  borderTopWidth: !borderTop ? "0px" : "1px"
3342
3517
  })
3343
3518
  },
3344
- /* @__PURE__ */ React39.createElement(column_default, { as: "td", start: [1], width: columns, sx: styles2.index }, header)
3519
+ /* @__PURE__ */ React43.createElement(column_default, { as: "td", start: [1], width: columns, sx: styles2.index }, header)
3345
3520
  ), data.map((row, i) => {
3346
- return /* @__PURE__ */ React39.createElement(
3521
+ return /* @__PURE__ */ React43.createElement(
3347
3522
  row_default,
3348
3523
  {
3349
3524
  as: "tr",
@@ -3356,7 +3531,7 @@ var Table = ({
3356
3531
  })
3357
3532
  },
3358
3533
  row.map((column, j) => {
3359
- return /* @__PURE__ */ React39.createElement(
3534
+ return /* @__PURE__ */ React43.createElement(
3360
3535
  column_default,
3361
3536
  {
3362
3537
  as: "td",
@@ -3374,27 +3549,27 @@ var Table = ({
3374
3549
  var table_default = Table;
3375
3550
 
3376
3551
  // src/table-caption.tsx
3377
- import React40 from "react";
3552
+ import React44 from "react";
3378
3553
  var TableCaption = ({
3379
3554
  as = "figcaption",
3380
3555
  number,
3381
3556
  children
3382
3557
  }) => {
3383
- return /* @__PURE__ */ React40.createElement(caption_default, { as, number, label: "table" }, children);
3558
+ return /* @__PURE__ */ React44.createElement(caption_default, { as, number, label: "table" }, children);
3384
3559
  };
3385
3560
  TableCaption.displayName = "TableCaption";
3386
3561
  var table_caption_default = TableCaption;
3387
3562
 
3388
3563
  // src/toggle.tsx
3389
- import React41, { forwardRef as forwardRef6 } from "react";
3390
- import { Box as Box29 } from "theme-ui";
3564
+ import React45, { forwardRef as forwardRef6 } from "react";
3565
+ import { Box as Box30 } from "theme-ui";
3391
3566
  import { transparentize as transparentize2 } from "@theme-ui/color";
3392
3567
  var Toggle = (_a, ref) => {
3393
- var _b = _a, { value, onClick, disabled, sx: sx3 } = _b, props = __objRest(_b, ["value", "onClick", "disabled", "sx"]);
3394
- const color = get_sx_color_default(sx3);
3568
+ var _b = _a, { value, onClick, disabled, sx: sx4 } = _b, props = __objRest(_b, ["value", "onClick", "disabled", "sx"]);
3569
+ const color = get_sx_color_default(sx4);
3395
3570
  const active = disabled ? false : value;
3396
- return /* @__PURE__ */ React41.createElement(
3397
- Box29,
3571
+ return /* @__PURE__ */ React45.createElement(
3572
+ Box30,
3398
3573
  __spreadValues({
3399
3574
  ref,
3400
3575
  as: "button",
@@ -3409,10 +3584,10 @@ var Toggle = (_a, ref) => {
3409
3584
  p: [0],
3410
3585
  m: [0],
3411
3586
  display: "inline-block"
3412
- }, sx3)
3587
+ }, sx4)
3413
3588
  }, props),
3414
- /* @__PURE__ */ React41.createElement(
3415
- Box29,
3589
+ /* @__PURE__ */ React45.createElement(
3590
+ Box30,
3416
3591
  {
3417
3592
  sx: {
3418
3593
  width: "50px",
@@ -3424,8 +3599,8 @@ var Toggle = (_a, ref) => {
3424
3599
  display: "inline-block"
3425
3600
  }
3426
3601
  },
3427
- /* @__PURE__ */ React41.createElement(
3428
- Box29,
3602
+ /* @__PURE__ */ React45.createElement(
3603
+ Box30,
3429
3604
  {
3430
3605
  sx: {
3431
3606
  width: "14px",
@@ -3445,11 +3620,11 @@ var Toggle = (_a, ref) => {
3445
3620
  var toggle_default = forwardRef6(Toggle);
3446
3621
 
3447
3622
  // src/tray.tsx
3448
- import React42 from "react";
3449
- import { Box as Box30 } from "theme-ui";
3450
- var Tray = ({ expanded, sx: sx3, children }) => {
3451
- return /* @__PURE__ */ React42.createElement(React42.Fragment, null, /* @__PURE__ */ React42.createElement(
3452
- Box30,
3623
+ import React46 from "react";
3624
+ import { Box as Box31 } from "theme-ui";
3625
+ var Tray = ({ expanded, sx: sx4, children }) => {
3626
+ return /* @__PURE__ */ React46.createElement(React46.Fragment, null, /* @__PURE__ */ React46.createElement(
3627
+ Box31,
3453
3628
  {
3454
3629
  sx: {
3455
3630
  position: "fixed",
@@ -3465,8 +3640,8 @@ var Tray = ({ expanded, sx: sx3, children }) => {
3465
3640
  pointerEvents: expanded ? "all" : "none"
3466
3641
  }
3467
3642
  }
3468
- ), /* @__PURE__ */ React42.createElement(
3469
- Box30,
3643
+ ), /* @__PURE__ */ React46.createElement(
3644
+ Box31,
3470
3645
  {
3471
3646
  sx: __spreadValues({
3472
3647
  position: "fixed",
@@ -3486,9 +3661,9 @@ var Tray = ({ expanded, sx: sx3, children }) => {
3486
3661
  pl: [3, 4, 5, 6],
3487
3662
  pr: [3, 4, 5, 6],
3488
3663
  transform: expanded ? "translateY(0)" : "translateY(-100%)"
3489
- }, sx3)
3664
+ }, sx4)
3490
3665
  },
3491
- /* @__PURE__ */ React42.createElement(row_default, null, /* @__PURE__ */ React42.createElement(column_default, { start: [1, 1, 1, 1], width: [6, 8, 10, 10] }, children))
3666
+ /* @__PURE__ */ React46.createElement(row_default, null, /* @__PURE__ */ React46.createElement(column_default, { start: [1, 1, 1, 1], width: [6, 8, 10, 10] }, children))
3492
3667
  ));
3493
3668
  };
3494
3669
  var tray_default = Tray;
@@ -3524,10 +3699,10 @@ var formatDate = (date, options = defaultOptions) => {
3524
3699
  var format_date_default = formatDate;
3525
3700
 
3526
3701
  // src/utils/use-scrollbar-class.ts
3527
- import { useEffect as useEffect7, useState as useState6 } from "react";
3702
+ import { useEffect as useEffect8, useState as useState7 } from "react";
3528
3703
  var useScrollbarClass = () => {
3529
- const [className, setClassName] = useState6(null);
3530
- useEffect7(() => {
3704
+ const [className, setClassName] = useState7(null);
3705
+ useEffect8(() => {
3531
3706
  if (document && get_scrollbar_width_default(document) > 0) {
3532
3707
  setClassName("custom-scrollbar");
3533
3708
  }