@xyo-network/react-shared 2.40.19 → 2.40.21

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.
Files changed (37) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/SizeProp.d.ts +1 -1
  3. package/dist/cjs/SizeProp.d.ts.map +1 -1
  4. package/dist/cjs/components/TableCell/AddressTableCell.d.ts +3 -1
  5. package/dist/cjs/components/TableCell/AddressTableCell.d.ts.map +1 -1
  6. package/dist/cjs/components/TableCell/AddressTableCell.js +6 -4
  7. package/dist/cjs/components/TableCell/AddressTableCell.js.map +1 -1
  8. package/dist/cjs/components/TableCell/EllipsisTableCell.d.ts +1 -0
  9. package/dist/cjs/components/TableCell/EllipsisTableCell.d.ts.map +1 -1
  10. package/dist/cjs/components/TableCell/EllipsisTableCell.js +2 -2
  11. package/dist/cjs/components/TableCell/EllipsisTableCell.js.map +1 -1
  12. package/dist/cjs/contexts/contextEx/ContextExProviderProps.d.ts +2 -2
  13. package/dist/cjs/contexts/contextEx/ContextExProviderProps.d.ts.map +1 -1
  14. package/dist/cjs/lib/networkComponents.d.ts +1 -1
  15. package/dist/cjs/lib/networkComponents.d.ts.map +1 -1
  16. package/dist/cjs/models/ListMode.d.ts +1 -1
  17. package/dist/cjs/models/ListMode.d.ts.map +1 -1
  18. package/dist/docs.json +2691 -1463
  19. package/dist/esm/SizeProp.d.ts +1 -1
  20. package/dist/esm/SizeProp.d.ts.map +1 -1
  21. package/dist/esm/components/TableCell/AddressTableCell.d.ts +3 -1
  22. package/dist/esm/components/TableCell/AddressTableCell.d.ts.map +1 -1
  23. package/dist/esm/components/TableCell/AddressTableCell.js +6 -3
  24. package/dist/esm/components/TableCell/AddressTableCell.js.map +1 -1
  25. package/dist/esm/components/TableCell/EllipsisTableCell.d.ts +1 -0
  26. package/dist/esm/components/TableCell/EllipsisTableCell.d.ts.map +1 -1
  27. package/dist/esm/components/TableCell/EllipsisTableCell.js +2 -2
  28. package/dist/esm/components/TableCell/EllipsisTableCell.js.map +1 -1
  29. package/dist/esm/contexts/contextEx/ContextExProviderProps.d.ts +2 -2
  30. package/dist/esm/contexts/contextEx/ContextExProviderProps.d.ts.map +1 -1
  31. package/dist/esm/lib/networkComponents.d.ts +1 -1
  32. package/dist/esm/lib/networkComponents.d.ts.map +1 -1
  33. package/dist/esm/models/ListMode.d.ts +1 -1
  34. package/dist/esm/models/ListMode.d.ts.map +1 -1
  35. package/package.json +2 -2
  36. package/src/components/TableCell/AddressTableCell.tsx +9 -3
  37. package/src/components/TableCell/EllipsisTableCell.tsx +20 -17
@@ -1,2 +1,2 @@
1
- export declare type SizeProp = 'small' | 'medium' | 'large';
1
+ export type SizeProp = 'small' | 'medium' | 'large';
2
2
  //# sourceMappingURL=SizeProp.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SizeProp.d.ts","sourceRoot":"","sources":["../../src/SizeProp.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA"}
1
+ {"version":3,"file":"SizeProp.d.ts","sourceRoot":"","sources":["../../src/SizeProp.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAA"}
@@ -3,6 +3,8 @@ import { EllipsisTableCellProps } from './EllipsisTableCell';
3
3
  export interface AddressTableCellProps extends EllipsisTableCellProps {
4
4
  archive?: string;
5
5
  exploreDomain?: string;
6
+ link?: boolean;
6
7
  }
7
- export declare const AddressTableCell: React.FC<AddressTableCellProps>;
8
+ declare const AddressTableCell: import("react").ForwardRefExoticComponent<Pick<AddressTableCellProps, "className" | "style" | "classes" | "color" | "width" | "height" | "padding" | "translate" | "align" | "children" | "sx" | "variant" | "abbr" | "link" | "slot" | "title" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "to" | "value" | "size" | "colSpan" | "headers" | "rowSpan" | "scope" | "valign" | "component" | "sortDirection" | "archive" | "exploreDomain"> & import("react").RefAttributes<HTMLTableCellElement>>;
9
+ export { AddressTableCell };
8
10
  //# sourceMappingURL=AddressTableCell.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddressTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAE/E,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAK5D,CAAA"}
1
+ {"version":3,"file":"AddressTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAqB,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;AAE/E,MAAM,WAAW,qBAAsB,SAAQ,sBAAsB;IACnE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,OAAO,CAAA;CACf;AAED,QAAA,MAAM,gBAAgB,42JAKpB,CAAA;AAGF,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -1,8 +1,11 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
2
3
  import { EllipsisTableCell } from './EllipsisTableCell';
3
- export const AddressTableCell = ({ value, archive, exploreDomain, ...props }) => {
4
+ const AddressTableCell = forwardRef(({ value, archive, exploreDomain, link, ...props }, ref) => {
4
5
  const href = exploreDomain && archive ? `${exploreDomain}/archive/${archive}/address/${value}` : undefined;
5
6
  const to = exploreDomain === undefined && archive ? `/archive/${archive}/address/${value}` : undefined;
6
- return _jsx(EllipsisTableCell, { value: value, href: href, to: to, ...props });
7
- };
7
+ return _jsx(EllipsisTableCell, { value: value, href: href, to: to, ref: ref, link: link, ...props });
8
+ });
9
+ AddressTableCell.displayName = 'AddressTableCell';
10
+ export { AddressTableCell };
8
11
  //# sourceMappingURL=AddressTableCell.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddressTableCell.js","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAA;AAO/E,MAAM,CAAC,MAAM,gBAAgB,GAAoC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAC/G,MAAM,IAAI,GAAG,aAAa,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,YAAY,OAAO,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAC1G,MAAM,EAAE,GAAG,aAAa,KAAK,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAEtG,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,KAAM,KAAK,GAAI,CAAA;AAC3E,CAAC,CAAA"}
1
+ {"version":3,"file":"AddressTableCell.js","sourceRoot":"","sources":["../../../../src/components/TableCell/AddressTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAElC,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAA;AAQ/E,MAAM,gBAAgB,GAAG,UAAU,CAA8C,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,aAAa,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC1I,MAAM,IAAI,GAAG,aAAa,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,YAAY,OAAO,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAC1G,MAAM,EAAE,GAAG,aAAa,KAAK,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,YAAY,OAAO,YAAY,KAAK,EAAE,CAAC,CAAC,CAAC,SAAS,CAAA;IAEtG,OAAO,KAAC,iBAAiB,IAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,KAAM,KAAK,GAAI,CAAA;AACjG,CAAC,CAAC,CAAA;AAEF,gBAAgB,CAAC,WAAW,GAAG,kBAAkB,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,CAAA"}
@@ -12,6 +12,7 @@ export interface EllipsisTableCellProps extends TableCellProps {
12
12
  width?: string | number;
13
13
  href?: string;
14
14
  to?: To;
15
+ link?: boolean;
15
16
  value?: string;
16
17
  }
17
18
  export declare const EllipsisTableCellWithRef: React.FC<WithChildren<EllipsisTableCellProps>>;
@@ -1 +1 @@
1
- {"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAYrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAgBlF,CAAA;AAGF,eAAO,MAAM,iBAAiB,0DAA2B,CAAA"}
1
+ {"version":3,"file":"EllipsisTableCell.d.ts","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAqB,cAAc,EAAE,MAAM,eAAe,CAAA;AAEjE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAEnD,OAAO,EAAE,EAAE,EAAE,MAAM,kBAAkB,CAAA;AAYrC,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC5D;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,EAAE,CAAC,EAAE,EAAE,CAAA;IACP,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAkBnF,CAAA;AAGD,eAAO,MAAM,iBAAiB,0DAA2B,CAAA"}
@@ -10,8 +10,8 @@ const EllipsisTableCellRoot = styled(TableCell, {
10
10
  })(({ width = '100%' }) => ({
11
11
  width,
12
12
  }));
13
- export const EllipsisTableCellWithRef = forwardRef(({ children, href, to, value, ...props }, ref) => {
14
- return (_jsx(EllipsisTableCellRoot, { ref: ref, ...props, children: _jsx(EllipsizeBox, { children: children ? (children) : href || to ? (_jsx(LinkEx, { title: value, to: to, href: href, target: href ? '_blank' : undefined, children: value })) : (value) }) }));
13
+ export const EllipsisTableCellWithRef = forwardRef(({ children, href, link = false, to, value, ...props }, ref) => {
14
+ return (_jsx(EllipsisTableCellRoot, { ref: ref, ...props, children: _jsx(EllipsizeBox, { children: children ? (children) : href || to || link ? (_jsx(LinkEx, { title: value, to: to, href: href, target: href ? '_blank' : undefined, sx: { ...(link && { cursor: 'pointer' }) }, children: value })) : (value) }) }));
15
15
  });
16
16
  EllipsisTableCellWithRef.displayName = 'EllipsisTableCell';
17
17
  export const EllipsisTableCell = EllipsisTableCellWithRef;
@@ -1 +1 @@
1
- {"version":3,"file":"EllipsisTableCell.js","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,qBAAqB,GAAG,MAAM,CAAC,SAAS,EAAE;IAC9C,IAAI,EAAE,mBAAmB;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO;IAC7C,IAAI,EAAE,MAAM;CACb,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,KAAK;CACN,CAAC,CAAC,CAAA;AAeH,MAAM,CAAC,MAAM,wBAAwB,GAAmD,UAAU,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAClJ,OAAO,CACL,KAAC,qBAAqB,IAAC,GAAG,EAAE,GAAG,KAAM,KAAK,YACxC,KAAC,YAAY,cACV,QAAQ,CAAC,CAAC,CAAC,CACV,QAAQ,CACT,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,CACf,KAAC,MAAM,IAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,YAC1E,KAAK,GACC,CACV,CAAC,CAAC,CAAC,CACF,KAAK,CACN,GACY,GACO,CACzB,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,wBAAwB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAA"}
1
+ {"version":3,"file":"EllipsisTableCell.js","sourceRoot":"","sources":["../../../../src/components/TableCell/EllipsisTableCell.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,SAAS,EAAkB,MAAM,eAAe,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAE3C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGlC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAE3C,MAAM,qBAAqB,GAAG,MAAM,CAAC,SAAS,EAAE;IAC9C,IAAI,EAAE,mBAAmB;IACzB,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,OAAO;IAC7C,IAAI,EAAE,MAAM;CACb,CAAC,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC;IAC1B,KAAK;CACN,CAAC,CAAC,CAAA;AAgBH,MAAM,CAAC,MAAM,wBAAwB,GAAmD,UAAU,CAChG,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,GAAG,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAC7D,OAAO,CACL,KAAC,qBAAqB,IAAC,GAAG,EAAE,GAAG,KAAM,KAAK,YACxC,KAAC,YAAY,cACV,QAAQ,CAAC,CAAC,CAAC,CACV,QAAQ,CACT,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,IAAI,IAAI,CAAC,CAAC,CAAC,CACvB,KAAC,MAAM,IAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAAE,EAAE,EAAE,EAAE,GAAG,CAAC,IAAI,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,EAAE,YACtH,KAAK,GACC,CACV,CAAC,CAAC,CAAC,CACF,KAAK,CACN,GACY,GACO,CACzB,CAAA;AACH,CAAC,CACF,CAAA;AAED,wBAAwB,CAAC,WAAW,GAAG,mBAAmB,CAAA;AAC1D,MAAM,CAAC,MAAM,iBAAiB,GAAG,wBAAwB,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { WithChildren } from '@xylabs/react-shared';
2
- declare type EmptyObject = {};
3
- export declare type ContextExProviderProps<T extends EmptyObject = EmptyObject> = WithChildren<{
2
+ type EmptyObject = {};
3
+ export type ContextExProviderProps<T extends EmptyObject = EmptyObject> = WithChildren<{
4
4
  required?: boolean;
5
5
  } & T>;
6
6
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ContextExProviderProps.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/ContextExProviderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,aAAK,WAAW,GAAG,EAAE,CAAA;AAErB,oBAAY,sBAAsB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CACpF;IACE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,CAAC,CACN,CAAA"}
1
+ {"version":3,"file":"ContextExProviderProps.d.ts","sourceRoot":"","sources":["../../../../src/contexts/contextEx/ContextExProviderProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGnD,KAAK,WAAW,GAAG,EAAE,CAAA;AAErB,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,WAAW,GAAG,WAAW,IAAI,YAAY,CACpF;IACE,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,GAAG,CAAC,CACN,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { SvgIconProps } from '@mui/material';
2
2
  import { ReactElement } from 'react';
3
- export declare type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner';
3
+ export type NetworkComponentSlug = 'sentinel' | 'bridge' | 'archivist' | 'diviner';
4
4
  export interface NetworkComponentDetails {
5
5
  name: string;
6
6
  slug: NetworkComponentSlug;
@@ -1 +1 @@
1
- {"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,oBAAY,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAA;AAElF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;IAC1B,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,YAAY,CAAA;CAC7C;AAED,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAKtD,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,MAAM,WAErD,CAAA;AAED,eAAO,MAAM,oBAAoB,SAAU,MAAM,wCAEhD,CAAA"}
1
+ {"version":3,"file":"networkComponents.d.ts","sourceRoot":"","sources":["../../../src/lib/networkComponents.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAA;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAEpC,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,CAAA;AAElF,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,oBAAoB,CAAA;IAC1B,IAAI,EAAE,CAAC,KAAK,CAAC,EAAE,YAAY,KAAK,YAAY,CAAA;CAC7C;AAED,eAAO,MAAM,iBAAiB,EAAE,uBAAuB,EAKtD,CAAA;AAED,eAAO,MAAM,yBAAyB,SAAU,MAAM,WAErD,CAAA;AAED,eAAO,MAAM,oBAAoB,SAAU,MAAM,wCAEhD,CAAA"}
@@ -1,2 +1,2 @@
1
- export declare type ListMode = 'table' | 'grid' | 'default';
1
+ export type ListMode = 'table' | 'grid' | 'default';
2
2
  //# sourceMappingURL=ListMode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ListMode.d.ts","sourceRoot":"","sources":["../../../src/models/ListMode.ts"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA"}
1
+ {"version":3,"file":"ListMode.d.ts","sourceRoot":"","sources":["../../../src/models/ListMode.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAA"}
package/package.json CHANGED
@@ -16,7 +16,7 @@
16
16
  "@xylabs/react-flexbox": "^2.15.1",
17
17
  "@xylabs/react-link": "^2.15.1",
18
18
  "@xylabs/react-shared": "^2.15.1",
19
- "@xyo-network/react-event": "^2.40.19",
19
+ "@xyo-network/react-event": "^2.40.21",
20
20
  "tslib": "^2.4.1"
21
21
  },
22
22
  "peerDependencies": {
@@ -70,5 +70,5 @@
70
70
  },
71
71
  "sideEffects": false,
72
72
  "types": "dist/esm/index.d.ts",
73
- "version": "2.40.19"
73
+ "version": "2.40.21"
74
74
  }
@@ -1,13 +1,19 @@
1
+ import { forwardRef } from 'react'
2
+
1
3
  import { EllipsisTableCell, EllipsisTableCellProps } from './EllipsisTableCell'
2
4
 
3
5
  export interface AddressTableCellProps extends EllipsisTableCellProps {
4
6
  archive?: string
5
7
  exploreDomain?: string
8
+ link?: boolean
6
9
  }
7
10
 
8
- export const AddressTableCell: React.FC<AddressTableCellProps> = ({ value, archive, exploreDomain, ...props }) => {
11
+ const AddressTableCell = forwardRef<HTMLTableCellElement, AddressTableCellProps>(({ value, archive, exploreDomain, link, ...props }, ref) => {
9
12
  const href = exploreDomain && archive ? `${exploreDomain}/archive/${archive}/address/${value}` : undefined
10
13
  const to = exploreDomain === undefined && archive ? `/archive/${archive}/address/${value}` : undefined
11
14
 
12
- return <EllipsisTableCell value={value} href={href} to={to} {...props} />
13
- }
15
+ return <EllipsisTableCell value={value} href={href} to={to} ref={ref} link={link} {...props} />
16
+ })
17
+
18
+ AddressTableCell.displayName = 'AddressTableCell'
19
+ export { AddressTableCell }
@@ -24,26 +24,29 @@ export interface EllipsisTableCellProps extends TableCellProps {
24
24
  width?: string | number
25
25
  href?: string
26
26
  to?: To
27
+ link?: boolean
27
28
  value?: string
28
29
  }
29
30
 
30
- export const EllipsisTableCellWithRef: React.FC<WithChildren<EllipsisTableCellProps>> = forwardRef(({ children, href, to, value, ...props }, ref) => {
31
- return (
32
- <EllipsisTableCellRoot ref={ref} {...props}>
33
- <EllipsizeBox>
34
- {children ? (
35
- children
36
- ) : href || to ? (
37
- <LinkEx title={value} to={to} href={href} target={href ? '_blank' : undefined}>
38
- {value}
39
- </LinkEx>
40
- ) : (
41
- value
42
- )}
43
- </EllipsizeBox>
44
- </EllipsisTableCellRoot>
45
- )
46
- })
31
+ export const EllipsisTableCellWithRef: React.FC<WithChildren<EllipsisTableCellProps>> = forwardRef(
32
+ ({ children, href, link = false, to, value, ...props }, ref) => {
33
+ return (
34
+ <EllipsisTableCellRoot ref={ref} {...props}>
35
+ <EllipsizeBox>
36
+ {children ? (
37
+ children
38
+ ) : href || to || link ? (
39
+ <LinkEx title={value} to={to} href={href} target={href ? '_blank' : undefined} sx={{ ...(link && { cursor: 'pointer' }) }}>
40
+ {value}
41
+ </LinkEx>
42
+ ) : (
43
+ value
44
+ )}
45
+ </EllipsizeBox>
46
+ </EllipsisTableCellRoot>
47
+ )
48
+ },
49
+ )
47
50
 
48
51
  EllipsisTableCellWithRef.displayName = 'EllipsisTableCell'
49
52
  export const EllipsisTableCell = EllipsisTableCellWithRef