@xyo-network/react-property 2.75.6 → 2.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/neutral/components/Action.d.cts +8 -0
  2. package/dist/neutral/components/Action.d.cts.map +1 -0
  3. package/dist/neutral/components/Action.d.mts +8 -0
  4. package/dist/neutral/components/Action.d.mts.map +1 -0
  5. package/dist/neutral/components/Action.d.ts +8 -0
  6. package/dist/neutral/components/Action.d.ts.map +1 -0
  7. package/dist/neutral/components/Actions.d.cts +4 -0
  8. package/dist/neutral/components/Actions.d.cts.map +1 -0
  9. package/dist/neutral/components/Actions.d.mts +4 -0
  10. package/dist/neutral/components/Actions.d.mts.map +1 -0
  11. package/dist/neutral/components/Actions.d.ts +4 -0
  12. package/dist/neutral/components/Actions.d.ts.map +1 -0
  13. package/dist/neutral/components/ActionsMenu.d.cts +4 -0
  14. package/dist/neutral/components/ActionsMenu.d.cts.map +1 -0
  15. package/dist/neutral/components/ActionsMenu.d.mts +4 -0
  16. package/dist/neutral/components/ActionsMenu.d.mts.map +1 -0
  17. package/dist/neutral/components/ActionsMenu.d.ts +4 -0
  18. package/dist/neutral/components/ActionsMenu.d.ts.map +1 -0
  19. package/dist/neutral/components/ActionsProps.d.cts +7 -0
  20. package/dist/neutral/components/ActionsProps.d.cts.map +1 -0
  21. package/dist/neutral/components/ActionsProps.d.mts +7 -0
  22. package/dist/neutral/components/ActionsProps.d.mts.map +1 -0
  23. package/dist/neutral/components/ActionsProps.d.ts +7 -0
  24. package/dist/neutral/components/ActionsProps.d.ts.map +1 -0
  25. package/dist/neutral/components/Group.d.cts +4 -0
  26. package/dist/neutral/components/Group.d.cts.map +1 -0
  27. package/dist/neutral/components/Group.d.mts +4 -0
  28. package/dist/neutral/components/Group.d.mts.map +1 -0
  29. package/dist/neutral/components/Group.d.ts +4 -0
  30. package/dist/neutral/components/Group.d.ts.map +1 -0
  31. package/dist/neutral/components/IdenticonCorner.d.cts +7 -0
  32. package/dist/neutral/components/IdenticonCorner.d.cts.map +1 -0
  33. package/dist/neutral/components/IdenticonCorner.d.mts +7 -0
  34. package/dist/neutral/components/IdenticonCorner.d.mts.map +1 -0
  35. package/dist/neutral/components/IdenticonCorner.d.ts +7 -0
  36. package/dist/neutral/components/IdenticonCorner.d.ts.map +1 -0
  37. package/dist/neutral/components/Property.d.cts +4 -0
  38. package/dist/neutral/components/Property.d.cts.map +1 -0
  39. package/dist/neutral/components/Property.d.mts +4 -0
  40. package/dist/neutral/components/Property.d.mts.map +1 -0
  41. package/dist/neutral/components/Property.d.ts +4 -0
  42. package/dist/neutral/components/Property.d.ts.map +1 -0
  43. package/dist/neutral/components/Props.d.cts +35 -0
  44. package/dist/neutral/components/Props.d.cts.map +1 -0
  45. package/dist/neutral/components/Props.d.mts +35 -0
  46. package/dist/neutral/components/Props.d.mts.map +1 -0
  47. package/dist/neutral/components/Props.d.ts +35 -0
  48. package/dist/neutral/components/Props.d.ts.map +1 -0
  49. package/dist/neutral/components/Title.d.cts +13 -0
  50. package/dist/neutral/components/Title.d.cts.map +1 -0
  51. package/dist/neutral/components/Title.d.mts +13 -0
  52. package/dist/neutral/components/Title.d.mts.map +1 -0
  53. package/dist/neutral/components/Title.d.ts +13 -0
  54. package/dist/neutral/components/Title.d.ts.map +1 -0
  55. package/dist/neutral/components/Value.d.cts +9 -0
  56. package/dist/neutral/components/Value.d.cts.map +1 -0
  57. package/dist/neutral/components/Value.d.mts +9 -0
  58. package/dist/neutral/components/Value.d.mts.map +1 -0
  59. package/dist/neutral/components/Value.d.ts +9 -0
  60. package/dist/neutral/components/Value.d.ts.map +1 -0
  61. package/dist/neutral/components/index.d.cts +7 -0
  62. package/dist/neutral/components/index.d.cts.map +1 -0
  63. package/dist/neutral/components/index.d.mts +7 -0
  64. package/dist/neutral/components/index.d.mts.map +1 -0
  65. package/dist/neutral/components/index.d.ts +7 -0
  66. package/dist/neutral/components/index.d.ts.map +1 -0
  67. package/dist/neutral/index.cjs +223 -0
  68. package/dist/neutral/index.cjs.map +1 -0
  69. package/dist/neutral/index.d.cts +2 -0
  70. package/dist/neutral/index.d.cts.map +1 -0
  71. package/dist/neutral/index.d.mts +2 -0
  72. package/dist/neutral/index.d.mts.map +1 -0
  73. package/dist/neutral/index.d.ts +2 -0
  74. package/dist/neutral/index.d.ts.map +1 -0
  75. package/dist/neutral/index.js +200 -0
  76. package/dist/neutral/index.js.map +1 -0
  77. package/package.json +12 -12
@@ -0,0 +1,8 @@
1
+ import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/components/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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"}
@@ -0,0 +1,8 @@
1
+ import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/components/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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"}
@@ -0,0 +1,8 @@
1
+ import { 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Action.d.ts","sourceRoot":"","sources":["../../../src/components/Action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActions: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=Actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6B1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActions: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=Actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6B1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActions: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=Actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Actions.d.ts","sourceRoot":"","sources":["../../../src/components/Actions.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CA6B1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActionsMenu: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=ActionsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiC9D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActionsMenu: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=ActionsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiC9D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyActionsProps } from './ActionsProps';
3
+ export declare const PropertyActionsMenu: React.FC<PropertyActionsProps>;
4
+ //# sourceMappingURL=ActionsMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsMenu.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsMenu.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAErD,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAiC9D,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { PropertyAction } from './Action';
3
+ export interface PropertyActionsProps extends FlexBoxProps {
4
+ actions?: PropertyAction[];
5
+ buttons?: boolean;
6
+ }
7
+ //# sourceMappingURL=ActionsProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsProps.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,7 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { PropertyAction } from './Action';
3
+ export interface PropertyActionsProps extends FlexBoxProps {
4
+ actions?: PropertyAction[];
5
+ buttons?: boolean;
6
+ }
7
+ //# sourceMappingURL=ActionsProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsProps.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,7 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { PropertyAction } from './Action';
3
+ export interface PropertyActionsProps extends FlexBoxProps {
4
+ actions?: PropertyAction[];
5
+ buttons?: boolean;
6
+ }
7
+ //# sourceMappingURL=ActionsProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionsProps.d.ts","sourceRoot":"","sources":["../../../src/components/ActionsProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEpD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAEzC,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyGroupProps } from './Props';
3
+ export declare const PropertyGroup: React.FC<PropertyGroupProps>;
4
+ //# sourceMappingURL=Group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/components/Group.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAkD,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAkC5F,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAEtD,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyGroupProps } from './Props';
3
+ export declare const PropertyGroup: React.FC<PropertyGroupProps>;
4
+ //# sourceMappingURL=Group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/components/Group.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAkD,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAkC5F,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAEtD,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyGroupProps } from './Props';
3
+ export declare const PropertyGroup: React.FC<PropertyGroupProps>;
4
+ //# sourceMappingURL=Group.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Group.d.ts","sourceRoot":"","sources":["../../../src/components/Group.tsx"],"names":[],"mappings":";AAKA,OAAO,EAAkD,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAkC5F,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAEtD,CAAA"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdenticonCorner.d.ts","sourceRoot":"","sources":["../../../src/components/IdenticonCorner.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAI7D,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,CAoB1D,CAAA"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdenticonCorner.d.ts","sourceRoot":"","sources":["../../../src/components/IdenticonCorner.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAI7D,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,CAoB1D,CAAA"}
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"IdenticonCorner.d.ts","sourceRoot":"","sources":["../../../src/components/IdenticonCorner.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAI7D,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,CAoB1D,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyBoxProps, PropertyPaperProps } from './Props';
3
+ export declare const Property: import("react").ForwardRefExoticComponent<(PropertyBoxProps | Omit<PropertyPaperProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Property.d.ts","sourceRoot":"","sources":["../../../src/components/Property.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAA;AA4D7E,eAAO,MAAM,QAAQ,iJAEnB,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyBoxProps, PropertyPaperProps } from './Props';
3
+ export declare const Property: import("react").ForwardRefExoticComponent<(PropertyBoxProps | Omit<PropertyPaperProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Property.d.ts","sourceRoot":"","sources":["../../../src/components/Property.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAA;AA4D7E,eAAO,MAAM,QAAQ,iJAEnB,CAAA"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { PropertyBoxProps, PropertyPaperProps } from './Props';
3
+ export declare const Property: import("react").ForwardRefExoticComponent<(PropertyBoxProps | Omit<PropertyPaperProps, "ref">) & import("react").RefAttributes<HTMLDivElement>>;
4
+ //# sourceMappingURL=Property.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Property.d.ts","sourceRoot":"","sources":["../../../src/components/Property.tsx"],"names":[],"mappings":";AAOA,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAiB,MAAM,SAAS,CAAA;AA4D7E,eAAO,MAAM,QAAQ,iJAEnB,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { PaperProps } from '@mui/material';
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ import { SizeProp } from '@xyo-network/react-shared';
4
+ import { ReactNode } from 'react';
5
+ import { PropertyAction } from './Action';
6
+ import { PropertyTitleProps } from './Title';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,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,GACnD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,UAAU,GAAG;IACX,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,GACxD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAC1D,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { PaperProps } from '@mui/material';
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ import { SizeProp } from '@xyo-network/react-shared';
4
+ import { ReactNode } from 'react';
5
+ import { PropertyAction } from './Action';
6
+ import { PropertyTitleProps } from './Title';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,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,GACnD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,UAAU,GAAG;IACX,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,GACxD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAC1D,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { PaperProps } from '@mui/material';
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ import { SizeProp } from '@xyo-network/react-shared';
4
+ import { ReactNode } from 'react';
5
+ import { PropertyAction } from './Action';
6
+ import { PropertyTitleProps } from './Title';
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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Props.d.ts","sourceRoot":"","sources":["../../../src/components/Props.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAE5C,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,GACnD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GACrD,UAAU,GAAG;IACX,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,GACxD,YAAY,GAAG;IACb,KAAK,CAAC,EAAE,KAAK,CAAA;CACd,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAC1D,UAAU,GAAG;IACX,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG,uBAAuB,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { SizeProp } from '@xyo-network/react-shared';
3
+ import { ReactNode } from 'react';
4
+ export type TitleSizeProp = SizeProp | 'full';
5
+ export interface PropertyTitleProps extends FlexBoxProps {
6
+ elevation?: number;
7
+ more?: ReactNode;
8
+ size?: TitleSizeProp;
9
+ tip?: ReactNode;
10
+ title?: string;
11
+ }
12
+ export declare const PropertyTitle: React.FC<PropertyTitleProps>;
13
+ //# sourceMappingURL=Title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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,CAqDtD,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { SizeProp } from '@xyo-network/react-shared';
3
+ import { ReactNode } from 'react';
4
+ export type TitleSizeProp = SizeProp | 'full';
5
+ export interface PropertyTitleProps extends FlexBoxProps {
6
+ elevation?: number;
7
+ more?: ReactNode;
8
+ size?: TitleSizeProp;
9
+ tip?: ReactNode;
10
+ title?: string;
11
+ }
12
+ export declare const PropertyTitle: React.FC<PropertyTitleProps>;
13
+ //# sourceMappingURL=Title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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,CAqDtD,CAAA"}
@@ -0,0 +1,13 @@
1
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
2
+ import { SizeProp } from '@xyo-network/react-shared';
3
+ import { ReactNode } from 'react';
4
+ export type TitleSizeProp = SizeProp | 'full';
5
+ export interface PropertyTitleProps extends FlexBoxProps {
6
+ elevation?: number;
7
+ more?: ReactNode;
8
+ size?: TitleSizeProp;
9
+ tip?: ReactNode;
10
+ title?: string;
11
+ }
12
+ export declare const PropertyTitle: React.FC<PropertyTitleProps>;
13
+ //# sourceMappingURL=Title.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Title.d.ts","sourceRoot":"","sources":["../../../src/components/Title.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAE7D,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAA;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEjC,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,CAqDtD,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { Variant } from '@mui/material/styles/createTypography';
3
+ import { EllipsizeBoxProps } from '@xyo-network/react-shared';
4
+ export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
5
+ typographyVariant?: Variant;
6
+ value?: string | number | boolean | null;
7
+ }
8
+ export declare const PropertyValue: import("react").ForwardRefExoticComponent<PropertyValueProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=Value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,+GAWxB,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { Variant } from '@mui/material/styles/createTypography';
3
+ import { EllipsizeBoxProps } from '@xyo-network/react-shared';
4
+ export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
5
+ typographyVariant?: Variant;
6
+ value?: string | number | boolean | null;
7
+ }
8
+ export declare const PropertyValue: import("react").ForwardRefExoticComponent<PropertyValueProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=Value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,+GAWxB,CAAA"}
@@ -0,0 +1,9 @@
1
+ /// <reference types="react" />
2
+ import type { Variant } from '@mui/material/styles/createTypography';
3
+ import { EllipsizeBoxProps } from '@xyo-network/react-shared';
4
+ export interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {
5
+ typographyVariant?: Variant;
6
+ value?: string | number | boolean | null;
7
+ }
8
+ export declare const PropertyValue: import("react").ForwardRefExoticComponent<PropertyValueProps & import("react").RefAttributes<HTMLDivElement>>;
9
+ //# sourceMappingURL=Value.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Value.d.ts","sourceRoot":"","sources":["../../../src/components/Value.tsx"],"names":[],"mappings":";AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACpE,OAAO,EAAgB,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAG3E,MAAM,WAAW,kBAAmB,SAAQ,IAAI,CAAC,iBAAiB,EAAE,KAAK,CAAC;IACxE,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,CAAA;CACzC;AAED,eAAO,MAAM,aAAa,+GAWxB,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './Action';
2
+ export * from './Group';
3
+ export * from './Property';
4
+ export * from './Props';
5
+ export * from './Title';
6
+ export * from './Value';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './Action';
2
+ export * from './Group';
3
+ export * from './Property';
4
+ export * from './Props';
5
+ export * from './Title';
6
+ export * from './Value';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,7 @@
1
+ export * from './Action';
2
+ export * from './Group';
3
+ export * from './Property';
4
+ export * from './Props';
5
+ export * from './Title';
6
+ export * from './Value';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,SAAS,CAAA;AACvB,cAAc,YAAY,CAAA;AAC1B,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA;AACvB,cAAc,SAAS,CAAA"}
@@ -0,0 +1,223 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ Property: () => Property,
24
+ PropertyGroup: () => PropertyGroup,
25
+ PropertyTitle: () => PropertyTitle,
26
+ PropertyValue: () => PropertyValue
27
+ });
28
+ module.exports = __toCommonJS(src_exports);
29
+
30
+ // src/components/Group.tsx
31
+ var import_material2 = require("@mui/material");
32
+ var import_react_flexbox2 = require("@xylabs/react-flexbox");
33
+ var import_typeof = require("@xyo-network/typeof");
34
+
35
+ // src/components/Title.tsx
36
+ var import_material = require("@mui/material");
37
+ var import_react_flexbox = require("@xylabs/react-flexbox");
38
+ var import_react_quick_tip_button = require("@xylabs/react-quick-tip-button");
39
+ var import_jsx_runtime = require("react/jsx-runtime");
40
+ var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
41
+ const sizeVariants = {
42
+ full: "caption",
43
+ large: "caption",
44
+ medium: "caption",
45
+ small: "caption"
46
+ };
47
+ const sizeTitleHeight = {
48
+ full: void 0,
49
+ large: 32,
50
+ medium: 20,
51
+ small: 16
52
+ };
53
+ const sizeFontSize = {
54
+ full: 16,
55
+ large: 16,
56
+ medium: 14,
57
+ small: 10
58
+ };
59
+ const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
60
+ const theme = (0, import_material.useTheme)();
61
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
62
+ import_react_flexbox.FlexRow,
63
+ {
64
+ bgcolor: theme.palette.mode === "dark" ? (0, import_material.lighten)(theme.palette.background.paper, 0.05 * elevation) : (0, import_material.darken)(theme.palette.background.paper, 0.025 * elevation),
65
+ alignItems: "center",
66
+ height: sizeTitleHeight[size],
67
+ justifyContent: "space-between",
68
+ ...props,
69
+ children: [
70
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_flexbox.FlexRow, { paddingX: 1, paddingY: 0.5, children: [
71
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { fontWeight: 500, noWrap: true, variant: sizeVariants[size], fontSize: sizeFontSize[size], children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("small", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: title }) }) }),
72
+ tip ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_quick_tip_button.QuickTipButton, { style: { fontSize: quickTipSize }, color: "inherit", title: title ?? "", children: tip }) : null
73
+ ] }),
74
+ more
75
+ ]
76
+ }
77
+ );
78
+ };
79
+
80
+ // src/components/Group.tsx
81
+ var import_jsx_runtime2 = require("react/jsx-runtime");
82
+ var PropertyGroupBox = ({ titleProps, children, title, tip, ...props }) => {
83
+ const theme = (0, import_material2.useTheme)();
84
+ const childrenArray = (0, import_typeof.typeOf)(children) === "array" ? children : void 0;
85
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexCol, { alignItems: "stretch", overflow: "hidden", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_react_flexbox2.FlexRow, { overflow: "hidden", justifyContent: "stretch", alignItems: "stretch", children: [
86
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PropertyTitle, { alignItems: "flex-start", size: "full", title, tip, ...titleProps }),
87
+ childrenArray ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexGrowRow, { children: childrenArray?.map((child, index) => {
88
+ return child ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexGrowRow, { borderLeft: 1, borderColor: theme.palette.divider, children: child }, index) : null;
89
+ }) }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_react_flexbox2.FlexGrowRow, { overflow: "hidden", children })
90
+ ] }) });
91
+ };
92
+ var PropertyGroupPaper = ({ style, variant, elevation, square, ...props }) => {
93
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Paper, { style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PropertyGroupBox, { ...props, paper: false }) });
94
+ };
95
+ var PropertyGroup = (props) => {
96
+ return props.paper ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PropertyGroupPaper, { ...props }) : /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(PropertyGroupBox, { ...props });
97
+ };
98
+
99
+ // src/components/Property.tsx
100
+ var import_material5 = require("@mui/material");
101
+ var import_react_flexbox5 = require("@xylabs/react-flexbox");
102
+ var import_react4 = require("react");
103
+
104
+ // src/components/ActionsMenu.tsx
105
+ var import_icons_material = require("@mui/icons-material");
106
+ var import_material3 = require("@mui/material");
107
+ var import_react_flexbox3 = require("@xylabs/react-flexbox");
108
+ var import_react = require("react");
109
+ var import_jsx_runtime3 = require("react/jsx-runtime");
110
+ var PropertyActionsMenu = ({ actions, ...props }) => {
111
+ const [anchorEl, setAnchorEl] = (0, import_react.useState)(null);
112
+ const open = !!anchorEl;
113
+ const handleClick = (event) => {
114
+ setAnchorEl(event.currentTarget);
115
+ };
116
+ const handleClose = () => {
117
+ setAnchorEl(null);
118
+ };
119
+ return actions && actions?.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_react_flexbox3.FlexRow, { ...props, children: [
120
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.IconButton, { size: "small", color: "inherit", onClick: handleClick, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material.MoreHoriz, { fontSize: "inherit" }) }),
121
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material3.Menu, { anchorEl, open, onClose: handleClose, children: actions?.map((action) => {
122
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
123
+ import_material3.MenuItem,
124
+ {
125
+ onClick: () => {
126
+ action?.onClick?.();
127
+ handleClose();
128
+ },
129
+ children: action.name
130
+ },
131
+ action.name
132
+ );
133
+ }) })
134
+ ] }) : null;
135
+ };
136
+
137
+ // src/components/IdenticonCorner.tsx
138
+ var import_material4 = require("@mui/material");
139
+ var import_react_flexbox4 = require("@xylabs/react-flexbox");
140
+ var import_react_identicon = require("@xylabs/react-identicon");
141
+ var import_react2 = require("react");
142
+ var import_jsx_runtime4 = require("react/jsx-runtime");
143
+ var IdenticonCorner = ({ value, ...props }) => {
144
+ const theme = (0, import_material4.useTheme)();
145
+ const [parentHeight, setParentHeight] = (0, import_react2.useState)();
146
+ const ref = (0, import_react2.useRef)(null);
147
+ (0, import_react2.useEffect)(() => {
148
+ setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight);
149
+ }, []);
150
+ const calculatedHeight = parentHeight ?? 0;
151
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_flexbox4.FlexRow, { alignItems: "flex-start", height: "100%", children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_flexbox4.FlexRow, { background: true, height: calculatedHeight, width: calculatedHeight, borderLeft: `1px solid ${theme.palette.divider}`, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("div", { ref, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_react_identicon.Identicon, { size: calculatedHeight * 0.6, value: `${value}`, sx: { padding: `${calculatedHeight * 0.2}px` }, ...props }) }) }) });
152
+ };
153
+
154
+ // src/components/Value.tsx
155
+ var import_react_shared = require("@xyo-network/react-shared");
156
+ var import_react3 = require("react");
157
+ var import_jsx_runtime5 = require("react/jsx-runtime");
158
+ var PropertyValue = (0, import_react3.forwardRef)(({ typographyVariant = "body1", value, ...props }, ref) => {
159
+ return value === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
160
+ import_react_shared.EllipsizeBox,
161
+ {
162
+ typographyProps: { component: void 0, title: value?.toString(), variant: typographyVariant },
163
+ width: "100%",
164
+ ref,
165
+ ...props,
166
+ children: value
167
+ }
168
+ );
169
+ });
170
+ PropertyValue.displayName = "PropertyValue";
171
+
172
+ // src/components/Property.tsx
173
+ var import_jsx_runtime6 = require("react/jsx-runtime");
174
+ var PropertyBox = (0, import_react4.forwardRef)(
175
+ ({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
176
+ const sizeValueHeight = {
177
+ large: 48,
178
+ medium: 36,
179
+ small: 24
180
+ };
181
+ const sizeVariants = {
182
+ large: "h6",
183
+ medium: "body1",
184
+ small: "body2"
185
+ };
186
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox5.FlexRow, { ref, flexDirection: "column", minWidth: 0, alignItems: "stretch", overflow: "hidden", ...props, children: [
187
+ title === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
188
+ PropertyTitle,
189
+ {
190
+ tip,
191
+ title: required ? `${title}*` : title,
192
+ size,
193
+ more: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyActionsMenu, { actions }),
194
+ ...titleProps
195
+ }
196
+ ),
197
+ /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
198
+ import_react_flexbox5.FlexRow,
199
+ {
200
+ pl: 1,
201
+ columnGap: 1,
202
+ justifyContent: value === void 0 ? "center" : "space-between",
203
+ overflow: "hidden",
204
+ height: sizeValueHeight[size],
205
+ children: [
206
+ children ?? value === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material5.CircularProgress, { size: 16 }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyValue, { value, typographyVariant: sizeVariants[size] }),
207
+ value === void 0 ? null : badge ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IdenticonCorner, { value }) : null
208
+ ]
209
+ }
210
+ )
211
+ ] });
212
+ }
213
+ );
214
+ PropertyBox.displayName = "PropertyBox";
215
+ var PropertyPaper = (0, import_react4.forwardRef)(({ style, variant, elevation = 2, square, ...props }, ref) => {
216
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material5.Paper, { ref, style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyBox, { ...props, paper: false }) });
217
+ });
218
+ PropertyPaper.displayName = "PropertyPaper";
219
+ var Property = (0, import_react4.forwardRef)((props, ref) => {
220
+ return props.paper ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyPaper, { ref, ...props }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyBox, { ref, ...props });
221
+ });
222
+ Property.displayName = "Property";
223
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/components/Group.tsx","../../src/components/Title.tsx","../../src/components/Property.tsx","../../src/components/ActionsMenu.tsx","../../src/components/IdenticonCorner.tsx","../../src/components/Value.tsx"],"sourcesContent":["export * from './components'\n","import { Paper, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowRow, FlexRow } from '@xylabs/react-flexbox'\nimport { typeOf } from '@xyo-network/typeof'\nimport { ReactElement } from 'react'\n\nimport { PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps } from './Props'\nimport { PropertyTitle } from './Title'\n\nconst PropertyGroupBox: React.FC<PropertyGroupBoxProps> = ({ titleProps, children, title, tip, ...props }) => {\n const theme = useTheme()\n const childrenArray = typeOf(children) === 'array' ? (children as ReactElement[]) : undefined\n return (\n <FlexCol alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n <FlexRow overflow=\"hidden\" justifyContent=\"stretch\" alignItems=\"stretch\">\n <PropertyTitle alignItems=\"flex-start\" size=\"full\" title={title} tip={tip} {...titleProps} />\n {childrenArray ?\n <FlexGrowRow>\n {childrenArray?.map((child, index) => {\n return child ?\n <FlexGrowRow key={index} borderLeft={1} borderColor={theme.palette.divider}>\n {child}\n </FlexGrowRow>\n : null\n })}\n </FlexGrowRow>\n : <FlexGrowRow overflow=\"hidden\">{children}</FlexGrowRow>}\n </FlexRow>\n </FlexCol>\n )\n}\n\nconst PropertyGroupPaper: React.FC<PropertyGroupPaperProps> = ({ style, variant, elevation, square, ...props }) => {\n return (\n <Paper style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\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 { darken, lighten, Typography, TypographyVariant, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { QuickTipButton } from '@xylabs/react-quick-tip-button'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { ReactNode } 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> = ({ elevation = 1, size = 'medium', tip, more, title, ...props }) => {\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 = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16\n\n const theme = useTheme()\n\n return (\n <FlexRow\n bgcolor={\n theme.palette.mode === 'dark' ?\n lighten(theme.palette.background.paper, 0.05 * elevation)\n : darken(theme.palette.background.paper, 0.025 * elevation)\n }\n alignItems=\"center\"\n height={sizeTitleHeight[size]}\n justifyContent=\"space-between\"\n {...props}\n >\n <FlexRow paddingX={1} paddingY={0.5}>\n <Typography fontWeight={500} noWrap variant={sizeVariants[size]} fontSize={sizeFontSize[size]}>\n <small>\n <strong>{title}</strong>\n </small>\n </Typography>\n {tip ?\n <QuickTipButton style={{ fontSize: quickTipSize }} color=\"inherit\" title={title ?? ''}>\n {tip}\n </QuickTipButton>\n : null}\n </FlexRow>\n {more}\n </FlexRow>\n )\n}\n","import { CircularProgress, Paper, TypographyVariant } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nimport { PropertyActionsMenu } from './ActionsMenu'\nimport { IdenticonCorner } from './IdenticonCorner'\nimport { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props'\nimport { PropertyTitle } from './Title'\nimport { PropertyValue } from './Value'\n\nconst PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(\n ({ titleProps, title, value, children, size = 'medium', tip, actions, required, badge = false, ...props }, ref) => {\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 ref={ref} flexDirection=\"column\" minWidth={0} alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n {title === undefined ? null : (\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 pl={1}\n columnGap={1}\n justifyContent={value === undefined ? 'center' : 'space-between'}\n overflow=\"hidden\"\n height={sizeValueHeight[size]}\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 },\n)\nPropertyBox.displayName = 'PropertyBox'\n\nconst PropertyPaper = forwardRef<HTMLDivElement, PropertyPaperProps>(({ style, variant, elevation = 2, square, ...props }, ref) => {\n return (\n <Paper ref={ref} style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\n <PropertyBox {...props} paper={false} />\n </Paper>\n )\n})\nPropertyPaper.displayName = 'PropertyPaper'\n\nexport const Property = forwardRef<HTMLDivElement, PropertyProps>((props, ref) => {\n return props.paper ? <PropertyPaper ref={ref} {...props} /> : <PropertyBox ref={ref} {...props} />\n})\nProperty.displayName = 'Property'\n","import { MoreHoriz as MoreHorizIcon } from '@mui/icons-material'\nimport { IconButton, Menu, MenuItem } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nimport { PropertyActionsProps } from './ActionsProps'\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 <FlexRow {...props}>\n <IconButton size=\"small\" color=\"inherit\" onClick={handleClick}>\n <MoreHorizIcon 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 : null\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { Identicon } from '@xylabs/react-identicon'\nimport { useEffect, useRef, useState } 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 [parentHeight, setParentHeight] = useState<number>()\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight)\n }, [])\n\n const calculatedHeight = parentHeight ?? 0\n\n return (\n <FlexRow alignItems=\"flex-start\" height=\"100%\">\n <FlexRow background height={calculatedHeight} width={calculatedHeight} borderLeft={`1px solid ${theme.palette.divider}`}>\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","// eslint-disable-next-line import/no-internal-modules\nimport type { Variant } from '@mui/material/styles/createTypography'\nimport { EllipsizeBox, EllipsizeBoxProps } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nexport interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {\n typographyVariant?: Variant\n value?: string | number | boolean | null\n}\n\nexport const PropertyValue = forwardRef<HTMLDivElement, PropertyValueProps>(({ typographyVariant = 'body1', value, ...props }, ref) => {\n return value === undefined ? null : (\n <EllipsizeBox\n typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }}\n width=\"100%\"\n ref={ref}\n {...props}\n >\n {value}\n </EllipsizeBox>\n )\n})\n\nPropertyValue.displayName = 'PropertyValue'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,mBAAgC;AAChC,IAAAC,wBAA8C;AAC9C,oBAAuB;;;ACFvB,sBAAyE;AACzE,2BAAsC;AACtC,oCAA+B;AAoDzB;AAtCC,IAAM,gBAA8C,CAAC,EAAE,YAAY,GAAG,OAAO,UAAU,KAAK,MAAM,OAAO,GAAG,MAAM,MAAM;AAC7H,QAAM,eAAyD;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,kBAA6D;AAAA,IACjE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAA8C;AAAA,IAClD,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAAe,aAAa,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI;AAEpE,QAAM,YAAQ,0BAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,MAAM,QAAQ,SAAS,aACrB,yBAAQ,MAAM,QAAQ,WAAW,OAAO,OAAO,SAAS,QACxD,wBAAO,MAAM,QAAQ,WAAW,OAAO,QAAQ,SAAS;AAAA,MAE5D,YAAW;AAAA,MACX,QAAQ,gBAAgB,IAAI;AAAA,MAC5B,gBAAe;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AAU,SAAY,OACrB;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,OAAO,WAAW,GAAG,KAAK,MAAM;AAAA,UAChC;AAAA,UACA,MAAM,6CAAC,uBAAoB,SAAkB;AAAA,UAC5C,GAAG;AAAA;AAAA,MACN;AAAA,MAEF;AAAA,QAAC;AAAA;AAAA,UACC,IAAI;AAAA,UACJ,WAAW;AAAA,UACX,gBAAgB,UAAU,SAAY,WAAW;AAAA,UACjD,UAAS;AAAA,UACT,QAAQ,gBAAgB,IAAI;AAAA,UAE3B;AAAA,wBAAY,UAAU,SACrB,6CAAC,qCAAiB,MAAM,IAAI,IAC5B,6CAAC,iBAAc,OAAc,mBAAmB,aAAa,IAAI,GAAG;AAAA,YACrE,UAAU,SACT,OACA,QACA,6CAAC,mBAAgB,OAAc,IAC/B;AAAA;AAAA;AAAA,MACJ;AAAA,OACF;AAAA,EAEJ;AACF;AACA,YAAY,cAAc;AAE1B,IAAM,oBAAgB,0BAA+C,CAAC,EAAE,OAAO,SAAS,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ;AACjI,SACE,6CAAC,0BAAM,KAAU,OAAO,EAAE,UAAU,GAAG,UAAU,UAAU,GAAG,MAAM,GAAG,SAAkB,WAAsB,QAC7G,uDAAC,eAAa,GAAG,OAAO,OAAO,OAAO,GACxC;AAEJ,CAAC;AACD,cAAc,cAAc;AAErB,IAAM,eAAW,0BAA0C,CAAC,OAAO,QAAQ;AAChF,SAAO,MAAM,QAAQ,6CAAC,iBAAc,KAAW,GAAG,OAAO,IAAK,6CAAC,eAAY,KAAW,GAAG,OAAO;AAClG,CAAC;AACD,SAAS,cAAc;","names":["import_material","import_react_flexbox","import_jsx_runtime","import_material","import_react_flexbox","import_react","import_material","import_react_flexbox","import_jsx_runtime","MoreHorizIcon","import_material","import_react_flexbox","import_react","import_jsx_runtime","import_react","import_jsx_runtime","import_jsx_runtime"]}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,200 @@
1
+ // src/components/Group.tsx
2
+ import { Paper, useTheme as useTheme2 } from "@mui/material";
3
+ import { FlexCol, FlexGrowRow, FlexRow as FlexRow2 } from "@xylabs/react-flexbox";
4
+ import { typeOf } from "@xyo-network/typeof";
5
+
6
+ // src/components/Title.tsx
7
+ import { darken, lighten, Typography, useTheme } from "@mui/material";
8
+ import { FlexRow } from "@xylabs/react-flexbox";
9
+ import { QuickTipButton } from "@xylabs/react-quick-tip-button";
10
+ import { jsx, jsxs } from "react/jsx-runtime";
11
+ var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
12
+ const sizeVariants = {
13
+ full: "caption",
14
+ large: "caption",
15
+ medium: "caption",
16
+ small: "caption"
17
+ };
18
+ const sizeTitleHeight = {
19
+ full: void 0,
20
+ large: 32,
21
+ medium: 20,
22
+ small: 16
23
+ };
24
+ const sizeFontSize = {
25
+ full: 16,
26
+ large: 16,
27
+ medium: 14,
28
+ small: 10
29
+ };
30
+ const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
31
+ const theme = useTheme();
32
+ return /* @__PURE__ */ jsxs(
33
+ FlexRow,
34
+ {
35
+ bgcolor: theme.palette.mode === "dark" ? lighten(theme.palette.background.paper, 0.05 * elevation) : darken(theme.palette.background.paper, 0.025 * elevation),
36
+ alignItems: "center",
37
+ height: sizeTitleHeight[size],
38
+ justifyContent: "space-between",
39
+ ...props,
40
+ children: [
41
+ /* @__PURE__ */ jsxs(FlexRow, { paddingX: 1, paddingY: 0.5, children: [
42
+ /* @__PURE__ */ jsx(Typography, { fontWeight: 500, noWrap: true, variant: sizeVariants[size], fontSize: sizeFontSize[size], children: /* @__PURE__ */ jsx("small", { children: /* @__PURE__ */ jsx("strong", { children: title }) }) }),
43
+ tip ? /* @__PURE__ */ jsx(QuickTipButton, { style: { fontSize: quickTipSize }, color: "inherit", title: title ?? "", children: tip }) : null
44
+ ] }),
45
+ more
46
+ ]
47
+ }
48
+ );
49
+ };
50
+
51
+ // src/components/Group.tsx
52
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
53
+ var PropertyGroupBox = ({ titleProps, children, title, tip, ...props }) => {
54
+ const theme = useTheme2();
55
+ const childrenArray = typeOf(children) === "array" ? children : void 0;
56
+ return /* @__PURE__ */ jsx2(FlexCol, { alignItems: "stretch", overflow: "hidden", ...props, children: /* @__PURE__ */ jsxs2(FlexRow2, { overflow: "hidden", justifyContent: "stretch", alignItems: "stretch", children: [
57
+ /* @__PURE__ */ jsx2(PropertyTitle, { alignItems: "flex-start", size: "full", title, tip, ...titleProps }),
58
+ childrenArray ? /* @__PURE__ */ jsx2(FlexGrowRow, { children: childrenArray?.map((child, index) => {
59
+ return child ? /* @__PURE__ */ jsx2(FlexGrowRow, { borderLeft: 1, borderColor: theme.palette.divider, children: child }, index) : null;
60
+ }) }) : /* @__PURE__ */ jsx2(FlexGrowRow, { overflow: "hidden", children })
61
+ ] }) });
62
+ };
63
+ var PropertyGroupPaper = ({ style, variant, elevation, square, ...props }) => {
64
+ return /* @__PURE__ */ jsx2(Paper, { style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props, paper: false }) });
65
+ };
66
+ var PropertyGroup = (props) => {
67
+ return props.paper ? /* @__PURE__ */ jsx2(PropertyGroupPaper, { ...props }) : /* @__PURE__ */ jsx2(PropertyGroupBox, { ...props });
68
+ };
69
+
70
+ // src/components/Property.tsx
71
+ import { CircularProgress, Paper as Paper2 } from "@mui/material";
72
+ import { FlexRow as FlexRow5 } from "@xylabs/react-flexbox";
73
+ import { forwardRef as forwardRef2 } from "react";
74
+
75
+ // src/components/ActionsMenu.tsx
76
+ import { MoreHoriz as MoreHorizIcon } from "@mui/icons-material";
77
+ import { IconButton, Menu, MenuItem } from "@mui/material";
78
+ import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
79
+ import { useState } from "react";
80
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
81
+ var PropertyActionsMenu = ({ actions, ...props }) => {
82
+ const [anchorEl, setAnchorEl] = useState(null);
83
+ const open = !!anchorEl;
84
+ const handleClick = (event) => {
85
+ setAnchorEl(event.currentTarget);
86
+ };
87
+ const handleClose = () => {
88
+ setAnchorEl(null);
89
+ };
90
+ return actions && actions?.length > 0 ? /* @__PURE__ */ jsxs3(FlexRow3, { ...props, children: [
91
+ /* @__PURE__ */ jsx3(IconButton, { size: "small", color: "inherit", onClick: handleClick, children: /* @__PURE__ */ jsx3(MoreHorizIcon, { fontSize: "inherit" }) }),
92
+ /* @__PURE__ */ jsx3(Menu, { anchorEl, open, onClose: handleClose, children: actions?.map((action) => {
93
+ return /* @__PURE__ */ jsx3(
94
+ MenuItem,
95
+ {
96
+ onClick: () => {
97
+ action?.onClick?.();
98
+ handleClose();
99
+ },
100
+ children: action.name
101
+ },
102
+ action.name
103
+ );
104
+ }) })
105
+ ] }) : null;
106
+ };
107
+
108
+ // src/components/IdenticonCorner.tsx
109
+ import { useTheme as useTheme3 } from "@mui/material";
110
+ import { FlexRow as FlexRow4 } from "@xylabs/react-flexbox";
111
+ import { Identicon } from "@xylabs/react-identicon";
112
+ import { useEffect, useRef, useState as useState2 } from "react";
113
+ import { jsx as jsx4 } from "react/jsx-runtime";
114
+ var IdenticonCorner = ({ value, ...props }) => {
115
+ const theme = useTheme3();
116
+ const [parentHeight, setParentHeight] = useState2();
117
+ const ref = useRef(null);
118
+ useEffect(() => {
119
+ setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight);
120
+ }, []);
121
+ const calculatedHeight = parentHeight ?? 0;
122
+ return /* @__PURE__ */ jsx4(FlexRow4, { alignItems: "flex-start", height: "100%", children: /* @__PURE__ */ jsx4(FlexRow4, { background: true, height: calculatedHeight, width: calculatedHeight, borderLeft: `1px solid ${theme.palette.divider}`, children: /* @__PURE__ */ jsx4("div", { ref, children: /* @__PURE__ */ jsx4(Identicon, { size: calculatedHeight * 0.6, value: `${value}`, sx: { padding: `${calculatedHeight * 0.2}px` }, ...props }) }) }) });
123
+ };
124
+
125
+ // src/components/Value.tsx
126
+ import { EllipsizeBox } from "@xyo-network/react-shared";
127
+ import { forwardRef } from "react";
128
+ import { jsx as jsx5 } from "react/jsx-runtime";
129
+ var PropertyValue = forwardRef(({ typographyVariant = "body1", value, ...props }, ref) => {
130
+ return value === void 0 ? null : /* @__PURE__ */ jsx5(
131
+ EllipsizeBox,
132
+ {
133
+ typographyProps: { component: void 0, title: value?.toString(), variant: typographyVariant },
134
+ width: "100%",
135
+ ref,
136
+ ...props,
137
+ children: value
138
+ }
139
+ );
140
+ });
141
+ PropertyValue.displayName = "PropertyValue";
142
+
143
+ // src/components/Property.tsx
144
+ import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
145
+ var PropertyBox = forwardRef2(
146
+ ({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
147
+ const sizeValueHeight = {
148
+ large: 48,
149
+ medium: 36,
150
+ small: 24
151
+ };
152
+ const sizeVariants = {
153
+ large: "h6",
154
+ medium: "body1",
155
+ small: "body2"
156
+ };
157
+ return /* @__PURE__ */ jsxs4(FlexRow5, { ref, flexDirection: "column", minWidth: 0, alignItems: "stretch", overflow: "hidden", ...props, children: [
158
+ title === void 0 ? null : /* @__PURE__ */ jsx6(
159
+ PropertyTitle,
160
+ {
161
+ tip,
162
+ title: required ? `${title}*` : title,
163
+ size,
164
+ more: /* @__PURE__ */ jsx6(PropertyActionsMenu, { actions }),
165
+ ...titleProps
166
+ }
167
+ ),
168
+ /* @__PURE__ */ jsxs4(
169
+ FlexRow5,
170
+ {
171
+ pl: 1,
172
+ columnGap: 1,
173
+ justifyContent: value === void 0 ? "center" : "space-between",
174
+ overflow: "hidden",
175
+ height: sizeValueHeight[size],
176
+ children: [
177
+ children ?? value === void 0 ? /* @__PURE__ */ jsx6(CircularProgress, { size: 16 }) : /* @__PURE__ */ jsx6(PropertyValue, { value, typographyVariant: sizeVariants[size] }),
178
+ value === void 0 ? null : badge ? /* @__PURE__ */ jsx6(IdenticonCorner, { value }) : null
179
+ ]
180
+ }
181
+ )
182
+ ] });
183
+ }
184
+ );
185
+ PropertyBox.displayName = "PropertyBox";
186
+ var PropertyPaper = forwardRef2(({ style, variant, elevation = 2, square, ...props }, ref) => {
187
+ return /* @__PURE__ */ jsx6(Paper2, { ref, style: { minWidth: 0, overflow: "hidden", ...style }, variant, elevation, square, children: /* @__PURE__ */ jsx6(PropertyBox, { ...props, paper: false }) });
188
+ });
189
+ PropertyPaper.displayName = "PropertyPaper";
190
+ var Property = forwardRef2((props, ref) => {
191
+ return props.paper ? /* @__PURE__ */ jsx6(PropertyPaper, { ref, ...props }) : /* @__PURE__ */ jsx6(PropertyBox, { ref, ...props });
192
+ });
193
+ Property.displayName = "Property";
194
+ export {
195
+ Property,
196
+ PropertyGroup,
197
+ PropertyTitle,
198
+ PropertyValue
199
+ };
200
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":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"],"sourcesContent":["import { Paper, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowRow, FlexRow } from '@xylabs/react-flexbox'\nimport { typeOf } from '@xyo-network/typeof'\nimport { ReactElement } from 'react'\n\nimport { PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps } from './Props'\nimport { PropertyTitle } from './Title'\n\nconst PropertyGroupBox: React.FC<PropertyGroupBoxProps> = ({ titleProps, children, title, tip, ...props }) => {\n const theme = useTheme()\n const childrenArray = typeOf(children) === 'array' ? (children as ReactElement[]) : undefined\n return (\n <FlexCol alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n <FlexRow overflow=\"hidden\" justifyContent=\"stretch\" alignItems=\"stretch\">\n <PropertyTitle alignItems=\"flex-start\" size=\"full\" title={title} tip={tip} {...titleProps} />\n {childrenArray ?\n <FlexGrowRow>\n {childrenArray?.map((child, index) => {\n return child ?\n <FlexGrowRow key={index} borderLeft={1} borderColor={theme.palette.divider}>\n {child}\n </FlexGrowRow>\n : null\n })}\n </FlexGrowRow>\n : <FlexGrowRow overflow=\"hidden\">{children}</FlexGrowRow>}\n </FlexRow>\n </FlexCol>\n )\n}\n\nconst PropertyGroupPaper: React.FC<PropertyGroupPaperProps> = ({ style, variant, elevation, square, ...props }) => {\n return (\n <Paper style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\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 { darken, lighten, Typography, TypographyVariant, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { QuickTipButton } from '@xylabs/react-quick-tip-button'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { ReactNode } 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> = ({ elevation = 1, size = 'medium', tip, more, title, ...props }) => {\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 = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16\n\n const theme = useTheme()\n\n return (\n <FlexRow\n bgcolor={\n theme.palette.mode === 'dark' ?\n lighten(theme.palette.background.paper, 0.05 * elevation)\n : darken(theme.palette.background.paper, 0.025 * elevation)\n }\n alignItems=\"center\"\n height={sizeTitleHeight[size]}\n justifyContent=\"space-between\"\n {...props}\n >\n <FlexRow paddingX={1} paddingY={0.5}>\n <Typography fontWeight={500} noWrap variant={sizeVariants[size]} fontSize={sizeFontSize[size]}>\n <small>\n <strong>{title}</strong>\n </small>\n </Typography>\n {tip ?\n <QuickTipButton style={{ fontSize: quickTipSize }} color=\"inherit\" title={title ?? ''}>\n {tip}\n </QuickTipButton>\n : null}\n </FlexRow>\n {more}\n </FlexRow>\n )\n}\n","import { CircularProgress, Paper, TypographyVariant } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { SizeProp } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nimport { PropertyActionsMenu } from './ActionsMenu'\nimport { IdenticonCorner } from './IdenticonCorner'\nimport { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props'\nimport { PropertyTitle } from './Title'\nimport { PropertyValue } from './Value'\n\nconst PropertyBox = forwardRef<HTMLDivElement, PropertyBoxProps>(\n ({ titleProps, title, value, children, size = 'medium', tip, actions, required, badge = false, ...props }, ref) => {\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 ref={ref} flexDirection=\"column\" minWidth={0} alignItems=\"stretch\" overflow=\"hidden\" {...props}>\n {title === undefined ? null : (\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 pl={1}\n columnGap={1}\n justifyContent={value === undefined ? 'center' : 'space-between'}\n overflow=\"hidden\"\n height={sizeValueHeight[size]}\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 },\n)\nPropertyBox.displayName = 'PropertyBox'\n\nconst PropertyPaper = forwardRef<HTMLDivElement, PropertyPaperProps>(({ style, variant, elevation = 2, square, ...props }, ref) => {\n return (\n <Paper ref={ref} style={{ minWidth: 0, overflow: 'hidden', ...style }} variant={variant} elevation={elevation} square={square}>\n <PropertyBox {...props} paper={false} />\n </Paper>\n )\n})\nPropertyPaper.displayName = 'PropertyPaper'\n\nexport const Property = forwardRef<HTMLDivElement, PropertyProps>((props, ref) => {\n return props.paper ? <PropertyPaper ref={ref} {...props} /> : <PropertyBox ref={ref} {...props} />\n})\nProperty.displayName = 'Property'\n","import { MoreHoriz as MoreHorizIcon } from '@mui/icons-material'\nimport { IconButton, Menu, MenuItem } from '@mui/material'\nimport { FlexRow } from '@xylabs/react-flexbox'\nimport { useState } from 'react'\n\nimport { PropertyActionsProps } from './ActionsProps'\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 <FlexRow {...props}>\n <IconButton size=\"small\" color=\"inherit\" onClick={handleClick}>\n <MoreHorizIcon 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 : null\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { Identicon } from '@xylabs/react-identicon'\nimport { useEffect, useRef, useState } 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 [parentHeight, setParentHeight] = useState<number>()\n const ref = useRef<HTMLDivElement>(null)\n\n useEffect(() => {\n setParentHeight(ref.current?.parentElement?.parentElement?.clientHeight)\n }, [])\n\n const calculatedHeight = parentHeight ?? 0\n\n return (\n <FlexRow alignItems=\"flex-start\" height=\"100%\">\n <FlexRow background height={calculatedHeight} width={calculatedHeight} borderLeft={`1px solid ${theme.palette.divider}`}>\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","// eslint-disable-next-line import/no-internal-modules\nimport type { Variant } from '@mui/material/styles/createTypography'\nimport { EllipsizeBox, EllipsizeBoxProps } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nexport interface PropertyValueProps extends Omit<EllipsizeBoxProps, 'ref'> {\n typographyVariant?: Variant\n value?: string | number | boolean | null\n}\n\nexport const PropertyValue = forwardRef<HTMLDivElement, PropertyValueProps>(({ typographyVariant = 'body1', value, ...props }, ref) => {\n return value === undefined ? null : (\n <EllipsizeBox\n typographyProps={{ component: undefined, title: value?.toString(), variant: typographyVariant }}\n width=\"100%\"\n ref={ref}\n {...props}\n >\n {value}\n </EllipsizeBox>\n )\n})\n\nPropertyValue.displayName = 'PropertyValue'\n"],"mappings":";AAAA,SAAS,OAAO,YAAAA,iBAAgB;AAChC,SAAS,SAAS,aAAa,WAAAC,gBAAe;AAC9C,SAAS,cAAc;;;ACFvB,SAAS,QAAQ,SAAS,YAA+B,gBAAgB;AACzE,SAAuB,eAAe;AACtC,SAAS,sBAAsB;AAoDzB,SAGM,KAHN;AAtCC,IAAM,gBAA8C,CAAC,EAAE,YAAY,GAAG,OAAO,UAAU,KAAK,MAAM,OAAO,GAAG,MAAM,MAAM;AAC7H,QAAM,eAAyD;AAAA,IAC7D,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,kBAA6D;AAAA,IACjE,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAA8C;AAAA,IAClD,MAAM;AAAA,IACN,OAAO;AAAA,IACP,QAAQ;AAAA,IACR,OAAO;AAAA,EACT;AAEA,QAAM,eAAe,aAAa,IAAI,IAAI,KAAK,aAAa,IAAI,IAAI;AAEpE,QAAM,QAAQ,SAAS;AAEvB,SACE;AAAA,IAAC;AAAA;AAAA,MACC,SACE,MAAM,QAAQ,SAAS,SACrB,QAAQ,MAAM,QAAQ,WAAW,OAAO,OAAO,SAAS,IACxD,OAAO,MAAM,QAAQ,WAAW,OAAO,QAAQ,SAAS;AAAA,MAE5D,YAAW;AAAA,MACX,QAAQ,gBAAgB,IAAI;AAAA,MAC5B,gBAAe;AAAA,MACd,GAAG;AAAA,MAEJ;AAAA,6BAAC,WAAQ,UAAU,GAAG,UAAU,KAC9B;AAAA,8B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AAW,GAAG,OAAO,IAAK,gBAAAA,KAAC,eAAY,KAAW,GAAG,OAAO;AAClG,CAAC;AACD,SAAS,cAAc;","names":["useTheme","FlexRow","jsx","jsxs","useTheme","FlexRow","Paper","FlexRow","forwardRef","FlexRow","jsx","jsxs","useTheme","FlexRow","useState","jsx","jsx","jsx","jsxs","forwardRef","FlexRow","Paper"]}
package/package.json CHANGED
@@ -10,12 +10,12 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-button": "^3.1.6",
14
- "@xylabs/react-flexbox": "^3.1.6",
15
- "@xylabs/react-identicon": "^3.1.6",
16
- "@xylabs/react-quick-tip-button": "^3.1.6",
17
- "@xyo-network/react-shared": "~2.75.6",
18
- "@xyo-network/typeof": "^2.99.1"
13
+ "@xylabs/react-button": "^3.1.7",
14
+ "@xylabs/react-flexbox": "^3.1.7",
15
+ "@xylabs/react-identicon": "^3.1.7",
16
+ "@xylabs/react-quick-tip-button": "^3.1.7",
17
+ "@xyo-network/react-shared": "~2.76.0",
18
+ "@xyo-network/typeof": "^2.99.3"
19
19
  },
20
20
  "peerDependencies": {
21
21
  "@mui/icons-material": "^5",
@@ -25,11 +25,11 @@
25
25
  "react-dom": "^18"
26
26
  },
27
27
  "devDependencies": {
28
- "@storybook/react": "^7.6.18",
29
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
30
- "@xylabs/tsconfig-react": "^3.9.1",
31
- "@xyo-network/payload-builder": "^2.99.1",
32
- "@xyo-network/react-storybook": "~2.75.6",
28
+ "@storybook/react": "^7.6.19",
29
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
30
+ "@xylabs/tsconfig-react": "^3.10.0",
31
+ "@xyo-network/payload-builder": "^2.99.3",
32
+ "@xyo-network/react-storybook": "~2.76.0",
33
33
  "typescript": "^5.4.5"
34
34
  },
35
35
  "description": "Common React library for all XYO projects that use React",
@@ -83,6 +83,6 @@
83
83
  },
84
84
  "sideEffects": false,
85
85
  "types": "dist/browser/index.d.ts",
86
- "version": "2.75.6",
86
+ "version": "2.76.0",
87
87
  "type": "module"
88
88
  }