@semcore/feedback-form 5.1.12 → 5.1.14
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 +12 -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 +3 -2
- package/lib/cjs/index.d.ts +0 -26
- package/lib/es6/index.d.ts +0 -26
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
|
5
|
+
## [5.1.14] - 2022-10-04
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Version patch update due to children dependencies update (`@semcore/button` [4.0.17 ~> 4.0.18], `@semcore/utils` [3.37.1 ~> 3.37.2]).
|
|
10
|
+
|
|
11
|
+
## [5.1.13] - 2022-09-20
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
|
|
15
|
+
- Version patch update due to children dependencies update (`@semcore/button` [4.0.16 ~> 4.0.17], `@semcore/spin-container` [6.0.10 ~> 6.0.11]).
|
|
16
|
+
|
|
5
17
|
## [5.1.12] - 2022-08-30
|
|
6
18
|
|
|
7
19
|
### Added
|
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
|
+
".___SFeedbackForm_y12gr_gg_{max-width:320px}.___SCancel_y12gr_gg_,.___SSubmit_y12gr_gg_{display:inline-flex;margin-right:8px}.___SNotice_y12gr_gg_{padding:12px 16px;border-width:1px 0 0;border-top-style:solid;border-radius:0 0 6px 6px}.___SSuccess_y12gr_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:46px 32px 32px;box-sizing:border-box}.___SEmail_y12gr_gg_{margin-bottom:18px;width:80px;height:80px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='80' height='80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.163 6a1.57 1.57 0 00-1.12.46l-12.91 12.92A34.6 34.6 0 0025.36 75.813a34.6 34.6 0 0037.713-7.503l12.91-12.91a1.578 1.578 0 00.47-1.12V6.89a.9.9 0 00-.9-.89h-47.39z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.285l.2.35c6.19-3.45 24.19-13.67 27.53-10.53-1.13-3.1-17.03.33-27.73 10.18zM28.44 31.634c-1.81 6-9.21 24.47-13.44 30.31l3 .91 1.58-1.32c4.22-9.55 10-26 10.31-31.46-.5-.26-.96.14-1.45 1.56z' fill='%23fff'/%3E%3Cpath d='M15 62.008c4.23-5.84 11.63-24.27 13.44-30.34 1.81-6.07 5.05 6 3.23 11.12' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.942c10.68-10.36 27.27-14 28.43-10.84.69 1.89-13.43 6.26-18.41 12.32' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93c-3.24-1.16-8.59-2.89-11.45-3.69 4.12-1.83 37-14 39.67-15.24-.92 4.11-4.92 18.28-6.71 24.93-4.83-1.68-9.73-3.15-12.93-4.19-2 2.65-3.808 5.441-5.41 8.35-1.18-3.86-2.33-8.32-3.17-10.16z' fill='%23fff' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11M53 23.73L72.64 3M48 32.58L55.86 25' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77l3.46-5.64.97-1.13 2.07.61.43-.13-3.36 3.43-2.47 2.27L48 31.29l.23-.52z' fill='%23000'/%3E%3Cpath d='M33.81 22L23 27.12M40.89 23L34 27.37M62.04 29L58 38.85' stroke='%23fff' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41c3.61 2.42-1.87 8.52-3.68 10.12M47.17 44c4.14 2.09 1.16 7.76-1.17 10.6M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='a' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.163 6a1.57 1.57 0 00-1.12.46l-12.91 12.92A34.6 34.6 0 0025.36 75.813a34.6 34.6 0 0037.713-7.503l12.91-12.91a1.578 1.578 0 00.47-1.12V6.89a.9.9 0 00-.9-.89h-47.39z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath d='M5 74.687c2.49-2.34 8.24-11 9.52-13.44 13.66-2.12 20.19 10 20.46 13.52a116.257 116.257 0 01-7.76 14.13' fill='%23000'/%3E%3Cpath d='M5 74.687c2.49-2.34 8.24-11 9.52-13.44 13.66-2.12 20.19 10 20.46 13.52a116.257 116.257 0 01-7.76 14.13' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E\")}"
|
|
72
72
|
/*__inner_css_end__*/
|
|
73
|
-
, "
|
|
73
|
+
, "y12gr_gg_")
|
|
74
74
|
/*__reshadow_css_end__*/
|
|
75
75
|
, {
|
|
76
|
-
"__SFeedbackForm": "
|
|
77
|
-
"__SCancel": "
|
|
78
|
-
"__SSubmit": "
|
|
79
|
-
"__SNotice": "
|
|
80
|
-
"__SSuccess": "
|
|
81
|
-
"__SEmail": "
|
|
76
|
+
"__SFeedbackForm": "___SFeedbackForm_y12gr_gg_",
|
|
77
|
+
"__SCancel": "___SCancel_y12gr_gg_",
|
|
78
|
+
"__SSubmit": "___SSubmit_y12gr_gg_",
|
|
79
|
+
"__SNotice": "___SNotice_y12gr_gg_",
|
|
80
|
+
"__SSuccess": "___SSuccess_y12gr_gg_",
|
|
81
|
+
"__SEmail": "___SEmail_y12gr_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
|
+
".___SFeedbackForm_y12gr_gg_{max-width:320px}.___SCancel_y12gr_gg_,.___SSubmit_y12gr_gg_{display:inline-flex;margin-right:8px}.___SNotice_y12gr_gg_{padding:12px 16px;border-width:1px 0 0;border-top-style:solid;border-radius:0 0 6px 6px}.___SSuccess_y12gr_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:46px 32px 32px;box-sizing:border-box}.___SEmail_y12gr_gg_{margin-bottom:18px;width:80px;height:80px;background-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg width='80' height='80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M28.163 6a1.57 1.57 0 00-1.12.46l-12.91 12.92A34.6 34.6 0 0025.36 75.813a34.6 34.6 0 0037.713-7.503l12.91-12.91a1.578 1.578 0 00.47-1.12V6.89a.9.9 0 00-.9-.89h-47.39z' fill='%2345E0A8'/%3E%3Cpath d='M29 45.285l.2.35c6.19-3.45 24.19-13.67 27.53-10.53-1.13-3.1-17.03.33-27.73 10.18zM28.44 31.634c-1.81 6-9.21 24.47-13.44 30.31l3 .91 1.58-1.32c4.22-9.55 10-26 10.31-31.46-.5-.26-.96.14-1.45 1.56z' fill='%23fff'/%3E%3Cpath d='M15 62.008c4.23-5.84 11.63-24.27 13.44-30.34 1.81-6.07 5.05 6 3.23 11.12' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M28 45.942c10.68-10.36 27.27-14 28.43-10.84.69 1.89-13.43 6.26-18.41 12.32' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M44.45 21.93c-3.24-1.16-8.59-2.89-11.45-3.69 4.12-1.83 37-14 39.67-15.24-.92 4.11-4.92 18.28-6.71 24.93-4.83-1.68-9.73-3.15-12.93-4.19-2 2.65-3.808 5.441-5.41 8.35-1.18-3.86-2.33-8.32-3.17-10.16z' fill='%23fff' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M45 22.08L61.74 11M53 23.73L72.64 3M48 32.58L55.86 25' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M48.23 30.77l3.46-5.64.97-1.13 2.07.61.43-.13-3.36 3.43-2.47 2.27L48 31.29l.23-.52z' fill='%23000'/%3E%3Cpath d='M33.81 22L23 27.12M40.89 23L34 27.37M62.04 29L58 38.85' stroke='%23fff' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M46.68 41c3.61 2.42-1.87 8.52-3.68 10.12M47.17 44c4.14 2.09 1.16 7.76-1.17 10.6M48.86 49C54.37 53.48 36.31 72.72 35 73.78' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cmask id='a' style='mask-type:alpha' maskUnits='userSpaceOnUse' x='4' y='6' width='73' height='73'%3E%3Cpath d='M28.163 6a1.57 1.57 0 00-1.12.46l-12.91 12.92A34.6 34.6 0 0025.36 75.813a34.6 34.6 0 0037.713-7.503l12.91-12.91a1.578 1.578 0 00.47-1.12V6.89a.9.9 0 00-.9-.89h-47.39z' fill='%2345DFA7'/%3E%3C/mask%3E%3Cg mask='url(%23a)'%3E%3Cpath d='M5 74.687c2.49-2.34 8.24-11 9.52-13.44 13.66-2.12 20.19 10 20.46 13.52a116.257 116.257 0 01-7.76 14.13' fill='%23000'/%3E%3Cpath d='M5 74.687c2.49-2.34 8.24-11 9.52-13.44 13.66-2.12 20.19 10 20.46 13.52a116.257 116.257 0 01-7.76 14.13' stroke='%23000' stroke-width='.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E\")}"
|
|
45
45
|
/*__inner_css_end__*/
|
|
46
|
-
, "
|
|
46
|
+
, "y12gr_gg_")
|
|
47
47
|
/*__reshadow_css_end__*/
|
|
48
48
|
, {
|
|
49
|
-
"__SFeedbackForm": "
|
|
50
|
-
"__SCancel": "
|
|
51
|
-
"__SSubmit": "
|
|
52
|
-
"__SNotice": "
|
|
53
|
-
"__SSuccess": "
|
|
54
|
-
"__SEmail": "
|
|
49
|
+
"__SFeedbackForm": "___SFeedbackForm_y12gr_gg_",
|
|
50
|
+
"__SCancel": "___SCancel_y12gr_gg_",
|
|
51
|
+
"__SSubmit": "___SSubmit_y12gr_gg_",
|
|
52
|
+
"__SNotice": "___SNotice_y12gr_gg_",
|
|
53
|
+
"__SSuccess": "___SSuccess_y12gr_gg_",
|
|
54
|
+
"__SEmail": "___SEmail_y12gr_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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/feedback-form",
|
|
3
3
|
"description": "Semrush Feedback Form Component",
|
|
4
|
-
"version": "5.1.
|
|
4
|
+
"version": "5.1.14",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"author": "UI-kit team <ui-kit-team@semrush.com>",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "
|
|
12
|
+
"build": "pnpm semcore-builder --source=js",
|
|
13
13
|
"test": "jest"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"directory": "semcore/feedback-form"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
+
"@types/react": "16.8 - 17",
|
|
39
40
|
"@semcore/jest-preset-ui": "1.0.0"
|
|
40
41
|
},
|
|
41
42
|
"overrides": {
|
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;
|