@bigbinary/neeto-molecules 1.0.114 → 1.0.115
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/README.md +1 -0
- package/dist/EmailForm.cjs.js +110 -54
- package/dist/EmailForm.cjs.js.map +1 -1
- package/dist/EmailForm.js +111 -55
- package/dist/EmailForm.js.map +1 -1
- package/dist/SendToFields.cjs.js +2524 -0
- package/dist/SendToFields.cjs.js.map +1 -0
- package/dist/SendToFields.js +2517 -0
- package/dist/SendToFields.js.map +1 -0
- package/dist/ShareViaEmail.cjs.js +284 -221
- package/dist/ShareViaEmail.cjs.js.map +1 -1
- package/dist/ShareViaEmail.js +287 -224
- package/dist/ShareViaEmail.js.map +1 -1
- package/package.json +2 -2
- package/src/translations/en.json +6 -0
- package/types/NavigationHeader.d.ts +63 -41
- package/types/SendToFields.d.ts +63 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-molecules",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.115",
|
|
4
4
|
"description": "A package of reusable molecular components for neeto products.",
|
|
5
5
|
"repository": "git@github.com:bigbinary/neeto-molecules.git",
|
|
6
6
|
"author": "Amaljith K <amaljith.k@bigbinary.com>",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@bigbinary/neeto-icons": "^1.12.3",
|
|
55
55
|
"@bigbinary/neeto-molecules": "^1.0.5",
|
|
56
56
|
"@bigbinary/neeto-time-zones": "^0.5.0",
|
|
57
|
-
"@bigbinary/neetoui": "^5.
|
|
57
|
+
"@bigbinary/neetoui": "^5.2.2",
|
|
58
58
|
"@faker-js/faker": "7.6.0",
|
|
59
59
|
"@honeybadger-io/react": "2.0.1",
|
|
60
60
|
"@rails/activestorage": "^7.0.5",
|
package/src/translations/en.json
CHANGED
|
@@ -52,12 +52,18 @@ type LeftBlockPropTypes = {
|
|
|
52
52
|
* const Page = () => (
|
|
53
53
|
* <NavigationHeader
|
|
54
54
|
* leftActionBlock={<NavigationHeader.LeftActionBlock {...leftBlockProps} />}
|
|
55
|
-
* rightActionBlock={
|
|
56
|
-
*
|
|
55
|
+
* rightActionBlock={
|
|
56
|
+
* <NavigationHeader.RightActionBlock {...rightBlockProps} />
|
|
57
|
+
* }
|
|
58
|
+
* navigationLinks={
|
|
59
|
+
* <NavigationHeader.NavigationLinks {...navigationLinkProps} />
|
|
60
|
+
* }
|
|
57
61
|
* />
|
|
58
62
|
* );
|
|
59
63
|
* @endexample
|
|
60
|
-
* To specify the content to be rendered in the left side of the
|
|
64
|
+
* To specify the content to be rendered in the left side of the
|
|
65
|
+
*
|
|
66
|
+
* NavigationHeader.
|
|
61
67
|
*
|
|
62
68
|
* @example
|
|
63
69
|
*
|
|
@@ -66,19 +72,25 @@ type LeftBlockPropTypes = {
|
|
|
66
72
|
*
|
|
67
73
|
* const Page = () => (
|
|
68
74
|
* <NavigationHeader
|
|
69
|
-
* leftActionBlock={
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
75
|
+
* leftActionBlock={
|
|
76
|
+
* <NavigationHeader.LeftActionBlock
|
|
77
|
+
* homeButtonProps={{ tooltip: { position: "right" } }}
|
|
78
|
+
* homeUrl={homeUrl}
|
|
79
|
+
* renameProps={{
|
|
80
|
+
* disabled: false,
|
|
81
|
+
* dropdownItems: [{ label: "Clone", onClick: noop }],
|
|
82
|
+
* placeholder: "Enter a name",
|
|
83
|
+
* value: "Feedback form",
|
|
84
|
+
* onRename: () => noop,
|
|
85
|
+
* }}
|
|
86
|
+
* />
|
|
87
|
+
* }
|
|
88
|
+
* rightActionBlock={
|
|
89
|
+
* <NavigationHeader.RightActionBlock {...rightBlockProps} />
|
|
90
|
+
* }
|
|
91
|
+
* navigationLinks={
|
|
92
|
+
* <NavigationHeader.NavigationLinks {...navigationLinkProps} />
|
|
93
|
+
* }
|
|
82
94
|
* />
|
|
83
95
|
* );
|
|
84
96
|
* @endexample
|
|
@@ -91,19 +103,25 @@ type LeftBlockPropTypes = {
|
|
|
91
103
|
*
|
|
92
104
|
* const Page = () => (
|
|
93
105
|
* <NavigationHeader
|
|
94
|
-
* navigationLinks={
|
|
95
|
-
*
|
|
96
|
-
* {
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
106
|
+
* navigationLinks={
|
|
107
|
+
* <NavigationHeader.NavigationLinks
|
|
108
|
+
* headerLinks={[
|
|
109
|
+
* { key: "build", to: "/build", label: "Build" },
|
|
110
|
+
* { key: "design", to: "/design", label: "Design" },
|
|
111
|
+
* { key: "configure", to: "/configure", label: "Configure" },
|
|
112
|
+
* ]}
|
|
113
|
+
* />
|
|
114
|
+
* }
|
|
115
|
+
* rightActionBlock={
|
|
116
|
+
* <NavigationHeader.RightActionBlock {...rightBlockProps} />
|
|
117
|
+
* }
|
|
102
118
|
* leftActionBlock={<NavigationHeader.LeftActionBlock {...leftBlockProps} />}
|
|
103
119
|
* />
|
|
104
120
|
* );
|
|
105
121
|
* @endexample
|
|
106
|
-
* To specify the content to be rendered in the right side of the
|
|
122
|
+
* To specify the content to be rendered in the right side of the
|
|
123
|
+
*
|
|
124
|
+
* NavigationHeader
|
|
107
125
|
*
|
|
108
126
|
* @example
|
|
109
127
|
*
|
|
@@ -112,22 +130,26 @@ type LeftBlockPropTypes = {
|
|
|
112
130
|
*
|
|
113
131
|
* const Page = () => (
|
|
114
132
|
* <NavigationHeader
|
|
115
|
-
* rightActionBlock={
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
*
|
|
125
|
-
*
|
|
126
|
-
*
|
|
127
|
-
*
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
*
|
|
133
|
+
* rightActionBlock={
|
|
134
|
+
* <NavigationHeader.RightActionBlock
|
|
135
|
+
* isPublishButtonVisible={false}
|
|
136
|
+
* draftPreviewUrl="/preview/draft"
|
|
137
|
+
* isDraftBlockHidden={false}
|
|
138
|
+
* isResetDraftButtonVisible={true}
|
|
139
|
+
* isResetting={false}
|
|
140
|
+
* onResetClick={noop}
|
|
141
|
+
* isPublishDisabled={true}
|
|
142
|
+
* isPublishing={false}
|
|
143
|
+
* handlePublish={noop}
|
|
144
|
+
* isPublishPreviewDisabled={true}
|
|
145
|
+
* publishedPreviewUrl="/preview/published"
|
|
146
|
+
* setIsResetAlertOpen={noop}
|
|
147
|
+
* handleReset={noop}
|
|
148
|
+
* />
|
|
149
|
+
* }
|
|
150
|
+
* navigationLinks={
|
|
151
|
+
* <NavigationHeader.NavigationLinks {...navigationLinkProps} />
|
|
152
|
+
* }
|
|
131
153
|
* leftActionBlock={<NavigationHeader.LeftActionBlock {...leftBlockProps} />}
|
|
132
154
|
* />
|
|
133
155
|
* );
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputProps } from "neetoui";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* This email input component comes with the capability to include recipients in
|
|
6
|
+
*
|
|
7
|
+
* the Blind Carbon Copy (BCC) and Carbon Copy (CC) fields. The 'showCopyEmail'
|
|
8
|
+
*
|
|
9
|
+
* formik key is used to toggle the visibility of the Cc/Bcc input fields and is
|
|
10
|
+
*
|
|
11
|
+
* automatically added if omitted when clicking the Cc/Bcc
|
|
12
|
+
*
|
|
13
|
+
* button.Additionally,default name attributes, 'sendTo,' 'sendToCc,' and
|
|
14
|
+
*
|
|
15
|
+
* 'sendToBcc,' are provided for the email inputs, which can be customized to suit
|
|
16
|
+
*
|
|
17
|
+
* your needs.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* import React from "react";
|
|
22
|
+
* import SendToFields from "@bigbinary/neeto-molecules/SendToFields";
|
|
23
|
+
*
|
|
24
|
+
* const SendToFieldsComponent = () => (
|
|
25
|
+
* <Form
|
|
26
|
+
* formikProps={{
|
|
27
|
+
* enableReinitialize: true,
|
|
28
|
+
* initialValues: {
|
|
29
|
+
* sendTo: [],
|
|
30
|
+
* sendToCc: [],
|
|
31
|
+
* sendToBcc: [],
|
|
32
|
+
* showCopyEmail: false,
|
|
33
|
+
* },
|
|
34
|
+
* }}
|
|
35
|
+
* >
|
|
36
|
+
* <SendToFields
|
|
37
|
+
* showUploadCsvButton
|
|
38
|
+
* showCcBccButton
|
|
39
|
+
* emailInputProps={{
|
|
40
|
+
* id: "sendTo",
|
|
41
|
+
* name: "sendTo",
|
|
42
|
+
* }}
|
|
43
|
+
* ccInputProps={{
|
|
44
|
+
* label: "CC",
|
|
45
|
+
* name: "sendToCc",
|
|
46
|
+
* }}
|
|
47
|
+
* bccInputProps={{
|
|
48
|
+
* label: "BCC",
|
|
49
|
+
* name: "sendToBcc",
|
|
50
|
+
* }}
|
|
51
|
+
* />
|
|
52
|
+
* </Form>
|
|
53
|
+
* );
|
|
54
|
+
* @endexample
|
|
55
|
+
*/
|
|
56
|
+
const SendToFields: React.FC<{
|
|
57
|
+
inputProps?: InputProps;
|
|
58
|
+
ccInputProps?: InputProps;
|
|
59
|
+
bccInputPropse?: InputProps;
|
|
60
|
+
showUploadCsvButton: boolean;
|
|
61
|
+
showCcBccButton: boolean;
|
|
62
|
+
}>;
|
|
63
|
+
export default SendToFields;
|