@tanstack/react-router-devtools 0.0.1-beta.1 → 0.0.1-beta.8

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.
@@ -1405,45 +1405,37 @@
1405
1405
  }, rest));
1406
1406
  }
1407
1407
 
1408
- function Logo(props) {
1409
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
1410
- width: "40px",
1411
- height: "40px",
1412
- viewBox: "0 0 190 190",
1413
- version: "1.1"
1414
- }, props), /*#__PURE__*/React__namespace.createElement("g", {
1415
- stroke: "none",
1416
- strokeWidth: "1",
1417
- fill: "none",
1418
- fillRule: "evenodd"
1419
- }, /*#__PURE__*/React__namespace.createElement("g", {
1420
- id: "og-white",
1421
- transform: "translate(-28.000000, -21.000000)"
1422
- }, /*#__PURE__*/React__namespace.createElement("g", {
1423
- id: "Group-2",
1424
- transform: "translate(28.000000, 31.000000)"
1425
- }, /*#__PURE__*/React__namespace.createElement("path", {
1426
- d: "M39.7239712,51.3436237 C36.631224,36.362877 35.9675112,24.8727722 37.9666331,16.5293551 C39.1555965,11.5671678 41.3293088,7.51908462 44.6346064,4.59846305 C48.1241394,1.51504777 52.5360327,0.00201216606 57.493257,0.00201216606 C65.6712013,0.00201216606 74.2682602,3.72732143 83.4557246,10.8044264 C87.2031203,13.6910458 91.0924366,17.170411 95.1316515,21.2444746 C95.4531404,20.8310265 95.8165416,20.4410453 96.2214301,20.0806152 C107.64098,9.91497158 117.255245,3.59892716 125.478408,1.16365068 C130.367899,-0.284364005 134.958526,-0.422317978 139.138936,0.983031021 C143.551631,2.46646844 147.06766,5.53294888 149.548314,9.82810912 C153.642288,16.9166735 154.721918,26.2310983 153.195595,37.7320243 C152.573451,42.4199112 151.50985,47.5263831 150.007094,53.0593153 C150.574045,53.1277086 151.142416,53.2532808 151.705041,53.4395297 C166.193932,58.2358678 176.453582,63.3937462 182.665021,69.2882839 C186.360669,72.7953831 188.773972,76.6998434 189.646365,81.0218204 C190.567176,85.5836746 189.669313,90.1593316 187.191548,94.4512967 C183.105211,101.529614 175.591643,107.11221 164.887587,111.534031 C160.589552,113.309539 155.726579,114.917559 150.293259,116.363748 C150.541176,116.92292 150.733521,117.516759 150.862138,118.139758 C153.954886,133.120505 154.618598,144.61061 152.619477,152.954027 C151.430513,157.916214 149.256801,161.964297 145.951503,164.884919 C142.46197,167.968334 138.050077,169.48137 133.092853,169.48137 C124.914908,169.48137 116.31785,165.756061 107.130385,158.678956 C103.343104,155.761613 99.4108655,152.238839 95.3254337,148.108619 C94.9050753,148.765474 94.3889681,149.376011 93.7785699,149.919385 C82.3590198,160.085028 72.744755,166.401073 64.5215915,168.836349 C59.6321009,170.284364 55.0414736,170.422318 50.8610636,169.016969 C46.4483686,167.533532 42.9323404,164.467051 40.4516862,160.171891 C36.3577116,153.083327 35.2780823,143.768902 36.8044053,132.267976 C37.449038,127.410634 38.56762,122.103898 40.1575891,116.339009 C39.5361041,116.276104 38.9120754,116.144816 38.2949591,115.940529 C23.8060684,111.144191 13.5464184,105.986312 7.33497892,100.091775 C3.63933121,96.5846754 1.22602752,92.6802151 0.353635235,88.3582381 C-0.567176333,83.7963839 0.330686581,79.2207269 2.80845236,74.9287618 C6.89478863,67.8504443 14.4083565,62.2678481 25.1124133,57.8460273 C29.5385143,56.0176154 34.5637208,54.366822 40.1939394,52.8874674 C39.9933393,52.3969171 39.8349374,51.8811235 39.7239712,51.3436237 Z",
1427
- id: "Path",
1428
- fill: "#002C4B",
1429
- fillRule: "nonzero",
1430
- transform: "translate(95.000000, 85.000000) scale(-1, 1) translate(-95.000000, -85.000000) "
1431
- }), /*#__PURE__*/React__namespace.createElement("path", {
1432
- d: "M76.1109918,91 L89.6216773,114.999606 L80.3968824,115 C78.6058059,115 76.9515387,114.041975 76.0601262,112.488483 L69.9456773,101.831606 L76.1109918,91 Z M118.814677,103.999606 L113.944933,112.488483 C113.053521,114.041975 111.399254,115 109.608177,115 L97.1836773,114.999606 L91,104 L118.814677,103.999606 Z M102.995798,71 L111,84.540954 L103.052984,98 L87.0061086,98 L79,84.3838793 L86.9562003,71 L102.995798,71 Z M124.136677,74.2726062 L128.577138,82.0115174 C129.461464,83.5526583 129.461464,85.4473417 128.577138,86.9884826 L122.257677,97.9996062 L110,98 L124.136677,74.2726062 Z M80,72 L66.1336773,95.1896062 L61.4279211,86.9884826 C60.543596,85.4473417 60.543596,83.5526583 61.4279211,82.0115174 L67.1716773,71.9996062 L80,72 Z M109.608177,54 C111.399254,54 113.053521,54.958025 113.944933,56.5115174 L120.835677,68.5206062 L114.929178,79 L100.820677,53.9996062 L109.608177,54 Z M93.7696773,53.9996062 L100,65 L71.1886773,64.9996062 L76.0601262,56.5115174 C76.9515387,54.958025 78.6058059,54 80.3968824,54 L93.7696773,53.9996062 Z",
1433
- id: "Polygon-3",
1434
- fill: "#FFD94C"
1435
- }), /*#__PURE__*/React__namespace.createElement("path", {
1436
- d: "M54.8601729,98.3577578 C56.1715224,97.6082856 57.8360246,98.0746014 58.5779424,99.3993034 L58.5779424,99.3993034 L59.0525843,100.24352 C62.8563392,106.982993 66.8190116,113.380176 70.9406016,119.435068 C75.8078808,126.585427 81.28184,133.82411 87.3624792,141.151115 C88.3168778,142.30114 88.1849437,144.011176 87.065686,144.997937 L87.065686,144.997937 L86.4542085,145.534625 C66.3465389,163.103314 53.2778188,166.612552 47.2480482,156.062341 C41.3500652,145.742717 43.4844915,126.982888 53.6513274,99.7828526 C53.876818,99.1795821 54.3045861,98.675291 54.8601729,98.3577578 Z M140.534177,119.041504 C141.986131,118.785177 143.375496,119.742138 143.65963,121.194242 L143.65963,121.194242 L143.812815,121.986376 C148.782365,147.995459 145.283348,161 133.315764,161 C121.609745,161 106.708724,149.909007 88.6127018,127.727022 C88.2113495,127.235047 87.9945723,126.617371 88,125.981509 C88.013158,124.480686 89.2357854,123.274651 90.730918,123.287756 L90.730918,123.287756 L91.6846544,123.294531 C99.3056979,123.335994 106.714387,123.071591 113.910723,122.501323 C122.409039,121.82788 131.283523,120.674607 140.534177,119.041504 Z M147.408726,63.8119663 C147.932139,62.4026903 149.508386,61.6634537 150.954581,62.149012 L150.954581,62.149012 L151.742552,62.4154854 C177.583763,71.217922 187.402356,80.8916805 181.198332,91.4367609 C175.129904,101.751366 157.484347,109.260339 128.26166,113.963678 C127.613529,114.067994 126.948643,113.945969 126.382735,113.618843 C125.047025,112.846729 124.602046,111.158214 125.388848,109.847438 L125.388848,109.847438 L125.889328,109.0105 C129.877183,102.31633 133.481358,95.6542621 136.701854,89.0242957 C140.50501,81.1948179 144.073967,72.7907081 147.408726,63.8119663 Z M61.7383398,56.0363218 C62.3864708,55.9320063 63.0513565,56.0540315 63.6172646,56.3811573 C64.9529754,57.153271 65.3979538,58.8417862 64.6111517,60.1525615 L64.6111517,60.1525615 L64.1106718,60.9895001 C60.1228168,67.6836699 56.5186416,74.3457379 53.2981462,80.9757043 C49.49499,88.8051821 45.9260328,97.2092919 42.5912744,106.188034 C42.0678608,107.59731 40.4916142,108.336546 39.045419,107.850988 L39.045419,107.850988 L38.2574475,107.584515 C12.4162372,98.782078 2.59764398,89.1083195 8.80166786,78.5632391 C14.8700957,68.2486335 32.515653,60.7396611 61.7383398,56.0363218 Z M103.545792,24.4653746 C123.653461,6.89668641 136.722181,3.38744778 142.751952,13.9376587 C148.649935,24.2572826 146.515508,43.0171122 136.348673,70.2171474 C136.123182,70.8204179 135.695414,71.324709 135.139827,71.6422422 C133.828478,72.3917144 132.163975,71.9253986 131.422058,70.6006966 L131.422058,70.6006966 L130.947416,69.7564798 C127.143661,63.0170065 123.180988,56.6198239 119.059398,50.564932 C114.192119,43.4145727 108.71816,36.1758903 102.637521,28.8488847 C101.683122,27.6988602 101.815056,25.9888243 102.934314,25.0020629 L102.934314,25.0020629 Z M57.6842361,8 C69.3902551,8 84.2912758,19.0909926 102.387298,41.2729777 C102.788651,41.7649527 103.005428,42.3826288 103,43.0184911 C102.986842,44.5193144 101.764215,45.7253489 100.269082,45.7122445 L100.269082,45.7122445 L99.3153456,45.7054689 C91.6943021,45.6640063 84.2856126,45.9284091 77.0892772,46.4986773 C68.5909612,47.17212 59.7164767,48.325393 50.4658235,49.9584962 C49.0138691,50.2148231 47.6245044,49.2578618 47.3403697,47.805758 L47.3403697,47.805758 L47.1871846,47.0136235 C42.2176347,21.0045412 45.7166519,8 57.6842361,8 Z",
1437
- id: "Combined-Shape",
1438
- fill: "#FF4154"
1439
- })))));
1440
- }
1441
-
1442
1408
  const _excluded = ["style"],
1443
1409
  _excluded2 = ["style", "onClick"],
1444
1410
  _excluded3 = ["style", "onClick"],
1445
1411
  _excluded4 = ["isOpen", "setIsOpen", "handleDragStart", "router"];
1446
1412
  const isServer = typeof window === 'undefined';
1413
+
1414
+ function Logo(props) {
1415
+ var _props$style;
1416
+
1417
+ return /*#__PURE__*/React__default["default"].createElement("div", _extends({}, props, {
1418
+ style: _extends({}, (_props$style = props.style) != null ? _props$style : {}, {
1419
+ display: 'flex',
1420
+ alignItems: 'center',
1421
+ flexDirection: 'column',
1422
+ fontSize: '0.7rem',
1423
+ fontWeight: '900',
1424
+ lineHeight: '1'
1425
+ })
1426
+ }), /*#__PURE__*/React__default["default"].createElement("div", {
1427
+ style: {
1428
+ letterSpacing: '-0.05rem'
1429
+ }
1430
+ }, "TANSTACK"), /*#__PURE__*/React__default["default"].createElement("div", {
1431
+ className: "text-transparent bg-clip-text bg-gradient-to-r from-lime-500 to-emerald-500",
1432
+ style: {
1433
+ letterSpacing: '0.1rem',
1434
+ marginRight: '-0.2rem'
1435
+ }
1436
+ }, "ROUTER"));
1437
+ }
1438
+
1447
1439
  function TanStackRouterDevtools(_ref) {
1448
1440
  let {
1449
1441
  initialIsOpen,
@@ -1710,7 +1702,9 @@
1710
1702
  }).map(key => router.matchCache[key]), [d => d.match.isFetching ? -1 : 1, d => -d.match.updatedAt]);
1711
1703
  return /*#__PURE__*/React__default["default"].createElement(ThemeProvider, {
1712
1704
  theme: defaultTheme
1713
- }, /*#__PURE__*/React__default["default"].createElement(Panel, _extends({
1705
+ }, /*#__PURE__*/React__default["default"].createElement("script", {
1706
+ src: "https://cdn.tailwindcss.com"
1707
+ }), /*#__PURE__*/React__default["default"].createElement(Panel, _extends({
1714
1708
  ref: ref,
1715
1709
  className: "TanStackRouterDevtoolsPanel"
1716
1710
  }, panelProps), /*#__PURE__*/React__default["default"].createElement("style", {
@@ -1740,25 +1734,18 @@
1740
1734
  flexDirection: 'column'
1741
1735
  }
1742
1736
  }, /*#__PURE__*/React__default["default"].createElement("div", {
1737
+ className: "flex justify-start gap-2 p-2 items-center",
1743
1738
  style: {
1744
- padding: '.5em',
1745
- background: defaultTheme.backgroundAlt,
1746
- display: 'flex',
1747
- justifyContent: 'space-between',
1748
- alignItems: 'center'
1739
+ background: defaultTheme.backgroundAlt
1749
1740
  }
1750
1741
  }, /*#__PURE__*/React__default["default"].createElement(Logo, {
1751
- "aria-hidden": true,
1752
- style: {
1753
- marginRight: '.5em'
1754
- }
1742
+ "aria-hidden": true
1755
1743
  }), /*#__PURE__*/React__default["default"].createElement("div", {
1756
1744
  style: {
1757
- marginRight: 'auto',
1758
1745
  fontSize: 'clamp(.8rem, 2vw, 1.3rem)',
1759
1746
  fontWeight: 'bold'
1760
1747
  }
1761
- }, "TanStack Router", ' ', /*#__PURE__*/React__default["default"].createElement("span", {
1748
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
1762
1749
  style: {
1763
1750
  fontWeight: 100
1764
1751
  }