@xyo-network/react-address-render 2.75.6 → 2.76.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/dist/neutral/components/RenderRowBox.d.cts +14 -0
  2. package/dist/neutral/components/RenderRowBox.d.cts.map +1 -0
  3. package/dist/neutral/components/RenderRowBox.d.mts +14 -0
  4. package/dist/neutral/components/RenderRowBox.d.mts.map +1 -0
  5. package/dist/neutral/components/RenderRowBox.d.ts +14 -0
  6. package/dist/neutral/components/RenderRowBox.d.ts.map +1 -0
  7. package/dist/neutral/components/favorite/FavoriteIconButton.d.cts +12 -0
  8. package/dist/neutral/components/favorite/FavoriteIconButton.d.cts.map +1 -0
  9. package/dist/neutral/components/favorite/FavoriteIconButton.d.mts +12 -0
  10. package/dist/neutral/components/favorite/FavoriteIconButton.d.mts.map +1 -0
  11. package/dist/neutral/components/favorite/FavoriteIconButton.d.ts +12 -0
  12. package/dist/neutral/components/favorite/FavoriteIconButton.d.ts.map +1 -0
  13. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.cts +5 -0
  14. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.cts.map +1 -0
  15. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.mts +5 -0
  16. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.mts.map +1 -0
  17. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.ts +5 -0
  18. package/dist/neutral/components/favorite/FavoriteToggleSVG.d.ts.map +1 -0
  19. package/dist/neutral/components/favorite/Popper.d.cts +11 -0
  20. package/dist/neutral/components/favorite/Popper.d.cts.map +1 -0
  21. package/dist/neutral/components/favorite/Popper.d.mts +11 -0
  22. package/dist/neutral/components/favorite/Popper.d.mts.map +1 -0
  23. package/dist/neutral/components/favorite/Popper.d.ts +11 -0
  24. package/dist/neutral/components/favorite/Popper.d.ts.map +1 -0
  25. package/dist/neutral/components/favorite/PopperButtonGroup.d.cts +9 -0
  26. package/dist/neutral/components/favorite/PopperButtonGroup.d.cts.map +1 -0
  27. package/dist/neutral/components/favorite/PopperButtonGroup.d.mts +9 -0
  28. package/dist/neutral/components/favorite/PopperButtonGroup.d.mts.map +1 -0
  29. package/dist/neutral/components/favorite/PopperButtonGroup.d.ts +9 -0
  30. package/dist/neutral/components/favorite/PopperButtonGroup.d.ts.map +1 -0
  31. package/dist/neutral/components/favorite/index.d.cts +2 -0
  32. package/dist/neutral/components/favorite/index.d.cts.map +1 -0
  33. package/dist/neutral/components/favorite/index.d.mts +2 -0
  34. package/dist/neutral/components/favorite/index.d.mts.map +1 -0
  35. package/dist/neutral/components/favorite/index.d.ts +2 -0
  36. package/dist/neutral/components/favorite/index.d.ts.map +1 -0
  37. package/dist/neutral/components/favorite/lib/PopperId.d.cts +2 -0
  38. package/dist/neutral/components/favorite/lib/PopperId.d.cts.map +1 -0
  39. package/dist/neutral/components/favorite/lib/PopperId.d.mts +2 -0
  40. package/dist/neutral/components/favorite/lib/PopperId.d.mts.map +1 -0
  41. package/dist/neutral/components/favorite/lib/PopperId.d.ts +2 -0
  42. package/dist/neutral/components/favorite/lib/PopperId.d.ts.map +1 -0
  43. package/dist/neutral/components/favorite/lib/index.d.cts +2 -0
  44. package/dist/neutral/components/favorite/lib/index.d.cts.map +1 -0
  45. package/dist/neutral/components/favorite/lib/index.d.mts +2 -0
  46. package/dist/neutral/components/favorite/lib/index.d.mts.map +1 -0
  47. package/dist/neutral/components/favorite/lib/index.d.ts +2 -0
  48. package/dist/neutral/components/favorite/lib/index.d.ts.map +1 -0
  49. package/dist/neutral/components/index.d.cts +4 -0
  50. package/dist/neutral/components/index.d.cts.map +1 -0
  51. package/dist/neutral/components/index.d.mts +4 -0
  52. package/dist/neutral/components/index.d.mts.map +1 -0
  53. package/dist/neutral/components/index.d.ts +4 -0
  54. package/dist/neutral/components/index.d.ts.map +1 -0
  55. package/dist/neutral/components/lib/FavoriteItemEvent.d.cts +9 -0
  56. package/dist/neutral/components/lib/FavoriteItemEvent.d.cts.map +1 -0
  57. package/dist/neutral/components/lib/FavoriteItemEvent.d.mts +9 -0
  58. package/dist/neutral/components/lib/FavoriteItemEvent.d.mts.map +1 -0
  59. package/dist/neutral/components/lib/FavoriteItemEvent.d.ts +9 -0
  60. package/dist/neutral/components/lib/FavoriteItemEvent.d.ts.map +1 -0
  61. package/dist/neutral/components/lib/index.d.cts +2 -0
  62. package/dist/neutral/components/lib/index.d.cts.map +1 -0
  63. package/dist/neutral/components/lib/index.d.mts +2 -0
  64. package/dist/neutral/components/lib/index.d.mts.map +1 -0
  65. package/dist/neutral/components/lib/index.d.ts +2 -0
  66. package/dist/neutral/components/lib/index.d.ts.map +1 -0
  67. package/dist/neutral/index.cjs +241 -0
  68. package/dist/neutral/index.cjs.map +1 -0
  69. package/dist/neutral/index.d.cts +2 -0
  70. package/dist/neutral/index.d.cts.map +1 -0
  71. package/dist/neutral/index.d.mts +2 -0
  72. package/dist/neutral/index.d.mts.map +1 -0
  73. package/dist/neutral/index.d.ts +2 -0
  74. package/dist/neutral/index.d.ts.map +1 -0
  75. package/dist/neutral/index.js +218 -0
  76. package/dist/neutral/index.js.map +1 -0
  77. package/package.json +10 -10
@@ -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"}
@@ -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,12 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps } from '@mui/material';
3
+ import { WithChildren } from '@xylabs/react-shared';
4
+ import { FavoriteItemEvent } from '../lib';
5
+ export interface FavoriteIconButtonProps extends WithChildren, IconButtonProps {
6
+ favorite?: FavoriteItemEvent['favorite'];
7
+ name?: FavoriteItemEvent['name'];
8
+ value?: string;
9
+ valueType?: FavoriteItemEvent['favoriteType'];
10
+ }
11
+ export declare const FavoriteIconButton: import("react").ForwardRefExoticComponent<Omit<FavoriteIconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ //# sourceMappingURL=FavoriteIconButton.d.ts.map
@@ -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,12 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps } from '@mui/material';
3
+ import { WithChildren } from '@xylabs/react-shared';
4
+ import { FavoriteItemEvent } from '../lib';
5
+ export interface FavoriteIconButtonProps extends WithChildren, IconButtonProps {
6
+ favorite?: FavoriteItemEvent['favorite'];
7
+ name?: FavoriteItemEvent['name'];
8
+ value?: string;
9
+ valueType?: FavoriteItemEvent['favoriteType'];
10
+ }
11
+ export declare const FavoriteIconButton: import("react").ForwardRefExoticComponent<Omit<FavoriteIconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ //# sourceMappingURL=FavoriteIconButton.d.ts.map
@@ -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,12 @@
1
+ /// <reference types="react" />
2
+ import { IconButtonProps } from '@mui/material';
3
+ import { WithChildren } from '@xylabs/react-shared';
4
+ import { FavoriteItemEvent } from '../lib';
5
+ export interface FavoriteIconButtonProps extends WithChildren, IconButtonProps {
6
+ favorite?: FavoriteItemEvent['favorite'];
7
+ name?: FavoriteItemEvent['name'];
8
+ value?: string;
9
+ valueType?: FavoriteItemEvent['favoriteType'];
10
+ }
11
+ export declare const FavoriteIconButton: import("react").ForwardRefExoticComponent<Omit<FavoriteIconButtonProps, "ref"> & import("react").RefAttributes<HTMLButtonElement>>;
12
+ //# sourceMappingURL=FavoriteIconButton.d.ts.map
@@ -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,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FavoriteToggleSVG: React.FC<{
3
+ favorite?: boolean;
4
+ }>;
5
+ //# sourceMappingURL=FavoriteToggleSVG.d.ts.map
@@ -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,CAM9D,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FavoriteToggleSVG: React.FC<{
3
+ favorite?: boolean;
4
+ }>;
5
+ //# sourceMappingURL=FavoriteToggleSVG.d.ts.map
@@ -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,CAM9D,CAAA"}
@@ -0,0 +1,5 @@
1
+ /// <reference types="react" />
2
+ export declare const FavoriteToggleSVG: React.FC<{
3
+ favorite?: boolean;
4
+ }>;
5
+ //# sourceMappingURL=FavoriteToggleSVG.d.ts.map
@@ -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,CAM9D,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { PopperProps } from '@mui/material';
2
+ import { RefObject } from 'react';
3
+ export interface FavoritePopperProps extends PopperProps {
4
+ favorite?: boolean;
5
+ favoriteRef?: RefObject<HTMLElement>;
6
+ name?: string;
7
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
8
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
9
+ }
10
+ export declare const FavoritePopper: import("react").ForwardRefExoticComponent<Omit<FavoritePopperProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
+ //# sourceMappingURL=Popper.d.ts.map
@@ -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,11 @@
1
+ import { PopperProps } from '@mui/material';
2
+ import { RefObject } from 'react';
3
+ export interface FavoritePopperProps extends PopperProps {
4
+ favorite?: boolean;
5
+ favoriteRef?: RefObject<HTMLElement>;
6
+ name?: string;
7
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
8
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
9
+ }
10
+ export declare const FavoritePopper: import("react").ForwardRefExoticComponent<Omit<FavoritePopperProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
+ //# sourceMappingURL=Popper.d.ts.map
@@ -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,11 @@
1
+ import { PopperProps } from '@mui/material';
2
+ import { RefObject } from 'react';
3
+ export interface FavoritePopperProps extends PopperProps {
4
+ favorite?: boolean;
5
+ favoriteRef?: RefObject<HTMLElement>;
6
+ name?: string;
7
+ onClickAway?: (event: MouseEvent | TouchEvent) => void;
8
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
9
+ }
10
+ export declare const FavoritePopper: import("react").ForwardRefExoticComponent<Omit<FavoritePopperProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
11
+ //# sourceMappingURL=Popper.d.ts.map
@@ -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,9 @@
1
+ /// <reference types="react" />
2
+ import { ButtonGroupProps } from '@mui/material';
3
+ export interface FavoritePopperProps extends ButtonGroupProps {
4
+ favorite?: boolean;
5
+ name?: string;
6
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
7
+ }
8
+ export declare const PopperButtonGroup: React.FC<FavoritePopperProps>;
9
+ //# sourceMappingURL=PopperButtonGroup.d.ts.map
@@ -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,9 @@
1
+ /// <reference types="react" />
2
+ import { ButtonGroupProps } from '@mui/material';
3
+ export interface FavoritePopperProps extends ButtonGroupProps {
4
+ favorite?: boolean;
5
+ name?: string;
6
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
7
+ }
8
+ export declare const PopperButtonGroup: React.FC<FavoritePopperProps>;
9
+ //# sourceMappingURL=PopperButtonGroup.d.ts.map
@@ -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,9 @@
1
+ /// <reference types="react" />
2
+ import { ButtonGroupProps } from '@mui/material';
3
+ export interface FavoritePopperProps extends ButtonGroupProps {
4
+ favorite?: boolean;
5
+ name?: string;
6
+ onConfirmFavorite?: (name?: string, newFavoriteState?: boolean) => void;
7
+ }
8
+ export declare const PopperButtonGroup: React.FC<FavoritePopperProps>;
9
+ //# sourceMappingURL=PopperButtonGroup.d.ts.map
@@ -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,2 @@
1
+ export * from './FavoriteIconButton';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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.d.ts.map
@@ -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.d.ts.map
@@ -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 declare const popperId = "favorite-popper";
2
+ //# sourceMappingURL=PopperId.d.ts.map
@@ -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,2 @@
1
+ export declare const popperId = "favorite-popper";
2
+ //# sourceMappingURL=PopperId.d.ts.map
@@ -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,2 @@
1
+ export declare const popperId = "favorite-popper";
2
+ //# sourceMappingURL=PopperId.d.ts.map
@@ -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,2 @@
1
+ export * from './PopperId';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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.d.ts.map
@@ -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.d.ts.map
@@ -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,4 @@
1
+ export * from './favorite';
2
+ export * from './lib';
3
+ export * from './RenderRowBox';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,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.d.ts.map
@@ -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.d.ts.map
@@ -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,9 @@
1
+ export interface FavoriteItemEvent {
2
+ favorite?: boolean;
3
+ favoriteType?: FavoriteType;
4
+ favoriteValue?: string;
5
+ name?: string;
6
+ }
7
+ export type FavoriteType = 'address' | 'schema' | 'hash';
8
+ export declare const generateFavoriteEvent: (favorite?: boolean, favoriteType?: FavoriteType, favoriteValue?: string, name?: string) => FavoriteItemEvent;
9
+ //# sourceMappingURL=FavoriteItemEvent.d.ts.map
@@ -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,9 @@
1
+ export interface FavoriteItemEvent {
2
+ favorite?: boolean;
3
+ favoriteType?: FavoriteType;
4
+ favoriteValue?: string;
5
+ name?: string;
6
+ }
7
+ export type FavoriteType = 'address' | 'schema' | 'hash';
8
+ export declare const generateFavoriteEvent: (favorite?: boolean, favoriteType?: FavoriteType, favoriteValue?: string, name?: string) => FavoriteItemEvent;
9
+ //# sourceMappingURL=FavoriteItemEvent.d.ts.map
@@ -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,9 @@
1
+ export interface FavoriteItemEvent {
2
+ favorite?: boolean;
3
+ favoriteType?: FavoriteType;
4
+ favoriteValue?: string;
5
+ name?: string;
6
+ }
7
+ export type FavoriteType = 'address' | 'schema' | 'hash';
8
+ export declare const generateFavoriteEvent: (favorite?: boolean, favoriteType?: FavoriteType, favoriteValue?: string, name?: string) => FavoriteItemEvent;
9
+ //# sourceMappingURL=FavoriteItemEvent.d.ts.map
@@ -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,2 @@
1
+ export * from './FavoriteItemEvent';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -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.d.ts.map
@@ -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.d.ts.map
@@ -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,241 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ AddressRenderRowBox: () => AddressRenderRowBox,
24
+ FavoriteIconButton: () => FavoriteIconButton,
25
+ generateFavoriteEvent: () => generateFavoriteEvent
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+
29
+ // src/components/favorite/FavoriteIconButton.tsx
30
+ var import_material3 = require("@mui/material");
31
+ var import_react_event = require("@xyo-network/react-event");
32
+ var import_react_shared = require("@xyo-network/react-shared");
33
+ var import_react2 = require("react");
34
+
35
+ // src/components/lib/FavoriteItemEvent.ts
36
+ var generateFavoriteEvent = (favorite, favoriteType, favoriteValue, name) => ({
37
+ favorite: !!favorite,
38
+ favoriteType,
39
+ favoriteValue,
40
+ name
41
+ });
42
+
43
+ // src/components/favorite/FavoriteToggleSVG.tsx
44
+ var import_icons_material = require("@mui/icons-material");
45
+ var import_jsx_runtime = require("react/jsx-runtime");
46
+ var FavoriteToggleSVG = ({ favorite }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: favorite ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.Star, { className: "favorite-icon", component: "svg", color: "secondary", fontSize: "small" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_icons_material.StarBorder, { className: "favorite-icon", fontSize: "small" }) });
47
+
48
+ // src/components/favorite/lib/PopperId.ts
49
+ var popperId = "favorite-popper";
50
+
51
+ // src/components/favorite/Popper.tsx
52
+ var import_material2 = require("@mui/material");
53
+ var import_react = require("react");
54
+
55
+ // src/components/favorite/PopperButtonGroup.tsx
56
+ var import_icons_material2 = require("@mui/icons-material");
57
+ var import_material = require("@mui/material");
58
+ var import_jsx_runtime2 = require("react/jsx-runtime");
59
+ var PopperButtonGroup = ({ name, onConfirmFavorite, favorite, ...props }) => {
60
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_material.ButtonGroup, { ...props, children: [
61
+ /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
62
+ import_material.Button,
63
+ {
64
+ title: "Save Favorite",
65
+ variant: "contained",
66
+ onClick: (e) => {
67
+ e.stopPropagation();
68
+ onConfirmFavorite?.(name, true);
69
+ },
70
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons_material2.Star, {})
71
+ }
72
+ ),
73
+ favorite ? /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
74
+ import_material.Button,
75
+ {
76
+ title: "Remove Favorite",
77
+ variant: "contained",
78
+ onClick: (e) => {
79
+ e.stopPropagation();
80
+ onConfirmFavorite?.(name, false);
81
+ },
82
+ children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_icons_material2.Delete, {})
83
+ }
84
+ ) : null
85
+ ] });
86
+ };
87
+
88
+ // src/components/favorite/Popper.tsx
89
+ var import_jsx_runtime3 = require("react/jsx-runtime");
90
+ var FavoritePopper = (0, import_react.forwardRef)(
91
+ ({
92
+ name: nameProp,
93
+ favorite,
94
+ favoriteRef,
95
+ onClickAway = () => {
96
+ return;
97
+ },
98
+ onConfirmFavorite,
99
+ ...props
100
+ }, ref) => {
101
+ const [name, setName] = (0, import_react.useState)(nameProp);
102
+ (0, import_react.useEffect)(() => {
103
+ setName(nameProp);
104
+ }, [nameProp]);
105
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.ClickAwayListener, { onClickAway, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
106
+ PopperStyled,
107
+ {
108
+ id: popperId,
109
+ anchorEl: favoriteRef?.current,
110
+ onClick: (e) => e.stopPropagation(),
111
+ onTouchStart: (e) => e.stopPropagation(),
112
+ transition: true,
113
+ ref,
114
+ ...props,
115
+ children: ({ TransitionProps }) => /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.Fade, { ...TransitionProps, timeout: 350, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.Card, { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material2.CardContent, { sx: { display: "flex", gap: 1 }, children: [
116
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
117
+ import_material2.TextField,
118
+ {
119
+ autoFocus: true,
120
+ label: "Favorite Name",
121
+ placeholder: "optional",
122
+ size: "small",
123
+ value: name ?? "",
124
+ onChange: (e) => setName(e.target.value)
125
+ }
126
+ ),
127
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(PopperButtonGroup, { favorite, onConfirmFavorite, name })
128
+ ] }) }) })
129
+ }
130
+ ) });
131
+ }
132
+ );
133
+ FavoritePopper.displayName = "FavoritePopper";
134
+ var PopperStyled = (0, import_material2.styled)(import_material2.Popper, { name: "PopperStyled" })(() => ({ zIndex: 9999 }));
135
+
136
+ // src/components/favorite/FavoriteIconButton.tsx
137
+ var import_jsx_runtime4 = require("react/jsx-runtime");
138
+ var FavoriteIconButton = (0, import_react2.forwardRef)(
139
+ ({ children, favorite: favoriteProp, name, valueType, value, ...props }, ref) => {
140
+ const [openPopper, setOpenPopper] = (0, import_react2.useState)(false);
141
+ const [favorite, setFavorite] = (0, import_react2.useState)(favoriteProp);
142
+ (0, import_react2.useEffect)(() => {
143
+ setFavorite(favoriteProp);
144
+ }, [favoriteProp]);
145
+ const sharedRef = (0, import_react_shared.useShareForwardedRef)(ref);
146
+ const [buttonRef, dispatch] = (0, import_react_event.useEvent)(void 0, sharedRef);
147
+ const onConfirmFavorite = (name2, newFavoriteState) => {
148
+ const favoriteEvent = generateFavoriteEvent(!!newFavoriteState, valueType, value, name2);
149
+ dispatch("address", "favorite", JSON.stringify(favoriteEvent));
150
+ setFavorite(newFavoriteState);
151
+ setOpenPopper(false);
152
+ };
153
+ const starRef = (0, import_react2.useRef)(null);
154
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(
155
+ IconButtonCondensed,
156
+ {
157
+ "aria-describedby": popperId,
158
+ ref: buttonRef,
159
+ onClick: (event) => {
160
+ event.stopPropagation();
161
+ setOpenPopper(!openPopper);
162
+ },
163
+ onTouchStart: (event) => {
164
+ event.stopPropagation();
165
+ setOpenPopper(!openPopper);
166
+ },
167
+ onMouseDown: (e) => e.stopPropagation(),
168
+ sx: { lineHeight: 0, p: 0.25 },
169
+ ...props,
170
+ children: [
171
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { ref: starRef, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(FavoriteToggleSVG, { favorite }) }),
172
+ /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
173
+ FavoritePopper,
174
+ {
175
+ sx: { zIndex: 1301 },
176
+ name,
177
+ favorite,
178
+ favoriteRef: starRef,
179
+ open: openPopper,
180
+ onConfirmFavorite,
181
+ onClickAway: () => setOpenPopper(false)
182
+ }
183
+ ),
184
+ children
185
+ ]
186
+ }
187
+ );
188
+ }
189
+ );
190
+ FavoriteIconButton.displayName = "FavoriteIconButton";
191
+ var IconButtonCondensed = (0, import_material3.styled)(import_material3.IconButton, { name: "IconButtonCondensed" })(({ theme }) => ({
192
+ lineHeight: 0,
193
+ padding: theme.spacing(0.25)
194
+ }));
195
+
196
+ // src/components/RenderRowBox.tsx
197
+ var import_material4 = require("@mui/material");
198
+ var import_react_flexbox = require("@xylabs/react-flexbox");
199
+ var import_react_identicon = require("@xylabs/react-identicon");
200
+ var import_react_event2 = require("@xyo-network/react-event");
201
+ var import_react_shared2 = require("@xyo-network/react-shared");
202
+ var import_react3 = require("react");
203
+ var import_jsx_runtime5 = require("react/jsx-runtime");
204
+ var AddressRenderRowBox = (0, import_react3.forwardRef)(
205
+ ({ address, children, disableSharedRef, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false, ...props }, ref) => {
206
+ const theme = (0, import_material4.useTheme)();
207
+ const sharedRef = (0, import_react_shared2.useShareForwardedRef)(ref);
208
+ const [elementRef, dispatch] = (0, import_react_event2.useEvent)(void 0, sharedRef);
209
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
210
+ import_react_flexbox.FlexRow,
211
+ {
212
+ gap: 2,
213
+ justifyContent: "flex-start",
214
+ ref: elementRef,
215
+ onClick: () => {
216
+ if (address) {
217
+ dispatch("address", "click", address);
218
+ }
219
+ },
220
+ ...props,
221
+ children: [
222
+ icons && address ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.ListItemIcon, { sx: { minWidth: 0 }, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_react_identicon.Identicon, { size: iconSize, value: address }) }) : null,
223
+ iconOnly ? null : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
224
+ import_react_shared2.EllipsizeBox,
225
+ {
226
+ disableSharedRef,
227
+ ellipsisPosition: "end",
228
+ width: "100%",
229
+ typographyProps: { fontSize: theme.typography.body1.fontSize },
230
+ children: name ?? address
231
+ }
232
+ ),
233
+ children,
234
+ showFavorite && address ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(FavoriteIconButton, { name, size: "small", value: address, valueType: "address", favorite: favoriteProp }) : null
235
+ ]
236
+ }
237
+ );
238
+ }
239
+ );
240
+ AddressRenderRowBox.displayName = "AddressRenderRowBox";
241
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/index.ts","../../src/components/favorite/FavoriteIconButton.tsx","../../src/components/lib/FavoriteItemEvent.ts","../../src/components/favorite/FavoriteToggleSVG.tsx","../../src/components/favorite/lib/PopperId.ts","../../src/components/favorite/Popper.tsx","../../src/components/favorite/PopperButtonGroup.tsx","../../src/components/RenderRowBox.tsx"],"sourcesContent":["export * from './components'\n","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","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","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 : <StarBorderIcon className=\"favorite-icon\" fontSize=\"small\" />}\n </>\n)\n","export const popperId = 'favorite-popper'\n","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","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","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":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,IAAAA,mBAAoD;AAEpD,yBAAyB;AACzB,0BAAqC;AACrC,IAAAC,gBAAwD;;;ACKjD,IAAM,wBAAwB,CAAC,UAAoB,cAA6B,eAAwB,UAAsC;AAAA,EACnJ,UAAU,CAAC,CAAC;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AACF;;;ACdA,4BAA+D;AAG7D;AADK,IAAM,oBAAsD,CAAC,EAAE,SAAS,MAC7E,2EACG,qBACC,4CAAC,sBAAAC,MAAA,EAAS,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AAQ,2BAAS;AAEvB,UAAM,gBAAY,2CAAqB,GAAG;AAC1C,UAAM,CAAC,YAAY,QAAQ,QAAI,8BAAS,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,6CAAC,iCAAa,IAAI,EAAE,UAAU,EAAE,GAC9B,uDAAC,oCAAU,MAAM,UAAU,OAAO,SAAS,GAC7C,IACA;AAAA,UACD,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,6CAAC,sBAAmB,MAAY,MAAM,SAAS,OAAO,SAAS,WAAW,WAAW,UAAU,cAAc,IAC7G;AAAA;AAAA;AAAA,IACJ;AAAA,EAEJ;AACF;AAEA,oBAAoB,cAAc;","names":["import_material","import_react","StarIcon","StarBorderIcon","import_material","import_icons_material","import_jsx_runtime","StarIcon","DeleteIcon","import_jsx_runtime","import_jsx_runtime","name","import_material","import_react_event","import_react_shared","import_react","import_jsx_runtime"]}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,2 @@
1
+ export * from './components';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,218 @@
1
+ // src/components/favorite/FavoriteIconButton.tsx
2
+ import { IconButton, styled as styled2 } from "@mui/material";
3
+ import { useEvent } from "@xyo-network/react-event";
4
+ import { useShareForwardedRef } from "@xyo-network/react-shared";
5
+ import { forwardRef as forwardRef2, useEffect as useEffect2, useRef, useState as useState2 } from "react";
6
+
7
+ // src/components/lib/FavoriteItemEvent.ts
8
+ var generateFavoriteEvent = (favorite, favoriteType, favoriteValue, name) => ({
9
+ favorite: !!favorite,
10
+ favoriteType,
11
+ favoriteValue,
12
+ name
13
+ });
14
+
15
+ // src/components/favorite/FavoriteToggleSVG.tsx
16
+ import { Star as StarIcon, StarBorder as StarBorderIcon } from "@mui/icons-material";
17
+ import { Fragment, jsx } from "react/jsx-runtime";
18
+ var 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" }) });
19
+
20
+ // src/components/favorite/lib/PopperId.ts
21
+ var popperId = "favorite-popper";
22
+
23
+ // src/components/favorite/Popper.tsx
24
+ import { Card, CardContent, ClickAwayListener, Fade, Popper, styled, TextField } from "@mui/material";
25
+ import { forwardRef, useEffect, useState } from "react";
26
+
27
+ // src/components/favorite/PopperButtonGroup.tsx
28
+ import { Delete as DeleteIcon, Star as StarIcon2 } from "@mui/icons-material";
29
+ import { Button, ButtonGroup } from "@mui/material";
30
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
31
+ var PopperButtonGroup = ({ name, onConfirmFavorite, favorite, ...props }) => {
32
+ return /* @__PURE__ */ jsxs(ButtonGroup, { ...props, children: [
33
+ /* @__PURE__ */ jsx2(
34
+ Button,
35
+ {
36
+ title: "Save Favorite",
37
+ variant: "contained",
38
+ onClick: (e) => {
39
+ e.stopPropagation();
40
+ onConfirmFavorite?.(name, true);
41
+ },
42
+ children: /* @__PURE__ */ jsx2(StarIcon2, {})
43
+ }
44
+ ),
45
+ favorite ? /* @__PURE__ */ jsx2(
46
+ Button,
47
+ {
48
+ title: "Remove Favorite",
49
+ variant: "contained",
50
+ onClick: (e) => {
51
+ e.stopPropagation();
52
+ onConfirmFavorite?.(name, false);
53
+ },
54
+ children: /* @__PURE__ */ jsx2(DeleteIcon, {})
55
+ }
56
+ ) : null
57
+ ] });
58
+ };
59
+
60
+ // src/components/favorite/Popper.tsx
61
+ import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
62
+ var FavoritePopper = forwardRef(
63
+ ({
64
+ name: nameProp,
65
+ favorite,
66
+ favoriteRef,
67
+ onClickAway = () => {
68
+ return;
69
+ },
70
+ onConfirmFavorite,
71
+ ...props
72
+ }, ref) => {
73
+ const [name, setName] = useState(nameProp);
74
+ useEffect(() => {
75
+ setName(nameProp);
76
+ }, [nameProp]);
77
+ return /* @__PURE__ */ jsx3(ClickAwayListener, { onClickAway, children: /* @__PURE__ */ jsx3(
78
+ PopperStyled,
79
+ {
80
+ id: popperId,
81
+ anchorEl: favoriteRef?.current,
82
+ onClick: (e) => e.stopPropagation(),
83
+ onTouchStart: (e) => e.stopPropagation(),
84
+ transition: true,
85
+ ref,
86
+ ...props,
87
+ children: ({ TransitionProps }) => /* @__PURE__ */ jsx3(Fade, { ...TransitionProps, timeout: 350, children: /* @__PURE__ */ jsx3(Card, { children: /* @__PURE__ */ jsxs2(CardContent, { sx: { display: "flex", gap: 1 }, children: [
88
+ /* @__PURE__ */ jsx3(
89
+ TextField,
90
+ {
91
+ autoFocus: true,
92
+ label: "Favorite Name",
93
+ placeholder: "optional",
94
+ size: "small",
95
+ value: name ?? "",
96
+ onChange: (e) => setName(e.target.value)
97
+ }
98
+ ),
99
+ /* @__PURE__ */ jsx3(PopperButtonGroup, { favorite, onConfirmFavorite, name })
100
+ ] }) }) })
101
+ }
102
+ ) });
103
+ }
104
+ );
105
+ FavoritePopper.displayName = "FavoritePopper";
106
+ var PopperStyled = styled(Popper, { name: "PopperStyled" })(() => ({ zIndex: 9999 }));
107
+
108
+ // src/components/favorite/FavoriteIconButton.tsx
109
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
110
+ var FavoriteIconButton = forwardRef2(
111
+ ({ children, favorite: favoriteProp, name, valueType, value, ...props }, ref) => {
112
+ const [openPopper, setOpenPopper] = useState2(false);
113
+ const [favorite, setFavorite] = useState2(favoriteProp);
114
+ useEffect2(() => {
115
+ setFavorite(favoriteProp);
116
+ }, [favoriteProp]);
117
+ const sharedRef = useShareForwardedRef(ref);
118
+ const [buttonRef, dispatch] = useEvent(void 0, sharedRef);
119
+ const onConfirmFavorite = (name2, newFavoriteState) => {
120
+ const favoriteEvent = generateFavoriteEvent(!!newFavoriteState, valueType, value, name2);
121
+ dispatch("address", "favorite", JSON.stringify(favoriteEvent));
122
+ setFavorite(newFavoriteState);
123
+ setOpenPopper(false);
124
+ };
125
+ const starRef = useRef(null);
126
+ return /* @__PURE__ */ jsxs3(
127
+ IconButtonCondensed,
128
+ {
129
+ "aria-describedby": popperId,
130
+ ref: buttonRef,
131
+ onClick: (event) => {
132
+ event.stopPropagation();
133
+ setOpenPopper(!openPopper);
134
+ },
135
+ onTouchStart: (event) => {
136
+ event.stopPropagation();
137
+ setOpenPopper(!openPopper);
138
+ },
139
+ onMouseDown: (e) => e.stopPropagation(),
140
+ sx: { lineHeight: 0, p: 0.25 },
141
+ ...props,
142
+ children: [
143
+ /* @__PURE__ */ jsx4("span", { ref: starRef, children: /* @__PURE__ */ jsx4(FavoriteToggleSVG, { favorite }) }),
144
+ /* @__PURE__ */ jsx4(
145
+ FavoritePopper,
146
+ {
147
+ sx: { zIndex: 1301 },
148
+ name,
149
+ favorite,
150
+ favoriteRef: starRef,
151
+ open: openPopper,
152
+ onConfirmFavorite,
153
+ onClickAway: () => setOpenPopper(false)
154
+ }
155
+ ),
156
+ children
157
+ ]
158
+ }
159
+ );
160
+ }
161
+ );
162
+ FavoriteIconButton.displayName = "FavoriteIconButton";
163
+ var IconButtonCondensed = styled2(IconButton, { name: "IconButtonCondensed" })(({ theme }) => ({
164
+ lineHeight: 0,
165
+ padding: theme.spacing(0.25)
166
+ }));
167
+
168
+ // src/components/RenderRowBox.tsx
169
+ import { ListItemIcon, useTheme } from "@mui/material";
170
+ import { FlexRow } from "@xylabs/react-flexbox";
171
+ import { Identicon } from "@xylabs/react-identicon";
172
+ import { useEvent as useEvent2 } from "@xyo-network/react-event";
173
+ import { EllipsizeBox, useShareForwardedRef as useShareForwardedRef2 } from "@xyo-network/react-shared";
174
+ import { forwardRef as forwardRef3 } from "react";
175
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
176
+ var AddressRenderRowBox = forwardRef3(
177
+ ({ address, children, disableSharedRef, favorite: favoriteProp = false, iconOnly, iconSize = 24, icons, name, showFavorite = false, ...props }, ref) => {
178
+ const theme = useTheme();
179
+ const sharedRef = useShareForwardedRef2(ref);
180
+ const [elementRef, dispatch] = useEvent2(void 0, sharedRef);
181
+ return /* @__PURE__ */ jsxs4(
182
+ FlexRow,
183
+ {
184
+ gap: 2,
185
+ justifyContent: "flex-start",
186
+ ref: elementRef,
187
+ onClick: () => {
188
+ if (address) {
189
+ dispatch("address", "click", address);
190
+ }
191
+ },
192
+ ...props,
193
+ children: [
194
+ icons && address ? /* @__PURE__ */ jsx5(ListItemIcon, { sx: { minWidth: 0 }, children: /* @__PURE__ */ jsx5(Identicon, { size: iconSize, value: address }) }) : null,
195
+ iconOnly ? null : /* @__PURE__ */ jsx5(
196
+ EllipsizeBox,
197
+ {
198
+ disableSharedRef,
199
+ ellipsisPosition: "end",
200
+ width: "100%",
201
+ typographyProps: { fontSize: theme.typography.body1.fontSize },
202
+ children: name ?? address
203
+ }
204
+ ),
205
+ children,
206
+ showFavorite && address ? /* @__PURE__ */ jsx5(FavoriteIconButton, { name, size: "small", value: address, valueType: "address", favorite: favoriteProp }) : null
207
+ ]
208
+ }
209
+ );
210
+ }
211
+ );
212
+ AddressRenderRowBox.displayName = "AddressRenderRowBox";
213
+ export {
214
+ AddressRenderRowBox,
215
+ FavoriteIconButton,
216
+ generateFavoriteEvent
217
+ };
218
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/components/favorite/FavoriteIconButton.tsx","../../src/components/lib/FavoriteItemEvent.ts","../../src/components/favorite/FavoriteToggleSVG.tsx","../../src/components/favorite/lib/PopperId.ts","../../src/components/favorite/Popper.tsx","../../src/components/favorite/PopperButtonGroup.tsx","../../src/components/RenderRowBox.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","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","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 : <StarBorderIcon className=\"favorite-icon\" fontSize=\"small\" />}\n </>\n)\n","export const popperId = 'favorite-popper'\n","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","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","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":";AAAA,SAAS,YAA6B,UAAAA,eAAc;AAEpD,SAAS,gBAAgB;AACzB,SAAS,4BAA4B;AACrC,SAAS,cAAAC,aAAY,aAAAC,YAAW,QAAQ,YAAAC,iBAAgB;;;ACKjD,IAAM,wBAAwB,CAAC,UAAoB,cAA6B,eAAwB,UAAsC;AAAA,EACnJ,UAAU,CAAC,CAAC;AAAA,EACZ;AAAA,EACA;AAAA,EACA;AACF;;;ACdA,SAAS,QAAQ,UAAU,cAAc,sBAAsB;AAG7D,mBAEI,WAFJ;AADK,IAAM,oBAAsD,CAAC,EAAE,SAAS,MAC7E,gCACG,qBACC,oBAAC,YAAS,WAAU,iBAAgB,WAAW,OAAO,OAAM,aAAY,UAAS,SAAQ,IACzF,oBAAC,kBAAe,WAAU,iBAAgB,UAAS,SAAQ,GAC/D;;;ACPK,IAAM,WAAW;;;ACAxB,SAAS,MAAM,aAAa,mBAAmB,MAAM,QAAqB,QAAQ,iBAAiB;AACnG,SAAS,YAAuB,WAAW,gBAAgB;;;ACD3D,SAAS,UAAU,YAAY,QAAQC,iBAAgB;AACvD,SAAS,QAAQ,mBAAqC;AAUlD,SASI,OAAAC,MATJ;AAFG,IAAM,oBAAmD,CAAC,EAAE,MAAM,mBAAmB,UAAU,GAAG,MAAM,MAAM;AACnH,SACE,qBAAC,eAAa,GAAG,OACf;AAAA,oBAAAA;AAAA,MAAC;AAAA;AAAA,QACC,OAAM;AAAA,QACN,SAAQ;AAAA,QACR,SAAS,CAAC,MAAM;AACd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AAAA,UACtC;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEH;AAAA,mBAAS,UACR,gBAAAD,KAAC,gBAAa,IAAI,EAAE,UAAU,EAAE,GAC9B,0BAAAA,KAAC,aAAU,MAAM,UAAU,OAAO,SAAS,GAC7C,IACA;AAAA,UACD,WAAW,OACV,gBAAAA;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,gBAAAA,KAAC,sBAAmB,MAAY,MAAM,SAAS,OAAO,SAAS,WAAW,WAAW,UAAU,cAAc,IAC7G;AAAA;AAAA;AAAA,IACJ;AAAA,EAEJ;AACF;AAEA,oBAAoB,cAAc;","names":["styled","forwardRef","useEffect","useState","StarIcon","jsx","jsx","jsxs","jsx","jsxs","forwardRef","useState","useEffect","name","styled","useEvent","useShareForwardedRef","forwardRef","jsx","jsxs","forwardRef","useShareForwardedRef","useEvent"]}
package/package.json CHANGED
@@ -10,11 +10,11 @@
10
10
  "url": "https://github.com/XYOracleNetwork/sdk-xyo-react-js/issues"
11
11
  },
12
12
  "dependencies": {
13
- "@xylabs/react-flexbox": "^3.1.6",
14
- "@xylabs/react-identicon": "^3.1.6",
15
- "@xylabs/react-shared": "^3.1.6",
16
- "@xyo-network/react-event": "~2.75.6",
17
- "@xyo-network/react-shared": "~2.75.6"
13
+ "@xylabs/react-flexbox": "^3.1.7",
14
+ "@xylabs/react-identicon": "^3.1.7",
15
+ "@xylabs/react-shared": "^3.1.7",
16
+ "@xyo-network/react-event": "~2.76.0",
17
+ "@xyo-network/react-shared": "~2.76.0"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@mui/icons-material": "^5",
@@ -25,10 +25,10 @@
25
25
  },
26
26
  "description": "Common React library for all XYO projects that use React",
27
27
  "devDependencies": {
28
- "@storybook/react": "^7.6.18",
29
- "@xylabs/ts-scripts-yarn3": "^3.9.1",
30
- "@xylabs/tsconfig-react": "^3.9.1",
31
- "@xyo-network/account": "^2.99.1",
28
+ "@storybook/react": "^7.6.19",
29
+ "@xylabs/ts-scripts-yarn3": "^3.10.0",
30
+ "@xylabs/tsconfig-react": "^3.10.0",
31
+ "@xyo-network/account": "^2.99.3",
32
32
  "typescript": "^5.4.5"
33
33
  },
34
34
  "docs": "dist/docs.json",
@@ -81,6 +81,6 @@
81
81
  },
82
82
  "sideEffects": false,
83
83
  "types": "dist/browser/index.d.ts",
84
- "version": "2.75.6",
84
+ "version": "2.76.0",
85
85
  "type": "module"
86
86
  }