@xyo-network/react-property 10.0.4 → 10.0.6

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,2 +1,2 @@
1
- export * from './components/index.ts';
1
+ export * from '@xyo-network/react-sdk/property';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,cAAc,iCAAiC,CAAA"}
@@ -1,394 +1,3 @@
1
- // src/components/Group.tsx
2
- import {
3
- FlexCol,
4
- FlexGrowRow,
5
- FlexRow as FlexRow2
6
- } from "@ariestools/sdk-react/flexbox";
7
- import { Paper, useTheme as useTheme2 } from "@mui/material";
8
- import { typeOf } from "@xyo-network/typeof";
9
-
10
- // src/components/Title.tsx
11
- import { FlexRow } from "@ariestools/sdk-react/flexbox";
12
- import { QuickTipButton } from "@ariestools/sdk-react/quick-tip-button";
13
- import { darkenCss, useIsDark } from "@ariestools/sdk-react/theme";
14
- import { Typography, useTheme } from "@mui/material";
15
- import { jsx, jsxs } from "react/jsx-runtime";
16
- var PropertyTitle = ({
17
- elevation = 1,
18
- size = "medium",
19
- tip,
20
- more,
21
- title,
22
- ...props
23
- }) => {
24
- const sizeVariants = {
25
- full: "caption",
26
- large: "caption",
27
- medium: "caption",
28
- small: "caption"
29
- };
30
- const sizeTitleHeight = {
31
- full: void 0,
32
- large: 32,
33
- medium: 20,
34
- small: 16
35
- };
36
- const sizeFontSize = {
37
- full: 16,
38
- large: 16,
39
- medium: 14,
40
- small: 10
41
- };
42
- const quickTipSize = Math.min(sizeFontSize[size], 16);
43
- const theme = useTheme();
44
- const isDark = useIsDark();
45
- return /* @__PURE__ */ jsxs(
46
- FlexRow,
47
- {
48
- ...props,
49
- sx: [{
50
- bgcolor: isDark ? darkenCss(theme.vars.palette.background.paper, 0.75 * elevation) : darkenCss(theme.vars.palette.background.paper, 0.025 * elevation),
51
- alignItems: "center",
52
- height: sizeTitleHeight[size],
53
- justifyContent: "space-between"
54
- }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
55
- children: [
56
- /* @__PURE__ */ jsxs(
57
- FlexRow,
58
- {
59
- sx: {
60
- paddingX: 1,
61
- paddingY: 0.5
62
- },
63
- children: [
64
- /* @__PURE__ */ jsx(
65
- Typography,
66
- {
67
- noWrap: true,
68
- variant: sizeVariants[size],
69
- sx: {
70
- fontWeight: 500,
71
- fontSize: sizeFontSize[size]
72
- },
73
- children: /* @__PURE__ */ jsx("small", { children: /* @__PURE__ */ jsx("strong", { children: title }) })
74
- }
75
- ),
76
- tip ? /* @__PURE__ */ jsx(
77
- QuickTipButton,
78
- {
79
- style: { fontSize: quickTipSize },
80
- title: title ?? "",
81
- sx: { color: "inherit" },
82
- children: tip
83
- }
84
- ) : null
85
- ]
86
- }
87
- ),
88
- more
89
- ]
90
- }
91
- );
92
- };
93
-
94
- // src/components/Group.tsx
95
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
96
- var PropertyGroupBox = ({
97
- titleProps,
98
- children,
99
- title,
100
- tip,
101
- ...props
102
- }) => {
103
- const theme = useTheme2();
104
- const childrenArray = typeOf(children) === "array" ? children : void 0;
105
- return /* @__PURE__ */ jsx2(
106
- FlexCol,
107
- {
108
- ...props,
109
- sx: [{
110
- alignItems: "stretch",
111
- overflow: "hidden"
112
- }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
113
- children: /* @__PURE__ */ jsxs2(
114
- FlexRow2,
115
- {
116
- sx: {
117
- overflow: "hidden",
118
- justifyContent: "stretch",
119
- alignItems: "stretch"
120
- },
121
- children: [
122
- /* @__PURE__ */ jsx2(
123
- PropertyTitle,
124
- {
125
- size: "full",
126
- title,
127
- tip,
128
- ...titleProps,
129
- sx: [{ alignItems: "flex-start" }, ...Array.isArray(titleProps?.sx) ? titleProps.sx : [titleProps?.sx]]
130
- }
131
- ),
132
- childrenArray ? /* @__PURE__ */ jsx2(FlexGrowRow, { children: childrenArray?.map((child, index) => {
133
- return child ? /* @__PURE__ */ jsx2(
134
- FlexGrowRow,
135
- {
136
- sx: {
137
- borderLeft: 1,
138
- borderColor: theme.vars.palette.divider
139
- },
140
- children: child
141
- },
142
- child.key ?? `group-child-${index}`
143
- ) : null;
144
- }) }) : /* @__PURE__ */ jsx2(FlexGrowRow, { sx: { overflow: "hidden" }, children })
145
- ]
146
- }
147
- )
148
- }
149
- );
150
- };
151
- var PropertyGroupPaper = ({
152
- style,
153
- variant,
154
- elevation,
155
- square,
156
- ...props
157
- }) => {
158
- return /* @__PURE__ */ jsx2(
159
- Paper,
160
- {
161
- style: {
162
- minWidth: 0,
163
- overflow: "hidden",
164
- ...style
165
- },
166
- variant,
167
- elevation,
168
- square,
169
- children: /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props, paper: false })
170
- }
171
- );
172
- };
173
- var PropertyGroup = (props) => {
174
- return props.paper ? /* @__PURE__ */ jsx2(PropertyGroupPaper, { ...props }) : /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props });
175
- };
176
-
177
- // src/components/Property.tsx
178
- import { FlexRow as FlexRow5 } from "@ariestools/sdk-react/flexbox";
179
- import { CircularProgress, Paper as Paper2 } from "@mui/material";
180
-
181
- // src/components/ActionsMenu.tsx
182
- import { FlexRow as FlexRow3 } from "@ariestools/sdk-react/flexbox";
183
- import { MoreHoriz as MoreHorizIcon } from "@mui/icons-material";
184
- import {
185
- IconButton,
186
- Menu,
187
- MenuItem
188
- } from "@mui/material";
189
- import { useState } from "react";
190
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
191
- var PropertyActionsMenu = ({ actions, ...props }) => {
192
- const [anchorEl, setAnchorEl] = useState(null);
193
- const open = !!anchorEl;
194
- const handleClick = (event) => {
195
- setAnchorEl(event.currentTarget);
196
- };
197
- const handleClose = () => {
198
- setAnchorEl(null);
199
- };
200
- return actions && actions?.length > 0 ? /* @__PURE__ */ jsxs3(FlexRow3, { ...props, children: [
201
- /* @__PURE__ */ jsx3(
202
- IconButton,
203
- {
204
- size: "small",
205
- onClick: handleClick,
206
- sx: { color: "inherit" },
207
- children: /* @__PURE__ */ jsx3(MoreHorizIcon, { sx: { fontSize: "inherit" } })
208
- }
209
- ),
210
- /* @__PURE__ */ jsx3(Menu, { anchorEl, open, onClose: handleClose, children: actions?.map((action) => {
211
- return /* @__PURE__ */ jsx3(
212
- MenuItem,
213
- {
214
- onClick: () => {
215
- action?.onClick?.();
216
- handleClose();
217
- },
218
- children: action.name
219
- },
220
- action.name
221
- );
222
- }) })
223
- ] }) : null;
224
- };
225
-
226
- // src/components/IdenticonCorner.tsx
227
- import { FlexRow as FlexRow4 } from "@ariestools/sdk-react/flexbox";
228
- import { Identicon } from "@ariestools/sdk-react/identicon";
229
- import { useTheme as useTheme3 } from "@mui/material";
230
- import {
231
- useLayoutEffect,
232
- useRef,
233
- useState as useState2
234
- } from "react";
235
- import { jsx as jsx4 } from "react/jsx-runtime";
236
- var IdenticonCorner = ({ value, ...props }) => {
237
- const theme = useTheme3();
238
- const ref = useRef(null);
239
- const [calculatedHeight, setCalculatedHeight] = useState2(0);
240
- useLayoutEffect(() => {
241
- const height = ref.current?.parentElement?.parentElement?.clientHeight ?? 0;
242
- setCalculatedHeight(height);
243
- }, []);
244
- return /* @__PURE__ */ jsx4(
245
- FlexRow4,
246
- {
247
- sx: {
248
- alignItems: "flex-start",
249
- height: "100%"
250
- },
251
- children: /* @__PURE__ */ jsx4(
252
- FlexRow4,
253
- {
254
- background: true,
255
- sx: {
256
- height: calculatedHeight,
257
- width: calculatedHeight,
258
- borderLeft: `1px solid ${theme.vars.palette.divider}`
259
- },
260
- children: /* @__PURE__ */ jsx4("div", { ref, children: /* @__PURE__ */ jsx4(Identicon, { size: calculatedHeight * 0.6, value: `${value}`, sx: { padding: `${calculatedHeight * 0.2}px` }, ...props }) })
261
- }
262
- )
263
- }
264
- );
265
- };
266
-
267
- // src/components/Value.tsx
268
- import { EllipsizeBox } from "@xyo-network/react-shared";
269
- import { jsx as jsx5 } from "react/jsx-runtime";
270
- var PropertyValue = ({
271
- ref,
272
- typographyVariant = "body1",
273
- value,
274
- ...props
275
- }) => {
276
- return value === void 0 ? null : /* @__PURE__ */ jsx5(
277
- EllipsizeBox,
278
- {
279
- typographyProps: {
280
- component: void 0,
281
- title: value?.toString(),
282
- variant: typographyVariant
283
- },
284
- ref,
285
- ...props,
286
- sx: [{ width: "100%" }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
287
- children: value
288
- }
289
- );
290
- };
291
- PropertyValue.displayName = "PropertyValue";
292
-
293
- // src/components/Property.tsx
294
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
295
- var PropertyBox = ({
296
- titleProps,
297
- title,
298
- value,
299
- children,
300
- size = "medium",
301
- tip,
302
- actions,
303
- required,
304
- badge = false,
305
- ...props
306
- }) => {
307
- const sizeValueHeight = {
308
- large: 48,
309
- medium: 36,
310
- small: 24
311
- };
312
- const sizeVariants = {
313
- large: "h6",
314
- medium: "body1",
315
- small: "body2"
316
- };
317
- return /* @__PURE__ */ jsxs4(
318
- FlexRow5,
319
- {
320
- ...props,
321
- sx: [{
322
- flexDirection: "column",
323
- minWidth: 0,
324
- alignItems: "stretch",
325
- overflow: "hidden"
326
- }, ...Array.isArray(props.sx) ? props.sx : [props.sx]],
327
- children: [
328
- title === void 0 ? null : /* @__PURE__ */ jsx6(
329
- PropertyTitle,
330
- {
331
- tip,
332
- title: required ? `${title}*` : title,
333
- size,
334
- more: /* @__PURE__ */ jsx6(PropertyActionsMenu, { actions }),
335
- ...titleProps
336
- }
337
- ),
338
- /* @__PURE__ */ jsxs4(
339
- FlexRow5,
340
- {
341
- sx: {
342
- pl: 1,
343
- columnGap: 1,
344
- justifyContent: value === void 0 ? "center" : "space-between",
345
- overflow: "hidden",
346
- height: sizeValueHeight[size]
347
- },
348
- children: [
349
- children ?? (value === void 0 ? /* @__PURE__ */ jsx6(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx6(PropertyValue, { value, typographyVariant: sizeVariants[size] })),
350
- value === void 0 ? null : badge ? /* @__PURE__ */ jsx6(IdenticonCorner, { value }) : null
351
- ]
352
- }
353
- )
354
- ]
355
- }
356
- );
357
- };
358
- PropertyBox.displayName = "PropertyBox";
359
- var PropertyPaper = ({
360
- ref,
361
- style,
362
- variant,
363
- elevation = 2,
364
- square,
365
- ...props
366
- }) => {
367
- return /* @__PURE__ */ jsx6(
368
- Paper2,
369
- {
370
- ref,
371
- style: {
372
- minWidth: 0,
373
- overflow: "hidden",
374
- ...style
375
- },
376
- variant,
377
- elevation,
378
- square,
379
- children: /* @__PURE__ */ jsx6(PropertyBox, { ...props, paper: false })
380
- }
381
- );
382
- };
383
- PropertyPaper.displayName = "PropertyPaper";
384
- var Property = ({ ...props }) => {
385
- return props.paper ? /* @__PURE__ */ jsx6(PropertyPaper, { ...props }) : /* @__PURE__ */ jsx6(PropertyBox, { ...props });
386
- };
387
- Property.displayName = "Property";
388
- export {
389
- Property,
390
- PropertyGroup,
391
- PropertyTitle,
392
- PropertyValue
393
- };
1
+ // src/index.ts
2
+ export * from "@xyo-network/react-sdk/property";
394
3
  //# sourceMappingURL=index.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
- "sources": ["../../src/components/Group.tsx", "../../src/components/Title.tsx", "../../src/components/Property.tsx", "../../src/components/ActionsMenu.tsx", "../../src/components/IdenticonCorner.tsx", "../../src/components/Value.tsx"],
4
- "sourcesContent": ["import {\n FlexCol, FlexGrowRow, FlexRow,\n} from '@ariestools/sdk-react/flexbox'\nimport { Paper, useTheme } from '@mui/material'\nimport { typeOf } from '@xyo-network/typeof'\nimport type { ReactElement } from 'react'\nimport React from 'react'\n\nimport type {\n PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps,\n} from './Props.ts'\nimport { PropertyTitle } from './Title.tsx'\n\nconst PropertyGroupBox: React.FC<PropertyGroupBoxProps> = ({\n titleProps, children, title, tip, ...props\n}) => {\n const theme = useTheme()\n const childrenArray = typeOf(children) === 'array' ? (children as ReactElement[]) : undefined\n return (\n <FlexCol\n {...props}\n sx={[{\n alignItems: 'stretch',\n overflow: 'hidden',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <FlexRow\n sx={{\n overflow: 'hidden',\n justifyContent: 'stretch',\n alignItems: 'stretch',\n }}\n >\n <PropertyTitle\n size=\"full\"\n title={title}\n tip={tip}\n {...titleProps}\n sx={[{ alignItems: 'flex-start' }, ...(Array.isArray(titleProps?.sx) ? titleProps.sx : [titleProps?.sx])]}\n />\n {childrenArray\n ? (\n <FlexGrowRow>\n {childrenArray?.map((child, index) => {\n return child\n ? (\n <FlexGrowRow\n key={child.key ?? `group-child-${index}`}\n sx={{\n borderLeft: 1,\n borderColor: theme.vars.palette.divider,\n }}\n >\n {child}\n </FlexGrowRow>\n )\n : null\n })}\n </FlexGrowRow>\n )\n : (\n <FlexGrowRow sx={{ overflow: 'hidden' }}>\n {children}\n </FlexGrowRow>\n )}\n </FlexRow>\n </FlexCol>\n )\n}\n\nconst PropertyGroupPaper: React.FC<PropertyGroupPaperProps> = ({\n style, variant, elevation, square, ...props\n}) => {\n return (\n <Paper\n style={{\n minWidth: 0, overflow: 'hidden', ...style,\n }}\n variant={variant}\n elevation={elevation}\n square={square}\n >\n <PropertyGroupBox {...props} paper={false} />\n </Paper>\n )\n}\n\nexport const PropertyGroup: React.FC<PropertyGroupProps> = (props) => {\n return props.paper ? <PropertyGroupPaper {...props} /> : <PropertyGroupBox {...props} />\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { QuickTipButton } from '@ariestools/sdk-react/quick-tip-button'\nimport { darkenCss, useIsDark } from '@ariestools/sdk-react/theme'\nimport type { TypographyVariant } from '@mui/material'\nimport { Typography, useTheme } from '@mui/material'\nimport type { SizeProp } from '@xyo-network/react-shared'\nimport type { ReactNode } from 'react'\nimport React from 'react'\n\nexport type TitleSizeProp = SizeProp | 'full'\n\nexport interface PropertyTitleProps extends FlexBoxProps {\n elevation?: number\n more?: ReactNode\n size?: TitleSizeProp\n tip?: ReactNode\n title?: string\n}\n\nexport const PropertyTitle: React.FC<PropertyTitleProps> = ({\n elevation = 1, size = 'medium', tip, more, title, ...props\n}) => {\n const sizeVariants: Record<TitleSizeProp, TypographyVariant> = {\n full: 'caption',\n large: 'caption',\n medium: 'caption',\n small: 'caption',\n }\n\n const sizeTitleHeight: Record<TitleSizeProp, number | undefined> = {\n full: undefined,\n large: 32,\n medium: 20,\n small: 16,\n }\n\n const sizeFontSize: Record<TitleSizeProp, number> = {\n full: 16,\n large: 16,\n medium: 14,\n small: 10,\n }\n\n const quickTipSize = Math.min(sizeFontSize[size], 16)\n\n const theme = useTheme()\n const isDark = useIsDark()\n\n return (\n <FlexRow\n {...props}\n sx={[{\n bgcolor: isDark\n ? darkenCss(theme.vars.palette.background.paper, 0.75 * elevation)\n : darkenCss(theme.vars.palette.background.paper, 0.025 * elevation),\n\n alignItems: 'center',\n height: sizeTitleHeight[size],\n justifyContent: 'space-between',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n <FlexRow\n sx={{\n paddingX: 1,\n paddingY: 0.5,\n }}\n >\n <Typography\n noWrap\n variant={sizeVariants[size]}\n sx={{\n fontWeight: 500,\n fontSize: sizeFontSize[size],\n }}\n >\n <small>\n <strong>{title}</strong>\n </small>\n </Typography>\n {tip\n ? (\n <QuickTipButton\n style={{ fontSize: quickTipSize }}\n title={title ?? ''}\n sx={{ color: 'inherit' }}\n >\n {tip}\n </QuickTipButton>\n )\n : null}\n </FlexRow>\n {more}\n </FlexRow>\n )\n}\n", "import { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport type { TypographyVariant } from '@mui/material'\nimport { CircularProgress, Paper } from '@mui/material'\nimport type { SizeProp } from '@xyo-network/react-shared'\nimport React from 'react'\n\nimport { PropertyActionsMenu } from './ActionsMenu.tsx'\nimport { IdenticonCorner } from './IdenticonCorner.tsx'\nimport type {\n PropertyBoxProps, PropertyPaperProps, PropertyProps,\n} from './Props.ts'\nimport { PropertyTitle } from './Title.tsx'\nimport { PropertyValue } from './Value.tsx'\n\nconst PropertyBox: React.FC<PropertyBoxProps> = ({\n titleProps, title, value, children, size = 'medium', tip, actions, required, badge = false, ...props\n}) => {\n const sizeValueHeight: Record<SizeProp, number> = {\n large: 48,\n medium: 36,\n small: 24,\n }\n\n const sizeVariants: Record<SizeProp, TypographyVariant> = {\n large: 'h6',\n medium: 'body1',\n small: 'body2',\n }\n\n return (\n <FlexRow\n {...props}\n sx={[{\n flexDirection: 'column',\n minWidth: 0,\n alignItems: 'stretch',\n overflow: 'hidden',\n }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {title === undefined\n ? null\n : (\n <PropertyTitle\n tip={tip}\n title={required ? `${title}*` : title}\n size={size}\n more={<PropertyActionsMenu actions={actions} />}\n {...titleProps}\n />\n )}\n <FlexRow\n sx={{\n pl: 1,\n columnGap: 1,\n justifyContent: value === undefined ? 'center' : 'space-between',\n overflow: 'hidden',\n height: sizeValueHeight[size],\n }}\n >\n {children ?? ((value === undefined)\n ? <CircularProgress size={16} />\n : <PropertyValue value={value} typographyVariant={sizeVariants[size]} />)}\n {value === undefined\n ? null\n : badge\n ? <IdenticonCorner value={value} />\n : null}\n </FlexRow>\n </FlexRow>\n )\n}\nPropertyBox.displayName = 'PropertyBox'\n\nconst PropertyPaper: React.FC<PropertyPaperProps> = ({\n ref, style, variant, elevation = 2, square, ...props\n}) => {\n return (\n <Paper\n ref={ref}\n style={{\n minWidth: 0, overflow: 'hidden', ...style,\n }}\n variant={variant}\n elevation={elevation}\n square={square}\n >\n <PropertyBox {...props} paper={false} />\n </Paper>\n )\n}\nPropertyPaper.displayName = 'PropertyPaper'\n\nexport const Property: React.FC<PropertyProps> = ({ ...props }) => {\n return props.paper ? <PropertyPaper {...props} /> : <PropertyBox {...props} />\n}\nProperty.displayName = 'Property'\n", "import { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { MoreHoriz as MoreHorizIcon } from '@mui/icons-material'\nimport {\n IconButton, Menu, MenuItem,\n} from '@mui/material'\nimport React, { useState } from 'react'\n\nimport type { PropertyActionsProps } from './ActionsProps.ts'\n\nexport const PropertyActionsMenu: React.FC<PropertyActionsProps> = ({ actions, ...props }) => {\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null)\n const open = !!anchorEl\n\n const handleClick = (event: React.MouseEvent<HTMLElement>) => {\n setAnchorEl(event.currentTarget)\n }\n const handleClose = () => {\n setAnchorEl(null)\n }\n\n return actions && actions?.length > 0\n ? (\n <FlexRow {...props}>\n <IconButton\n size=\"small\"\n onClick={handleClick}\n sx={{ color: 'inherit' }}\n >\n <MoreHorizIcon sx={{ fontSize: 'inherit' }} />\n </IconButton>\n <Menu anchorEl={anchorEl} open={open} onClose={handleClose}>\n {actions?.map((action) => {\n return (\n <MenuItem\n key={action.name}\n onClick={() => {\n action?.onClick?.()\n handleClose()\n }}\n >\n {action.name}\n </MenuItem>\n )\n })}\n </Menu>\n </FlexRow>\n )\n : null\n}\n", "import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox'\nimport { FlexRow } from '@ariestools/sdk-react/flexbox'\nimport { Identicon } from '@ariestools/sdk-react/identicon'\nimport { useTheme } from '@mui/material'\nimport React, {\n useLayoutEffect, useRef, useState,\n} from 'react'\n\nexport interface IdenticonCornerProps extends FlexBoxProps {\n value?: string | number | boolean | null\n}\n\nexport const IdenticonCorner: React.FC<IdenticonCornerProps> = ({ value, ...props }) => {\n const theme = useTheme()\n const ref = useRef<HTMLDivElement>(null)\n const [calculatedHeight, setCalculatedHeight] = useState(0)\n\n useLayoutEffect(() => {\n const height = ref.current?.parentElement?.parentElement?.clientHeight ?? 0\n // eslint-disable-next-line react-x/set-state-in-effect\n setCalculatedHeight(height)\n }, [])\n\n return (\n <FlexRow\n sx={{\n alignItems: 'flex-start',\n height: '100%',\n }}\n >\n <FlexRow\n background\n sx={{\n height: calculatedHeight,\n width: calculatedHeight,\n borderLeft: `1px solid ${theme.vars.palette.divider}`,\n }}\n >\n <div ref={ref}>\n <Identicon size={calculatedHeight * 0.6} value={`${value}`} sx={{ padding: `${calculatedHeight * 0.2}px` }} {...props} />\n </div>\n </FlexRow>\n </FlexRow>\n )\n}\n", "import type { TypographyVariant } from '@mui/material'\nimport type { EllipsizeBoxProps } from '@xyo-network/react-shared'\nimport { EllipsizeBox } from '@xyo-network/react-shared'\nimport React from 'react'\n\nexport interface PropertyValueProps extends EllipsizeBoxProps {\n typographyVariant?: TypographyVariant\n value?: string | number | boolean | null\n}\n\nexport const PropertyValue = ({\n ref, typographyVariant = 'body1', value, ...props\n}: PropertyValueProps) => {\n return value === undefined\n ? null\n : (\n <EllipsizeBox\n typographyProps={{\n component: undefined, title: value?.toString(), variant: typographyVariant,\n }}\n ref={ref}\n {...props}\n sx={[{ width: '100%' }, ...(Array.isArray(props.sx) ? props.sx : [props.sx])]}\n >\n {value}\n </EllipsizeBox>\n )\n}\n\nPropertyValue.displayName = 'PropertyValue'\n"],
5
- "mappings": ";AAAA;AAAA,EACE;AAAA,EAAS;AAAA,EAAa,WAAAA;AAAA,OACjB;AACP,SAAS,OAAO,YAAAC,iBAAgB;AAChC,SAAS,cAAc;;;ACHvB,SAAS,eAAe;AACxB,SAAS,sBAAsB;AAC/B,SAAS,WAAW,iBAAiB;AAErC,SAAS,YAAY,gBAAgB;AAyD/B,SAeM,KAfN;AA1CC,IAAM,gBAA8C,CAAC;AAAA,EAC1D,YAAY;AAAA,EAAG,OAAO;AAAA,EAAU;AAAA,EAAK;AAAA,EAAM;AAAA,EAAO,GAAG;AACvD,MAAM;AACJ,QAAM,eAAyD;AAAA,IAC7D,MAAM;AAAA,I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jsx", "jsxs", "useTheme", "FlexRow", "FlexRow", "Paper", "FlexRow", "jsx", "jsxs", "FlexRow", "useTheme", "useState", "jsx", "jsx", "jsx", "jsxs", "FlexRow", "Paper"]
3
+ "sources": ["../../src/index.ts"],
4
+ "sourcesContent": ["// Compatibility shim: this package re-exports from @xyo-network/react-sdk.\nexport * from '@xyo-network/react-sdk/property'\n"],
5
+ "mappings": ";AACA,cAAc;",
6
+ "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xyo-network/react-property",
3
- "version": "10.0.4",
3
+ "version": "10.0.6",
4
4
  "description": "Common React library for all XYO projects that use React",
5
5
  "keywords": [
6
6
  "xyo",
@@ -41,96 +41,131 @@
41
41
  "README.md"
42
42
  ],
43
43
  "dependencies": {
44
- "@xyo-network/react-shared": "~10.0.4"
44
+ "@xyo-network/react-sdk": "~10.0.6"
45
45
  },
46
46
  "devDependencies": {
47
- "@ariestools/sdk": "^7.0.5",
48
- "@ariestools/sdk-react": "^10.0.2",
47
+ "@ariestools/eth-address": "~8.0.2",
48
+ "@ariestools/pixel": "~8.0.2",
49
+ "@ariestools/sdk": "~8.0.2",
50
+ "@ariestools/sdk-react": "~11.0.0",
51
+ "@ariestools/threads": "~8.0.2",
49
52
  "@bitauth/libauth": "~3.0.0",
53
+ "@metamask/providers": "~22.1.1",
54
+ "@mui/icons-material": "~9.2.0",
55
+ "@mui/material": "~9.2.0",
56
+ "@mui/system": "~9.2.0",
57
+ "@mui/x-tree-view": "~9.8.0",
58
+ "@noble/post-quantum": "~0.6.1",
59
+ "@opentelemetry/api": "~1.9.1",
60
+ "@opentelemetry/sdk-trace-base": "~2.9.0",
61
+ "@react-spring/web": "~10.1.2",
62
+ "@scure/base": "~2.2.0",
63
+ "@scure/bip39": "~2.2.0",
64
+ "@types/react": "~19.2.17",
65
+ "@xylabs/toolchain": "~8.6.8",
66
+ "@xylabs/tsconfig": "~8.6.8",
67
+ "@xylabs/tsconfig-dom": "~8.6.8",
68
+ "@xylabs/tsconfig-react": "~8.6.8",
69
+ "@xyo-network/advertising-payload-plugins": "~7.0.2",
70
+ "@xyo-network/archivist-storage": "~7.0.9",
71
+ "@xyo-network/diviner-address-history-model": "~7.0.9",
72
+ "@xyo-network/diviner-hash-lease": "~7.0.9",
73
+ "@xyo-network/diviner-huri": "~7.0.9",
74
+ "@xyo-network/diviner-schema-list": "~7.0.9",
75
+ "@xyo-network/diviner-schema-stats": "~7.0.9",
76
+ "@xyo-network/node-core-types": "~4.2.2",
77
+ "@xyo-network/sdk": "~7.0.9",
78
+ "@xyo-network/sdk-geo": "~3.0.3",
79
+ "@xyo-network/sdk-protocol": "~7.0.14",
80
+ "@xyo-network/typeof": "~5.3.30",
81
+ "@xyo-network/xns-record-payloadset-plugins": "~7.0.2",
82
+ "ajv": "~8.20.0",
83
+ "async-mutex": "~0.5.0",
84
+ "card-validator": "~10.0.4",
85
+ "clsx": "~2.1.1",
86
+ "debug": "~4.4.3",
87
+ "eslint": "~10.6.0",
88
+ "ethers": "~6.17.0",
89
+ "hash-wasm": "~4.12.0",
90
+ "idb": "~8.0.3",
91
+ "lru-cache": "~11.5.1",
92
+ "mapbox-gl": "~3.25.0",
93
+ "md5": "~2.3.0",
94
+ "numeral": "~2.0.6",
95
+ "observable-fns": "~0.6.1",
96
+ "query-string": "~9.4.1",
97
+ "react": "~19.2.7",
98
+ "react-dom": "~19.2.7",
99
+ "react-icons": "~5.7.0",
100
+ "react-router-dom": "~7.18.1",
101
+ "rollbar": "~3.1.0",
102
+ "store2": "~2.14.4",
103
+ "typescript": "~6.0.3",
104
+ "viem": "~2.54.3",
105
+ "webextension-polyfill": "~0.12.0",
106
+ "zod": "~4.4.3",
107
+ "zustand": "~5.0.14"
108
+ },
109
+ "peerDependencies": {
110
+ "@ariestools/eth-address": "^8.0.2",
111
+ "@ariestools/pixel": "^8.0.2",
112
+ "@ariestools/sdk": "^8.0.2",
113
+ "@ariestools/sdk-react": "^11.0.0",
114
+ "@ariestools/threads": "^8.0.2",
115
+ "@bitauth/libauth": "^3.0.0",
116
+ "@metamask/providers": "^22.1.1",
50
117
  "@mui/icons-material": "^9.2.0",
51
118
  "@mui/material": "^9.2.0",
52
- "@noble/post-quantum": "~0.6.1",
119
+ "@mui/system": "^9.2.0",
120
+ "@mui/x-tree-view": "^9.8.0",
121
+ "@noble/post-quantum": "^0.6.1",
53
122
  "@opentelemetry/api": "^1.9.1",
54
123
  "@opentelemetry/sdk-trace-base": "^2.9.0",
55
124
  "@react-spring/web": "^10.1.2",
56
- "@scure/base": "~2.2.0",
57
- "@scure/bip39": "~2.2.0",
58
- "@storybook/react-vite": "~10.4.6",
125
+ "@scure/base": "^2.2.0",
126
+ "@scure/bip39": "^2.2.0",
59
127
  "@types/react": "^19.2.17",
60
- "@xylabs/eth-address": "^7.0.5",
61
- "@xylabs/geo": "^7.0.5",
62
- "@xylabs/pixel": "^7.0.5",
63
- "@xylabs/threads": "^7.0.5",
64
- "@xylabs/toolchain": "~8.5.15",
65
- "@xylabs/tsconfig": "^8.5.15",
66
- "@xylabs/tsconfig-dom": "^8.5.15",
67
- "@xylabs/tsconfig-react": "~8.5.15",
68
- "@xyo-network/sdk": "^7.0.7",
69
- "@xyo-network/sdk-protocol": "^7.0.12",
70
- "@xyo-network/typeof": "~5.3.30",
128
+ "@xyo-network/advertising-payload-plugins": "^7.0.2",
129
+ "@xyo-network/archivist-storage": "^7.0.9",
130
+ "@xyo-network/diviner-address-history-model": "^7.0.9",
131
+ "@xyo-network/diviner-hash-lease": "^7.0.9",
132
+ "@xyo-network/diviner-huri": "^7.0.9",
133
+ "@xyo-network/diviner-schema-list": "^7.0.9",
134
+ "@xyo-network/diviner-schema-stats": "^7.0.9",
135
+ "@xyo-network/node-core-types": "^4.2.2",
136
+ "@xyo-network/sdk": "^7.0.9",
137
+ "@xyo-network/sdk-geo": "^3.0.3",
138
+ "@xyo-network/sdk-protocol": "^7.0.14",
139
+ "@xyo-network/typeof": "^5.3.30",
140
+ "@xyo-network/xns-record-payloadset-plugins": "^7.0.2",
71
141
  "ajv": "^8.20.0",
72
142
  "async-mutex": "^0.5.0",
143
+ "card-validator": "^10.0.4",
73
144
  "clsx": "^2.1.1",
74
145
  "debug": "^4.4.3",
75
- "eslint": "^10.6.0",
76
146
  "ethers": "^6.17.0",
77
- "hash-wasm": "~4.12.0",
147
+ "hash-wasm": "^4.12.0",
78
148
  "idb": "^8.0.3",
79
149
  "lru-cache": "^11.5.1",
150
+ "mapbox-gl": "^3.25.0",
80
151
  "md5": "^2.3.0",
81
152
  "numeral": "^2.0.6",
82
153
  "observable-fns": "^0.6.1",
83
154
  "query-string": "^9.4.1",
84
155
  "react": "^19.2.7",
85
156
  "react-dom": "^19.2.7",
157
+ "react-icons": "^5.7.0",
86
158
  "react-router-dom": "^7.18.1",
87
- "storybook": "^10.4.6",
88
- "typescript": "^6.0.3",
89
- "viem": "^2.54.2",
90
- "vite": "^8.1.3",
159
+ "rollbar": "^3.1.0",
160
+ "store2": "^2.14.4",
161
+ "viem": "^2.54.3",
162
+ "webextension-polyfill": "^0.12.0",
91
163
  "zod": "^4.4.3",
92
164
  "zustand": "^5.0.14"
93
165
  },
94
- "peerDependencies": {
95
- "@ariestools/sdk": "^7.0",
96
- "@ariestools/sdk-react": "^10.0",
97
- "@bitauth/libauth": "~3.0",
98
- "@mui/icons-material": "^9.0",
99
- "@mui/material": "^9.0",
100
- "@noble/post-quantum": "~0.6.1",
101
- "@opentelemetry/api": "^1.9",
102
- "@opentelemetry/sdk-trace-base": "^2.7",
103
- "@react-spring/web": "^10.1",
104
- "@scure/base": "~2.2",
105
- "@scure/bip39": "~2.2",
106
- "@xylabs/eth-address": "^7.0",
107
- "@xylabs/geo": "^7.0",
108
- "@xylabs/pixel": "^7.0",
109
- "@xylabs/threads": "^7.0",
110
- "@xyo-network/sdk": "*",
111
- "@xyo-network/sdk-protocol": "^7.0",
112
- "@xyo-network/typeof": "~5.3",
113
- "ajv": "^8.20",
114
- "async-mutex": "^0.5",
115
- "clsx": "^2.1",
116
- "debug": "^4.4",
117
- "ethers": "^6.16",
118
- "hash-wasm": "~4.12",
119
- "idb": "^8.0",
120
- "lru-cache": "^11.3",
121
- "md5": "^2.3",
122
- "numeral": "^2.0",
123
- "observable-fns": "^0.6",
124
- "query-string": "^9.4",
125
- "react": "^19.2",
126
- "react-dom": "^19.2",
127
- "react-router-dom": "^7.15",
128
- "viem": "^2.48",
129
- "zod": "^4.4",
130
- "zustand": "^5.0"
131
- },
132
166
  "publishConfig": {
133
167
  "access": "public"
134
168
  },
169
+ "deprecated": "Use @xyo-network/react-sdk/property instead. Replace @xyo-network/react-property with @xyo-network/react-sdk/property. This package is a compatibility shim only and will not receive further updates.",
135
170
  "docs": "dist/docs.json"
136
171
  }
@@ -1,8 +0,0 @@
1
- import type { ReactNode } from 'react';
2
- export interface PropertyAction {
3
- disabled?: boolean;
4
- icon?: ReactNode;
5
- name: string;
6
- onClick?: () => void;
7
- }
8
- //# sourceMappingURL=Action.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/components/Action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,IAAI,CAAA;CACrB"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { PropertyActionsProps } from './ActionsProps.ts';
3
- export declare const PropertyActions: React.FC<PropertyActionsProps>;
4
- //# sourceMappingURL=Actions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6C1D,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { PropertyActionsProps } from './ActionsProps.ts';
3
- export declare const PropertyActionsMenu: React.FC<PropertyActionsProps>;
4
- //# sourceMappingURL=ActionsMenu.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAA;AAE7D,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAuC9D,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
2
- import type { PropertyAction } from './Action.ts';
3
- export interface PropertyActionsProps extends FlexBoxProps {
4
- actions?: PropertyAction[];
5
- buttons?: boolean;
6
- }
7
- //# sourceMappingURL=ActionsProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ActionsProps.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AAEjD,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { PropertyGroupProps } from './Props.ts';
3
- export declare const PropertyGroup: React.FC<PropertyGroupProps>;
4
- //# sourceMappingURL=Group.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/components/Group.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,KAAK,EACsC,kBAAkB,EACnE,MAAM,YAAY,CAAA;AA6EnB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAEtD,CAAA"}
@@ -1,7 +0,0 @@
1
- import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
2
- import React from 'react';
3
- export interface IdenticonCornerProps extends FlexBoxProps {
4
- value?: string | number | boolean | null;
5
- }
6
- export declare const IdenticonCorner: React.FC<IdenticonCornerProps>;
7
- //# sourceMappingURL=IdenticonCorner.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"IdenticonCorner.d.ts","sourceRoot":"","sources":["../../../src/components/IdenticonCorner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAIjE,OAAO,KAEN,MAAM,OAAO,CAAA;AAEd,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAgC1D,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { PropertyProps } from './Props.ts';
3
- export declare const Property: React.FC<PropertyProps>;
4
- //# sourceMappingURL=Property.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Property.d.ts","sourceRoot":"","sources":["../../../src/components/Property.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAC4B,aAAa,EACpD,MAAM,YAAY,CAAA;AAkFnB,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAE5C,CAAA"}
@@ -1,35 +0,0 @@
1
- import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
2
- import type { PaperProps } from '@mui/material';
3
- import type { SizeProp } from '@xyo-network/react-shared';
4
- import type { ReactNode } from 'react';
5
- import type { PropertyAction } from './Action.ts';
6
- import type { PropertyTitleProps } from './Title.tsx';
7
- export interface PropertyBaseProps {
8
- paper?: boolean;
9
- tip?: ReactNode;
10
- title?: string;
11
- titleProps?: PropertyTitleProps;
12
- }
13
- export type PropertyFieldBaseProps = PropertyBaseProps & {
14
- actions?: PropertyAction[];
15
- badge?: boolean;
16
- required?: boolean;
17
- size?: SizeProp;
18
- value?: string | number | boolean | null;
19
- };
20
- export type PropertyBoxProps = PropertyFieldBaseProps & FlexBoxProps & {
21
- paper?: false;
22
- };
23
- export type PropertyPaperProps = PropertyFieldBaseProps & PaperProps & {
24
- paper: true;
25
- };
26
- export type PropertyProps = PropertyBoxProps | PropertyPaperProps;
27
- export type PropertyGroupBaseProps = PropertyBaseProps;
28
- export type PropertyGroupBoxProps = PropertyGroupBaseProps & FlexBoxProps & {
29
- paper?: false;
30
- };
31
- export type PropertyGroupPaperProps = PropertyGroupBaseProps & PaperProps & {
32
- paper: true;
33
- };
34
- export type PropertyGroupProps = PropertyGroupBoxProps | PropertyGroupPaperProps;
35
- //# sourceMappingURL=Props.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAA;AAErD,MAAM,WAAW,iBAAiB;IAChC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,kBAAkB,CAAA;CAChC;AAED,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,GAAG;IACvD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG,sBAAsB,GACjD,YAAY,GAAG;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACnD,UAAU,GAAG;IACb,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,aAAa,GAAG,gBAAgB,GAAG,kBAAkB,CAAA;AAEjE,MAAM,MAAM,sBAAsB,GAAG,iBAAiB,CAAA;AAEtD,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,GACtD,YAAY,GAAG;IACf,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GACxD,UAAU,GAAG;IACb,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
@@ -1,14 +0,0 @@
1
- import type { FlexBoxProps } from '@ariestools/sdk-react/flexbox';
2
- import type { SizeProp } from '@xyo-network/react-shared';
3
- import type { ReactNode } from 'react';
4
- import React from 'react';
5
- export type TitleSizeProp = SizeProp | 'full';
6
- export interface PropertyTitleProps extends FlexBoxProps {
7
- elevation?: number;
8
- more?: ReactNode;
9
- size?: TitleSizeProp;
10
- tip?: ReactNode;
11
- title?: string;
12
- }
13
- export declare const PropertyTitle: React.FC<PropertyTitleProps>;
14
- //# sourceMappingURL=Title.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAMjE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACtC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,MAAM,CAAA;AAE7C,MAAM,WAAW,kBAAmB,SAAQ,YAAY;IACtD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,SAAS,CAAA;IAChB,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,GAAG,CAAC,EAAE,SAAS,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA2EtD,CAAA"}
@@ -1,12 +0,0 @@
1
- import type { TypographyVariant } from '@mui/material';
2
- import type { EllipsizeBoxProps } from '@xyo-network/react-shared';
3
- import React from 'react';
4
- export interface PropertyValueProps extends EllipsizeBoxProps {
5
- typographyVariant?: TypographyVariant;
6
- value?: string | number | boolean | null;
7
- }
8
- export declare const PropertyValue: {
9
- ({ ref, typographyVariant, value, ...props }: PropertyValueProps): React.JSX.Element | null;
10
- displayName: string;
11
- };
12
- //# sourceMappingURL=Value.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAElE,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,iBAAiB,CAAC,EAAE,iBAAiB,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa;kDAEvB,kBAAkB;;CAepB,CAAA"}
@@ -1,7 +0,0 @@
1
- export * from './Action.ts';
2
- export * from './Group.tsx';
3
- export * from './Property.tsx';
4
- export * from './Props.ts';
5
- export * from './Title.tsx';
6
- export * from './Value.tsx';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA;AAC3B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,aAAa,CAAA"}