@bigbinary/neeto-molecules 3.7.9 → 3.7.11
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.
- package/dist/EmailForm.js +2 -2
- package/dist/EmailForm.js.map +1 -1
- package/dist/ShareViaEmail.js +108 -64
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.js +45 -12
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/cjs/EmailForm.js +2 -2
- package/dist/cjs/EmailForm.js.map +1 -1
- package/dist/cjs/ShareViaEmail.js +114 -68
- package/dist/cjs/ShareViaEmail.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +46 -12
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/package.json +1 -1
- package/src/translations/en.json +2 -1
- package/types/ShareViaLink.d.ts +13 -0
package/types/ShareViaLink.d.ts
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IconProps } from "neetoicons";
|
|
3
|
+
type SubtitleProps = {
|
|
4
|
+
subtitle: string;
|
|
5
|
+
dataCy?: string;
|
|
6
|
+
link?: string;
|
|
7
|
+
onClick?: func;
|
|
8
|
+
};
|
|
3
9
|
type MoreOptions = {
|
|
4
10
|
title: string;
|
|
5
11
|
link: Function;
|
|
6
12
|
icon: React.ReactNode;
|
|
7
13
|
onClick: Function;
|
|
8
14
|
dataCy: string;
|
|
15
|
+
subtitleProps?: SubtitleProps;
|
|
9
16
|
};
|
|
10
17
|
/**
|
|
11
18
|
*
|
|
@@ -119,6 +126,12 @@ type MoreOptions = {
|
|
|
119
126
|
* link: "/",
|
|
120
127
|
* icon: Message,
|
|
121
128
|
* dataCy: "share-via-email-link",
|
|
129
|
+
* subtitleProps: {
|
|
130
|
+
* subtitle: "7 People invited.",
|
|
131
|
+
* onClick: () => {
|
|
132
|
+
* alert("7 People invited");
|
|
133
|
+
* },
|
|
134
|
+
* },
|
|
122
135
|
* },
|
|
123
136
|
* {
|
|
124
137
|
* title: "Notify users",
|