@xyo-network/react-shared 2.23.7 → 2.25.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.
@@ -1,8 +0,0 @@
1
- /// <reference types="react" />
2
- import { TypographyProps } from '@mui/material';
3
- import { XyoPayload } from '@xyo-network/core';
4
- export interface ArchivePropertyProps extends TypographyProps {
5
- payload?: XyoPayload;
6
- path?: string;
7
- }
8
- export declare const ArchiveProperty: React.FC<ArchivePropertyProps>;
@@ -1,9 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { useTheme } from '@mui/material';
3
- import { LinkEx } from '@xylabs/sdk-react';
4
- import { Property, PropertyValue } from '@xyo-network/react-property';
5
- export const ArchiveProperty = ({ payload, path }) => {
6
- const theme = useTheme();
7
- return (_jsx(Property, { flexGrow: 1, title: "Archive", value: payload?._archive, tip: "This archive that is storing this block", children: path ? (_jsx(LinkEx, { to: path, display: "flex", color: theme.palette.secondary.main, children: _jsx(PropertyValue, { value: payload?._archive }) })) : null }));
8
- };
9
- //# sourceMappingURL=ArchiveProperty.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ArchiveProperty.js","sourceRoot":"","sources":["../../../src/components/ArchiveProperty.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAmB,QAAQ,EAAE,MAAM,eAAe,CAAA;AACzD,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE1C,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAA;AAOrE,MAAM,CAAC,MAAM,eAAe,GAAmC,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;IACnF,MAAM,KAAK,GAAG,QAAQ,EAAE,CAAA;IACxB,OAAO,CACL,KAAC,QAAQ,IAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAC,yCAAyC,YAC3G,IAAI,CAAC,CAAC,CAAC,CACN,KAAC,MAAM,IAAC,EAAE,EAAE,IAAI,EAAE,OAAO,EAAC,MAAM,EAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,YAClE,KAAC,aAAa,IAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,GAAI,GACpC,CACV,CAAC,CAAC,CAAC,IAAI,GACC,CACZ,CAAA;AACH,CAAC,CAAA"}
@@ -1,22 +0,0 @@
1
- import { TypographyProps, useTheme } from '@mui/material'
2
- import { LinkEx } from '@xylabs/sdk-react'
3
- import { XyoPayload } from '@xyo-network/core'
4
- import { Property, PropertyValue } from '@xyo-network/react-property'
5
-
6
- export interface ArchivePropertyProps extends TypographyProps {
7
- payload?: XyoPayload
8
- path?: string
9
- }
10
-
11
- export const ArchiveProperty: React.FC<ArchivePropertyProps> = ({ payload, path }) => {
12
- const theme = useTheme()
13
- return (
14
- <Property flexGrow={1} title="Archive" value={payload?._archive} tip="This archive that is storing this block">
15
- {path ? (
16
- <LinkEx to={path} display="flex" color={theme.palette.secondary.main}>
17
- <PropertyValue value={payload?._archive} />
18
- </LinkEx>
19
- ) : null}
20
- </Property>
21
- )
22
- }