@xyo-network/react-property 2.81.9 → 2.82.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 (214) hide show
  1. package/dist/browser/components/Actions.d.cts +2 -1
  2. package/dist/browser/components/Actions.d.cts.map +1 -1
  3. package/dist/browser/components/Actions.d.mts +2 -1
  4. package/dist/browser/components/Actions.d.mts.map +1 -1
  5. package/dist/browser/components/Actions.d.ts +2 -1
  6. package/dist/browser/components/Actions.d.ts.map +1 -1
  7. package/dist/browser/components/ActionsMenu.d.cts +2 -1
  8. package/dist/browser/components/ActionsMenu.d.cts.map +1 -1
  9. package/dist/browser/components/ActionsMenu.d.mts +2 -1
  10. package/dist/browser/components/ActionsMenu.d.mts.map +1 -1
  11. package/dist/browser/components/ActionsMenu.d.ts +2 -1
  12. package/dist/browser/components/ActionsMenu.d.ts.map +1 -1
  13. package/dist/browser/components/ActionsProps.d.cts +1 -1
  14. package/dist/browser/components/ActionsProps.d.mts +1 -1
  15. package/dist/browser/components/ActionsProps.d.ts +1 -1
  16. package/dist/browser/components/Group.d.cts +2 -1
  17. package/dist/browser/components/Group.d.cts.map +1 -1
  18. package/dist/browser/components/Group.d.mts +2 -1
  19. package/dist/browser/components/Group.d.mts.map +1 -1
  20. package/dist/browser/components/Group.d.ts +2 -1
  21. package/dist/browser/components/Group.d.ts.map +1 -1
  22. package/dist/browser/components/IdenticonCorner.d.cts +1 -0
  23. package/dist/browser/components/IdenticonCorner.d.cts.map +1 -1
  24. package/dist/browser/components/IdenticonCorner.d.mts +1 -0
  25. package/dist/browser/components/IdenticonCorner.d.mts.map +1 -1
  26. package/dist/browser/components/IdenticonCorner.d.ts +1 -0
  27. package/dist/browser/components/IdenticonCorner.d.ts.map +1 -1
  28. package/dist/browser/components/Property.d.cts +3 -2
  29. package/dist/browser/components/Property.d.cts.map +1 -1
  30. package/dist/browser/components/Property.d.mts +3 -2
  31. package/dist/browser/components/Property.d.mts.map +1 -1
  32. package/dist/browser/components/Property.d.ts +3 -2
  33. package/dist/browser/components/Property.d.ts.map +1 -1
  34. package/dist/browser/components/Props.d.cts +2 -2
  35. package/dist/browser/components/Props.d.cts.map +1 -1
  36. package/dist/browser/components/Props.d.mts +2 -2
  37. package/dist/browser/components/Props.d.mts.map +1 -1
  38. package/dist/browser/components/Props.d.ts +2 -2
  39. package/dist/browser/components/Props.d.ts.map +1 -1
  40. package/dist/browser/components/Title.d.cts +1 -1
  41. package/dist/browser/components/Title.d.cts.map +1 -1
  42. package/dist/browser/components/Title.d.mts +1 -1
  43. package/dist/browser/components/Title.d.mts.map +1 -1
  44. package/dist/browser/components/Title.d.ts +1 -1
  45. package/dist/browser/components/Title.d.ts.map +1 -1
  46. package/dist/browser/components/Value.d.cts +2 -1
  47. package/dist/browser/components/Value.d.cts.map +1 -1
  48. package/dist/browser/components/Value.d.mts +2 -1
  49. package/dist/browser/components/Value.d.mts.map +1 -1
  50. package/dist/browser/components/Value.d.ts +2 -1
  51. package/dist/browser/components/Value.d.ts.map +1 -1
  52. package/dist/browser/components/index.d.cts +6 -6
  53. package/dist/browser/components/index.d.cts.map +1 -1
  54. package/dist/browser/components/index.d.mts +6 -6
  55. package/dist/browser/components/index.d.mts.map +1 -1
  56. package/dist/browser/components/index.d.ts +6 -6
  57. package/dist/browser/components/index.d.ts.map +1 -1
  58. package/dist/browser/index.cjs +207 -127
  59. package/dist/browser/index.cjs.map +1 -1
  60. package/dist/browser/index.d.cts +1 -1
  61. package/dist/browser/index.d.mts +1 -1
  62. package/dist/browser/index.d.ts +1 -1
  63. package/dist/browser/index.mjs +272 -0
  64. package/dist/browser/index.mjs.map +1 -0
  65. package/dist/neutral/components/Actions.d.cts +2 -1
  66. package/dist/neutral/components/Actions.d.cts.map +1 -1
  67. package/dist/neutral/components/Actions.d.mts +2 -1
  68. package/dist/neutral/components/Actions.d.mts.map +1 -1
  69. package/dist/neutral/components/Actions.d.ts +2 -1
  70. package/dist/neutral/components/Actions.d.ts.map +1 -1
  71. package/dist/neutral/components/ActionsMenu.d.cts +2 -1
  72. package/dist/neutral/components/ActionsMenu.d.cts.map +1 -1
  73. package/dist/neutral/components/ActionsMenu.d.mts +2 -1
  74. package/dist/neutral/components/ActionsMenu.d.mts.map +1 -1
  75. package/dist/neutral/components/ActionsMenu.d.ts +2 -1
  76. package/dist/neutral/components/ActionsMenu.d.ts.map +1 -1
  77. package/dist/neutral/components/ActionsProps.d.cts +1 -1
  78. package/dist/neutral/components/ActionsProps.d.mts +1 -1
  79. package/dist/neutral/components/ActionsProps.d.ts +1 -1
  80. package/dist/neutral/components/Group.d.cts +2 -1
  81. package/dist/neutral/components/Group.d.cts.map +1 -1
  82. package/dist/neutral/components/Group.d.mts +2 -1
  83. package/dist/neutral/components/Group.d.mts.map +1 -1
  84. package/dist/neutral/components/Group.d.ts +2 -1
  85. package/dist/neutral/components/Group.d.ts.map +1 -1
  86. package/dist/neutral/components/IdenticonCorner.d.cts +1 -0
  87. package/dist/neutral/components/IdenticonCorner.d.cts.map +1 -1
  88. package/dist/neutral/components/IdenticonCorner.d.mts +1 -0
  89. package/dist/neutral/components/IdenticonCorner.d.mts.map +1 -1
  90. package/dist/neutral/components/IdenticonCorner.d.ts +1 -0
  91. package/dist/neutral/components/IdenticonCorner.d.ts.map +1 -1
  92. package/dist/neutral/components/Property.d.cts +3 -2
  93. package/dist/neutral/components/Property.d.cts.map +1 -1
  94. package/dist/neutral/components/Property.d.mts +3 -2
  95. package/dist/neutral/components/Property.d.mts.map +1 -1
  96. package/dist/neutral/components/Property.d.ts +3 -2
  97. package/dist/neutral/components/Property.d.ts.map +1 -1
  98. package/dist/neutral/components/Props.d.cts +2 -2
  99. package/dist/neutral/components/Props.d.cts.map +1 -1
  100. package/dist/neutral/components/Props.d.mts +2 -2
  101. package/dist/neutral/components/Props.d.mts.map +1 -1
  102. package/dist/neutral/components/Props.d.ts +2 -2
  103. package/dist/neutral/components/Props.d.ts.map +1 -1
  104. package/dist/neutral/components/Title.d.cts +1 -1
  105. package/dist/neutral/components/Title.d.cts.map +1 -1
  106. package/dist/neutral/components/Title.d.mts +1 -1
  107. package/dist/neutral/components/Title.d.mts.map +1 -1
  108. package/dist/neutral/components/Title.d.ts +1 -1
  109. package/dist/neutral/components/Title.d.ts.map +1 -1
  110. package/dist/neutral/components/Value.d.cts +2 -1
  111. package/dist/neutral/components/Value.d.cts.map +1 -1
  112. package/dist/neutral/components/Value.d.mts +2 -1
  113. package/dist/neutral/components/Value.d.mts.map +1 -1
  114. package/dist/neutral/components/Value.d.ts +2 -1
  115. package/dist/neutral/components/Value.d.ts.map +1 -1
  116. package/dist/neutral/components/index.d.cts +6 -6
  117. package/dist/neutral/components/index.d.cts.map +1 -1
  118. package/dist/neutral/components/index.d.mts +6 -6
  119. package/dist/neutral/components/index.d.mts.map +1 -1
  120. package/dist/neutral/components/index.d.ts +6 -6
  121. package/dist/neutral/components/index.d.ts.map +1 -1
  122. package/dist/neutral/index.cjs +207 -127
  123. package/dist/neutral/index.cjs.map +1 -1
  124. package/dist/neutral/index.d.cts +1 -1
  125. package/dist/neutral/index.d.mts +1 -1
  126. package/dist/neutral/index.d.ts +1 -1
  127. package/dist/neutral/index.mjs +272 -0
  128. package/dist/neutral/index.mjs.map +1 -0
  129. package/dist/node/components/Actions.d.cts +2 -1
  130. package/dist/node/components/Actions.d.cts.map +1 -1
  131. package/dist/node/components/Actions.d.mts +2 -1
  132. package/dist/node/components/Actions.d.mts.map +1 -1
  133. package/dist/node/components/Actions.d.ts +2 -1
  134. package/dist/node/components/Actions.d.ts.map +1 -1
  135. package/dist/node/components/ActionsMenu.d.cts +2 -1
  136. package/dist/node/components/ActionsMenu.d.cts.map +1 -1
  137. package/dist/node/components/ActionsMenu.d.mts +2 -1
  138. package/dist/node/components/ActionsMenu.d.mts.map +1 -1
  139. package/dist/node/components/ActionsMenu.d.ts +2 -1
  140. package/dist/node/components/ActionsMenu.d.ts.map +1 -1
  141. package/dist/node/components/ActionsProps.d.cts +1 -1
  142. package/dist/node/components/ActionsProps.d.mts +1 -1
  143. package/dist/node/components/ActionsProps.d.ts +1 -1
  144. package/dist/node/components/Group.d.cts +2 -1
  145. package/dist/node/components/Group.d.cts.map +1 -1
  146. package/dist/node/components/Group.d.mts +2 -1
  147. package/dist/node/components/Group.d.mts.map +1 -1
  148. package/dist/node/components/Group.d.ts +2 -1
  149. package/dist/node/components/Group.d.ts.map +1 -1
  150. package/dist/node/components/IdenticonCorner.d.cts +1 -0
  151. package/dist/node/components/IdenticonCorner.d.cts.map +1 -1
  152. package/dist/node/components/IdenticonCorner.d.mts +1 -0
  153. package/dist/node/components/IdenticonCorner.d.mts.map +1 -1
  154. package/dist/node/components/IdenticonCorner.d.ts +1 -0
  155. package/dist/node/components/IdenticonCorner.d.ts.map +1 -1
  156. package/dist/node/components/Property.d.cts +3 -2
  157. package/dist/node/components/Property.d.cts.map +1 -1
  158. package/dist/node/components/Property.d.mts +3 -2
  159. package/dist/node/components/Property.d.mts.map +1 -1
  160. package/dist/node/components/Property.d.ts +3 -2
  161. package/dist/node/components/Property.d.ts.map +1 -1
  162. package/dist/node/components/Props.d.cts +2 -2
  163. package/dist/node/components/Props.d.cts.map +1 -1
  164. package/dist/node/components/Props.d.mts +2 -2
  165. package/dist/node/components/Props.d.mts.map +1 -1
  166. package/dist/node/components/Props.d.ts +2 -2
  167. package/dist/node/components/Props.d.ts.map +1 -1
  168. package/dist/node/components/Title.d.cts +1 -1
  169. package/dist/node/components/Title.d.cts.map +1 -1
  170. package/dist/node/components/Title.d.mts +1 -1
  171. package/dist/node/components/Title.d.mts.map +1 -1
  172. package/dist/node/components/Title.d.ts +1 -1
  173. package/dist/node/components/Title.d.ts.map +1 -1
  174. package/dist/node/components/Value.d.cts +2 -1
  175. package/dist/node/components/Value.d.cts.map +1 -1
  176. package/dist/node/components/Value.d.mts +2 -1
  177. package/dist/node/components/Value.d.mts.map +1 -1
  178. package/dist/node/components/Value.d.ts +2 -1
  179. package/dist/node/components/Value.d.ts.map +1 -1
  180. package/dist/node/components/index.d.cts +6 -6
  181. package/dist/node/components/index.d.cts.map +1 -1
  182. package/dist/node/components/index.d.mts +6 -6
  183. package/dist/node/components/index.d.mts.map +1 -1
  184. package/dist/node/components/index.d.ts +6 -6
  185. package/dist/node/components/index.d.ts.map +1 -1
  186. package/dist/node/index.cjs +208 -128
  187. package/dist/node/index.cjs.map +1 -1
  188. package/dist/node/index.d.cts +1 -1
  189. package/dist/node/index.d.mts +1 -1
  190. package/dist/node/index.d.ts +1 -1
  191. package/dist/node/index.mjs +274 -0
  192. package/dist/node/index.mjs.map +1 -0
  193. package/package.json +14 -14
  194. package/src/components/Actions.tsx +32 -25
  195. package/src/components/ActionsMenu.tsx +25 -23
  196. package/src/components/ActionsProps.ts +1 -1
  197. package/src/components/Group.tsx +18 -14
  198. package/src/components/IdenticonCorner.tsx +1 -1
  199. package/src/components/Property.tsx +25 -23
  200. package/src/components/PropertyBox.stories.tsx +3 -3
  201. package/src/components/PropertyPaper.stories.tsx +3 -3
  202. package/src/components/{Props.tsx → Props.ts} +2 -2
  203. package/src/components/Title.stories.tsx +3 -3
  204. package/src/components/Title.tsx +11 -9
  205. package/src/components/Value.stories.tsx +3 -3
  206. package/src/components/Value.tsx +14 -11
  207. package/src/components/index.ts +6 -6
  208. package/src/index.ts +1 -1
  209. package/dist/browser/index.js +0 -200
  210. package/dist/browser/index.js.map +0 -1
  211. package/dist/neutral/index.js +0 -200
  212. package/dist/neutral/index.js.map +0 -1
  213. package/dist/node/index.js +0 -202
  214. package/dist/node/index.js.map +0 -1
@@ -1,8 +1,11 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
9
  var __export = (target, all) => {
7
10
  for (var name in all)
8
11
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,6 +18,14 @@ var __copyProps = (to, from, except, desc) => {
15
18
  }
16
19
  return to;
17
20
  };
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
18
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
30
 
20
31
  // src/index.ts
@@ -31,13 +42,14 @@ module.exports = __toCommonJS(src_exports);
31
42
  var import_material2 = require("@mui/material");
32
43
  var import_react_flexbox2 = require("@xylabs/react-flexbox");
33
44
  var import_typeof = require("@xyo-network/typeof");
45
+ var import_react2 = __toESM(require("react"), 1);
34
46
 
35
47
  // src/components/Title.tsx
36
48
  var import_material = require("@mui/material");
37
49
  var import_react_flexbox = require("@xylabs/react-flexbox");
38
50
  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 }) => {
51
+ var import_react = __toESM(require("react"), 1);
52
+ var PropertyTitle = /* @__PURE__ */ __name(({ elevation = 1, size = "medium", tip, more, title, ...props }) => {
41
53
  const sizeVariants = {
42
54
  full: "caption",
43
55
  large: "caption",
@@ -58,168 +70,236 @@ var PropertyTitle = ({ elevation = 1, size = "medium", tip, more, title, ...prop
58
70
  };
59
71
  const quickTipSize = sizeFontSize[size] < 16 ? sizeFontSize[size] : 16;
60
72
  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
- };
73
+ return /* @__PURE__ */ import_react.default.createElement(import_react_flexbox.FlexRow, {
74
+ 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),
75
+ alignItems: "center",
76
+ height: sizeTitleHeight[size],
77
+ justifyContent: "space-between",
78
+ ...props
79
+ }, /* @__PURE__ */ import_react.default.createElement(import_react_flexbox.FlexRow, {
80
+ paddingX: 1,
81
+ paddingY: 0.5
82
+ }, /* @__PURE__ */ import_react.default.createElement(import_material.Typography, {
83
+ fontWeight: 500,
84
+ noWrap: true,
85
+ variant: sizeVariants[size],
86
+ fontSize: sizeFontSize[size]
87
+ }, /* @__PURE__ */ import_react.default.createElement("small", null, /* @__PURE__ */ import_react.default.createElement("strong", null, title))), tip ? /* @__PURE__ */ import_react.default.createElement(import_react_quick_tip_button.QuickTipButton, {
88
+ style: {
89
+ fontSize: quickTipSize
90
+ },
91
+ color: "inherit",
92
+ title: title ?? ""
93
+ }, tip) : null), more);
94
+ }, "PropertyTitle");
79
95
 
80
96
  // src/components/Group.tsx
81
- var import_jsx_runtime2 = require("react/jsx-runtime");
82
- var PropertyGroupBox = ({ titleProps, children, title, tip, ...props }) => {
97
+ var PropertyGroupBox = /* @__PURE__ */ __name(({ titleProps, children, title, tip, ...props }) => {
83
98
  const theme = (0, import_material2.useTheme)();
84
99
  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 == null ? void 0 : 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
- };
100
+ return /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexCol, {
101
+ alignItems: "stretch",
102
+ overflow: "hidden",
103
+ ...props
104
+ }, /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexRow, {
105
+ overflow: "hidden",
106
+ justifyContent: "stretch",
107
+ alignItems: "stretch"
108
+ }, /* @__PURE__ */ import_react2.default.createElement(PropertyTitle, {
109
+ alignItems: "flex-start",
110
+ size: "full",
111
+ title,
112
+ tip,
113
+ ...titleProps
114
+ }), childrenArray ? /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, null, childrenArray == null ? void 0 : childrenArray.map((child, index) => {
115
+ return child ? /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, {
116
+ key: index,
117
+ borderLeft: 1,
118
+ borderColor: theme.palette.divider
119
+ }, child) : null;
120
+ })) : /* @__PURE__ */ import_react2.default.createElement(import_react_flexbox2.FlexGrowRow, {
121
+ overflow: "hidden"
122
+ }, children)));
123
+ }, "PropertyGroupBox");
124
+ var PropertyGroupPaper = /* @__PURE__ */ __name(({ style, variant, elevation, square, ...props }) => {
125
+ return /* @__PURE__ */ import_react2.default.createElement(import_material2.Paper, {
126
+ style: {
127
+ minWidth: 0,
128
+ overflow: "hidden",
129
+ ...style
130
+ },
131
+ variant,
132
+ elevation,
133
+ square
134
+ }, /* @__PURE__ */ import_react2.default.createElement(PropertyGroupBox, {
135
+ ...props,
136
+ paper: false
137
+ }));
138
+ }, "PropertyGroupPaper");
139
+ var PropertyGroup = /* @__PURE__ */ __name((props) => {
140
+ return props.paper ? /* @__PURE__ */ import_react2.default.createElement(PropertyGroupPaper, props) : /* @__PURE__ */ import_react2.default.createElement(PropertyGroupBox, props);
141
+ }, "PropertyGroup");
98
142
 
99
143
  // src/components/Property.tsx
100
144
  var import_material5 = require("@mui/material");
101
145
  var import_react_flexbox5 = require("@xylabs/react-flexbox");
102
- var import_react4 = require("react");
146
+ var import_react6 = __toESM(require("react"), 1);
103
147
 
104
148
  // src/components/ActionsMenu.tsx
105
149
  var import_icons_material = require("@mui/icons-material");
106
150
  var import_material3 = require("@mui/material");
107
151
  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);
152
+ var import_react3 = __toESM(require("react"), 1);
153
+ var PropertyActionsMenu = /* @__PURE__ */ __name(({ actions, ...props }) => {
154
+ const [anchorEl, setAnchorEl] = (0, import_react3.useState)(null);
112
155
  const open = !!anchorEl;
113
- const handleClick = (event) => {
156
+ const handleClick = /* @__PURE__ */ __name((event) => {
114
157
  setAnchorEl(event.currentTarget);
115
- };
116
- const handleClose = () => {
158
+ }, "handleClick");
159
+ const handleClose = /* @__PURE__ */ __name(() => {
117
160
  setAnchorEl(null);
118
- };
119
- return actions && (actions == null ? void 0 : 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 == null ? void 0 : actions.map((action) => {
122
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
123
- import_material3.MenuItem,
124
- {
125
- onClick: () => {
126
- var _a;
127
- (_a = action == null ? void 0 : action.onClick) == null ? void 0 : _a.call(action);
128
- handleClose();
129
- },
130
- children: action.name
131
- },
132
- action.name
133
- );
134
- }) })
135
- ] }) : null;
136
- };
161
+ }, "handleClose");
162
+ return actions && (actions == null ? void 0 : actions.length) > 0 ? /* @__PURE__ */ import_react3.default.createElement(import_react_flexbox3.FlexRow, props, /* @__PURE__ */ import_react3.default.createElement(import_material3.IconButton, {
163
+ size: "small",
164
+ color: "inherit",
165
+ onClick: handleClick
166
+ }, /* @__PURE__ */ import_react3.default.createElement(import_icons_material.MoreHoriz, {
167
+ fontSize: "inherit"
168
+ })), /* @__PURE__ */ import_react3.default.createElement(import_material3.Menu, {
169
+ anchorEl,
170
+ open,
171
+ onClose: handleClose
172
+ }, actions == null ? void 0 : actions.map((action) => {
173
+ return /* @__PURE__ */ import_react3.default.createElement(import_material3.MenuItem, {
174
+ key: action.name,
175
+ onClick: /* @__PURE__ */ __name(() => {
176
+ var _a;
177
+ (_a = action == null ? void 0 : action.onClick) == null ? void 0 : _a.call(action);
178
+ handleClose();
179
+ }, "onClick")
180
+ }, action.name);
181
+ }))) : null;
182
+ }, "PropertyActionsMenu");
137
183
 
138
184
  // src/components/IdenticonCorner.tsx
139
185
  var import_material4 = require("@mui/material");
140
186
  var import_react_flexbox4 = require("@xylabs/react-flexbox");
141
187
  var import_react_identicon = require("@xylabs/react-identicon");
142
- var import_react2 = require("react");
143
- var import_jsx_runtime4 = require("react/jsx-runtime");
144
- var IdenticonCorner = ({ value, ...props }) => {
188
+ var import_react4 = __toESM(require("react"), 1);
189
+ var IdenticonCorner = /* @__PURE__ */ __name(({ value, ...props }) => {
145
190
  const theme = (0, import_material4.useTheme)();
146
- const [parentHeight, setParentHeight] = (0, import_react2.useState)();
147
- const ref = (0, import_react2.useRef)(null);
148
- (0, import_react2.useEffect)(() => {
191
+ const [parentHeight, setParentHeight] = (0, import_react4.useState)();
192
+ const ref = (0, import_react4.useRef)(null);
193
+ (0, import_react4.useEffect)(() => {
149
194
  var _a, _b, _c;
150
195
  setParentHeight((_c = (_b = (_a = ref.current) == null ? void 0 : _a.parentElement) == null ? void 0 : _b.parentElement) == null ? void 0 : _c.clientHeight);
151
196
  }, []);
152
197
  const calculatedHeight = parentHeight ?? 0;
153
- 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 }) }) }) });
154
- };
198
+ return /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox4.FlexRow, {
199
+ alignItems: "flex-start",
200
+ height: "100%"
201
+ }, /* @__PURE__ */ import_react4.default.createElement(import_react_flexbox4.FlexRow, {
202
+ background: true,
203
+ height: calculatedHeight,
204
+ width: calculatedHeight,
205
+ borderLeft: `1px solid ${theme.palette.divider}`
206
+ }, /* @__PURE__ */ import_react4.default.createElement("div", {
207
+ ref
208
+ }, /* @__PURE__ */ import_react4.default.createElement(import_react_identicon.Identicon, {
209
+ size: calculatedHeight * 0.6,
210
+ value: `${value}`,
211
+ sx: {
212
+ padding: `${calculatedHeight * 0.2}px`
213
+ },
214
+ ...props
215
+ }))));
216
+ }, "IdenticonCorner");
155
217
 
156
218
  // src/components/Value.tsx
157
219
  var import_react_shared = require("@xyo-network/react-shared");
158
- var import_react3 = require("react");
159
- var import_jsx_runtime5 = require("react/jsx-runtime");
160
- var PropertyValue = (0, import_react3.forwardRef)(({ typographyVariant = "body1", value, ...props }, ref) => {
161
- return value === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
162
- import_react_shared.EllipsizeBox,
163
- {
164
- typographyProps: { component: void 0, title: value == null ? void 0 : value.toString(), variant: typographyVariant },
165
- width: "100%",
166
- ref,
167
- ...props,
168
- children: value
169
- }
170
- );
220
+ var import_react5 = __toESM(require("react"), 1);
221
+ var PropertyValue = /* @__PURE__ */ (0, import_react5.forwardRef)(({ typographyVariant = "body1", value, ...props }, ref) => {
222
+ return value === void 0 ? null : /* @__PURE__ */ import_react5.default.createElement(import_react_shared.EllipsizeBox, {
223
+ typographyProps: {
224
+ component: void 0,
225
+ title: value == null ? void 0 : value.toString(),
226
+ variant: typographyVariant
227
+ },
228
+ width: "100%",
229
+ ref,
230
+ ...props
231
+ }, value);
171
232
  });
172
233
  PropertyValue.displayName = "PropertyValue";
173
234
 
174
235
  // src/components/Property.tsx
175
- var import_jsx_runtime6 = require("react/jsx-runtime");
176
- var PropertyBox = (0, import_react4.forwardRef)(
177
- ({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
178
- const sizeValueHeight = {
179
- large: 48,
180
- medium: 36,
181
- small: 24
182
- };
183
- const sizeVariants = {
184
- large: "h6",
185
- medium: "body1",
186
- small: "body2"
187
- };
188
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(import_react_flexbox5.FlexRow, { ref, flexDirection: "column", minWidth: 0, alignItems: "stretch", overflow: "hidden", ...props, children: [
189
- title === void 0 ? null : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
190
- PropertyTitle,
191
- {
192
- tip,
193
- title: required ? `${title}*` : title,
194
- size,
195
- more: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyActionsMenu, { actions }),
196
- ...titleProps
197
- }
198
- ),
199
- /* @__PURE__ */ (0, import_jsx_runtime6.jsxs)(
200
- import_react_flexbox5.FlexRow,
201
- {
202
- pl: 1,
203
- columnGap: 1,
204
- justifyContent: value === void 0 ? "center" : "space-between",
205
- overflow: "hidden",
206
- height: sizeValueHeight[size],
207
- children: [
208
- 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] }),
209
- value === void 0 ? null : badge ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IdenticonCorner, { value }) : null
210
- ]
211
- }
212
- )
213
- ] });
214
- }
215
- );
236
+ var PropertyBox = /* @__PURE__ */ (0, import_react6.forwardRef)(({ titleProps, title, value, children, size = "medium", tip, actions, required, badge = false, ...props }, ref) => {
237
+ const sizeValueHeight = {
238
+ large: 48,
239
+ medium: 36,
240
+ small: 24
241
+ };
242
+ const sizeVariants = {
243
+ large: "h6",
244
+ medium: "body1",
245
+ small: "body2"
246
+ };
247
+ return /* @__PURE__ */ import_react6.default.createElement(import_react_flexbox5.FlexRow, {
248
+ ref,
249
+ flexDirection: "column",
250
+ minWidth: 0,
251
+ alignItems: "stretch",
252
+ overflow: "hidden",
253
+ ...props
254
+ }, title === void 0 ? null : /* @__PURE__ */ import_react6.default.createElement(PropertyTitle, {
255
+ tip,
256
+ title: required ? `${title}*` : title,
257
+ size,
258
+ more: /* @__PURE__ */ import_react6.default.createElement(PropertyActionsMenu, {
259
+ actions
260
+ }),
261
+ ...titleProps
262
+ }), /* @__PURE__ */ import_react6.default.createElement(import_react_flexbox5.FlexRow, {
263
+ pl: 1,
264
+ columnGap: 1,
265
+ justifyContent: value === void 0 ? "center" : "space-between",
266
+ overflow: "hidden",
267
+ height: sizeValueHeight[size]
268
+ }, children ?? value === void 0 ? /* @__PURE__ */ import_react6.default.createElement(import_material5.CircularProgress, {
269
+ size: 16
270
+ }) : /* @__PURE__ */ import_react6.default.createElement(PropertyValue, {
271
+ value,
272
+ typographyVariant: sizeVariants[size]
273
+ }), value === void 0 ? null : badge ? /* @__PURE__ */ import_react6.default.createElement(IdenticonCorner, {
274
+ value
275
+ }) : null));
276
+ });
216
277
  PropertyBox.displayName = "PropertyBox";
217
- var PropertyPaper = (0, import_react4.forwardRef)(({ style, variant, elevation = 2, square, ...props }, ref) => {
218
- 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 }) });
278
+ var PropertyPaper = /* @__PURE__ */ (0, import_react6.forwardRef)(({ style, variant, elevation = 2, square, ...props }, ref) => {
279
+ return /* @__PURE__ */ import_react6.default.createElement(import_material5.Paper, {
280
+ ref,
281
+ style: {
282
+ minWidth: 0,
283
+ overflow: "hidden",
284
+ ...style
285
+ },
286
+ variant,
287
+ elevation,
288
+ square
289
+ }, /* @__PURE__ */ import_react6.default.createElement(PropertyBox, {
290
+ ...props,
291
+ paper: false
292
+ }));
219
293
  });
220
294
  PropertyPaper.displayName = "PropertyPaper";
221
- var Property = (0, import_react4.forwardRef)((props, ref) => {
222
- return props.paper ? /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyPaper, { ref, ...props }) : /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(PropertyBox, { ref, ...props });
295
+ var Property = /* @__PURE__ */ (0, import_react6.forwardRef)((props, ref) => {
296
+ return props.paper ? /* @__PURE__ */ import_react6.default.createElement(PropertyPaper, {
297
+ ref,
298
+ ...props
299
+ }) : /* @__PURE__ */ import_react6.default.createElement(PropertyBox, {
300
+ ref,
301
+ ...props
302
+ });
223
303
  });
224
304
  Property.displayName = "Property";
225
305
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +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/index.js'\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.js'\nimport { PropertyTitle } from './Title.js'\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.js'\nimport { IdenticonCorner } from './IdenticonCorner.js'\nimport { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props.js'\nimport { PropertyTitle } from './Title.js'\nimport { PropertyValue } from './Value.js'\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.js'\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","import { Variant } from '@mui/material/styles/createTypography.js'\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":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ACjD,UAAS;AAAA,UACT,QAAQ,gBAAgB,IAAI;AAAA,UAE1B;AAAA,wBAAY,UAAU,SACtB,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"]}
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/index.ts'\n","import { Paper, useTheme } from '@mui/material'\nimport { FlexCol, FlexGrowRow, FlexRow } from '@xylabs/react-flexbox'\nimport { typeOf } from '@xyo-network/typeof'\nimport React, { ReactElement } from 'react'\n\nimport { PropertyGroupBoxProps, PropertyGroupPaperProps, PropertyGroupProps } from './Props.ts'\nimport { PropertyTitle } from './Title.tsx'\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 ? (\n <FlexGrowRow>\n {childrenArray?.map((child, index) => {\n return child\n ? (\n <FlexGrowRow key={index} borderLeft={1} borderColor={theme.palette.divider}>\n {child}\n </FlexGrowRow>\n )\n : null\n })}\n </FlexGrowRow>\n )\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 React, { 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 ? (\n <QuickTipButton style={{ fontSize: quickTipSize }} color=\"inherit\" title={title ?? ''}>\n {tip}\n </QuickTipButton>\n )\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 React, { forwardRef } from 'react'\n\nimport { PropertyActionsMenu } from './ActionsMenu.tsx'\nimport { IdenticonCorner } from './IdenticonCorner.tsx'\nimport { PropertyBoxProps, PropertyPaperProps, PropertyProps } from './Props.ts'\nimport { PropertyTitle } from './Title.tsx'\nimport { PropertyValue } from './Value.tsx'\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\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 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 React, { useState } from 'react'\n\nimport { 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 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 )\n : null\n}\n","import { useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { Identicon } from '@xylabs/react-identicon'\nimport React, { 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 { Variant } from '@mui/material/styles/createTypography.js'\nimport { EllipsizeBox, EllipsizeBoxProps } from '@xyo-network/react-shared'\nimport React, { 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\n ? null\n : (\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;;;;;;;;;;ACAA,IAAAA,mBAAgC;AAChC,IAAAC,wBAA8C;AAC9C,oBAAuB;AACvB,IAAAC,gBAAoC;;;ACHpC,sBAAyE;AACzE,2BAAsC;AACtC,oCAA+B;AAE/B,mBAAiC;AAY1B,IAAMC,gBAA8C,wBAAC,EAAEC,YAAY,GAAGC,OAAO,UAAUC,KAAKC,MAAMC,OAAO,GAAGC,MAAAA,MAAO;AACxH,QAAMC,eAAyD;IAC7DC,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,OAAO;EACT;AAEA,QAAMC,kBAA6D;IACjEJ,MAAMK;IACNJ,OAAO;IACPC,QAAQ;IACRC,OAAO;EACT;AAEA,QAAMG,eAA8C;IAClDN,MAAM;IACNC,OAAO;IACPC,QAAQ;IACRC,OAAO;EACT;AAEA,QAAMI,eAAeD,aAAaZ,IAAAA,IAAQ,KAAKY,aAAaZ,IAAAA,IAAQ;AAEpE,QAAMc,YAAQC,0BAAAA;AAEd,SACE,6BAAAC,QAAA,cAACC,8BAAAA;IACCC,SACEJ,MAAMK,QAAQC,SAAS,aACnBC,yBAAQP,MAAMK,QAAQG,WAAWC,OAAO,OAAOxB,SAAAA,QAC/CyB,wBAAOV,MAAMK,QAAQG,WAAWC,OAAO,QAAQxB,SAAAA;IAErD0B,YAAW;IACXC,QAAQhB,gBAAgBV,IAAAA;IACxB2B,gBAAe;IACd,GAAGvB;KAEJ,6BAAAY,QAAA,cAACC,8BAAAA;IAAQW,UAAU;IAAGC,UAAU;KAC9B,6BAAAb,QAAA,cAACc,4BAAAA;IAAWC,YAAY;IAAKC,QAAAA;IAAOC,SAAS5B,aAAaL,IAAAA;IAAOkC,UAAUtB,aAAaZ,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,cAAcD,cAAc;AAErB,IAAMQ,WAAW3C,8CAA0C,CAACU,OAAOC,QAAAA;AACxE,SAAOD,MAAMgC,QAAQ,8BAAAzB,QAAA,cAACmB,eAAAA;IAAczB;IAAW,GAAGD;OAAY,8BAAAO,QAAA,cAAClB,aAAAA;IAAYY;IAAW,GAAGD;;AAC3F,CAAA;AACAiC,SAASR,cAAc;","names":["import_material","import_react_flexbox","import_react","PropertyTitle","elevation","size","tip","more","title","props","sizeVariants","full","large","medium","small","sizeTitleHeight","undefined","sizeFontSize","quickTipSize","theme","useTheme","React","FlexRow","bgcolor","palette","mode","lighten","background","paper","darken","alignItems","height","justifyContent","paddingX","paddingY","Typography","fontWeight","noWrap","variant","fontSize","strong","QuickTipButton","style","color","PropertyGroupBox","titleProps","children","title","tip","props","theme","useTheme","childrenArray","typeOf","undefined","React","FlexCol","alignItems","overflow","FlexRow","justifyContent","PropertyTitle","size","FlexGrowRow","map","child","index","key","borderLeft","borderColor","palette","divider","PropertyGroupPaper","style","variant","elevation","square","Paper","minWidth","paper","PropertyGroup","import_material","import_react_flexbox","import_react","import_material","import_react_flexbox","import_react","PropertyActionsMenu","actions","props","anchorEl","setAnchorEl","useState","open","handleClick","event","currentTarget","handleClose","length","React","FlexRow","IconButton","size","color","onClick","MoreHorizIcon","fontSize","Menu","onClose","map","action","MenuItem","key","name","import_material","import_react_flexbox","import_react","IdenticonCorner","value","props","theme","useTheme","parentHeight","setParentHeight","useState","ref","useRef","useEffect","current","parentElement","clientHeight","calculatedHeight","React","FlexRow","alignItems","height","background","width","borderLeft","palette","divider","div","Identicon","size","sx","padding","import_react","PropertyValue","forwardRef","typographyVariant","value","props","ref","undefined","React","EllipsizeBox","typographyProps","component","title","toString","variant","width","displayName","PropertyBox","forwardRef","titleProps","title","value","children","size","tip","actions","required","badge","props","ref","sizeValueHeight","large","medium","small","sizeVariants","React","FlexRow","flexDirection","minWidth","alignItems","overflow","undefined","PropertyTitle","more","PropertyActionsMenu","pl","columnGap","justifyContent","height","CircularProgress","PropertyValue","typographyVariant","IdenticonCorner","displayName","PropertyPaper","style","variant","elevation","square","Paper","paper","Property"]}
@@ -1,2 +1,2 @@
1
- export * from './components/index.js';
1
+ export * from './components/index.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './components/index.js';
1
+ export * from './components/index.ts';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1,2 @@
1
- export * from './components/index.js';
1
+ export * from './components/index.ts';
2
2
  //# sourceMappingURL=index.d.ts.map