@xyo-network/react-address-render 2.64.0-rc.3 → 2.64.0-rc.5

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 (205) hide show
  1. package/dist/browser/components/RenderRowBox.d.mts.map +1 -0
  2. package/dist/browser/components/RenderRowBox.d.ts.map +1 -0
  3. package/dist/browser/components/RenderRowBox.js +49 -0
  4. package/dist/browser/components/RenderRowBox.js.map +1 -0
  5. package/dist/browser/components/RenderRowBox.stories.js +81 -0
  6. package/dist/browser/components/RenderRowBox.stories.js.map +1 -0
  7. package/dist/browser/components/favorite/FavoriteIconButton.d.mts.map +1 -0
  8. package/dist/browser/components/favorite/FavoriteIconButton.d.ts.map +1 -0
  9. package/dist/browser/components/favorite/FavoriteIconButton.js +70 -0
  10. package/dist/browser/components/favorite/FavoriteIconButton.js.map +1 -0
  11. package/dist/browser/components/favorite/FavoriteToggleSVG.d.mts.map +1 -0
  12. package/dist/browser/components/favorite/FavoriteToggleSVG.d.ts.map +1 -0
  13. package/dist/browser/components/favorite/FavoriteToggleSVG.js +7 -0
  14. package/dist/browser/components/favorite/FavoriteToggleSVG.js.map +1 -0
  15. package/dist/browser/components/favorite/Popper.d.mts.map +1 -0
  16. package/dist/browser/components/favorite/Popper.d.ts.map +1 -0
  17. package/dist/browser/components/favorite/Popper.js +54 -0
  18. package/dist/browser/components/favorite/Popper.js.map +1 -0
  19. package/dist/browser/components/favorite/PopperButtonGroup.d.mts.map +1 -0
  20. package/dist/browser/components/favorite/PopperButtonGroup.d.ts.map +1 -0
  21. package/dist/browser/components/favorite/PopperButtonGroup.js +35 -0
  22. package/dist/browser/components/favorite/PopperButtonGroup.js.map +1 -0
  23. package/dist/browser/components/favorite/index.d.mts.map +1 -0
  24. package/dist/browser/components/favorite/index.d.ts.map +1 -0
  25. package/dist/browser/components/favorite/index.js +2 -0
  26. package/dist/browser/components/favorite/index.js.map +1 -0
  27. package/dist/browser/components/favorite/lib/PopperId.d.mts.map +1 -0
  28. package/dist/browser/components/favorite/lib/PopperId.d.ts.map +1 -0
  29. package/dist/browser/components/favorite/lib/PopperId.js +5 -0
  30. package/dist/browser/components/favorite/lib/PopperId.js.map +1 -0
  31. package/dist/browser/components/favorite/lib/index.d.mts.map +1 -0
  32. package/dist/browser/components/favorite/lib/index.d.ts.map +1 -0
  33. package/dist/browser/components/favorite/lib/index.js +2 -0
  34. package/dist/browser/components/favorite/lib/index.js.map +1 -0
  35. package/dist/browser/components/index.d.mts.map +1 -0
  36. package/dist/browser/components/index.d.ts.map +1 -0
  37. package/dist/browser/components/index.js +4 -0
  38. package/dist/browser/components/index.js.map +1 -0
  39. package/dist/browser/components/lib/FavoriteItemEvent.d.mts.map +1 -0
  40. package/dist/browser/components/lib/FavoriteItemEvent.d.ts.map +1 -0
  41. package/dist/browser/components/lib/FavoriteItemEvent.js +10 -0
  42. package/dist/browser/components/lib/FavoriteItemEvent.js.map +1 -0
  43. package/dist/browser/components/lib/index.d.mts.map +1 -0
  44. package/dist/browser/components/lib/index.d.ts.map +1 -0
  45. package/dist/browser/components/lib/index.js +2 -0
  46. package/dist/browser/components/lib/index.js.map +1 -0
  47. package/dist/{index.d.mts.map → browser/index.d.mts.map} +1 -1
  48. package/dist/{index.d.ts.map → browser/index.d.ts.map} +1 -1
  49. package/dist/browser/index.js +2 -0
  50. package/dist/browser/index.js.map +1 -0
  51. package/dist/node/components/RenderRowBox.d.mts +14 -0
  52. package/dist/node/components/RenderRowBox.d.mts.map +1 -0
  53. package/dist/node/components/RenderRowBox.d.ts +14 -0
  54. package/dist/node/components/RenderRowBox.d.ts.map +1 -0
  55. package/dist/node/components/RenderRowBox.js +73 -0
  56. package/dist/node/components/RenderRowBox.js.map +1 -0
  57. package/dist/node/components/RenderRowBox.mjs +49 -0
  58. package/dist/node/components/RenderRowBox.mjs.map +1 -0
  59. package/dist/node/components/RenderRowBox.stories.js +111 -0
  60. package/dist/node/components/RenderRowBox.stories.js.map +1 -0
  61. package/dist/node/components/RenderRowBox.stories.mjs +81 -0
  62. package/dist/node/components/RenderRowBox.stories.mjs.map +1 -0
  63. package/dist/node/components/favorite/FavoriteIconButton.d.mts +12 -0
  64. package/dist/node/components/favorite/FavoriteIconButton.d.mts.map +1 -0
  65. package/dist/node/components/favorite/FavoriteIconButton.d.ts +12 -0
  66. package/dist/node/components/favorite/FavoriteIconButton.d.ts.map +1 -0
  67. package/dist/node/components/favorite/FavoriteIconButton.js +94 -0
  68. package/dist/node/components/favorite/FavoriteIconButton.js.map +1 -0
  69. package/dist/node/components/favorite/FavoriteIconButton.mjs +70 -0
  70. package/dist/node/components/favorite/FavoriteIconButton.mjs.map +1 -0
  71. package/dist/node/components/favorite/FavoriteToggleSVG.d.mts +5 -0
  72. package/dist/node/components/favorite/FavoriteToggleSVG.d.mts.map +1 -0
  73. package/dist/node/components/favorite/FavoriteToggleSVG.d.ts +5 -0
  74. package/dist/node/components/favorite/FavoriteToggleSVG.d.ts.map +1 -0
  75. package/dist/node/components/favorite/FavoriteToggleSVG.js +31 -0
  76. package/dist/node/components/favorite/FavoriteToggleSVG.js.map +1 -0
  77. package/dist/node/components/favorite/FavoriteToggleSVG.mjs +7 -0
  78. package/dist/node/components/favorite/FavoriteToggleSVG.mjs.map +1 -0
  79. package/dist/node/components/favorite/Popper.d.mts +11 -0
  80. package/dist/node/components/favorite/Popper.d.mts.map +1 -0
  81. package/dist/node/components/favorite/Popper.d.ts +11 -0
  82. package/dist/node/components/favorite/Popper.d.ts.map +1 -0
  83. package/dist/node/components/favorite/Popper.js +78 -0
  84. package/dist/node/components/favorite/Popper.js.map +1 -0
  85. package/dist/node/components/favorite/Popper.mjs +54 -0
  86. package/dist/node/components/favorite/Popper.mjs.map +1 -0
  87. package/dist/node/components/favorite/PopperButtonGroup.d.mts +9 -0
  88. package/dist/node/components/favorite/PopperButtonGroup.d.mts.map +1 -0
  89. package/dist/node/components/favorite/PopperButtonGroup.d.ts +9 -0
  90. package/dist/node/components/favorite/PopperButtonGroup.d.ts.map +1 -0
  91. package/dist/node/components/favorite/PopperButtonGroup.js +59 -0
  92. package/dist/node/components/favorite/PopperButtonGroup.js.map +1 -0
  93. package/dist/node/components/favorite/PopperButtonGroup.mjs +35 -0
  94. package/dist/node/components/favorite/PopperButtonGroup.mjs.map +1 -0
  95. package/dist/node/components/favorite/index.d.mts +2 -0
  96. package/dist/node/components/favorite/index.d.mts.map +1 -0
  97. package/dist/node/components/favorite/index.d.ts +2 -0
  98. package/dist/node/components/favorite/index.d.ts.map +1 -0
  99. package/dist/node/components/favorite/index.js +23 -0
  100. package/dist/node/components/favorite/index.js.map +1 -0
  101. package/dist/node/components/favorite/index.mjs +2 -0
  102. package/dist/node/components/favorite/index.mjs.map +1 -0
  103. package/dist/node/components/favorite/lib/PopperId.d.mts +2 -0
  104. package/dist/node/components/favorite/lib/PopperId.d.mts.map +1 -0
  105. package/dist/node/components/favorite/lib/PopperId.d.ts +2 -0
  106. package/dist/node/components/favorite/lib/PopperId.d.ts.map +1 -0
  107. package/dist/node/components/favorite/lib/PopperId.js +29 -0
  108. package/dist/node/components/favorite/lib/PopperId.js.map +1 -0
  109. package/dist/node/components/favorite/lib/PopperId.mjs +5 -0
  110. package/dist/node/components/favorite/lib/PopperId.mjs.map +1 -0
  111. package/dist/node/components/favorite/lib/index.d.mts +2 -0
  112. package/dist/node/components/favorite/lib/index.d.mts.map +1 -0
  113. package/dist/node/components/favorite/lib/index.d.ts +2 -0
  114. package/dist/node/components/favorite/lib/index.d.ts.map +1 -0
  115. package/dist/node/components/favorite/lib/index.js +23 -0
  116. package/dist/node/components/favorite/lib/index.js.map +1 -0
  117. package/dist/node/components/favorite/lib/index.mjs +2 -0
  118. package/dist/node/components/favorite/lib/index.mjs.map +1 -0
  119. package/dist/node/components/index.d.mts +4 -0
  120. package/dist/node/components/index.d.mts.map +1 -0
  121. package/dist/node/components/index.d.ts +4 -0
  122. package/dist/node/components/index.d.ts.map +1 -0
  123. package/dist/node/components/index.js +27 -0
  124. package/dist/node/components/index.js.map +1 -0
  125. package/dist/node/components/index.mjs +4 -0
  126. package/dist/node/components/index.mjs.map +1 -0
  127. package/dist/node/components/lib/FavoriteItemEvent.d.mts +9 -0
  128. package/dist/node/components/lib/FavoriteItemEvent.d.mts.map +1 -0
  129. package/dist/node/components/lib/FavoriteItemEvent.d.ts +9 -0
  130. package/dist/node/components/lib/FavoriteItemEvent.d.ts.map +1 -0
  131. package/dist/node/components/lib/FavoriteItemEvent.js +34 -0
  132. package/dist/node/components/lib/FavoriteItemEvent.js.map +1 -0
  133. package/dist/node/components/lib/FavoriteItemEvent.mjs +10 -0
  134. package/dist/node/components/lib/FavoriteItemEvent.mjs.map +1 -0
  135. package/dist/node/components/lib/index.d.mts +2 -0
  136. package/dist/node/components/lib/index.d.mts.map +1 -0
  137. package/dist/node/components/lib/index.d.ts +2 -0
  138. package/dist/node/components/lib/index.d.ts.map +1 -0
  139. package/dist/node/components/lib/index.js +23 -0
  140. package/dist/node/components/lib/index.js.map +1 -0
  141. package/dist/node/components/lib/index.mjs +2 -0
  142. package/dist/node/components/lib/index.mjs.map +1 -0
  143. package/dist/node/index.d.mts +2 -0
  144. package/dist/node/index.d.mts.map +1 -0
  145. package/dist/node/index.d.ts +2 -0
  146. package/dist/node/index.d.ts.map +1 -0
  147. package/dist/node/index.js +23 -0
  148. package/dist/node/index.js.map +1 -0
  149. package/dist/node/index.mjs +2 -0
  150. package/dist/node/index.mjs.map +1 -0
  151. package/package.json +23 -23
  152. package/dist/components/RenderRowBox.d.mts.map +0 -1
  153. package/dist/components/RenderRowBox.d.ts.map +0 -1
  154. package/dist/components/RenderRowBox.stories.d.mts +0 -12
  155. package/dist/components/RenderRowBox.stories.d.mts.map +0 -1
  156. package/dist/components/RenderRowBox.stories.d.ts +0 -12
  157. package/dist/components/RenderRowBox.stories.d.ts.map +0 -1
  158. package/dist/components/favorite/FavoriteIconButton.d.mts.map +0 -1
  159. package/dist/components/favorite/FavoriteIconButton.d.ts.map +0 -1
  160. package/dist/components/favorite/FavoriteToggleSVG.d.mts.map +0 -1
  161. package/dist/components/favorite/FavoriteToggleSVG.d.ts.map +0 -1
  162. package/dist/components/favorite/Popper.d.mts.map +0 -1
  163. package/dist/components/favorite/Popper.d.ts.map +0 -1
  164. package/dist/components/favorite/PopperButtonGroup.d.mts.map +0 -1
  165. package/dist/components/favorite/PopperButtonGroup.d.ts.map +0 -1
  166. package/dist/components/favorite/index.d.mts.map +0 -1
  167. package/dist/components/favorite/index.d.ts.map +0 -1
  168. package/dist/components/favorite/lib/PopperId.d.mts.map +0 -1
  169. package/dist/components/favorite/lib/PopperId.d.ts.map +0 -1
  170. package/dist/components/favorite/lib/index.d.mts.map +0 -1
  171. package/dist/components/favorite/lib/index.d.ts.map +0 -1
  172. package/dist/components/index.d.mts.map +0 -1
  173. package/dist/components/index.d.ts.map +0 -1
  174. package/dist/components/lib/FavoriteItemEvent.d.mts.map +0 -1
  175. package/dist/components/lib/FavoriteItemEvent.d.ts.map +0 -1
  176. package/dist/components/lib/index.d.mts.map +0 -1
  177. package/dist/components/lib/index.d.ts.map +0 -1
  178. package/dist/index.js +0 -247
  179. package/dist/index.js.map +0 -1
  180. package/dist/index.mjs +0 -218
  181. package/dist/index.mjs.map +0 -1
  182. /package/dist/{components → browser/components}/RenderRowBox.d.mts +0 -0
  183. /package/dist/{components → browser/components}/RenderRowBox.d.ts +0 -0
  184. /package/dist/{components → browser/components}/favorite/FavoriteIconButton.d.mts +0 -0
  185. /package/dist/{components → browser/components}/favorite/FavoriteIconButton.d.ts +0 -0
  186. /package/dist/{components → browser/components}/favorite/FavoriteToggleSVG.d.mts +0 -0
  187. /package/dist/{components → browser/components}/favorite/FavoriteToggleSVG.d.ts +0 -0
  188. /package/dist/{components → browser/components}/favorite/Popper.d.mts +0 -0
  189. /package/dist/{components → browser/components}/favorite/Popper.d.ts +0 -0
  190. /package/dist/{components → browser/components}/favorite/PopperButtonGroup.d.mts +0 -0
  191. /package/dist/{components → browser/components}/favorite/PopperButtonGroup.d.ts +0 -0
  192. /package/dist/{components → browser/components}/favorite/index.d.mts +0 -0
  193. /package/dist/{components → browser/components}/favorite/index.d.ts +0 -0
  194. /package/dist/{components → browser/components}/favorite/lib/PopperId.d.mts +0 -0
  195. /package/dist/{components → browser/components}/favorite/lib/PopperId.d.ts +0 -0
  196. /package/dist/{components → browser/components}/favorite/lib/index.d.mts +0 -0
  197. /package/dist/{components → browser/components}/favorite/lib/index.d.ts +0 -0
  198. /package/dist/{components → browser/components}/index.d.mts +0 -0
  199. /package/dist/{components → browser/components}/index.d.ts +0 -0
  200. /package/dist/{components → browser/components}/lib/FavoriteItemEvent.d.mts +0 -0
  201. /package/dist/{components → browser/components}/lib/FavoriteItemEvent.d.ts +0 -0
  202. /package/dist/{components → browser/components}/lib/index.d.mts +0 -0
  203. /package/dist/{components → browser/components}/lib/index.d.ts +0 -0
  204. /package/dist/{index.d.mts → browser/index.d.mts} +0 -0
  205. /package/dist/{index.d.ts → browser/index.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderRowBox.d.ts","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAQ7D,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,kHA4C/B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderRowBox.d.ts","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAQ7D,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,kHA4C/B,CAAA"}
@@ -0,0 +1,49 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { ListItemIcon, useTheme } from "@mui/material";
3
+ import { FlexRow } from "@xylabs/react-flexbox";
4
+ import { Identicon } from "@xylabs/react-identicon";
5
+ import { useEvent } from "@xyo-network/react-event";
6
+ import { EllipsizeBox, useShareForwardedRef } from "@xyo-network/react-shared";
7
+ import { forwardRef } from "react";
8
+ import { FavoriteIconButton } from "./favorite";
9
+ const AddressRenderRowBox = forwardRef(
10
+ ({ address, children, disableSharedRef, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false, ...props }, ref) => {
11
+ const theme = useTheme();
12
+ const sharedRef = useShareForwardedRef(ref);
13
+ const [elementRef, dispatch] = useEvent(void 0, sharedRef);
14
+ return /* @__PURE__ */ jsxs(
15
+ FlexRow,
16
+ {
17
+ gap: 2,
18
+ justifyContent: "flex-start",
19
+ ref: elementRef,
20
+ onClick: () => {
21
+ if (address) {
22
+ dispatch("address", "click", address);
23
+ }
24
+ },
25
+ ...props,
26
+ children: [
27
+ icons && address ? /* @__PURE__ */ jsx(ListItemIcon, { sx: { minWidth: 0 }, children: /* @__PURE__ */ jsx(Identicon, { size: iconSize, value: address }) }) : null,
28
+ iconOnly ? null : /* @__PURE__ */ jsx(
29
+ EllipsizeBox,
30
+ {
31
+ disableSharedRef,
32
+ ellipsisPosition: "end",
33
+ width: "100%",
34
+ typographyProps: { fontSize: theme.typography.body1.fontSize },
35
+ children: name ?? address
36
+ }
37
+ ),
38
+ children,
39
+ showFavorite && address ? /* @__PURE__ */ jsx(FavoriteIconButton, { name, size: "small", value: address, valueType: "address", favorite: favoriteProp }) : null
40
+ ]
41
+ }
42
+ );
43
+ }
44
+ );
45
+ AddressRenderRowBox.displayName = "AddressRenderRowBox";
46
+ export {
47
+ AddressRenderRowBox
48
+ };
49
+ //# sourceMappingURL=RenderRowBox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/RenderRowBox.tsx"],"sourcesContent":["import { ListItemIcon, useTheme } from '@mui/material'\nimport { FlexBoxProps, FlexRow } from '@xylabs/react-flexbox'\nimport { Identicon } from '@xylabs/react-identicon'\nimport { useEvent } from '@xyo-network/react-event'\nimport { EllipsizeBox, useShareForwardedRef } from '@xyo-network/react-shared'\nimport { forwardRef } from 'react'\n\nimport { FavoriteIconButton } from './favorite'\n\nexport interface AddressRenderRowBoxProps extends FlexBoxProps {\n address?: string | null\n disableSharedRef?: boolean\n favorite?: boolean\n iconOnly?: boolean\n iconSize?: number\n icons?: boolean\n name?: string\n showFavorite?: boolean\n}\n\nexport const AddressRenderRowBox = forwardRef<HTMLElement, AddressRenderRowBoxProps>(\n (\n { address, children, disableSharedRef, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false, ...props },\n ref,\n ) => {\n const theme = useTheme()\n\n const sharedRef = useShareForwardedRef(ref)\n const [elementRef, dispatch] = useEvent(undefined, sharedRef)\n\n return (\n <FlexRow\n gap={2}\n justifyContent=\"flex-start\"\n ref={elementRef}\n onClick={() => {\n if (address) {\n dispatch('address', 'click', address)\n }\n }}\n {...props}\n >\n {icons && address ? (\n <ListItemIcon sx={{ minWidth: 0 }}>\n <Identicon size={iconSize} value={address} />\n </ListItemIcon>\n ) : null}\n {iconOnly ? null : (\n <EllipsizeBox\n disableSharedRef={disableSharedRef}\n ellipsisPosition={'end'}\n width=\"100%\"\n typographyProps={{ fontSize: theme.typography.body1.fontSize }}\n >\n {name ?? address}\n </EllipsizeBox>\n )}\n {children}\n {showFavorite && address ? (\n <FavoriteIconButton name={name} size={'small'} value={address} valueType={'address'} favorite={favoriteProp} />\n ) : null}\n </FlexRow>\n )\n },\n)\n\nAddressRenderRowBox.displayName = 'AddressRenderRowBox'\n"],"mappings":"AA+BM,SAaM,KAbN;AA/BN,SAAS,cAAc,gBAAgB;AACvC,SAAuB,eAAe;AACtC,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,cAAc,4BAA4B;AACnD,SAAS,kBAAkB;AAE3B,SAAS,0BAA0B;AAa5B,MAAM,sBAAsB;AAAA,EACjC,CACE,EAAE,SAAS,UAAU,kBAAkB,UAAU,eAAe,OAAO,UAAU,WAAW,IAAI,OAAO,MAAM,eAAe,OAAO,GAAG,MAAM,GAC5I,QACG;AACH,UAAM,QAAQ,SAAS;AAEvB,UAAM,YAAY,qBAAqB,GAAG;AAC1C,UAAM,CAAC,YAAY,QAAQ,IAAI,SAAS,QAAW,SAAS;AAE5D,WACE;AAAA,MAAC;AAAA;AAAA,QACC,KAAK;AAAA,QACL,gBAAe;AAAA,QACf,KAAK;AAAA,QACL,SAAS,MAAM;AACb,cAAI,SAAS;AACX,qBAAS,WAAW,SAAS,OAAO;AAAA,UACtC;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,mBAAS,UACR,oBAAC,gBAAa,IAAI,EAAE,UAAU,EAAE,GAC9B,8BAAC,aAAU,MAAM,UAAU,OAAO,SAAS,GAC7C,IACE;AAAA,UACH,WAAW,OACV;AAAA,YAAC;AAAA;AAAA,cACC;AAAA,cACA,kBAAkB;AAAA,cAClB,OAAM;AAAA,cACN,iBAAiB,EAAE,UAAU,MAAM,WAAW,MAAM,SAAS;AAAA,cAE5D,kBAAQ;AAAA;AAAA,UACX;AAAA,UAED;AAAA,UACA,gBAAgB,UACf,oBAAC,sBAAmB,MAAY,MAAM,SAAS,OAAO,SAAS,WAAW,WAAW,UAAU,cAAc,IAC3G;AAAA;AAAA;AAAA,IACN;AAAA,EAEJ;AACF;AAEA,oBAAoB,cAAc;","names":[]}
@@ -0,0 +1,81 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Account } from "@xyo-network/account";
3
+ import { useEvent } from "@xyo-network/react-event";
4
+ import { useState } from "react";
5
+ import { AddressRenderRowBox } from "./RenderRowBox";
6
+ const address = new Account({ phrase: "temp" }).address;
7
+ const StorybookEntry = {
8
+ argTypes: {},
9
+ component: AddressRenderRowBox,
10
+ parameters: {
11
+ docs: {
12
+ page: null
13
+ }
14
+ },
15
+ title: "address/render/AddressRenderRowBox"
16
+ };
17
+ const Template = (args) => {
18
+ const [ref] = useEvent((noun, verb, data) => {
19
+ console.log(`${noun}|${verb}|${data}`);
20
+ const parsedEvent = JSON.parse(data ?? "");
21
+ if (parsedEvent.favorite) {
22
+ setName(parsedEvent.name);
23
+ } else {
24
+ setName(void 0);
25
+ }
26
+ });
27
+ const [name, setName] = useState(args.name);
28
+ return /* @__PURE__ */ jsx(AddressRenderRowBox, { ...args, name, ref });
29
+ };
30
+ const Default = Template.bind({});
31
+ Default.args = {};
32
+ const WithAddress = Template.bind({});
33
+ WithAddress.args = {
34
+ address
35
+ };
36
+ const WithIcon = Template.bind({});
37
+ WithIcon.args = {
38
+ address,
39
+ icons: true
40
+ };
41
+ const WithIconOnly = Template.bind({});
42
+ WithIconOnly.args = {
43
+ address,
44
+ iconOnly: true,
45
+ icons: true
46
+ };
47
+ const WithFavorite = Template.bind({});
48
+ WithFavorite.args = {
49
+ address,
50
+ favorite: true,
51
+ icons: true,
52
+ showFavorite: true
53
+ };
54
+ const WithFavoriteAlias = Template.bind({});
55
+ WithFavoriteAlias.args = {
56
+ address,
57
+ favorite: true,
58
+ icons: true,
59
+ name: "My Name",
60
+ showFavorite: true
61
+ };
62
+ const WithChildren = Template.bind({});
63
+ WithChildren.args = {
64
+ address,
65
+ children: /* @__PURE__ */ jsx("span", { children: "[InsertedChild]" }),
66
+ favorite: true,
67
+ icons: true,
68
+ showFavorite: true
69
+ };
70
+ var RenderRowBox_stories_default = StorybookEntry;
71
+ export {
72
+ Default,
73
+ WithAddress,
74
+ WithChildren,
75
+ WithFavorite,
76
+ WithFavoriteAlias,
77
+ WithIcon,
78
+ WithIconOnly,
79
+ RenderRowBox_stories_default as default
80
+ };
81
+ //# sourceMappingURL=RenderRowBox.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/RenderRowBox.stories.tsx"],"sourcesContent":["import { Meta, StoryFn } from '@storybook/react'\nimport { Account } from '@xyo-network/account'\nimport { useEvent } from '@xyo-network/react-event'\nimport { useState } from 'react'\n\nimport { FavoriteItemEvent } from './lib'\nimport { AddressRenderRowBox } from './RenderRowBox'\n\nconst address = new Account({ phrase: 'temp' }).address\n\nconst StorybookEntry = {\n argTypes: {},\n component: AddressRenderRowBox,\n parameters: {\n docs: {\n page: null,\n },\n },\n title: 'address/render/AddressRenderRowBox',\n} as Meta<typeof AddressRenderRowBox>\n\nconst Template: StoryFn<typeof AddressRenderRowBox> = (args) => {\n const [ref] = useEvent<HTMLLIElement>((noun, verb, data) => {\n console.log(`${noun}|${verb}|${data}`)\n const parsedEvent = JSON.parse(data ?? '') as FavoriteItemEvent\n if (parsedEvent.favorite) {\n setName(parsedEvent.name)\n } else {\n setName(undefined)\n }\n })\n const [name, setName] = useState(args.name)\n return <AddressRenderRowBox {...args} name={name} ref={ref} />\n}\n\nconst Default = Template.bind({})\nDefault.args = {}\n\nconst WithAddress = Template.bind({})\nWithAddress.args = {\n address,\n}\n\nconst WithIcon = Template.bind({})\nWithIcon.args = {\n address,\n icons: true,\n}\n\nconst WithIconOnly = Template.bind({})\nWithIconOnly.args = {\n address,\n iconOnly: true,\n icons: true,\n}\n\nconst WithFavorite = Template.bind({})\nWithFavorite.args = {\n address,\n favorite: true,\n icons: true,\n showFavorite: true,\n}\n\nconst WithFavoriteAlias = Template.bind({})\nWithFavoriteAlias.args = {\n address,\n favorite: true,\n icons: true,\n name: 'My Name',\n showFavorite: true,\n}\n\nconst WithChildren = Template.bind({})\nWithChildren.args = {\n address,\n children: <span>{'[InsertedChild]'}</span>,\n favorite: true,\n icons: true,\n showFavorite: true,\n}\n\nexport { Default, WithAddress, WithChildren, WithFavorite, WithFavoriteAlias, WithIcon, WithIconOnly }\n\n// eslint-disable-next-line import/no-default-export\nexport default StorybookEntry\n"],"mappings":"AAgCS;AA/BT,SAAS,eAAe;AACxB,SAAS,gBAAgB;AACzB,SAAS,gBAAgB;AAGzB,SAAS,2BAA2B;AAEpC,MAAM,UAAU,IAAI,QAAQ,EAAE,QAAQ,OAAO,CAAC,EAAE;AAEhD,MAAM,iBAAiB;AAAA,EACrB,UAAU,CAAC;AAAA,EACX,WAAW;AAAA,EACX,YAAY;AAAA,IACV,MAAM;AAAA,MACJ,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,OAAO;AACT;AAEA,MAAM,WAAgD,CAAC,SAAS;AAC9D,QAAM,CAAC,GAAG,IAAI,SAAwB,CAAC,MAAM,MAAM,SAAS;AAC1D,YAAQ,IAAI,GAAG,IAAI,IAAI,IAAI,IAAI,IAAI,EAAE;AACrC,UAAM,cAAc,KAAK,MAAM,QAAQ,EAAE;AACzC,QAAI,YAAY,UAAU;AACxB,cAAQ,YAAY,IAAI;AAAA,IAC1B,OAAO;AACL,cAAQ,MAAS;AAAA,IACnB;AAAA,EACF,CAAC;AACD,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS,KAAK,IAAI;AAC1C,SAAO,oBAAC,uBAAqB,GAAG,MAAM,MAAY,KAAU;AAC9D;AAEA,MAAM,UAAU,SAAS,KAAK,CAAC,CAAC;AAChC,QAAQ,OAAO,CAAC;AAEhB,MAAM,cAAc,SAAS,KAAK,CAAC,CAAC;AACpC,YAAY,OAAO;AAAA,EACjB;AACF;AAEA,MAAM,WAAW,SAAS,KAAK,CAAC,CAAC;AACjC,SAAS,OAAO;AAAA,EACd;AAAA,EACA,OAAO;AACT;AAEA,MAAM,eAAe,SAAS,KAAK,CAAC,CAAC;AACrC,aAAa,OAAO;AAAA,EAClB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AACT;AAEA,MAAM,eAAe,SAAS,KAAK,CAAC,CAAC;AACrC,aAAa,OAAO;AAAA,EAClB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,cAAc;AAChB;AAEA,MAAM,oBAAoB,SAAS,KAAK,CAAC,CAAC;AAC1C,kBAAkB,OAAO;AAAA,EACvB;AAAA,EACA,UAAU;AAAA,EACV,OAAO;AAAA,EACP,MAAM;AAAA,EACN,cAAc;AAChB;AAEA,MAAM,eAAe,SAAS,KAAK,CAAC,CAAC;AACrC,aAAa,OAAO;AAAA,EAClB;AAAA,EACA,UAAU,oBAAC,UAAM,6BAAkB;AAAA,EACnC,UAAU;AAAA,EACV,OAAO;AAAA,EACP,cAAc;AAChB;AAKA,IAAO,+BAAQ;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteIconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/FavoriteIconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,eAAe,EAAU,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,EAAE,iBAAiB,EAAyB,MAAM,QAAQ,CAAA;AAKjE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,eAAe;IAC5E,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAA;IACxC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,kBAAkB,oIAqD9B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteIconButton.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/FavoriteIconButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,eAAe,EAAU,MAAM,eAAe,CAAA;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAKnD,OAAO,EAAE,iBAAiB,EAAyB,MAAM,QAAQ,CAAA;AAKjE,MAAM,WAAW,uBAAwB,SAAQ,YAAY,EAAE,eAAe;IAC5E,QAAQ,CAAC,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAA;IACxC,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAA;CAC9C;AAED,eAAO,MAAM,kBAAkB,oIAqD9B,CAAA"}
@@ -0,0 +1,70 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { IconButton, styled } from "@mui/material";
3
+ import { useEvent } from "@xyo-network/react-event";
4
+ import { useShareForwardedRef } from "@xyo-network/react-shared";
5
+ import { forwardRef, useEffect, useRef, useState } from "react";
6
+ import { generateFavoriteEvent } from "../lib";
7
+ import { FavoriteToggleSVG } from "./FavoriteToggleSVG";
8
+ import { popperId } from "./lib";
9
+ import { FavoritePopper } from "./Popper";
10
+ const FavoriteIconButton = forwardRef(
11
+ ({ children, favorite: favoriteProp, name, valueType, value, ...props }, ref) => {
12
+ const [openPopper, setOpenPopper] = useState(false);
13
+ const [favorite, setFavorite] = useState(favoriteProp);
14
+ useEffect(() => {
15
+ setFavorite(favoriteProp);
16
+ }, [favoriteProp]);
17
+ const sharedRef = useShareForwardedRef(ref);
18
+ const [buttonRef, dispatch] = useEvent(void 0, sharedRef);
19
+ const onConfirmFavorite = (name2, newFavoriteState) => {
20
+ const favoriteEvent = generateFavoriteEvent(!!newFavoriteState, valueType, value, name2);
21
+ dispatch("address", "favorite", JSON.stringify(favoriteEvent));
22
+ setFavorite(newFavoriteState);
23
+ setOpenPopper(false);
24
+ };
25
+ const starRef = useRef(null);
26
+ return /* @__PURE__ */ jsxs(
27
+ IconButtonCondensed,
28
+ {
29
+ "aria-describedby": popperId,
30
+ ref: buttonRef,
31
+ onClick: (event) => {
32
+ event.stopPropagation();
33
+ setOpenPopper(!openPopper);
34
+ },
35
+ onTouchStart: (event) => {
36
+ event.stopPropagation();
37
+ setOpenPopper(!openPopper);
38
+ },
39
+ onMouseDown: (e) => e.stopPropagation(),
40
+ sx: { lineHeight: 0, p: 0.25 },
41
+ ...props,
42
+ children: [
43
+ /* @__PURE__ */ jsx("span", { ref: starRef, children: /* @__PURE__ */ jsx(FavoriteToggleSVG, { favorite }) }),
44
+ /* @__PURE__ */ jsx(
45
+ FavoritePopper,
46
+ {
47
+ sx: { zIndex: 1301 },
48
+ name,
49
+ favorite,
50
+ favoriteRef: starRef,
51
+ open: openPopper,
52
+ onConfirmFavorite,
53
+ onClickAway: () => setOpenPopper(false)
54
+ }
55
+ ),
56
+ children
57
+ ]
58
+ }
59
+ );
60
+ }
61
+ );
62
+ FavoriteIconButton.displayName = "FavoriteIconButton";
63
+ const IconButtonCondensed = styled(IconButton, { name: "IconButtonCondensed" })(({ theme }) => ({
64
+ lineHeight: 0,
65
+ padding: theme.spacing(0.25)
66
+ }));
67
+ export {
68
+ FavoriteIconButton
69
+ };
70
+ //# sourceMappingURL=FavoriteIconButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/favorite/FavoriteIconButton.tsx"],"sourcesContent":["import { IconButton, IconButtonProps, styled } from '@mui/material'\nimport { WithChildren } from '@xylabs/react-shared'\nimport { useEvent } from '@xyo-network/react-event'\nimport { useShareForwardedRef } from '@xyo-network/react-shared'\nimport { forwardRef, useEffect, useRef, useState } from 'react'\n\nimport { FavoriteItemEvent, generateFavoriteEvent } from '../lib'\nimport { FavoriteToggleSVG } from './FavoriteToggleSVG'\nimport { popperId } from './lib'\nimport { FavoritePopper } from './Popper'\n\nexport interface FavoriteIconButtonProps extends WithChildren, IconButtonProps {\n favorite?: FavoriteItemEvent['favorite']\n name?: FavoriteItemEvent['name']\n value?: string\n valueType?: FavoriteItemEvent['favoriteType']\n}\n\nexport const FavoriteIconButton = forwardRef<HTMLButtonElement, FavoriteIconButtonProps>(\n ({ children, favorite: favoriteProp, name, valueType, value, ...props }, ref) => {\n const [openPopper, setOpenPopper] = useState(false)\n\n const [favorite, setFavorite] = useState(favoriteProp)\n useEffect(() => {\n setFavorite(favoriteProp)\n }, [favoriteProp])\n\n const sharedRef = useShareForwardedRef(ref)\n const [buttonRef, dispatch] = useEvent(undefined, sharedRef)\n\n const onConfirmFavorite = (name?: string, newFavoriteState?: boolean) => {\n const favoriteEvent = generateFavoriteEvent(!!newFavoriteState, valueType, value, name)\n dispatch('address', 'favorite', JSON.stringify(favoriteEvent))\n setFavorite(newFavoriteState)\n setOpenPopper(false)\n }\n\n const starRef = useRef<HTMLSpanElement>(null)\n\n return (\n <IconButtonCondensed\n aria-describedby={popperId}\n ref={buttonRef}\n onClick={(event) => {\n event.stopPropagation()\n setOpenPopper(!openPopper)\n }}\n onTouchStart={(event) => {\n event.stopPropagation()\n setOpenPopper(!openPopper)\n }}\n onMouseDown={(e) => e.stopPropagation()}\n sx={{ lineHeight: 0, p: 0.25 }}\n {...props}\n >\n <span ref={starRef}>\n <FavoriteToggleSVG favorite={favorite} />\n </span>\n <FavoritePopper\n sx={{ zIndex: 1301 }}\n name={name}\n favorite={favorite}\n favoriteRef={starRef}\n open={openPopper}\n onConfirmFavorite={onConfirmFavorite}\n onClickAway={() => setOpenPopper(false)}\n />\n {children}\n </IconButtonCondensed>\n )\n },\n)\n\nFavoriteIconButton.displayName = 'FavoriteIconButton'\n\nconst IconButtonCondensed = styled(IconButton, { name: 'IconButtonCondensed' })(({ theme }) => ({\n lineHeight: 0,\n padding: theme.spacing(0.25),\n}))\n"],"mappings":"AAwCM,SAgBI,KAhBJ;AAxCN,SAAS,YAA6B,cAAc;AAEpD,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AACrC,SAAS,YAAY,WAAW,QAAQ,gBAAgB;AAExD,SAA4B,6BAA6B;AACzD,SAAS,yBAAyB;AAClC,SAAS,gBAAgB;AACzB,SAAS,sBAAsB;AASxB,MAAM,qBAAqB;AAAA,EAChC,CAAC,EAAE,UAAU,UAAU,cAAc,MAAM,WAAW,OAAO,GAAG,MAAM,GAAG,QAAQ;AAC/E,UAAM,CAAC,YAAY,aAAa,IAAI,SAAS,KAAK;AAElD,UAAM,CAAC,UAAU,WAAW,IAAI,SAAS,YAAY;AACrD,cAAU,MAAM;AACd,kBAAY,YAAY;AAAA,IAC1B,GAAG,CAAC,YAAY,CAAC;AAEjB,UAAM,YAAY,qBAAqB,GAAG;AAC1C,UAAM,CAAC,WAAW,QAAQ,IAAI,SAAS,QAAW,SAAS;AAE3D,UAAM,oBAAoB,CAACA,OAAe,qBAA+B;AACvE,YAAM,gBAAgB,sBAAsB,CAAC,CAAC,kBAAkB,WAAW,OAAOA,KAAI;AACtF,eAAS,WAAW,YAAY,KAAK,UAAU,aAAa,CAAC;AAC7D,kBAAY,gBAAgB;AAC5B,oBAAc,KAAK;AAAA,IACrB;AAEA,UAAM,UAAU,OAAwB,IAAI;AAE5C,WACE;AAAA,MAAC;AAAA;AAAA,QACC,oBAAkB;AAAA,QAClB,KAAK;AAAA,QACL,SAAS,CAAC,UAAU;AAClB,gBAAM,gBAAgB;AACtB,wBAAc,CAAC,UAAU;AAAA,QAC3B;AAAA,QACA,cAAc,CAAC,UAAU;AACvB,gBAAM,gBAAgB;AACtB,wBAAc,CAAC,UAAU;AAAA,QAC3B;AAAA,QACA,aAAa,CAAC,MAAM,EAAE,gBAAgB;AAAA,QACtC,IAAI,EAAE,YAAY,GAAG,GAAG,KAAK;AAAA,QAC5B,GAAG;AAAA,QAEJ;AAAA,8BAAC,UAAK,KAAK,SACT,8BAAC,qBAAkB,UAAoB,GACzC;AAAA,UACA;AAAA,YAAC;AAAA;AAAA,cACC,IAAI,EAAE,QAAQ,KAAK;AAAA,cACnB;AAAA,cACA;AAAA,cACA,aAAa;AAAA,cACb,MAAM;AAAA,cACN;AAAA,cACA,aAAa,MAAM,cAAc,KAAK;AAAA;AAAA,UACxC;AAAA,UACC;AAAA;AAAA;AAAA,IACH;AAAA,EAEJ;AACF;AAEA,mBAAmB,cAAc;AAEjC,MAAM,sBAAsB,OAAO,YAAY,EAAE,MAAM,sBAAsB,CAAC,EAAE,CAAC,EAAE,MAAM,OAAO;AAAA,EAC9F,YAAY;AAAA,EACZ,SAAS,MAAM,QAAQ,IAAI;AAC7B,EAAE;","names":["name"]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteToggleSVG.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/FavoriteToggleSVG.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAQ9D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteToggleSVG.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/FavoriteToggleSVG.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAQ9D,CAAA"}
@@ -0,0 +1,7 @@
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
+ import { Star as StarIcon, StarBorder as StarBorderIcon } from "@mui/icons-material";
3
+ const FavoriteToggleSVG = ({ favorite }) => /* @__PURE__ */ jsx(Fragment, { children: favorite ? /* @__PURE__ */ jsx(StarIcon, { className: "favorite-icon", component: "svg", color: "secondary", fontSize: "small" }) : /* @__PURE__ */ jsx(StarBorderIcon, { className: "favorite-icon", fontSize: "small" }) });
4
+ export {
5
+ FavoriteToggleSVG
6
+ };
7
+ //# sourceMappingURL=FavoriteToggleSVG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/favorite/FavoriteToggleSVG.tsx"],"sourcesContent":["import { Star as StarIcon, StarBorder as StarBorderIcon } from '@mui/icons-material'\n\nexport const FavoriteToggleSVG: React.FC<{ favorite?: boolean }> = ({ favorite }) => (\n <>\n {favorite ? (\n <StarIcon className=\"favorite-icon\" component={'svg'} color=\"secondary\" fontSize=\"small\" />\n ) : (\n <StarBorderIcon className=\"favorite-icon\" fontSize=\"small\" />\n )}\n </>\n)\n"],"mappings":"AAGE,mBAEI,WAFJ;AAHF,SAAS,QAAQ,UAAU,cAAc,sBAAsB;AAExD,MAAM,oBAAsD,CAAC,EAAE,SAAS,MAC7E,gCACG,qBACC,oBAAC,YAAS,WAAU,iBAAgB,WAAW,OAAO,OAAM,aAAY,UAAS,SAAQ,IAEzF,oBAAC,kBAAe,WAAU,iBAAgB,UAAS,SAAQ,GAE/D;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/Popper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsD,WAAW,EAAqB,MAAM,eAAe,CAAA;AAClH,OAAO,EAAc,SAAS,EAAuB,MAAM,OAAO,CAAA;AAKlE,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAA;IACtD,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CACxE;AACD,eAAO,MAAM,cAAc,6HAmD1B,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Popper.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/Popper.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAsD,WAAW,EAAqB,MAAM,eAAe,CAAA;AAClH,OAAO,EAAc,SAAS,EAAuB,MAAM,OAAO,CAAA;AAKlE,MAAM,WAAW,mBAAoB,SAAQ,WAAW;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,KAAK,IAAI,CAAA;IACtD,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CACxE;AACD,eAAO,MAAM,cAAc,6HAmD1B,CAAA"}
@@ -0,0 +1,54 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Card, CardContent, ClickAwayListener, Fade, Popper, styled, TextField } from "@mui/material";
3
+ import { forwardRef, useEffect, useState } from "react";
4
+ import { popperId } from "./lib";
5
+ import { PopperButtonGroup } from "./PopperButtonGroup";
6
+ const FavoritePopper = forwardRef(
7
+ ({
8
+ name: nameProp,
9
+ favorite,
10
+ favoriteRef,
11
+ onClickAway = () => {
12
+ return;
13
+ },
14
+ onConfirmFavorite,
15
+ ...props
16
+ }, ref) => {
17
+ const [name, setName] = useState(nameProp);
18
+ useEffect(() => {
19
+ setName(nameProp);
20
+ }, [nameProp]);
21
+ return /* @__PURE__ */ jsx(ClickAwayListener, { onClickAway, children: /* @__PURE__ */ jsx(
22
+ PopperStyled,
23
+ {
24
+ id: popperId,
25
+ anchorEl: favoriteRef?.current,
26
+ onClick: (e) => e.stopPropagation(),
27
+ onTouchStart: (e) => e.stopPropagation(),
28
+ transition: true,
29
+ ref,
30
+ ...props,
31
+ children: ({ TransitionProps }) => /* @__PURE__ */ jsx(Fade, { ...TransitionProps, timeout: 350, children: /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { sx: { display: "flex", gap: 1 }, children: [
32
+ /* @__PURE__ */ jsx(
33
+ TextField,
34
+ {
35
+ autoFocus: true,
36
+ label: "Favorite Name",
37
+ placeholder: "optional",
38
+ size: "small",
39
+ value: name ?? "",
40
+ onChange: (e) => setName(e.target.value)
41
+ }
42
+ ),
43
+ /* @__PURE__ */ jsx(PopperButtonGroup, { favorite, onConfirmFavorite, name })
44
+ ] }) }) })
45
+ }
46
+ ) });
47
+ }
48
+ );
49
+ FavoritePopper.displayName = "FavoritePopper";
50
+ const PopperStyled = styled(Popper, { name: "PopperStyled" })(() => ({ zIndex: 9999 }));
51
+ export {
52
+ FavoritePopper
53
+ };
54
+ //# sourceMappingURL=Popper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/favorite/Popper.tsx"],"sourcesContent":["import { Card, CardContent, ClickAwayListener, Fade, Popper, PopperProps, styled, TextField } from '@mui/material'\nimport { forwardRef, RefObject, useEffect, useState } from 'react'\n\nimport { popperId } from './lib'\nimport { PopperButtonGroup } from './PopperButtonGroup'\n\nexport interface FavoritePopperProps extends PopperProps {\n favorite?: boolean\n favoriteRef?: RefObject<HTMLElement>\n name?: string\n onClickAway?: (event: MouseEvent | TouchEvent) => void\n onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void\n}\nexport const FavoritePopper = forwardRef<HTMLDivElement, FavoritePopperProps>(\n (\n {\n name: nameProp,\n favorite,\n favoriteRef,\n onClickAway = () => {\n return\n },\n onConfirmFavorite,\n ...props\n },\n ref,\n ) => {\n const [name, setName] = useState(nameProp)\n useEffect(() => {\n setName(nameProp)\n }, [nameProp])\n\n return (\n <ClickAwayListener onClickAway={onClickAway}>\n <PopperStyled\n id={popperId}\n anchorEl={favoriteRef?.current}\n onClick={(e) => e.stopPropagation()}\n onTouchStart={(e) => e.stopPropagation()}\n transition\n ref={ref}\n {...props}\n >\n {({ TransitionProps }) => (\n <Fade {...TransitionProps} timeout={350}>\n <Card>\n <CardContent sx={{ display: 'flex', gap: 1 }}>\n <TextField\n autoFocus\n label=\"Favorite Name\"\n placeholder=\"optional\"\n size=\"small\"\n value={name ?? ''}\n onChange={(e) => setName(e.target.value)}\n />\n <PopperButtonGroup favorite={favorite} onConfirmFavorite={onConfirmFavorite} name={name} />\n </CardContent>\n </Card>\n </Fade>\n )}\n </PopperStyled>\n </ClickAwayListener>\n )\n },\n)\n\nFavoritePopper.displayName = 'FavoritePopper'\n\n// Ensure the popper is over all other mui portal elements\nconst PopperStyled = styled(Popper, { name: 'PopperStyled' })(() => ({ zIndex: 9999 }))\n"],"mappings":"AA8CgB,SACE,KADF;AA9ChB,SAAS,MAAM,aAAa,mBAAmB,MAAM,QAAqB,QAAQ,iBAAiB;AACnG,SAAS,YAAuB,WAAW,gBAAgB;AAE3D,SAAS,gBAAgB;AACzB,SAAS,yBAAyB;AAS3B,MAAM,iBAAiB;AAAA,EAC5B,CACE;AAAA,IACE,MAAM;AAAA,IACN;AAAA,IACA;AAAA,IACA,cAAc,MAAM;AAClB;AAAA,IACF;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GACA,QACG;AACH,UAAM,CAAC,MAAM,OAAO,IAAI,SAAS,QAAQ;AACzC,cAAU,MAAM;AACd,cAAQ,QAAQ;AAAA,IAClB,GAAG,CAAC,QAAQ,CAAC;AAEb,WACE,oBAAC,qBAAkB,aACjB;AAAA,MAAC;AAAA;AAAA,QACC,IAAI;AAAA,QACJ,UAAU,aAAa;AAAA,QACvB,SAAS,CAAC,MAAM,EAAE,gBAAgB;AAAA,QAClC,cAAc,CAAC,MAAM,EAAE,gBAAgB;AAAA,QACvC,YAAU;AAAA,QACV;AAAA,QACC,GAAG;AAAA,QAEH,WAAC,EAAE,gBAAgB,MAClB,oBAAC,QAAM,GAAG,iBAAiB,SAAS,KAClC,8BAAC,QACC,+BAAC,eAAY,IAAI,EAAE,SAAS,QAAQ,KAAK,EAAE,GACzC;AAAA;AAAA,YAAC;AAAA;AAAA,cACC,WAAS;AAAA,cACT,OAAM;AAAA,cACN,aAAY;AAAA,cACZ,MAAK;AAAA,cACL,OAAO,QAAQ;AAAA,cACf,UAAU,CAAC,MAAM,QAAQ,EAAE,OAAO,KAAK;AAAA;AAAA,UACzC;AAAA,UACA,oBAAC,qBAAkB,UAAoB,mBAAsC,MAAY;AAAA,WAC3F,GACF,GACF;AAAA;AAAA,IAEJ,GACF;AAAA,EAEJ;AACF;AAEA,eAAe,cAAc;AAG7B,MAAM,eAAe,OAAO,QAAQ,EAAE,MAAM,eAAe,CAAC,EAAE,OAAO,EAAE,QAAQ,KAAK,EAAE;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopperButtonGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/PopperButtonGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2B3D,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopperButtonGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/PopperButtonGroup.tsx"],"names":[],"mappings":";AACA,OAAO,EAAuB,gBAAgB,EAAE,MAAM,eAAe,CAAA;AAErE,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,iBAAiB,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;CACxE;AAED,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2B3D,CAAA"}
@@ -0,0 +1,35 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { Delete as DeleteIcon, Star as StarIcon } from "@mui/icons-material";
3
+ import { Button, ButtonGroup } from "@mui/material";
4
+ const PopperButtonGroup = ({ name, onConfirmFavorite, favorite, ...props }) => {
5
+ return /* @__PURE__ */ jsxs(ButtonGroup, { ...props, children: [
6
+ /* @__PURE__ */ jsx(
7
+ Button,
8
+ {
9
+ title: "Save Favorite",
10
+ variant: "contained",
11
+ onClick: (e) => {
12
+ e.stopPropagation();
13
+ onConfirmFavorite?.(name, true);
14
+ },
15
+ children: /* @__PURE__ */ jsx(StarIcon, {})
16
+ }
17
+ ),
18
+ favorite ? /* @__PURE__ */ jsx(
19
+ Button,
20
+ {
21
+ title: "Remove Favorite",
22
+ variant: "contained",
23
+ onClick: (e) => {
24
+ e.stopPropagation();
25
+ onConfirmFavorite?.(name, false);
26
+ },
27
+ children: /* @__PURE__ */ jsx(DeleteIcon, {})
28
+ }
29
+ ) : null
30
+ ] });
31
+ };
32
+ export {
33
+ PopperButtonGroup
34
+ };
35
+ //# sourceMappingURL=PopperButtonGroup.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/favorite/PopperButtonGroup.tsx"],"sourcesContent":["import { Delete as DeleteIcon, Star as StarIcon } from '@mui/icons-material'\nimport { Button, ButtonGroup, ButtonGroupProps } from '@mui/material'\n\nexport interface FavoritePopperProps extends ButtonGroupProps {\n favorite?: boolean\n name?: string\n onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void\n}\n\nexport const PopperButtonGroup: React.FC<FavoritePopperProps> = ({ name, onConfirmFavorite, favorite, ...props }) => {\n return (\n <ButtonGroup {...props}>\n <Button\n title=\"Save Favorite\"\n variant=\"contained\"\n onClick={(e) => {\n e.stopPropagation()\n onConfirmFavorite?.(name, true)\n }}\n >\n <StarIcon />\n </Button>\n {favorite ? (\n <Button\n title=\"Remove Favorite\"\n variant=\"contained\"\n onClick={(e) => {\n e.stopPropagation()\n onConfirmFavorite?.(name, false)\n }}\n >\n <DeleteIcon />\n </Button>\n ) : null}\n </ButtonGroup>\n )\n}\n"],"mappings":"AAWI,SASI,KATJ;AAXJ,SAAS,UAAU,YAAY,QAAQ,gBAAgB;AACvD,SAAS,QAAQ,mBAAqC;AAQ/C,MAAM,oBAAmD,CAAC,EAAE,MAAM,mBAAmB,UAAU,GAAG,MAAM,MAAM;AACnH,SACE,qBAAC,eAAa,GAAG,OACf;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAQ;AAAA,QACR,SAAS,CAAC,MAAM;AACd,YAAE,gBAAgB;AAClB,8BAAoB,MAAM,IAAI;AAAA,QAChC;AAAA,QAEA,8BAAC,YAAS;AAAA;AAAA,IACZ;AAAA,IACC,WACC;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAQ;AAAA,QACR,SAAS,CAAC,MAAM;AACd,YAAE,gBAAgB;AAClB,8BAAoB,MAAM,KAAK;AAAA,QACjC;AAAA,QAEA,8BAAC,cAAW;AAAA;AAAA,IACd,IACE;AAAA,KACN;AAEJ;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/favorite/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./FavoriteIconButton";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/favorite/index.ts"],"sourcesContent":["export * from './FavoriteIconButton'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopperId.d.ts","sourceRoot":"","sources":["../../../../../src/components/favorite/lib/PopperId.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,oBAAoB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PopperId.d.ts","sourceRoot":"","sources":["../../../../../src/components/favorite/lib/PopperId.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,oBAAoB,CAAA"}
@@ -0,0 +1,5 @@
1
+ const popperId = "favorite-popper";
2
+ export {
3
+ popperId
4
+ };
5
+ //# sourceMappingURL=PopperId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/favorite/lib/PopperId.ts"],"sourcesContent":["export const popperId = 'favorite-popper'\n"],"mappings":"AAAO,MAAM,WAAW;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/favorite/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/favorite/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./PopperId";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../src/components/favorite/lib/index.ts"],"sourcesContent":["export * from './PopperId'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,OAAO,CAAA;AACrB,cAAc,gBAAgB,CAAA"}
@@ -0,0 +1,4 @@
1
+ export * from "./favorite";
2
+ export * from "./lib";
3
+ export * from "./RenderRowBox";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/components/index.ts"],"sourcesContent":["export * from './favorite'\nexport * from './lib'\nexport * from './RenderRowBox'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteItemEvent.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/FavoriteItemEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAExD,eAAO,MAAM,qBAAqB,cAAe,OAAO,iBAAiB,YAAY,kBAAkB,MAAM,SAAS,MAAM,KAAG,iBAK7H,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FavoriteItemEvent.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/FavoriteItemEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAA;AAExD,eAAO,MAAM,qBAAqB,cAAe,OAAO,iBAAiB,YAAY,kBAAkB,MAAM,SAAS,MAAM,KAAG,iBAK7H,CAAA"}
@@ -0,0 +1,10 @@
1
+ const generateFavoriteEvent = (favorite, favoriteType, favoriteValue, name) => ({
2
+ favorite: !!favorite,
3
+ favoriteType,
4
+ favoriteValue,
5
+ name
6
+ });
7
+ export {
8
+ generateFavoriteEvent
9
+ };
10
+ //# sourceMappingURL=FavoriteItemEvent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/lib/FavoriteItemEvent.ts"],"sourcesContent":["export interface FavoriteItemEvent {\n favorite?: boolean\n favoriteType?: FavoriteType\n favoriteValue?: string\n name?: string\n}\n\nexport type FavoriteType = 'address' | 'schema' | 'hash'\n\nexport const generateFavoriteEvent = (favorite?: boolean, favoriteType?: FavoriteType, favoriteValue?: string, name?: string): FavoriteItemEvent => ({\n favorite: !!favorite,\n favoriteType,\n favoriteValue,\n name,\n})\n"],"mappings":"AASO,MAAM,wBAAwB,CAAC,UAAoB,cAA6B,eAAwB,UAAsC;AAAA,EACnJ,UAAU,CAAC,CAAC;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AACF;","names":[]}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from "./FavoriteItemEvent";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/components/lib/index.ts"],"sourcesContent":["export * from './FavoriteItemEvent'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
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.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from './components'\n"],"mappings":"AAAA,cAAc;","names":[]}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ export interface AddressRenderRowBoxProps extends FlexBoxProps {
4
+ address?: string | null;
5
+ disableSharedRef?: boolean;
6
+ favorite?: boolean;
7
+ iconOnly?: boolean;
8
+ iconSize?: number;
9
+ icons?: boolean;
10
+ name?: string;
11
+ showFavorite?: boolean;
12
+ }
13
+ export declare const AddressRenderRowBox: import("react").ForwardRefExoticComponent<AddressRenderRowBoxProps & import("react").RefAttributes<HTMLElement>>;
14
+ //# sourceMappingURL=RenderRowBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderRowBox.d.ts","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAQ7D,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,kHA4C/B,CAAA"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ import { FlexBoxProps } from '@xylabs/react-flexbox';
3
+ export interface AddressRenderRowBoxProps extends FlexBoxProps {
4
+ address?: string | null;
5
+ disableSharedRef?: boolean;
6
+ favorite?: boolean;
7
+ iconOnly?: boolean;
8
+ iconSize?: number;
9
+ icons?: boolean;
10
+ name?: string;
11
+ showFavorite?: boolean;
12
+ }
13
+ export declare const AddressRenderRowBox: import("react").ForwardRefExoticComponent<AddressRenderRowBoxProps & import("react").RefAttributes<HTMLElement>>;
14
+ //# sourceMappingURL=RenderRowBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RenderRowBox.d.ts","sourceRoot":"","sources":["../../../src/components/RenderRowBox.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAW,MAAM,uBAAuB,CAAA;AAQ7D,MAAM,WAAW,wBAAyB,SAAQ,YAAY;IAC5D,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,OAAO,CAAA;CACvB;AAED,eAAO,MAAM,mBAAmB,kHA4C/B,CAAA"}