@it-holding-ui/atomic 6.1.0 → 6.2.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.
@@ -0,0 +1,9 @@
1
+ import { FacebookShareButton, TelegramShareButton, WhatsappShareButton } from 'react-share';
2
+ import { IcFacebook } from '@it-holding-ui/icons';
3
+ export declare type ShareItem = {
4
+ text: string;
5
+ component?: typeof FacebookShareButton | typeof TelegramShareButton | typeof WhatsappShareButton;
6
+ icon?: typeof IcFacebook;
7
+ };
8
+ export declare type ShareMethods = 'facebook' | 'whatsapp' | 'telegram' | 'gem4me';
9
+ export declare const shareConfig: Record<ShareMethods, ShareItem>;
@@ -0,0 +1,3 @@
1
+ import type { ITHShareMenuProps } from './ITHShareMenu.types';
2
+ import './ITHShareMenu.scss';
3
+ export declare const ITHShareMenu: ({ ShareButton, shareUrl, shareTitle, availableShareMethods, onItemClick, className, isMobile, copyTextLabel, copiedTextLabel, }: ITHShareMenuProps) => JSX.Element;
@@ -0,0 +1,15 @@
1
+ import { ShareMethods } from './ITHShareMenu.constants';
2
+ export declare type ITHShareMenuProps = {
3
+ ShareButton: ({ onClick, id }: {
4
+ onClick: () => void;
5
+ id: string;
6
+ }) => JSX.Element;
7
+ shareUrl: string;
8
+ availableShareMethods: ShareMethods[];
9
+ shareTitle?: string;
10
+ isMobile?: boolean;
11
+ copyTextLabel?: string;
12
+ copiedTextLabel?: string;
13
+ onItemClick?: (method: ShareMethods) => void;
14
+ className?: string;
15
+ };
@@ -0,0 +1 @@
1
+ export { ITHShareMenu } from './ITHShareMenu';
@@ -48,6 +48,7 @@ export type { ITHRangeProps } from './ITHRange';
48
48
  export { ITHRange } from './ITHRange';
49
49
  export type { ITHSearchbarProps } from './ITHSearchbar';
50
50
  export { ITHSearchbar } from './ITHSearchbar';
51
+ export { ITHShareMenu } from './ITHShareMenu';
51
52
  export type { ITHSheetCloseIcon, ITHSheetProps } from './ITHSheet';
52
53
  export { ITHSheet } from './ITHSheet';
53
54
  export type { ITHSideMenuItem } from './ITHSideMenu';