@bigbinary/neeto-molecules 1.0.113 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-molecules",
3
- "version": "1.0.113",
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.1.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",
@@ -91,7 +91,6 @@
91
91
  "babel-preset-typescript": "^7.0.0-alpha.19",
92
92
  "countries-list": "^2.6.1",
93
93
  "css-loader": "4.3.0",
94
- "cypress": "11.2.0",
95
94
  "dayjs": "1.11.1",
96
95
  "eslint": "8.14.0",
97
96
  "eslint-config-prettier": "8.5.0",
@@ -128,14 +127,12 @@
128
127
  "prettier-plugin-tailwindcss": "0.1.10",
129
128
  "prismjs": "^1.29.0",
130
129
  "qrcode.react": "^3.1.0",
131
- "qs": "^6.11.0",
132
130
  "ramda": "^0.29.0",
133
131
  "raw-loader": "^4.0.2",
134
132
  "react": "^18.2.0",
135
133
  "react-dom": "^18.2.0",
136
134
  "react-dropzone": "^11.2.4",
137
135
  "react-helmet": "^6.1.0",
138
- "react-hotkeys-hook": "3.3.2",
139
136
  "react-i18next": "^12.3.1",
140
137
  "react-query": "^3.39.2",
141
138
  "react-router-dom": "^5.3.3",
@@ -167,7 +164,6 @@
167
164
  "@svgr/webpack": "^6.5.1",
168
165
  "antd": "5.9.2",
169
166
  "axios": "^0.27.2",
170
- "cypress": "11.2.0",
171
167
  "dayjs": "1.11.1",
172
168
  "dotenv-webpack": "^8.0.1",
173
169
  "formik": "2.4.5",
@@ -182,7 +178,6 @@
182
178
  "react-router-dom": "^5.3.3",
183
179
  "react-syntax-highlighter": "^15.5.0",
184
180
  "react-toastify": "^9.0.8",
185
- "shakapacker": "^6.5.5",
186
181
  "tailwindcss": "npm:@tailwindcss/postcss7-compat",
187
182
  "webpack": "^5.75.0",
188
183
  "yup": "^0.32.11"
@@ -533,6 +533,12 @@
533
533
  "KB": "KB",
534
534
  "Course": "Course"
535
535
  }
536
+ },
537
+ "sendToFields": {
538
+ "uploadCsvTooltip": "Accepts only CSV files with an 'email' column",
539
+ "errors": {
540
+ "invalidCsv": "Invalid csv, email column not found"
541
+ }
536
542
  }
537
543
  }
538
544
  }
@@ -52,12 +52,18 @@ type LeftBlockPropTypes = {
52
52
  * const Page = () => (
53
53
  * <NavigationHeader
54
54
  * leftActionBlock={<NavigationHeader.LeftActionBlock {...leftBlockProps} />}
55
- * rightActionBlock={<NavigationHeader.RightActionBlock {...rightBlockProps} />}
56
- * navigationLinks={<NavigationHeader.NavigationLinks {...navigationLinkProps} />}
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 NavigationHeader.
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={<NavigationHeader.LeftActionBlock
70
- * homeButtonProps={{ tooltip: { position: "right" } }}
71
- * homeUrl={homeUrl}
72
- * renameProps={{
73
- * disabled: false,
74
- * dropdownItems: [{ label: "Clone", onClick: noop }],
75
- * placeholder: "Enter a name",
76
- * value: "Feedback form",
77
- * onRename: () => noop,
78
- * }}
79
- * />}
80
- * rightActionBlock={<NavigationHeader.RightActionBlock {...rightBlockProps} />}
81
- * navigationLinks={<NavigationHeader.NavigationLinks {...navigationLinkProps} />}
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={<NavigationHeader.NavigationLinks
95
- * headerLinks={[
96
- * { key: "build", to: "/build", label: "Build" },
97
- * { key: "design", to: "/design", label: "Design" },
98
- * { key: "configure", to: "/configure", label: "Configure" },
99
- * ]}
100
- * />}
101
- * rightActionBlock={<NavigationHeader.RightActionBlock {...rightBlockProps} />}
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 NavigationHeader
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={<NavigationHeader.RightActionBlock
116
- * isPublishButtonVisible={false}
117
- * draftPreviewUrl="/preview/draft"
118
- * isDraftBlockHidden={false}
119
- * isResetDraftButtonVisible={true}
120
- * isResetting={false}
121
- * onResetClick={noop}
122
- * isPublishDisabled={true}
123
- * isPublishing={false}
124
- * handlePublish={noop}
125
- * isPublishPreviewDisabled={true}
126
- * publishedPreviewUrl="/preview/published"
127
- * setIsResetAlertOpen={noop}
128
- * handleReset={noop}
129
- * />}
130
- * navigationLinks={<NavigationHeader.NavigationLinks {...navigationLinkProps} />}
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;