1 | import { CSSProperties } from 'react';
|
2 | import { FC } from 'react';
|
3 | import { ForwardRefExoticComponent } from 'react';
|
4 | import { HTMLAttributes } from 'react';
|
5 | import { JSX as JSX_2 } from 'react';
|
6 | import { default as React_2 } from 'react';
|
7 | import { ReactNode } from 'react';
|
8 | import { Ref } from 'react';
|
9 | import { RefAttributes } from 'react';
|
10 | import { SVGProps } from 'react';
|
11 |
|
12 | declare interface CustomProps<LinkOptions> {
|
13 | |
14 |
|
15 |
|
16 |
|
17 | beforeOnClick?: () => Promise<void> | void;
|
18 | children: React_2.ReactNode;
|
19 | className?: string;
|
20 |
|
21 | disabled?: boolean;
|
22 | |
23 |
|
24 |
|
25 |
|
26 | disabledStyle?: React_2.CSSProperties;
|
27 | forwardedRef?: Ref<HTMLButtonElement>;
|
28 | |
29 |
|
30 |
|
31 | htmlTitle?: HTMLButtonElement['title'];
|
32 | networkName: string;
|
33 | networkLink: NetworkLink<LinkOptions>;
|
34 | onClick?: (event: React_2.MouseEvent<HTMLButtonElement>, link: string) => void;
|
35 | |
36 |
|
37 |
|
38 | onShareWindowClose?: () => void;
|
39 | openShareDialogOnClick?: boolean;
|
40 | opts: LinkOptions;
|
41 | resetButtonStyle?: boolean;
|
42 | |
43 |
|
44 |
|
45 | url: string;
|
46 | style?: React_2.CSSProperties;
|
47 | windowWidth?: number;
|
48 | windowHeight?: number;
|
49 | windowPosition?: WindowPosition;
|
50 | }
|
51 |
|
52 | export declare const EmailIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
53 | bgStyle?: CSSProperties | undefined;
|
54 | borderRadius?: number | undefined;
|
55 | iconFillColor?: string | undefined;
|
56 | round?: boolean | undefined;
|
57 | size?: string | number | undefined;
|
58 | }>;
|
59 |
|
60 | export declare const EmailShareButton: ForwardRefExoticComponent<Omit<Props<Options>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & Options & RefAttributes<HTMLButtonElement>>;
|
61 |
|
62 | export declare const FacebookIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
63 | bgStyle?: CSSProperties | undefined;
|
64 | borderRadius?: number | undefined;
|
65 | iconFillColor?: string | undefined;
|
66 | round?: boolean | undefined;
|
67 | size?: string | number | undefined;
|
68 | }>;
|
69 |
|
70 | export declare const FacebookMessengerIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
71 | bgStyle?: CSSProperties | undefined;
|
72 | borderRadius?: number | undefined;
|
73 | iconFillColor?: string | undefined;
|
74 | round?: boolean | undefined;
|
75 | size?: string | number | undefined;
|
76 | }>;
|
77 |
|
78 | export declare const FacebookMessengerShareButton: ForwardRefExoticComponent<Omit<Props<Options_2>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & Options_2 & RefAttributes<HTMLButtonElement>>;
|
79 |
|
80 | export declare const FacebookShareButton: ForwardRefExoticComponent<Omit<Props<{
|
81 | hashtag?: string | undefined;
|
82 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
83 | hashtag?: string | undefined;
|
84 | } & RefAttributes<HTMLButtonElement>>;
|
85 |
|
86 | export declare const FacebookShareCount: {
|
87 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
88 | children?: ((shareCount: number) => ReactNode) | undefined;
|
89 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
90 | url: string;
|
91 | }, "getCount">): JSX_2.Element;
|
92 | displayName: string;
|
93 | };
|
94 |
|
95 | export declare const GabIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
96 | bgStyle?: CSSProperties | undefined;
|
97 | borderRadius?: number | undefined;
|
98 | iconFillColor?: string | undefined;
|
99 | round?: boolean | undefined;
|
100 | size?: string | number | undefined;
|
101 | }>;
|
102 |
|
103 | export declare const GabShareButton: ForwardRefExoticComponent<Omit<Props<{
|
104 | title?: string | undefined;
|
105 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
106 | title?: string | undefined;
|
107 | } & RefAttributes<HTMLButtonElement>>;
|
108 |
|
109 | export declare const HatenaIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
110 | bgStyle?: CSSProperties | undefined;
|
111 | borderRadius?: number | undefined;
|
112 | iconFillColor?: string | undefined;
|
113 | round?: boolean | undefined;
|
114 | size?: string | number | undefined;
|
115 | }>;
|
116 |
|
117 | export declare const HatenaShareButton: ForwardRefExoticComponent<Omit<Props<{
|
118 | title?: string | undefined;
|
119 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
120 | title?: string | undefined;
|
121 | } & RefAttributes<HTMLButtonElement>>;
|
122 |
|
123 | export declare const HatenaShareCount: {
|
124 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
125 | children?: ((shareCount: number) => ReactNode) | undefined;
|
126 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
127 | url: string;
|
128 | }, "getCount">): JSX_2.Element;
|
129 | displayName: string;
|
130 | };
|
131 |
|
132 | export declare const InstapaperIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
133 | bgStyle?: CSSProperties | undefined;
|
134 | borderRadius?: number | undefined;
|
135 | iconFillColor?: string | undefined;
|
136 | round?: boolean | undefined;
|
137 | size?: string | number | undefined;
|
138 | }>;
|
139 |
|
140 | export declare const InstapaperShareButton: ForwardRefExoticComponent<Omit<Props<{
|
141 | title?: string | undefined;
|
142 | description?: string | undefined;
|
143 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
144 | title?: string | undefined;
|
145 | description?: string | undefined;
|
146 | } & RefAttributes<HTMLButtonElement>>;
|
147 |
|
148 | export declare const LineIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
149 | bgStyle?: CSSProperties | undefined;
|
150 | borderRadius?: number | undefined;
|
151 | iconFillColor?: string | undefined;
|
152 | round?: boolean | undefined;
|
153 | size?: string | number | undefined;
|
154 | }>;
|
155 |
|
156 | export declare const LineShareButton: ForwardRefExoticComponent<Omit<Props<{
|
157 | title?: string | undefined;
|
158 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
159 | title?: string | undefined;
|
160 | } & RefAttributes<HTMLButtonElement>>;
|
161 |
|
162 | export declare const LinkedinIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
163 | bgStyle?: CSSProperties | undefined;
|
164 | borderRadius?: number | undefined;
|
165 | iconFillColor?: string | undefined;
|
166 | round?: boolean | undefined;
|
167 | size?: string | number | undefined;
|
168 | }>;
|
169 |
|
170 | export declare const LinkedinShareButton: ForwardRefExoticComponent<Omit<Props<Options_3>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & Options_3 & RefAttributes<HTMLButtonElement>>;
|
171 |
|
172 | export declare const LivejournalIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
173 | bgStyle?: CSSProperties | undefined;
|
174 | borderRadius?: number | undefined;
|
175 | iconFillColor?: string | undefined;
|
176 | round?: boolean | undefined;
|
177 | size?: string | number | undefined;
|
178 | }>;
|
179 |
|
180 | export declare const LivejournalShareButton: ForwardRefExoticComponent<Omit<Props<{
|
181 | title?: string | undefined;
|
182 | description?: string | undefined;
|
183 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
184 | title?: string | undefined;
|
185 | description?: string | undefined;
|
186 | } & RefAttributes<HTMLButtonElement>>;
|
187 |
|
188 | export declare const MailruIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
189 | bgStyle?: CSSProperties | undefined;
|
190 | borderRadius?: number | undefined;
|
191 | iconFillColor?: string | undefined;
|
192 | round?: boolean | undefined;
|
193 | size?: string | number | undefined;
|
194 | }>;
|
195 |
|
196 | export declare const MailruShareButton: ForwardRefExoticComponent<Omit<Props<{
|
197 | title?: string | undefined;
|
198 | description?: string | undefined;
|
199 | imageUrl?: string | undefined;
|
200 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
201 | title?: string | undefined;
|
202 | description?: string | undefined;
|
203 | imageUrl?: string | undefined;
|
204 | } & RefAttributes<HTMLButtonElement>>;
|
205 |
|
206 | declare type NetworkLink<LinkOptions> = (url: string, options: LinkOptions) => string;
|
207 |
|
208 | export declare const OKIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
209 | bgStyle?: CSSProperties | undefined;
|
210 | borderRadius?: number | undefined;
|
211 | iconFillColor?: string | undefined;
|
212 | round?: boolean | undefined;
|
213 | size?: string | number | undefined;
|
214 | }>;
|
215 |
|
216 | export declare const OKShareButton: ForwardRefExoticComponent<Omit<Props<{
|
217 | title?: string | undefined;
|
218 | description?: string | undefined;
|
219 | image?: string | undefined;
|
220 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
221 | title?: string | undefined;
|
222 | description?: string | undefined;
|
223 | image?: string | undefined;
|
224 | } & RefAttributes<HTMLButtonElement>>;
|
225 |
|
226 | export declare const OKShareCount: {
|
227 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
228 | children?: ((shareCount: number) => ReactNode) | undefined;
|
229 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
230 | url: string;
|
231 | }, "getCount">): JSX_2.Element;
|
232 | displayName: string;
|
233 | };
|
234 |
|
235 | declare type Options = {
|
236 | body?: string;
|
237 | separator?: string;
|
238 | subject?: string;
|
239 | };
|
240 |
|
241 | declare type Options_2 = {
|
242 |
|
243 | appId: string;
|
244 | |
245 |
|
246 | redirectUri?: string;
|
247 | |
248 |
|
249 | to?: string;
|
250 | };
|
251 |
|
252 | declare type Options_3 = {
|
253 |
|
254 | title?: string;
|
255 |
|
256 | summary?: string;
|
257 |
|
258 | source?: string;
|
259 | };
|
260 |
|
261 | declare type Options_4 = {
|
262 | title?: string;
|
263 | caption?: string;
|
264 | posttype?: 'link' | string;
|
265 | };
|
266 |
|
267 | declare type Options_5 = {
|
268 | title?: string;
|
269 | image?: string;
|
270 | noParse?: boolean;
|
271 | noVkLinks?: boolean;
|
272 | };
|
273 |
|
274 | export declare const PinterestIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
275 | bgStyle?: CSSProperties | undefined;
|
276 | borderRadius?: number | undefined;
|
277 | iconFillColor?: string | undefined;
|
278 | round?: boolean | undefined;
|
279 | size?: string | number | undefined;
|
280 | }>;
|
281 |
|
282 | export declare const PinterestShareButton: ForwardRefExoticComponent<Omit<Props<PinterestShareProps>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & PinterestShareProps & RefAttributes<HTMLButtonElement>>;
|
283 |
|
284 | export declare const PinterestShareCount: {
|
285 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
286 | children?: ((shareCount: number) => ReactNode) | undefined;
|
287 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
288 | url: string;
|
289 | }, "getCount">): JSX_2.Element;
|
290 | displayName: string;
|
291 | };
|
292 |
|
293 | declare interface PinterestShareProps {
|
294 | media: string;
|
295 | description?: string;
|
296 | pinId?: string;
|
297 | }
|
298 |
|
299 | export declare const PocketIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
300 | bgStyle?: CSSProperties | undefined;
|
301 | borderRadius?: number | undefined;
|
302 | iconFillColor?: string | undefined;
|
303 | round?: boolean | undefined;
|
304 | size?: string | number | undefined;
|
305 | }>;
|
306 |
|
307 | export declare const PocketShareButton: ForwardRefExoticComponent<Omit<Props<{
|
308 | title?: string | undefined;
|
309 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
310 | title?: string | undefined;
|
311 | } & RefAttributes<HTMLButtonElement>>;
|
312 |
|
313 | declare type Props<LinkOptions extends Record<string, unknown>> = Omit<React_2.ButtonHTMLAttributes<HTMLButtonElement>, keyof CustomProps<LinkOptions>> & CustomProps<LinkOptions>;
|
314 |
|
315 | export declare const RedditIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
316 | bgStyle?: CSSProperties | undefined;
|
317 | borderRadius?: number | undefined;
|
318 | iconFillColor?: string | undefined;
|
319 | round?: boolean | undefined;
|
320 | size?: string | number | undefined;
|
321 | }>;
|
322 |
|
323 | export declare const RedditShareButton: ForwardRefExoticComponent<Omit<Props<{
|
324 | title?: string | undefined;
|
325 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
326 | title?: string | undefined;
|
327 | } & RefAttributes<HTMLButtonElement>>;
|
328 |
|
329 | export declare const RedditShareCount: {
|
330 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
331 | children?: ((shareCount: number) => ReactNode) | undefined;
|
332 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
333 | url: string;
|
334 | }, "getCount">): JSX_2.Element;
|
335 | displayName: string;
|
336 | };
|
337 |
|
338 | export declare const TelegramIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
339 | bgStyle?: CSSProperties | undefined;
|
340 | borderRadius?: number | undefined;
|
341 | iconFillColor?: string | undefined;
|
342 | round?: boolean | undefined;
|
343 | size?: string | number | undefined;
|
344 | }>;
|
345 |
|
346 | export declare const TelegramShareButton: ForwardRefExoticComponent<Omit<Props<{
|
347 | title?: string | undefined;
|
348 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
349 | title?: string | undefined;
|
350 | } & RefAttributes<HTMLButtonElement>>;
|
351 |
|
352 | export declare const TumblrIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
353 | bgStyle?: CSSProperties | undefined;
|
354 | borderRadius?: number | undefined;
|
355 | iconFillColor?: string | undefined;
|
356 | round?: boolean | undefined;
|
357 | size?: string | number | undefined;
|
358 | }>;
|
359 |
|
360 | export declare const TumblrShareButton: ForwardRefExoticComponent<Omit<Props<Options_4 & {
|
361 | tags: string;
|
362 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & Options_4 & {
|
363 | tags?: string[] | undefined;
|
364 | } & RefAttributes<HTMLButtonElement>>;
|
365 |
|
366 | export declare const TumblrShareCount: {
|
367 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
368 | children?: ((shareCount: number) => ReactNode) | undefined;
|
369 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
370 | url: string;
|
371 | }, "getCount">): JSX_2.Element;
|
372 | displayName: string;
|
373 | };
|
374 |
|
375 | export declare const TwitterIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
376 | bgStyle?: CSSProperties | undefined;
|
377 | borderRadius?: number | undefined;
|
378 | iconFillColor?: string | undefined;
|
379 | round?: boolean | undefined;
|
380 | size?: string | number | undefined;
|
381 | }>;
|
382 |
|
383 | export declare const TwitterShareButton: ForwardRefExoticComponent<Omit<Props<{
|
384 | title?: string | undefined;
|
385 | via?: string | undefined;
|
386 | hashtags?: string[] | undefined;
|
387 | related?: string[] | undefined;
|
388 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
389 | title?: string | undefined;
|
390 | via?: string | undefined;
|
391 | hashtags?: string[] | undefined;
|
392 | related?: string[] | undefined;
|
393 | } & RefAttributes<HTMLButtonElement>>;
|
394 |
|
395 | export declare const ViberIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
396 | bgStyle?: CSSProperties | undefined;
|
397 | borderRadius?: number | undefined;
|
398 | iconFillColor?: string | undefined;
|
399 | round?: boolean | undefined;
|
400 | size?: string | number | undefined;
|
401 | }>;
|
402 |
|
403 | export declare const ViberShareButton: ForwardRefExoticComponent<Omit<Props<{
|
404 | title?: string | undefined;
|
405 | separator?: string | undefined;
|
406 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
407 | title?: string | undefined;
|
408 | separator?: string | undefined;
|
409 | } & RefAttributes<HTMLButtonElement>>;
|
410 |
|
411 | export declare const VKIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
412 | bgStyle?: CSSProperties | undefined;
|
413 | borderRadius?: number | undefined;
|
414 | iconFillColor?: string | undefined;
|
415 | round?: boolean | undefined;
|
416 | size?: string | number | undefined;
|
417 | }>;
|
418 |
|
419 | export declare const VKShareButton: ForwardRefExoticComponent<Omit<Props<Options_5>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & Options_5 & RefAttributes<HTMLButtonElement>>;
|
420 |
|
421 | export declare const VKShareCount: {
|
422 | (props: Omit<Omit<HTMLAttributes<HTMLSpanElement>, "children"> & {
|
423 | children?: ((shareCount: number) => ReactNode) | undefined;
|
424 | getCount: (url: string, callback: (shareCount?: number | undefined) => void) => void;
|
425 | url: string;
|
426 | }, "getCount">): JSX_2.Element;
|
427 | displayName: string;
|
428 | };
|
429 |
|
430 | export declare const WeiboIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
431 | bgStyle?: CSSProperties | undefined;
|
432 | borderRadius?: number | undefined;
|
433 | iconFillColor?: string | undefined;
|
434 | round?: boolean | undefined;
|
435 | size?: string | number | undefined;
|
436 | }>;
|
437 |
|
438 | export declare const WeiboShareButton: ForwardRefExoticComponent<Omit<Props<{
|
439 | title?: string | undefined;
|
440 | image?: string | undefined;
|
441 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
442 | title?: string | undefined;
|
443 | image?: string | undefined;
|
444 | } & RefAttributes<HTMLButtonElement>>;
|
445 |
|
446 | export declare const WhatsappIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
447 | bgStyle?: CSSProperties | undefined;
|
448 | borderRadius?: number | undefined;
|
449 | iconFillColor?: string | undefined;
|
450 | round?: boolean | undefined;
|
451 | size?: string | number | undefined;
|
452 | }>;
|
453 |
|
454 | export declare const WhatsappShareButton: ForwardRefExoticComponent<Omit<Props<{
|
455 | title?: string | undefined;
|
456 | separator?: string | undefined;
|
457 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
458 | title?: string | undefined;
|
459 | separator?: string | undefined;
|
460 | } & RefAttributes<HTMLButtonElement>>;
|
461 |
|
462 | declare type WindowPosition = 'windowCenter' | 'screenCenter';
|
463 |
|
464 | export declare const WorkplaceIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
465 | bgStyle?: CSSProperties | undefined;
|
466 | borderRadius?: number | undefined;
|
467 | iconFillColor?: string | undefined;
|
468 | round?: boolean | undefined;
|
469 | size?: string | number | undefined;
|
470 | }>;
|
471 |
|
472 | export declare const WorkplaceShareButton: ForwardRefExoticComponent<Omit<Props<{
|
473 | quote?: string | undefined;
|
474 | hashtag?: string | undefined;
|
475 | }>, "forwardedRef" | "networkName" | "networkLink" | "opts"> & {
|
476 | quote?: string | undefined;
|
477 | hashtag?: string | undefined;
|
478 | } & RefAttributes<HTMLButtonElement>>;
|
479 |
|
480 | export declare const XIcon: FC<Omit<SVGProps<SVGSVGElement>, "width" | "height"> & {
|
481 | bgStyle?: CSSProperties | undefined;
|
482 | borderRadius?: number | undefined;
|
483 | iconFillColor?: string | undefined;
|
484 | round?: boolean | undefined;
|
485 | size?: string | number | undefined;
|
486 | }>;
|
487 |
|
488 | export { }
|