@xyo-network/react-payload-raw-info 6.2.0 → 7.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/components/Button/RawInfoButton.stories.d.ts +2 -2
- package/dist/browser/components/Button/RawInfoButton.stories.d.ts.map +1 -1
- package/dist/browser/components/Button/RawInfoIconButton.stories.d.ts +2 -2
- package/dist/browser/components/shared/Dialog/RawInfoDialog.stories.d.ts +2 -2
- package/dist/browser/components/shared/Dialog/RawInfoDialog.stories.d.ts.map +1 -1
- package/dist/browser/components/shared/JsonViewerEx.stories.d.ts +2 -2
- package/dist/browser/components/shared/JsonViewerEx.stories.d.ts.map +1 -1
- package/dist/browser/components/styled/StyledChipLabel.d.ts +1 -1
- package/dist/browser/components/styled/StyledChipLabel.d.ts.map +1 -1
- package/dist/browser/index.mjs +197 -156
- package/dist/browser/index.mjs.map +1 -1
- package/package.json +31 -24
- package/typedoc.json +0 -5
- package/xy.config.ts +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react-vite';
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoButton.tsx").RawInfoButtonProps>;
|
|
5
|
-
declare const WithPayload: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoButton.tsx").RawInfoButtonProps>;
|
|
4
|
+
declare const Default: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoButton.tsx").RawInfoButtonProps>;
|
|
5
|
+
declare const WithPayload: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoButton.tsx").RawInfoButtonProps>;
|
|
6
6
|
export { Default, WithPayload };
|
|
7
7
|
//# sourceMappingURL=RawInfoButton.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawInfoButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/RawInfoButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAiBrD,IAAI;AAHT,wBAGS;AAQT,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"RawInfoButton.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Button/RawInfoButton.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAiBrD,IAAI;AAHT,wBAGS;AAQT,QAAA,MAAM,OAAO,sLAAoB,CAAA;AACjC,QAAA,MAAM,WAAW,sLAAoB,CAAA;AAMrC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -2,10 +2,10 @@ import type { Meta } from '@storybook/react-vite';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
declare const _default: Meta;
|
|
4
4
|
export default _default;
|
|
5
|
-
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoIconButton.tsx").RawInfoIconProps & {
|
|
5
|
+
declare const Default: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoIconButton.tsx").RawInfoIconProps & {
|
|
6
6
|
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
7
7
|
}>;
|
|
8
|
-
declare const WithPayload: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoIconButton.tsx").RawInfoIconProps & {
|
|
8
|
+
declare const WithPayload: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoIconButton.tsx").RawInfoIconProps & {
|
|
9
9
|
ref?: React.RefObject<HTMLButtonElement | null>;
|
|
10
10
|
}>;
|
|
11
11
|
export { Default, WithPayload };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react-vite';
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoDialog.tsx").RawInfoDialogProps>;
|
|
5
|
-
declare const WithPayload: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoDialog.tsx").RawInfoDialogProps>;
|
|
4
|
+
declare const Default: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoDialog.tsx").RawInfoDialogProps>;
|
|
5
|
+
declare const WithPayload: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./RawInfoDialog.tsx").RawInfoDialogProps>;
|
|
6
6
|
export { Default, WithPayload };
|
|
7
7
|
//# sourceMappingURL=RawInfoDialog.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawInfoDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Dialog/RawInfoDialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAkBrD,IAAI;AAHT,wBAGS;AAQT,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"RawInfoDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Dialog/RawInfoDialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAkBrD,IAAI;AAHT,wBAGS;AAQT,QAAA,MAAM,OAAO,sLAAoB,CAAA;AACjC,QAAA,MAAM,WAAW,sLAAoB,CAAA;AAOrC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Meta } from '@storybook/react-vite';
|
|
2
2
|
declare const _default: Meta;
|
|
3
3
|
export default _default;
|
|
4
|
-
declare const Default: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./JsonViewerEx.tsx").JsonViewerExProps>;
|
|
5
|
-
declare const WithPayload: import("storybook/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./JsonViewerEx.tsx").JsonViewerExProps>;
|
|
4
|
+
declare const Default: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./JsonViewerEx.tsx").JsonViewerExProps>;
|
|
5
|
+
declare const WithPayload: import(".store/storybook-virtual-997ab3c959/package/internal/csf").AnnotatedStoryFn<import("@storybook/react-vite").ReactRenderer, import("./JsonViewerEx.tsx").JsonViewerExProps>;
|
|
6
6
|
export { Default, WithPayload };
|
|
7
7
|
//# sourceMappingURL=JsonViewerEx.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonViewerEx.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/JsonViewerEx.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAgBrD,IAAI;AAHT,wBAGS;AAMT,QAAA,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"JsonViewerEx.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/JsonViewerEx.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAgBrD,IAAI;AAHT,wBAGS;AAMT,QAAA,MAAM,OAAO,oLAAoB,CAAA;AACjC,QAAA,MAAM,WAAW,oLAAoB,CAAA;AAGrC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const StyledChipLabel: import("
|
|
1
|
+
export declare const StyledChipLabel: import(".store/@emotion-styled-virtual-6cef3d5169/package").StyledComponent<Pick<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "className" | "style" | "classes" | "p" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping">, "ref" | "className" | "style" | "classes" | "p" | "slot" | "title" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "color" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "content" | "translate" | "align" | "children" | "gutterBottom" | "noWrap" | "paragraph" | "sx" | "variant" | "variantMapping" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "enterKeyHint" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "part" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "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-rowindextext" | "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" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture"> & import(".store/@mui-system-virtual-01f48b3bec/package").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
2
2
|
//# sourceMappingURL=StyledChipLabel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StyledChipLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledChipLabel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"StyledChipLabel.d.ts","sourceRoot":"","sources":["../../../../src/components/styled/StyledChipLabel.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,u2QAOzB,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -1,49 +1,65 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
|
-
|
|
4
1
|
// src/components/Button/RawInfoButton.tsx
|
|
5
2
|
import { toSafeJson } from "@xylabs/object";
|
|
6
3
|
import { ButtonEx } from "@xylabs/react-button";
|
|
7
|
-
import
|
|
4
|
+
import { useMemo, useState } from "react";
|
|
8
5
|
|
|
9
6
|
// src/components/img/index.tsx
|
|
10
7
|
import { createSvgIcon } from "@mui/material";
|
|
11
|
-
import
|
|
12
|
-
var XyoColorLogo = createSvgIcon(
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
+
var XyoColorLogo = createSvgIcon(
|
|
10
|
+
/* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 238", children: [
|
|
11
|
+
/* @__PURE__ */ jsx(
|
|
12
|
+
"path",
|
|
13
|
+
{
|
|
14
|
+
className: "cls-1",
|
|
15
|
+
d: "M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z",
|
|
16
|
+
fill: "#8d8fc6"
|
|
17
|
+
}
|
|
18
|
+
),
|
|
19
|
+
/* @__PURE__ */ jsx(
|
|
20
|
+
"path",
|
|
21
|
+
{
|
|
22
|
+
className: "cls-2",
|
|
23
|
+
d: "M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z",
|
|
24
|
+
fill: "#579fd6"
|
|
25
|
+
}
|
|
26
|
+
),
|
|
27
|
+
/* @__PURE__ */ jsx(
|
|
28
|
+
"path",
|
|
29
|
+
{
|
|
30
|
+
className: "cls-3",
|
|
31
|
+
d: "M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z",
|
|
32
|
+
fill: "#f27046"
|
|
33
|
+
}
|
|
34
|
+
),
|
|
35
|
+
/* @__PURE__ */ jsx(
|
|
36
|
+
"path",
|
|
37
|
+
{
|
|
38
|
+
className: "cls-4",
|
|
39
|
+
d: "M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z",
|
|
40
|
+
fill: "#eb407a"
|
|
41
|
+
}
|
|
42
|
+
)
|
|
43
|
+
] }),
|
|
44
|
+
"XyoColorLogo"
|
|
45
|
+
);
|
|
32
46
|
|
|
33
47
|
// src/components/shared/Dialog/JsonViewerCollapse.tsx
|
|
34
|
-
import {
|
|
48
|
+
import {
|
|
49
|
+
Button,
|
|
50
|
+
Chip,
|
|
51
|
+
Collapse,
|
|
52
|
+
Typography as Typography2
|
|
53
|
+
} from "@mui/material";
|
|
35
54
|
import { FlexCol, FlexRow } from "@xylabs/react-flexbox";
|
|
36
55
|
import { usePromise } from "@xylabs/react-promise";
|
|
37
56
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
38
57
|
import { isAnyPayload } from "@xyo-network/payload-model";
|
|
39
58
|
import { useDataState } from "@xyo-network/react-shared";
|
|
40
|
-
import React3 from "react";
|
|
41
59
|
|
|
42
60
|
// src/components/styled/StyledChipLabel.tsx
|
|
43
61
|
import { styled, Typography } from "@mui/material";
|
|
44
|
-
var StyledChipLabel = styled(Typography, {
|
|
45
|
-
name: "StyledChipLabel"
|
|
46
|
-
})(({ theme }) => ({
|
|
62
|
+
var StyledChipLabel = styled(Typography, { name: "StyledChipLabel" })(({ theme }) => ({
|
|
47
63
|
display: "block",
|
|
48
64
|
lineHeight: 1,
|
|
49
65
|
overflow: "hidden",
|
|
@@ -56,95 +72,98 @@ var StyledChipLabel = styled(Typography, {
|
|
|
56
72
|
import { useTheme } from "@mui/material";
|
|
57
73
|
import { JsonViewer } from "@textea/json-viewer";
|
|
58
74
|
import { useIsDark } from "@xylabs/react-theme";
|
|
59
|
-
import
|
|
60
|
-
var JsonViewerEx =
|
|
75
|
+
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
76
|
+
var JsonViewerEx = (props) => {
|
|
61
77
|
const theme = useTheme();
|
|
62
78
|
const isDark = useIsDark();
|
|
63
|
-
return /* @__PURE__ */
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
79
|
+
return /* @__PURE__ */ jsx2(
|
|
80
|
+
JsonViewer,
|
|
81
|
+
{
|
|
82
|
+
theme: isDark ? "dark" : "light",
|
|
83
|
+
collapseStringsAfterLength: 50,
|
|
84
|
+
style: {
|
|
85
|
+
borderRadius: theme.shape.borderRadius,
|
|
86
|
+
padding: theme.spacing(2)
|
|
87
|
+
},
|
|
88
|
+
...props
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
};
|
|
73
92
|
|
|
74
93
|
// src/components/shared/Dialog/JsonViewerCollapse.tsx
|
|
75
|
-
|
|
94
|
+
import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
95
|
+
var JsonViewerCollapse = ({
|
|
96
|
+
defaultExpandedJson,
|
|
97
|
+
jsonValue,
|
|
98
|
+
updateExpandedJson,
|
|
99
|
+
...props
|
|
100
|
+
}) => {
|
|
76
101
|
const [expandedJson, setExpandedJson] = useDataState(defaultExpandedJson);
|
|
77
102
|
const [hash] = usePromise(async () => {
|
|
78
103
|
if (!jsonValue || !isAnyPayload(jsonValue)) return;
|
|
79
104
|
return await PayloadBuilder.dataHash(jsonValue);
|
|
80
|
-
}, [
|
|
81
|
-
jsonValue
|
|
82
|
-
]);
|
|
105
|
+
}, [jsonValue]);
|
|
83
106
|
const actionText = expandedJson ? "Hide JSON" : "Show JSON";
|
|
84
|
-
const handleExpansion =
|
|
107
|
+
const handleExpansion = () => {
|
|
85
108
|
updateExpandedJson?.(!expandedJson);
|
|
86
109
|
setExpandedJson(!expandedJson);
|
|
87
|
-
}
|
|
88
|
-
return /* @__PURE__ */
|
|
89
|
-
onClick: handleExpansion,
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
gap: 1.5
|
|
98
|
-
}, /* @__PURE__ */ React3.createElement(Typography2, {
|
|
99
|
-
sx: {
|
|
100
|
-
lineHeight: 1
|
|
101
|
-
}
|
|
102
|
-
}, "Payload Hash:"), hash ? /* @__PURE__ */ React3.createElement(Chip, {
|
|
103
|
-
label: /* @__PURE__ */ React3.createElement(StyledChipLabel, null, hash),
|
|
104
|
-
sx: {
|
|
105
|
-
alignSelf: "start"
|
|
106
|
-
}
|
|
107
|
-
}) : null, /* @__PURE__ */ React3.createElement(JsonViewerEx, {
|
|
108
|
-
value: jsonValue
|
|
109
|
-
})) : null));
|
|
110
|
-
}, "JsonViewerCollapse");
|
|
110
|
+
};
|
|
111
|
+
return /* @__PURE__ */ jsxs2(Fragment, { children: [
|
|
112
|
+
jsonValue ? /* @__PURE__ */ jsx3(FlexRow, { children: /* @__PURE__ */ jsx3(Button, { onClick: handleExpansion, size: "small", variant: "outlined", children: actionText }) }) : null,
|
|
113
|
+
/* @__PURE__ */ jsx3(Collapse, { in: expandedJson, ...props, children: jsonValue ? /* @__PURE__ */ jsxs2(FlexCol, { alignItems: "stretch", gap: 1.5, children: [
|
|
114
|
+
/* @__PURE__ */ jsx3(Typography2, { sx: { lineHeight: 1 }, children: "Payload Hash:" }),
|
|
115
|
+
hash ? /* @__PURE__ */ jsx3(Chip, { label: /* @__PURE__ */ jsx3(StyledChipLabel, { children: hash }), sx: { alignSelf: "start" } }) : null,
|
|
116
|
+
/* @__PURE__ */ jsx3(JsonViewerEx, { value: jsonValue })
|
|
117
|
+
] }) : null })
|
|
118
|
+
] });
|
|
119
|
+
};
|
|
111
120
|
|
|
112
121
|
// src/components/shared/Dialog/RawInfoDialog.tsx
|
|
113
|
-
import {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
122
|
+
import {
|
|
123
|
+
Button as Button2,
|
|
124
|
+
Dialog,
|
|
125
|
+
DialogActions,
|
|
126
|
+
DialogContent,
|
|
127
|
+
DialogTitle
|
|
128
|
+
} from "@mui/material";
|
|
129
|
+
import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
130
|
+
var RawInfoDialog = ({
|
|
131
|
+
defaultExpandedJson,
|
|
132
|
+
dialogContent,
|
|
133
|
+
onCloseCallback,
|
|
134
|
+
jsonValue: jsonObject,
|
|
135
|
+
updateExpandedJson,
|
|
136
|
+
open = false,
|
|
137
|
+
...props
|
|
138
|
+
}) => {
|
|
139
|
+
const onDialogClick = (event) => {
|
|
117
140
|
event.stopPropagation();
|
|
118
|
-
}
|
|
141
|
+
};
|
|
119
142
|
return (
|
|
120
143
|
// Wrapping in a span so we can catch click events and prevent them from propagating outside the component
|
|
121
|
-
/* @__PURE__ */
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
})), /* @__PURE__ */ React4.createElement(DialogActions, null, /* @__PURE__ */ React4.createElement(Button2, {
|
|
140
|
-
variant: "contained",
|
|
141
|
-
onClick: /* @__PURE__ */ __name(() => onCloseCallback?.(), "onClick")
|
|
142
|
-
}, "Close"))))
|
|
144
|
+
/* @__PURE__ */ jsx4("span", { onClick: onDialogClick, children: /* @__PURE__ */ jsxs3(Dialog, { fullWidth: true, maxWidth: "lg", onClose: () => onCloseCallback?.(), open, ...props, children: [
|
|
145
|
+
/* @__PURE__ */ jsx4(DialogTitle, { children: "Raw Data" }),
|
|
146
|
+
/* @__PURE__ */ jsxs3(
|
|
147
|
+
DialogContent,
|
|
148
|
+
{
|
|
149
|
+
sx: {
|
|
150
|
+
display: "flex",
|
|
151
|
+
flexDirection: "column",
|
|
152
|
+
gap: 2
|
|
153
|
+
},
|
|
154
|
+
children: [
|
|
155
|
+
dialogContent,
|
|
156
|
+
/* @__PURE__ */ jsx4(JsonViewerCollapse, { defaultExpandedJson, jsonValue: jsonObject, updateExpandedJson })
|
|
157
|
+
]
|
|
158
|
+
}
|
|
159
|
+
),
|
|
160
|
+
/* @__PURE__ */ jsx4(DialogActions, { children: /* @__PURE__ */ jsx4(Button2, { variant: "contained", onClick: () => onCloseCallback?.(), children: "Close" }) })
|
|
161
|
+
] }) })
|
|
143
162
|
);
|
|
144
|
-
}
|
|
163
|
+
};
|
|
145
164
|
|
|
146
165
|
// src/components/Button/lib/presetIconSize.ts
|
|
147
|
-
var presetIconSizeValue =
|
|
166
|
+
var presetIconSizeValue = (size) => {
|
|
148
167
|
switch (size) {
|
|
149
168
|
case "small": {
|
|
150
169
|
return 16;
|
|
@@ -156,81 +175,103 @@ var presetIconSizeValue = /* @__PURE__ */ __name((size) => {
|
|
|
156
175
|
return 48;
|
|
157
176
|
}
|
|
158
177
|
}
|
|
159
|
-
}
|
|
178
|
+
};
|
|
160
179
|
|
|
161
180
|
// src/components/Button/RawInfoButton.tsx
|
|
162
|
-
|
|
181
|
+
import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
182
|
+
var RawInfoButton = ({
|
|
183
|
+
defaultExpandedJson = true,
|
|
184
|
+
dialogContent,
|
|
185
|
+
iconOnly,
|
|
186
|
+
iconSize = 24,
|
|
187
|
+
onCloseCallback,
|
|
188
|
+
children,
|
|
189
|
+
rawValue,
|
|
190
|
+
presetIconSize,
|
|
191
|
+
updateExpandedJson,
|
|
192
|
+
...props
|
|
193
|
+
}) => {
|
|
163
194
|
const [open, setOpen] = useState(false);
|
|
164
195
|
const size = presetIconSizeValue(presetIconSize);
|
|
165
|
-
const json = useMemo(() => toSafeJson(rawValue), [
|
|
166
|
-
|
|
167
|
-
]);
|
|
168
|
-
const handleClick = /* @__PURE__ */ __name((event) => {
|
|
196
|
+
const json = useMemo(() => toSafeJson(rawValue), [rawValue]);
|
|
197
|
+
const handleClick = (event) => {
|
|
169
198
|
event.stopPropagation();
|
|
170
199
|
setOpen(true);
|
|
171
|
-
}
|
|
172
|
-
const onCloseCallBackWrapped =
|
|
200
|
+
};
|
|
201
|
+
const onCloseCallBackWrapped = () => {
|
|
173
202
|
setOpen(false);
|
|
174
203
|
onCloseCallback?.();
|
|
175
|
-
}
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
width: size ?? iconSize
|
|
204
|
+
};
|
|
205
|
+
return /* @__PURE__ */ jsxs4("span", { children: [
|
|
206
|
+
/* @__PURE__ */ jsx5(
|
|
207
|
+
ButtonEx,
|
|
208
|
+
{
|
|
209
|
+
variant: "outlined",
|
|
210
|
+
size: "small",
|
|
211
|
+
startIcon: /* @__PURE__ */ jsx5(XyoColorLogo, { sx: { height: size ?? iconSize, width: size ?? iconSize } }),
|
|
212
|
+
onClick: handleClick,
|
|
213
|
+
disabled: iconOnly ? false : !rawValue,
|
|
214
|
+
...props,
|
|
215
|
+
children: children ?? /* @__PURE__ */ jsx5("span", { children: "Data" })
|
|
183
216
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
}
|
|
217
|
+
),
|
|
218
|
+
iconOnly ? null : /* @__PURE__ */ jsx5(
|
|
219
|
+
RawInfoDialog,
|
|
220
|
+
{
|
|
221
|
+
defaultExpandedJson,
|
|
222
|
+
jsonValue: json,
|
|
223
|
+
onCloseCallback: onCloseCallBackWrapped,
|
|
224
|
+
dialogContent,
|
|
225
|
+
open,
|
|
226
|
+
updateExpandedJson
|
|
227
|
+
}
|
|
228
|
+
)
|
|
229
|
+
] });
|
|
230
|
+
};
|
|
197
231
|
|
|
198
232
|
// src/components/Button/RawInfoIconButton.tsx
|
|
199
233
|
import { IconButton } from "@mui/material";
|
|
200
234
|
import { toSafeJson as toSafeJson2 } from "@xylabs/object";
|
|
201
|
-
import
|
|
202
|
-
|
|
235
|
+
import { useMemo as useMemo2, useState as useState2 } from "react";
|
|
236
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
237
|
+
var RawInfoIconButton = ({
|
|
238
|
+
ref,
|
|
239
|
+
defaultExpandedJson = true,
|
|
240
|
+
dialogContent,
|
|
241
|
+
iconOnly,
|
|
242
|
+
iconSize = 32,
|
|
243
|
+
onCloseCallback,
|
|
244
|
+
rawValue,
|
|
245
|
+
presetIconSize,
|
|
246
|
+
updateExpandedJson,
|
|
247
|
+
...props
|
|
248
|
+
}) => {
|
|
203
249
|
const [open, setOpen] = useState2(false);
|
|
204
250
|
const size = presetIconSizeValue(presetIconSize);
|
|
205
|
-
const json = useMemo2(() => toSafeJson2(rawValue), [
|
|
206
|
-
|
|
207
|
-
]);
|
|
208
|
-
const handleClick = /* @__PURE__ */ __name((event) => {
|
|
251
|
+
const json = useMemo2(() => toSafeJson2(rawValue), [rawValue]);
|
|
252
|
+
const handleClick = (event) => {
|
|
209
253
|
event.stopPropagation();
|
|
210
254
|
setOpen(true);
|
|
211
|
-
}
|
|
212
|
-
const onCloseCallBackWrapped =
|
|
255
|
+
};
|
|
256
|
+
const onCloseCallBackWrapped = () => {
|
|
213
257
|
setOpen(false);
|
|
214
258
|
onCloseCallback?.();
|
|
215
|
-
}
|
|
216
|
-
return /* @__PURE__ */
|
|
217
|
-
onClick: handleClick,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
updateExpandedJson
|
|
232
|
-
}));
|
|
233
|
-
}, "RawInfoIconButton");
|
|
259
|
+
};
|
|
260
|
+
return /* @__PURE__ */ jsxs5(Fragment2, { children: [
|
|
261
|
+
/* @__PURE__ */ jsx6(IconButton, { onClick: handleClick, ref, ...props, children: /* @__PURE__ */ jsx6(XyoColorLogo, { sx: { height: size ?? iconSize, width: size ?? iconSize } }) }),
|
|
262
|
+
iconOnly ? null : /* @__PURE__ */ jsx6(
|
|
263
|
+
RawInfoDialog,
|
|
264
|
+
{
|
|
265
|
+
defaultExpandedJson,
|
|
266
|
+
jsonValue: json,
|
|
267
|
+
onCloseCallback: onCloseCallBackWrapped,
|
|
268
|
+
dialogContent,
|
|
269
|
+
open,
|
|
270
|
+
updateExpandedJson
|
|
271
|
+
}
|
|
272
|
+
)
|
|
273
|
+
] });
|
|
274
|
+
};
|
|
234
275
|
RawInfoIconButton.displayName = "RawInfoIcon";
|
|
235
276
|
export {
|
|
236
277
|
JsonViewerCollapse,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/components/Button/RawInfoButton.tsx","../../src/components/img/index.tsx","../../src/components/shared/Dialog/JsonViewerCollapse.tsx","../../src/components/styled/StyledChipLabel.tsx","../../src/components/shared/JsonViewerEx.tsx","../../src/components/shared/Dialog/RawInfoDialog.tsx","../../src/components/Button/lib/presetIconSize.ts","../../src/components/Button/RawInfoIconButton.tsx"],"sourcesContent":["import { toSafeJson } from '@xylabs/object'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport type { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport type { IconSize } from './lib/index.ts'\nimport { presetIconSizeValue } from './lib/index.ts'\n\nexport type RawInfoButtonProps = ButtonExProps & ExpansionProps & {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoButton: React.FC<RawInfoButtonProps> = ({\n defaultExpandedJson = true,\n dialogContent,\n iconOnly,\n iconSize = 24,\n onCloseCallback,\n children,\n rawValue,\n presetIconSize,\n updateExpandedJson,\n ...props\n}) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toSafeJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <span>\n <ButtonEx\n variant=\"outlined\"\n size=\"small\"\n startIcon={(\n <XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />\n )}\n onClick={handleClick}\n disabled={iconOnly ? false : !rawValue}\n {...props}\n >\n {children ?? <span>Data</span>}\n </ButtonEx>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </span>\n )\n}\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const XyoColorLogo = createSvgIcon(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 238\">\n <path\n className=\"cls-1\"\n d=\"M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z\"\n fill=\"#8d8fc6\"\n />\n <path\n className=\"cls-2\"\n d=\"M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z\"\n fill=\"#579fd6\"\n />\n <path\n className=\"cls-3\"\n d=\"M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z\"\n fill=\"#f27046\"\n />\n <path\n className=\"cls-4\"\n d=\"M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z\"\n fill=\"#eb407a\"\n />\n </svg>,\n 'XyoColorLogo',\n)\n","import type { CollapseProps } from '@mui/material'\nimport {\n Button, Chip, Collapse, Typography,\n} from '@mui/material'\nimport type { JsonValue } from '@xylabs/object'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { usePromise } from '@xylabs/react-promise'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { isAnyPayload } from '@xyo-network/payload-model'\nimport { useDataState } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport type { ExpansionProps } from '../../../lib/index.ts'\nimport { StyledChipLabel } from '../../styled/index.ts'\nimport { JsonViewerEx } from '../JsonViewerEx.tsx'\n\nexport interface RawInfoPayloadCollapse extends CollapseProps, ExpansionProps {\n jsonValue?: JsonValue\n}\n\nexport const JsonViewerCollapse: React.FC<RawInfoPayloadCollapse> = ({\n defaultExpandedJson, jsonValue, updateExpandedJson, ...props\n}) => {\n const [expandedJson, setExpandedJson] = useDataState(defaultExpandedJson)\n\n const [hash] = usePromise(async () => {\n if (!jsonValue || !isAnyPayload(jsonValue)) return\n return await PayloadBuilder.dataHash(jsonValue)\n }, [jsonValue])\n\n const actionText = expandedJson ? 'Hide JSON' : 'Show JSON'\n\n const handleExpansion = () => {\n updateExpandedJson?.(!expandedJson)\n setExpandedJson(!expandedJson)\n }\n\n return (\n <>\n {jsonValue\n ? (\n <FlexRow>\n <Button onClick={handleExpansion} size=\"small\" variant=\"outlined\">\n {actionText}\n </Button>\n </FlexRow>\n )\n : null}\n <Collapse in={expandedJson} {...props}>\n {jsonValue\n ? (\n <FlexCol alignItems=\"stretch\" gap={1.5}>\n <Typography sx={{ lineHeight: 1 }}>Payload Hash:</Typography>\n {hash\n ? <Chip label={<StyledChipLabel>{hash}</StyledChipLabel>} sx={{ alignSelf: 'start' }} />\n : null}\n <JsonViewerEx value={jsonValue} />\n </FlexCol>\n )\n : null}\n </Collapse>\n </>\n )\n}\n","import { styled, Typography } from '@mui/material'\n\nexport const StyledChipLabel = styled(Typography, { name: 'StyledChipLabel' })(({ theme }) => ({\n display: 'block',\n lineHeight: 1,\n overflow: 'hidden',\n paddingRight: theme.spacing(0.95),\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}))\n","import { useTheme } from '@mui/material'\nimport type { JsonViewerProps } from '@textea/json-viewer'\nimport { JsonViewer } from '@textea/json-viewer'\nimport { useIsDark } from '@xylabs/react-theme'\nimport React from 'react'\n\nexport type JsonViewerExProps = JsonViewerProps\n\nexport const JsonViewerEx: React.FC<JsonViewerExProps> = (props) => {\n const theme = useTheme()\n const isDark = useIsDark()\n\n return (\n <JsonViewer\n theme={isDark ? 'dark' : 'light'}\n collapseStringsAfterLength={50}\n style={{\n borderRadius: theme.shape.borderRadius,\n padding: theme.spacing(2),\n }}\n {...props}\n />\n )\n}\n","import type { DialogProps } from '@mui/material'\nimport {\n Button, Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport type { JsonValue } from '@xylabs/object'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React from 'react'\n\nimport type { ExpansionProps } from '../../../lib/index.ts'\nimport { JsonViewerCollapse } from './JsonViewerCollapse.tsx'\n\nexport interface RawInfoDialogProps extends DialogProps, ExpansionProps {\n dialogContent?: ReactNode\n jsonValue?: JsonValue\n onCloseCallback?: () => void\n}\n\nexport const RawInfoDialog: React.FC<RawInfoDialogProps> = ({\n defaultExpandedJson,\n dialogContent,\n onCloseCallback,\n jsonValue: jsonObject,\n updateExpandedJson,\n open = false,\n ...props\n}) => {\n const onDialogClick: MouseEventHandler<HTMLSpanElement> = (event) => {\n event.stopPropagation()\n }\n\n return (\n // Wrapping in a span so we can catch click events and prevent them from propagating outside the component\n <span onClick={onDialogClick}>\n <Dialog fullWidth maxWidth=\"lg\" onClose={() => onCloseCallback?.()} open={open} {...props}>\n <DialogTitle>Raw Data</DialogTitle>\n <DialogContent sx={{\n display: 'flex', flexDirection: 'column', gap: 2,\n }}\n >\n {dialogContent}\n <JsonViewerCollapse defaultExpandedJson={defaultExpandedJson} jsonValue={jsonObject} updateExpandedJson={updateExpandedJson} />\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => onCloseCallback?.()}>\n Close\n </Button>\n </DialogActions>\n </Dialog>\n </span>\n )\n}\n","import type { IconSize } from './IconSize.ts'\n\nexport const presetIconSizeValue = (size?: IconSize) => {\n switch (size) {\n case 'small': {\n return 16\n }\n case 'medium': {\n return 32\n }\n case 'large': {\n return 48\n }\n }\n}\n","import type { IconButtonProps } from '@mui/material'\nimport { IconButton } from '@mui/material'\nimport { toSafeJson } from '@xylabs/object'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport type { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport type { IconSize } from './lib/index.ts'\nimport { presetIconSizeValue } from './lib/index.ts'\n\nexport interface RawInfoIconProps extends IconButtonProps, ExpansionProps {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoIconButton = (\n {\n ref, defaultExpandedJson = true, dialogContent, iconOnly, iconSize = 32, onCloseCallback, rawValue, presetIconSize, updateExpandedJson, ...props\n }: RawInfoIconProps & { ref?: React.RefObject<HTMLButtonElement | null> },\n) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toSafeJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <>\n <IconButton onClick={handleClick} ref={ref} {...props}>\n <XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />\n </IconButton>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </>\n )\n}\n\nRawInfoIconButton.displayName = 'RawInfoIcon'\n"],"mappings":";;;;AAAA,SAASA,kBAAkB;AAE3B,SAASC,gBAAgB;AAEzB,OAAOC,UAASC,SAASC,gBAAgB;;;ACHzC,SAASC,qBAAqB;AAC9B,OAAOC,WAAW;AAEX,IAAMC,eAAeF,cAC1B,sBAAA,cAACG,OAAAA;EAAIC,OAAM;EAA6BC,SAAQ;GAC9C,sBAAA,cAACC,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;IAEP,sBAAA,cAACH,QAAAA;EACCC,WAAU;EACVC,GAAE;EACFC,MAAK;KAGT,cAAA;;;AC1BF,SACEC,QAAQC,MAAMC,UAAUC,cAAAA,mBACnB;AAEP,SAASC,SA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D,SAAS2B,kBAAkB;AAC3B,SAASC,cAAAA,mBAAkB;AAE3B,OAAOC,UAASC,WAAAA,UAASC,YAAAA,iBAAgB;AAiBlC,IAAMC,oBAAoB,wBAC/B,EACEC,KAAKC,sBAAsB,MAAMC,eAAeC,UAAUC,WAAW,IAAIC,iBAAiBC,UAAUC,gBAAgBC,oBAAoB,GAAGC,MAAAA,MACpE;AAEzE,QAAM,CAACC,MAAMC,OAAAA,IAAWC,UAAS,KAAA;AACjC,QAAMC,OAAOC,oBAAoBP,cAAAA;AACjC,QAAMQ,OAAOC,SAAQ,MAAMC,YAAWX,QAAAA,GAAW;IAACA;GAAS;AAE3D,QAAMY,cAAoD,wBAACC,UAAAA;AACzDA,UAAMC,gBAAe;AACrBT,YAAQ,IAAA;EACV,GAH0D;AAK1D,QAAMU,yBAAyB,6BAAA;AAC7BV,YAAQ,KAAA;AACRN,sBAAAA;EACF,GAH+B;AAK/B,SACE,gBAAAiB,OAAA,cAAAA,OAAA,UAAA,MACE,gBAAAA,OAAA,cAACC,YAAAA;IAAWC,SAASN;IAAalB;IAAW,GAAGS;KAC9C,gBAAAa,OAAA,cAACG,cAAAA;IAAaC,IAAI;MAAEC,QAAQd,QAAQT;MAAUwB,OAAOf,QAAQT;IAAS;OAEvED,WACG,OAEE,gBAAAmB,OAAA,cAACO,eAAAA;IACC5B;IACA6B,WAAWf;IACXV,iBAAiBgB;IACjBnB;IACAQ;IACAF;;AAKd,GAtCiC;AAwCjCT,kBAAkBgC,cAAc;","names":["toSafeJson","ButtonEx","React","useMemo","useState","createSvgIcon","React","XyoColorLogo","svg","xmlns","viewBox","path","className","d","fill","Button","Chip","Collapse","Typography","FlexCol","FlexRow","usePromise","PayloadBuilder","isAnyPayload","useDataState","React","styled","Typography","StyledChipLabel","name","theme","display","lineHeight","overflow","paddingRight","spacing","textOverflow","whiteSpace","useTheme","JsonViewer","useIsDark","React","JsonViewerEx","props","theme","useTheme","isDark","useIsDark","React","JsonViewer","collapseStringsAfterLength","style","borderRadius","shape","padding","spacing","JsonViewerCollapse","defaultExpandedJson","jsonValue","updateExpandedJson","props","expandedJson","setExpandedJson","useDataState","hash","usePromise","isAnyPayload","PayloadBuilder","dataHash","actionText","handleExpansion","React","FlexRow","Button","onClick","size","variant","Collapse","in","FlexCol","alignItems","gap","Typography","sx","lineHeight","Chip","label","StyledChipLabel","alignSelf","JsonViewerEx","value","Button","Dialog","DialogActions","DialogContent","DialogTitle","React","RawInfoDialog","defaultExpandedJson","dialogContent","onCloseCallback","jsonValue","jsonObject","updateExpandedJson","open","props","onDialogClick","event","stopPropagation","React","span","onClick","Dialog","fullWidth","maxWidth","onClose","DialogTitle","DialogContent","sx","display","flexDirection","gap","JsonViewerCollapse","DialogActions","Button","variant","presetIconSizeValue","size","RawInfoButton","defaultExpandedJson","dialogContent","iconOnly","iconSize","onCloseCallback","children","rawValue","presetIconSize","updateExpandedJson","props","open","setOpen","useState","size","presetIconSizeValue","json","useMemo","toSafeJson","handleClick","event","stopPropagation","onCloseCallBackWrapped","React","span","ButtonEx","variant","startIcon","XyoColorLogo","sx","height","width","onClick","disabled","RawInfoDialog","jsonValue","IconButton","toSafeJson","React","useMemo","useState","RawInfoIconButton","ref","defaultExpandedJson","dialogContent","iconOnly","iconSize","onCloseCallback","rawValue","presetIconSize","updateExpandedJson","props","open","setOpen","useState","size","presetIconSizeValue","json","useMemo","toSafeJson","handleClick","event","stopPropagation","onCloseCallBackWrapped","React","IconButton","onClick","XyoColorLogo","sx","height","width","RawInfoDialog","jsonValue","displayName"]}
|
|
1
|
+
{"version":3,"sources":["../../src/components/Button/RawInfoButton.tsx","../../src/components/img/index.tsx","../../src/components/shared/Dialog/JsonViewerCollapse.tsx","../../src/components/styled/StyledChipLabel.tsx","../../src/components/shared/JsonViewerEx.tsx","../../src/components/shared/Dialog/RawInfoDialog.tsx","../../src/components/Button/lib/presetIconSize.ts","../../src/components/Button/RawInfoIconButton.tsx"],"sourcesContent":["import { toSafeJson } from '@xylabs/object'\nimport type { ButtonExProps } from '@xylabs/react-button'\nimport { ButtonEx } from '@xylabs/react-button'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport type { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport type { IconSize } from './lib/index.ts'\nimport { presetIconSizeValue } from './lib/index.ts'\n\nexport type RawInfoButtonProps = ButtonExProps & ExpansionProps & {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoButton: React.FC<RawInfoButtonProps> = ({\n defaultExpandedJson = true,\n dialogContent,\n iconOnly,\n iconSize = 24,\n onCloseCallback,\n children,\n rawValue,\n presetIconSize,\n updateExpandedJson,\n ...props\n}) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toSafeJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <span>\n <ButtonEx\n variant=\"outlined\"\n size=\"small\"\n startIcon={(\n <XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />\n )}\n onClick={handleClick}\n disabled={iconOnly ? false : !rawValue}\n {...props}\n >\n {children ?? <span>Data</span>}\n </ButtonEx>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </span>\n )\n}\n","/* eslint-disable @stylistic/max-len */\nimport { createSvgIcon } from '@mui/material'\nimport React from 'react'\n\nexport const XyoColorLogo = createSvgIcon(\n <svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 238\">\n <path\n className=\"cls-1\"\n d=\"M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z\"\n fill=\"#8d8fc6\"\n />\n <path\n className=\"cls-2\"\n d=\"M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z\"\n fill=\"#579fd6\"\n />\n <path\n className=\"cls-3\"\n d=\"M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z\"\n fill=\"#f27046\"\n />\n <path\n className=\"cls-4\"\n d=\"M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z\"\n fill=\"#eb407a\"\n />\n </svg>,\n 'XyoColorLogo',\n)\n","import type { CollapseProps } from '@mui/material'\nimport {\n Button, Chip, Collapse, Typography,\n} from '@mui/material'\nimport type { JsonValue } from '@xylabs/object'\nimport { FlexCol, FlexRow } from '@xylabs/react-flexbox'\nimport { usePromise } from '@xylabs/react-promise'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { isAnyPayload } from '@xyo-network/payload-model'\nimport { useDataState } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport type { ExpansionProps } from '../../../lib/index.ts'\nimport { StyledChipLabel } from '../../styled/index.ts'\nimport { JsonViewerEx } from '../JsonViewerEx.tsx'\n\nexport interface RawInfoPayloadCollapse extends CollapseProps, ExpansionProps {\n jsonValue?: JsonValue\n}\n\nexport const JsonViewerCollapse: React.FC<RawInfoPayloadCollapse> = ({\n defaultExpandedJson, jsonValue, updateExpandedJson, ...props\n}) => {\n const [expandedJson, setExpandedJson] = useDataState(defaultExpandedJson)\n\n const [hash] = usePromise(async () => {\n if (!jsonValue || !isAnyPayload(jsonValue)) return\n return await PayloadBuilder.dataHash(jsonValue)\n }, [jsonValue])\n\n const actionText = expandedJson ? 'Hide JSON' : 'Show JSON'\n\n const handleExpansion = () => {\n updateExpandedJson?.(!expandedJson)\n setExpandedJson(!expandedJson)\n }\n\n return (\n <>\n {jsonValue\n ? (\n <FlexRow>\n <Button onClick={handleExpansion} size=\"small\" variant=\"outlined\">\n {actionText}\n </Button>\n </FlexRow>\n )\n : null}\n <Collapse in={expandedJson} {...props}>\n {jsonValue\n ? (\n <FlexCol alignItems=\"stretch\" gap={1.5}>\n <Typography sx={{ lineHeight: 1 }}>Payload Hash:</Typography>\n {hash\n ? <Chip label={<StyledChipLabel>{hash}</StyledChipLabel>} sx={{ alignSelf: 'start' }} />\n : null}\n <JsonViewerEx value={jsonValue} />\n </FlexCol>\n )\n : null}\n </Collapse>\n </>\n )\n}\n","import { styled, Typography } from '@mui/material'\n\nexport const StyledChipLabel = styled(Typography, { name: 'StyledChipLabel' })(({ theme }) => ({\n display: 'block',\n lineHeight: 1,\n overflow: 'hidden',\n paddingRight: theme.spacing(0.95),\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap',\n}))\n","import { useTheme } from '@mui/material'\nimport type { JsonViewerProps } from '@textea/json-viewer'\nimport { JsonViewer } from '@textea/json-viewer'\nimport { useIsDark } from '@xylabs/react-theme'\nimport React from 'react'\n\nexport type JsonViewerExProps = JsonViewerProps\n\nexport const JsonViewerEx: React.FC<JsonViewerExProps> = (props) => {\n const theme = useTheme()\n const isDark = useIsDark()\n\n return (\n <JsonViewer\n theme={isDark ? 'dark' : 'light'}\n collapseStringsAfterLength={50}\n style={{\n borderRadius: theme.shape.borderRadius,\n padding: theme.spacing(2),\n }}\n {...props}\n />\n )\n}\n","import type { DialogProps } from '@mui/material'\nimport {\n Button, Dialog, DialogActions, DialogContent, DialogTitle,\n} from '@mui/material'\nimport type { JsonValue } from '@xylabs/object'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React from 'react'\n\nimport type { ExpansionProps } from '../../../lib/index.ts'\nimport { JsonViewerCollapse } from './JsonViewerCollapse.tsx'\n\nexport interface RawInfoDialogProps extends DialogProps, ExpansionProps {\n dialogContent?: ReactNode\n jsonValue?: JsonValue\n onCloseCallback?: () => void\n}\n\nexport const RawInfoDialog: React.FC<RawInfoDialogProps> = ({\n defaultExpandedJson,\n dialogContent,\n onCloseCallback,\n jsonValue: jsonObject,\n updateExpandedJson,\n open = false,\n ...props\n}) => {\n const onDialogClick: MouseEventHandler<HTMLSpanElement> = (event) => {\n event.stopPropagation()\n }\n\n return (\n // Wrapping in a span so we can catch click events and prevent them from propagating outside the component\n <span onClick={onDialogClick}>\n <Dialog fullWidth maxWidth=\"lg\" onClose={() => onCloseCallback?.()} open={open} {...props}>\n <DialogTitle>Raw Data</DialogTitle>\n <DialogContent sx={{\n display: 'flex', flexDirection: 'column', gap: 2,\n }}\n >\n {dialogContent}\n <JsonViewerCollapse defaultExpandedJson={defaultExpandedJson} jsonValue={jsonObject} updateExpandedJson={updateExpandedJson} />\n </DialogContent>\n <DialogActions>\n <Button variant=\"contained\" onClick={() => onCloseCallback?.()}>\n Close\n </Button>\n </DialogActions>\n </Dialog>\n </span>\n )\n}\n","import type { IconSize } from './IconSize.ts'\n\nexport const presetIconSizeValue = (size?: IconSize) => {\n switch (size) {\n case 'small': {\n return 16\n }\n case 'medium': {\n return 32\n }\n case 'large': {\n return 48\n }\n }\n}\n","import type { IconButtonProps } from '@mui/material'\nimport { IconButton } from '@mui/material'\nimport { toSafeJson } from '@xylabs/object'\nimport type { MouseEventHandler, ReactNode } from 'react'\nimport React, { useMemo, useState } from 'react'\n\nimport type { ExpansionProps } from '../../lib/index.ts'\nimport { XyoColorLogo } from '../img/index.tsx'\nimport { RawInfoDialog } from '../shared/index.ts'\nimport type { IconSize } from './lib/index.ts'\nimport { presetIconSizeValue } from './lib/index.ts'\n\nexport interface RawInfoIconProps extends IconButtonProps, ExpansionProps {\n dialogContent?: ReactNode\n iconOnly?: boolean\n iconSize?: number\n onCloseCallback?: () => void\n presetIconSize?: IconSize\n rawValue?: unknown\n}\n\nexport const RawInfoIconButton = (\n {\n ref, defaultExpandedJson = true, dialogContent, iconOnly, iconSize = 32, onCloseCallback, rawValue, presetIconSize, updateExpandedJson, ...props\n }: RawInfoIconProps & { ref?: React.RefObject<HTMLButtonElement | null> },\n) => {\n const [open, setOpen] = useState(false)\n const size = presetIconSizeValue(presetIconSize)\n const json = useMemo(() => toSafeJson(rawValue), [rawValue])\n\n const handleClick: MouseEventHandler<HTMLButtonElement> = (event) => {\n event.stopPropagation()\n setOpen(true)\n }\n\n const onCloseCallBackWrapped = () => {\n setOpen(false)\n onCloseCallback?.()\n }\n\n return (\n <>\n <IconButton onClick={handleClick} ref={ref} {...props}>\n <XyoColorLogo sx={{ height: size ?? iconSize, width: size ?? iconSize }} />\n </IconButton>\n {iconOnly\n ? null\n : (\n <RawInfoDialog\n defaultExpandedJson={defaultExpandedJson}\n jsonValue={json}\n onCloseCallback={onCloseCallBackWrapped}\n dialogContent={dialogContent}\n open={open}\n updateExpandedJson={updateExpandedJson}\n />\n )}\n </>\n )\n}\n\nRawInfoIconButton.displayName = 'RawInfoIcon'\n"],"mappings":";AAAA,SAAS,kBAAkB;AAE3B,SAAS,gBAAgB;AAEzB,SAAgB,SAAS,gBAAgB;;;ACHzC,SAAS,qBAAqB;AAI5B,SACE,KADF;AADK,IAAM,eAAe;AAAA,EAC1B,qBAAC,SAAI,OAAM,8BAA6B,SAAQ,eAC9C;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA,QACF,MAAK;AAAA;AAAA,IACP;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA,QACF,MAAK;AAAA;AAAA,IACP;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA,QACF,MAAK;AAAA;AAAA,IACP;AAAA,IACA;AAAA,MAAC;AAAA;AAAA,QACC,WAAU;AAAA,QACV,GAAE;AAAA,QACF,MAAK;AAAA;AAAA,IACP;AAAA,KACF;AAAA,EACA;AACF;;;AC3BA;AAAA,EACE;AAAA,EAAQ;AAAA,EAAM;AAAA,EAAU,cAAAA;AAAA,OACnB;AAEP,SAAS,SAAS,eAAe;AACjC,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,oBAAoB;AAC7B,SAAS,oBAAoB;;;ACT7B,SAAS,QAAQ,kBAAkB;AAE5B,IAAM,kBAAkB,OAAO,YAAY,EAAE,MAAM,kBAAkB,CAAC,EAAE,CAAC,EAAE,MAAM,OAAO;AAAA,EAC7F,SAAS;AAAA,EACT,YAAY;AAAA,EAC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WAEI,OAAAC,MAFJ,QAAAC,aAAA;AApBG,IAAM,oBAAoB,CAC/B;AAAA,EACE;AAAA,EAAK,sBAAsB;AAAA,EAAM;AAAA,EAAe;AAAA,EAAU,WAAW;AAAA,EAAI;AAAA,EAAiB;AAAA,EAAU;AAAA,EAAgB;AAAA,EAAoB,GAAG;AAC7I,MACG;AACH,QAAM,CAAC,MAAM,OAAO,IAAIC,UAAS,KAAK;AACtC,QAAM,OAAO,oBAAoB,cAAc;AAC/C,QAAM,OAAOC,SAAQ,MAAMC,YAAW,QAAQ,GAAG,CAAC,QAAQ,CAAC;AAE3D,QAAM,cAAoD,CAAC,UAAU;AACnE,UAAM,gBAAgB;AACtB,YAAQ,IAAI;AAAA,EACd;AAEA,QAAM,yBAAyB,MAAM;AACnC,YAAQ,KAAK;AACb,sBAAkB;AAAA,EACpB;AAEA,SACE,gBAAAH,MAAAF,WAAA,EACE;AAAA,oBAAAC,KAAC,cAAW,SAAS,aAAa,KAAW,GAAG,OAC9C,0BAAAA,KAAC,gBAAa,IAAI,EAAE,QAAQ,QAAQ,UAAU,OAAO,QAAQ,SAAS,GAAG,GAC3E;AAAA,IACC,WACG,OAEE,gBAAAA;AAAA,MAAC;AAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,QACX,iBAAiB;AAAA,QACjB;AAAA,QACA;AAAA,QACA;AAAA;AAAA,IACF;AAAA,KAER;AAEJ;AAEA,kBAAkB,cAAc;","names":["Typography","jsx","jsx","jsxs","Typography","Button","jsx","jsxs","Button","jsx","jsxs","toSafeJson","useMemo","useState","Fragment","jsx","jsxs","useState","useMemo","toSafeJson"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/react-payload-raw-info",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.1",
|
|
4
4
|
"description": "Common React library for all XYO projects that use React",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xyo",
|
|
@@ -38,36 +38,43 @@
|
|
|
38
38
|
},
|
|
39
39
|
"module": "dist/browser/index.mjs",
|
|
40
40
|
"types": "dist/browser/index.d.ts",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"src"
|
|
44
|
+
],
|
|
41
45
|
"dependencies": {
|
|
42
|
-
"@textea/json-viewer": "
|
|
43
|
-
"@xylabs/object": "
|
|
44
|
-
"@xylabs/react-button": "
|
|
45
|
-
"@xylabs/react-flexbox": "
|
|
46
|
-
"@xylabs/react-promise": "
|
|
47
|
-
"@xylabs/react-theme": "
|
|
48
|
-
"@xyo-network/payload-builder": "
|
|
49
|
-
"@xyo-network/payload-model": "
|
|
50
|
-
"@xyo-network/react-shared": "^
|
|
46
|
+
"@textea/json-viewer": "~4.0.1",
|
|
47
|
+
"@xylabs/object": "~5.0.8",
|
|
48
|
+
"@xylabs/react-button": "~7.0.1",
|
|
49
|
+
"@xylabs/react-flexbox": "~7.0.1",
|
|
50
|
+
"@xylabs/react-promise": "~7.0.1",
|
|
51
|
+
"@xylabs/react-theme": "~7.0.1",
|
|
52
|
+
"@xyo-network/payload-builder": "~5.0.5",
|
|
53
|
+
"@xyo-network/payload-model": "~5.0.5",
|
|
54
|
+
"@xyo-network/react-shared": "^7.0.1"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@emotion/react": "
|
|
54
|
-
"@emotion/styled": "
|
|
55
|
-
"@mui/icons-material": "
|
|
56
|
-
"@mui/material": "
|
|
57
|
-
"@storybook/react-vite": "
|
|
58
|
-
"@types/react": "
|
|
59
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
60
|
-
"@xylabs/tsconfig
|
|
61
|
-
"
|
|
62
|
-
"react
|
|
63
|
-
"
|
|
64
|
-
"
|
|
57
|
+
"@emotion/react": "~11.14.0",
|
|
58
|
+
"@emotion/styled": "~11.14.1",
|
|
59
|
+
"@mui/icons-material": "~7.3.1",
|
|
60
|
+
"@mui/material": "~7.3.1",
|
|
61
|
+
"@storybook/react-vite": "~9.1.2",
|
|
62
|
+
"@types/react": "~19.1.10",
|
|
63
|
+
"@xylabs/ts-scripts-yarn3": "~7.1.1",
|
|
64
|
+
"@xylabs/tsconfig": "~7.1.1",
|
|
65
|
+
"@xylabs/tsconfig-dom": "~7.1.1",
|
|
66
|
+
"@xylabs/tsconfig-react": "~7.1.1",
|
|
67
|
+
"react": "~19.1.1",
|
|
68
|
+
"react-dom": "~19.1.1",
|
|
69
|
+
"storybook": "~9.1.2",
|
|
70
|
+
"typescript": "~5.9.2",
|
|
71
|
+
"vite": "~7.1.2"
|
|
65
72
|
},
|
|
66
73
|
"peerDependencies": {
|
|
67
74
|
"@mui/icons-material": ">=6 <8",
|
|
68
75
|
"@mui/material": ">=6 <8",
|
|
69
|
-
"react": "
|
|
70
|
-
"react-dom": "
|
|
76
|
+
"react": "~19",
|
|
77
|
+
"react-dom": "~19"
|
|
71
78
|
},
|
|
72
79
|
"publishConfig": {
|
|
73
80
|
"access": "public"
|
package/typedoc.json
DELETED