@xyo-network/react-chain-blockchain 1.20.4 → 1.20.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.
@@ -4,5 +4,4 @@ export interface BlockProducerStatsFlexboxProps {
4
4
  payload?: Payload;
5
5
  }
6
6
  export declare const BlockProducerStatsFlexbox: React.FC<BlockProducerStatsFlexboxProps>;
7
- export declare const StyledListItem: import("@emotion/styled").StyledComponent<import("@mui/material").ListItemOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<React.DetailedHTMLProps<React.LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "children" | "className" | "style" | "classes" | "alignItems" | "sx" | "slots" | "slotProps" | "components" | "componentsProps" | "dense" | "divider" | "disableGutters" | "ContainerComponent" | "ContainerProps" | "disablePadding" | "secondaryAction"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
8
7
  //# sourceMappingURL=ProducerFlexbox.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ProducerFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chain/stats/producer/ProducerFlexbox.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAkB9E,CAAA;AAED,eAAO,MAAM,cAAc,qjBAGxB,CAAA"}
1
+ {"version":3,"file":"ProducerFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../src/components/chain/stats/producer/ProducerFlexbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CAkB9E,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"XyoAddressTextField.d.ts","sourceRoot":"","sources":["../../../../../src/components/payload/fields/XyoAddressTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAI3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,UAAU,wBAAyB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAC9E,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAE9C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CA8ClE,CAAA"}
1
+ {"version":3,"file":"XyoAddressTextField.d.ts","sourceRoot":"","sources":["../../../../../src/components/payload/fields/XyoAddressTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAI3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAI7C,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,UAAU,wBAAyB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAC9E,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAE9C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAsDlE,CAAA"}
@@ -1324,7 +1324,7 @@ import { Dialog as Dialog3, DialogContent as DialogContent3, DialogTitle as Dial
1324
1324
  import React33, { useState as useState10 } from "react";
1325
1325
 
1326
1326
  // src/components/chain/stats/producer/ProducerFlexbox.tsx
1327
- import { ListItem, styled, Typography as Typography8 } from "@mui/material";
1327
+ import { Typography as Typography8 } from "@mui/material";
1328
1328
  import { ErrorRender as ErrorRender4 } from "@xylabs/react-error";
1329
1329
  import { FlexCol as FlexCol4 } from "@xylabs/react-flexbox";
1330
1330
  import { isChainSummaryProducers } from "@xyo-network/chain-analyze";
@@ -1381,10 +1381,6 @@ var BlockProducerStatsFlexbox = /* @__PURE__ */ __name(({ payload, ...props }) =
1381
1381
  producers: producersArray
1382
1382
  }));
1383
1383
  }, "BlockProducerStatsFlexbox");
1384
- var StyledListItem = styled(ListItem)(() => ({
1385
- paddingTop: 0,
1386
- paddingBottom: 0
1387
- }));
1388
1384
 
1389
1385
  // src/components/chain/stats/Dialog.tsx
1390
1386
  var ChainAnalyzerStatsDialog = /* @__PURE__ */ __name((props) => {
@@ -1408,7 +1404,7 @@ var ChainAnalyzerStatsDialogFromContext = /* @__PURE__ */ __name((props) => {
1408
1404
  }, "ChainAnalyzerStatsDialogFromContext");
1409
1405
 
1410
1406
  // src/components/chain/controls/PulseSvgIcon.tsx
1411
- import { createSvgIcon, keyframes, styled as styled2 } from "@mui/material";
1407
+ import { createSvgIcon, keyframes, styled } from "@mui/material";
1412
1408
  import React34 from "react";
1413
1409
  var PulseSvgIcon = createSvgIcon(/* @__PURE__ */ React34.createElement("svg", {
1414
1410
  viewBox: "0 0 80 80",
@@ -1458,7 +1454,7 @@ var pulse2 = keyframes`
1458
1454
  opacity: 0;
1459
1455
  }
1460
1456
  `;
1461
- var StyledPulseSvgIcon = styled2(PulseSvgIcon)(({ theme }) => {
1457
+ var StyledPulseSvgIcon = styled(PulseSvgIcon)(({ theme }) => {
1462
1458
  return {
1463
1459
  "& .core": {
1464
1460
  animation: `${pulse1} 1.25s ease-in-out infinite`,
@@ -1603,9 +1599,9 @@ var useChainPagination = /* @__PURE__ */ __name((pageSize, blockComponents) => {
1603
1599
  }, "useChainPagination");
1604
1600
 
1605
1601
  // src/components/chain/styled/BlockListWrapperFlexbox.tsx
1606
- import { styled as styled3 } from "@mui/material";
1602
+ import { styled as styled2 } from "@mui/material";
1607
1603
  import { FlexCol as FlexCol5 } from "@xylabs/react-flexbox";
1608
- var BlockListWrapperFlexBox = styled3(FlexCol5, {
1604
+ var BlockListWrapperFlexBox = styled2(FlexCol5, {
1609
1605
  name: "BlockListWrapperFlexbox"
1610
1606
  })(() => ({
1611
1607
  "& > div:nth-of-type(2) .block-heading-flexbox .divider-spacer": {
@@ -1691,8 +1687,12 @@ var XyoAddressTextField = /* @__PURE__ */ __name(({ onAddressChanged, onChange,
1691
1687
  const xyoAddress = asAddress(value);
1692
1688
  if (isAddress(xyoAddress)) {
1693
1689
  onAddressChanged?.(xyoAddress);
1690
+ setAddressError(void 0);
1691
+ } else if (value === "") {
1692
+ setAddressError(void 0);
1693
+ } else {
1694
+ setAddressError(new Error("Invalid address"));
1694
1695
  }
1695
- setAddressError(void 0);
1696
1696
  setAddress(value);
1697
1697
  }, "handleChange");
1698
1698
  const handleBlur = /* @__PURE__ */ __name(() => {