@semcore/feedback-form 5.1.13 → 5.1.15
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/CHANGELOG.md +2 -86
- package/LICENSE +21 -0
- package/lib/cjs/FeedbackForm.js +8 -8
- package/lib/cjs/index.d.js +2 -0
- package/lib/cjs/index.d.js.map +1 -0
- package/lib/es6/FeedbackForm.js +8 -8
- package/lib/es6/index.d.js +2 -0
- package/lib/es6/index.d.js.map +1 -0
- package/package.json +7 -6
- package/lib/cjs/index.d.ts +0 -26
- package/lib/es6/index.d.ts +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
-
## [5.1.
|
|
5
|
+
## [5.1.15] - 2022-10-10
|
|
6
6
|
|
|
7
7
|
### Changed
|
|
8
8
|
|
|
9
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/button` [4.0.18 ~> 4.1.0]).
|
|
10
10
|
|
|
11
11
|
## [5.1.12] - 2022-08-30
|
|
12
12
|
|
|
@@ -20,60 +20,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
20
20
|
|
|
21
21
|
- Version patch update due to children dependencies update (`@semcore/button` [4.0.15 ~> 4.0.16], `@semcore/utils` [3.37.0 ~> 3.37.1]).
|
|
22
22
|
|
|
23
|
-
## [5.1.10] - 2022-08-30
|
|
24
|
-
|
|
25
|
-
### Changed
|
|
26
|
-
|
|
27
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.14 ~> 4.0.15]).
|
|
28
|
-
|
|
29
|
-
## [5.1.9] - 2022-08-25
|
|
30
|
-
|
|
31
|
-
### Changed
|
|
32
|
-
|
|
33
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.13 ~> 4.0.14]).
|
|
34
|
-
|
|
35
|
-
## [5.1.8] - 2022-08-23
|
|
36
|
-
|
|
37
|
-
### Changed
|
|
38
|
-
|
|
39
|
-
- Version patch update due to children dependencies update (`@semcore/notice` [4.1.11 ~> 4.1.12]).
|
|
40
|
-
|
|
41
|
-
## [5.1.7] - 2022-08-19
|
|
42
|
-
|
|
43
|
-
### Changed
|
|
44
|
-
|
|
45
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.12 ~> 4.0.13]).
|
|
46
|
-
|
|
47
|
-
## [5.1.6] - 2022-08-18
|
|
48
|
-
|
|
49
|
-
### Changed
|
|
50
|
-
|
|
51
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.11 ~> 4.0.12], `@semcore/utils` [3.36.0 ~> 3.37.0]).
|
|
52
|
-
|
|
53
|
-
## [5.1.5] - 2022-08-11
|
|
54
|
-
|
|
55
|
-
### Changed
|
|
56
|
-
|
|
57
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.10 ~> 4.0.11], `@semcore/utils` [3.35.1 ~> 3.36.0]).
|
|
58
|
-
|
|
59
|
-
## [5.1.4] - 2022-07-22
|
|
60
|
-
|
|
61
|
-
### Changed
|
|
62
|
-
|
|
63
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.8 ~> 4.0.9], `@semcore/utils` [3.34.0 ~> 3.35.0]).
|
|
64
|
-
|
|
65
|
-
## [5.1.3] - 2022-07-14
|
|
66
|
-
|
|
67
|
-
### Changed
|
|
68
|
-
|
|
69
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.7 ~> 4.0.8]).
|
|
70
|
-
|
|
71
|
-
## [5.1.2] - 2022-07-07
|
|
72
|
-
|
|
73
|
-
### Changed
|
|
74
|
-
|
|
75
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.6 ~> 4.0.7], `@semcore/utils` [3.33.0 ~> 3.34.0]).
|
|
76
|
-
|
|
77
23
|
## [5.1.1] - 2022-06-28
|
|
78
24
|
|
|
79
25
|
### Fixed
|
|
@@ -92,12 +38,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
92
38
|
|
|
93
39
|
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.2 ~> 3.33.0], `@semcore/button` [4.0.5 ~> 4.0.6]).
|
|
94
40
|
|
|
95
|
-
## [5.0.7] - 2022-05-31
|
|
96
|
-
|
|
97
|
-
### Changed
|
|
98
|
-
|
|
99
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.32.1 ~> 3.32.2], `@semcore/button` [4.0.4 ~> 4.0.5]).
|
|
100
|
-
|
|
101
41
|
## [5.0.6] - 2022-05-30
|
|
102
42
|
|
|
103
43
|
### Fixed
|
|
@@ -110,12 +50,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
110
50
|
|
|
111
51
|
- Version patch update due to children dependencies update (`@semcore/button` [4.0.3 ~> 4.0.4]).
|
|
112
52
|
|
|
113
|
-
## [5.0.4] - 2022-05-23
|
|
114
|
-
|
|
115
|
-
### Changed
|
|
116
|
-
|
|
117
|
-
- Version patch update due to children dependencies update (`@semcore/button` [4.0.2 ~> 4.0.3]).
|
|
118
|
-
|
|
119
53
|
## [5.0.3] - 2022-05-19
|
|
120
54
|
|
|
121
55
|
### Fixed
|
|
@@ -146,24 +80,6 @@ CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangel
|
|
|
146
80
|
|
|
147
81
|
- Version patch update due to children dependencies update (`@semcore/spin-container` [5.0.5 ~> 5.1.0]).
|
|
148
82
|
|
|
149
|
-
## [4.0.4] - 2022-03-21
|
|
150
|
-
|
|
151
|
-
### Changed
|
|
152
|
-
|
|
153
|
-
- Version patch update due to children dependencies update (`@semcore/notice` [3.2.3 ~> 3.2.4]).
|
|
154
|
-
|
|
155
|
-
## [4.0.3] - 2022-03-14
|
|
156
|
-
|
|
157
|
-
### Changed
|
|
158
|
-
|
|
159
|
-
- Version patch update due to children dependencies update (`@semcore/utils` [3.31.2 ~> 3.31.2], `@semcore/button` [3.3.6 ~> 3.3.7]).
|
|
160
|
-
|
|
161
|
-
## [4.0.2] - 2022-03-05
|
|
162
|
-
|
|
163
|
-
### Changed
|
|
164
|
-
|
|
165
|
-
- Version patch update due to children dependencies update (`@semcore/spin-container` [5.0.2 ~> 5.0.3], `@semcore/notice` [3.2.1 ~> 3.2.2]).
|
|
166
|
-
|
|
167
83
|
## [3.5.2] - 2022-02-24
|
|
168
84
|
|
|
169
85
|
### Added
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright ©, 2022, Semrush Inc. (written by Roman Lysov, Sergey Kobets, Mikhail Karachev, Julia Mnizhek, Elena Krasnopolskaia, Mikhail Sereniti).
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/lib/cjs/FeedbackForm.js
CHANGED
|
@@ -68,17 +68,17 @@ var style = (
|
|
|
68
68
|
/*__reshadow_css_start__*/
|
|
69
69
|
_core.sstyled.insert(
|
|
70
70
|
/*__inner_css_start__*/
|
|
71
|
-
".
|
|
71
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SFeedbackForm_13pnm_gg_ {\n max-width: 320px;\n}\n\n.___SSubmit_13pnm_gg_,\n.___SCancel_13pnm_gg_ {\n display: inline-flex;\n margin-right: 8px;\n}\n\n.___SNotice_13pnm_gg_ {\n padding: 12px 16px;\n border-width: 1px 0 0;\n border-top-style: solid;\n border-radius: 0 0 6px 6px;\n}\n\n.___SSuccess_13pnm_gg_ {\n display: flex;\n align-items: center;\n flex-direction: column;\n width: 320px;\n padding: 46px 32px 32px;\n box-sizing: border-box;\n}\n\n.___SEmail_13pnm_gg_ {\n margin-bottom: 18px;\n width: 80px;\n height: 80px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n"
|
|
72
72
|
/*__inner_css_end__*/
|
|
73
|
-
, "
|
|
73
|
+
, "13pnm_gg_")
|
|
74
74
|
/*__reshadow_css_end__*/
|
|
75
75
|
, {
|
|
76
|
-
"__SFeedbackForm": "
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"__SNotice": "
|
|
80
|
-
"__SSuccess": "
|
|
81
|
-
"__SEmail": "
|
|
76
|
+
"__SFeedbackForm": "___SFeedbackForm_13pnm_gg_",
|
|
77
|
+
"__SSubmit": "___SSubmit_13pnm_gg_",
|
|
78
|
+
"__SCancel": "___SCancel_13pnm_gg_",
|
|
79
|
+
"__SNotice": "___SNotice_13pnm_gg_",
|
|
80
|
+
"__SSuccess": "___SSuccess_13pnm_gg_",
|
|
81
|
+
"__SEmail": "___SEmail_13pnm_gg_"
|
|
82
82
|
});
|
|
83
83
|
|
|
84
84
|
var FeedbackForm = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { FormProps, FieldProps } from 'react-final-form';\n\nimport { ReturnEl, CProps } from '@semcore/core';\nimport Button from '@semcore/button';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\nexport interface IFeedbackForm extends FormProps {\n /* The event is called when the form is submitted */\n onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;\n /**\n * The property is in charge of the spinner showing\n * */\n loading?: boolean;\n}\n\ndeclare const FeedbackForm: (<T>(props: CProps<IFeedbackForm> & T) => ReturnEl) & {\n Item: <T>(props: FieldProps<any, any> & T) => ReturnEl;\n Success: <T>(props: CProps<ComponentProps<typeof Box>> & T) => ReturnEl;\n Submit: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;\n Cancel: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;\n Notice: <T>(props: ComponentProps<typeof NoticeSmart> & T) => ReturnEl;\n};\n\nexport default FeedbackForm;\n"],"mappings":""}
|
package/lib/es6/FeedbackForm.js
CHANGED
|
@@ -41,17 +41,17 @@ var style = (
|
|
|
41
41
|
/*__reshadow_css_start__*/
|
|
42
42
|
_sstyled.insert(
|
|
43
43
|
/*__inner_css_start__*/
|
|
44
|
-
".
|
|
44
|
+
":root {\n\n /* DEPRECATED START\n Deprecated variables should never be used in\n components styles but preserved for backward\n compatibility if they used in projects\n like `<Badge bg=\"red\">alpha</Badge>`\n */\n /* DEPRECATED END */\n}\n\n.___SFeedbackForm_13pnm_gg_ {\n max-width: 320px;\n}\n\n.___SSubmit_13pnm_gg_,\n.___SCancel_13pnm_gg_ {\n display: inline-flex;\n margin-right: 8px;\n}\n\n.___SNotice_13pnm_gg_ {\n padding: 12px 16px;\n border-width: 1px 0 0;\n border-top-style: solid;\n border-radius: 0 0 6px 6px;\n}\n\n.___SSuccess_13pnm_gg_ {\n display: flex;\n align-items: center;\n flex-direction: column;\n width: 320px;\n padding: 46px 32px 32px;\n box-sizing: border-box;\n}\n\n.___SEmail_13pnm_gg_ {\n margin-bottom: 18px;\n width: 80px;\n height: 80px;\n background-image: url(\"data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.2852L29.2 45.6352C35.39 42.1852 53.39 31.9652 56.73 35.1052C55.6 32.0052 39.7 35.4352 29 45.2852Z' fill='white'/%3E%3Cpath d='M28.44 31.6343C26.63 37.6343 19.23 56.1043 15 61.9443L18 62.8543L19.58 61.5343C23.8 51.9843 29.58 35.5343 29.89 30.0743C29.39 29.8143 28.93 30.2143 28.44 31.6343Z' fill='white'/%3E%3Cpath d='M15 62.0078C19.23 56.1678 26.63 37.7378 28.44 31.6678C30.25 25.5978 33.49 37.6678 31.67 42.7878' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.9424C38.68 35.5824 55.27 31.9424 56.43 35.1024C57.12 36.9924 43 41.3624 38.02 47.4224' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93C41.21 20.77 35.86 19.04 33 18.24C37.12 16.41 70 4.24 72.67 3C71.75 7.11 67.75 21.28 65.96 27.93C61.13 26.25 56.23 24.78 53.03 23.74C51.0298 26.3907 49.2219 29.1812 47.62 32.09C46.44 28.23 45.29 23.77 44.45 21.93Z' fill='white' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M53 23.73L72.64 3' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48 32.58L55.86 25' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77L51.69 25.13L52.66 24L54.73 24.61L55.16 24.48L51.8 27.91L49.33 30.18L48 31.29L48.23 30.77Z' fill='black'/%3E%3Cpath d='M33.81 22L23 27.12' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40.89 23L34 27.37' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M62.04 29L58 38.85' stroke='white' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41C50.29 43.42 44.81 49.52 43 51.12' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M47.17 44C51.31 46.09 48.33 51.76 46 54.6' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='mask0_11950_117175' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.1632 6.00003C27.9554 5.99875 27.7493 6.03875 27.5571 6.11772C27.3648 6.19668 27.1902 6.31304 27.0432 6.46003L14.1332 19.38C7.645 25.8687 4 34.669 4 43.845C4 53.0211 7.645 61.8213 14.1332 68.31C17.3463 71.5242 21.1611 74.0738 25.3597 75.8134C29.5583 77.5529 34.0585 78.4482 38.6032 78.4482C43.1479 78.4482 47.6481 77.5529 51.8467 75.8134C56.0454 74.0738 59.8602 71.5242 63.0732 68.31L75.9832 55.4C76.1316 55.2536 76.2495 55.0792 76.3301 54.887C76.4108 54.6948 76.4526 54.4885 76.4532 54.28V6.89003C76.4506 6.65307 76.3546 6.42671 76.1861 6.26009C76.0176 6.09346 75.7902 6.00002 75.5532 6.00003H28.1632Z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23mask0_11950_117175)'%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' fill='black'/%3E%3Cpath d='M5 74.6871C7.49 72.3471 13.24 63.6871 14.52 61.2471C28.18 59.1271 34.71 71.2471 34.98 74.7671C32.7234 79.651 30.1305 84.3723 27.22 88.8971' stroke='black' stroke-width='0.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E%0A\");\n}\n"
|
|
45
45
|
/*__inner_css_end__*/
|
|
46
|
-
, "
|
|
46
|
+
, "13pnm_gg_")
|
|
47
47
|
/*__reshadow_css_end__*/
|
|
48
48
|
, {
|
|
49
|
-
"__SFeedbackForm": "
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"__SNotice": "
|
|
53
|
-
"__SSuccess": "
|
|
54
|
-
"__SEmail": "
|
|
49
|
+
"__SFeedbackForm": "___SFeedbackForm_13pnm_gg_",
|
|
50
|
+
"__SSubmit": "___SSubmit_13pnm_gg_",
|
|
51
|
+
"__SCancel": "___SCancel_13pnm_gg_",
|
|
52
|
+
"__SNotice": "___SNotice_13pnm_gg_",
|
|
53
|
+
"__SSuccess": "___SSuccess_13pnm_gg_",
|
|
54
|
+
"__SEmail": "___SEmail_13pnm_gg_"
|
|
55
55
|
});
|
|
56
56
|
|
|
57
57
|
var FeedbackForm = /*#__PURE__*/function (_Component) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import { ComponentProps } from 'react';\nimport { FormProps, FieldProps } from 'react-final-form';\n\nimport { ReturnEl, CProps } from '@semcore/core';\nimport Button from '@semcore/button';\nimport { NoticeSmart } from '@semcore/notice';\nimport { Box } from '@semcore/flex-box';\n\nexport interface IFeedbackForm extends FormProps {\n /* The event is called when the form is submitted */\n onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;\n /**\n * The property is in charge of the spinner showing\n * */\n loading?: boolean;\n}\n\ndeclare const FeedbackForm: (<T>(props: CProps<IFeedbackForm> & T) => ReturnEl) & {\n Item: <T>(props: FieldProps<any, any> & T) => ReturnEl;\n Success: <T>(props: CProps<ComponentProps<typeof Box>> & T) => ReturnEl;\n Submit: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;\n Cancel: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;\n Notice: <T>(props: ComponentProps<typeof NoticeSmart> & T) => ReturnEl;\n};\n\nexport default FeedbackForm;\n"],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/feedback-form",
|
|
3
3
|
"description": "Semrush Feedback Form Component",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.15",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
|
-
"scripts": {
|
|
12
|
-
"build": "build --source=js",
|
|
13
|
-
"test": "jest"
|
|
14
|
-
},
|
|
15
11
|
"dependencies": {
|
|
16
12
|
"@semcore/button": "^4",
|
|
17
13
|
"@semcore/flex-box": "^4",
|
|
@@ -36,6 +32,7 @@
|
|
|
36
32
|
"directory": "semcore/feedback-form"
|
|
37
33
|
},
|
|
38
34
|
"devDependencies": {
|
|
35
|
+
"@types/react": "16.8 - 17",
|
|
39
36
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
40
37
|
},
|
|
41
38
|
"overrides": {
|
|
@@ -45,5 +42,9 @@
|
|
|
45
42
|
"react-final-form": {
|
|
46
43
|
"@babel/runtime": "7.17.9"
|
|
47
44
|
}
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"build": "pnpm semcore-builder --source=js",
|
|
48
|
+
"test": "jest"
|
|
48
49
|
}
|
|
49
|
-
}
|
|
50
|
+
}
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { FormProps, FieldProps } from 'react-final-form';
|
|
3
|
-
|
|
4
|
-
import { ReturnEl, CProps } from '@semcore/core';
|
|
5
|
-
import Button from '@semcore/button';
|
|
6
|
-
import { NoticeSmart } from '@semcore/notice';
|
|
7
|
-
import { Box } from '@semcore/flex-box';
|
|
8
|
-
|
|
9
|
-
export interface IFeedbackForm extends FormProps {
|
|
10
|
-
/* The event is called when the form is submitted */
|
|
11
|
-
onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;
|
|
12
|
-
/**
|
|
13
|
-
* The property is in charge of the spinner showing
|
|
14
|
-
* */
|
|
15
|
-
loading?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare const FeedbackForm: (<T>(props: CProps<IFeedbackForm> & T) => ReturnEl) & {
|
|
19
|
-
Item: <T>(props: FieldProps<any, any> & T) => ReturnEl;
|
|
20
|
-
Success: <T>(props: CProps<ComponentProps<typeof Box>> & T) => ReturnEl;
|
|
21
|
-
Submit: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;
|
|
22
|
-
Cancel: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;
|
|
23
|
-
Notice: <T>(props: ComponentProps<typeof NoticeSmart> & T) => ReturnEl;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default FeedbackForm;
|
package/lib/es6/index.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ComponentProps } from 'react';
|
|
2
|
-
import { FormProps, FieldProps } from 'react-final-form';
|
|
3
|
-
|
|
4
|
-
import { ReturnEl, CProps } from '@semcore/core';
|
|
5
|
-
import Button from '@semcore/button';
|
|
6
|
-
import { NoticeSmart } from '@semcore/notice';
|
|
7
|
-
import { Box } from '@semcore/flex-box';
|
|
8
|
-
|
|
9
|
-
export interface IFeedbackForm extends FormProps {
|
|
10
|
-
/* The event is called when the form is submitted */
|
|
11
|
-
onSubmit: (values: any, form: any, callback?: (errors?: {}) => void) => {} | Promise<{}> | void;
|
|
12
|
-
/**
|
|
13
|
-
* The property is in charge of the spinner showing
|
|
14
|
-
* */
|
|
15
|
-
loading?: boolean;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
declare const FeedbackForm: (<T>(props: CProps<IFeedbackForm> & T) => ReturnEl) & {
|
|
19
|
-
Item: <T>(props: FieldProps<any, any> & T) => ReturnEl;
|
|
20
|
-
Success: <T>(props: CProps<ComponentProps<typeof Box>> & T) => ReturnEl;
|
|
21
|
-
Submit: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;
|
|
22
|
-
Cancel: <T>(props: ComponentProps<typeof Button> & T) => ReturnEl;
|
|
23
|
-
Notice: <T>(props: ComponentProps<typeof NoticeSmart> & T) => ReturnEl;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
export default FeedbackForm;
|