@semcore/feedback-form 16.1.12 → 16.2.0-prerelease.2
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 +7 -0
- package/README.md +4 -4
- package/lib/cjs/FeedbackForm.js +7 -7
- package/lib/cjs/component/checkbox-button/CheckboxButton.js +3 -3
- package/lib/cjs/component/feedback-rating/FeedbackRating.js +27 -29
- package/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +1 -1
- package/lib/cjs/component/slider-rating/SliderRating.js +6 -6
- package/lib/cjs/style/feedback-rating.shadow.css +8 -0
- package/lib/es6/FeedbackForm.js +7 -7
- package/lib/es6/component/checkbox-button/CheckboxButton.js +3 -3
- package/lib/es6/component/feedback-rating/FeedbackRating.js +21 -23
- package/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
- package/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +1 -1
- package/lib/es6/component/slider-rating/SliderRating.js +6 -6
- package/lib/es6/style/feedback-rating.shadow.css +8 -0
- package/lib/esm/FeedbackForm.mjs +8 -8
- package/lib/esm/component/checkbox-button/CheckboxButton.mjs +4 -4
- package/lib/esm/component/feedback-rating/FeedbackRating.mjs +21 -25
- package/lib/esm/component/slider-rating/SliderRating.mjs +7 -7
- package/lib/esm/style/feedback-rating.shadow.css +8 -0
- package/lib/types/component/feedback-rating/FeedbackRating.d.ts +14 -1
- package/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +6 -0
- package/package.json +5 -5
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import { Box } from '@semcore/base-components';
|
|
2
|
+
import type { Intergalactic } from '@semcore/core';
|
|
1
3
|
import { Component } from '@semcore/core';
|
|
2
4
|
import { NoticeBubbleManager } from '@semcore/notice-bubble';
|
|
5
|
+
import { Text } from '@semcore/typography';
|
|
3
6
|
import React from 'react';
|
|
4
7
|
import type { FeedbackRatingProps, FeedbackRatingType, FormConfigItem } from './FeedbackRating.type';
|
|
5
8
|
type State = {
|
|
6
9
|
error: boolean;
|
|
7
10
|
};
|
|
8
|
-
declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, State, typeof FeedbackRatingRoot.enhance> {
|
|
11
|
+
declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, State, typeof FeedbackRatingRoot.enhance, typeof FeedbackRatingRoot.defaultProps> {
|
|
9
12
|
static displayName: string;
|
|
10
13
|
static style: {
|
|
11
14
|
[key: string]: string;
|
|
@@ -190,6 +193,16 @@ declare class FeedbackRatingRoot extends Component<FeedbackRatingProps, {}, Stat
|
|
|
190
193
|
};
|
|
191
194
|
};
|
|
192
195
|
locale: string;
|
|
196
|
+
Illustration: Intergalactic.Component<"svg", any, {}, never[]>;
|
|
197
|
+
Notice: (<Tag extends Intergalactic.InternalTypings.ComponentTag | [Intergalactic.InternalTypings.ComponentTag, keyof JSX.IntrinsicElements] = "div", Props extends import("@semcore/notice").NoticeProps = import("@semcore/notice").NoticeProps>(props: Intergalactic.InternalTypings.ComponentProps<Tag, "div", Props, import("@semcore/notice").NoticeContext, never[]>) => Intergalactic.InternalTypings.ComponentRenderingResults) & Intergalactic.InternalTypings.ComponentAdditive<"div", Intergalactic.InternalTypings.ComponentTag, import("@semcore/notice").NoticeProps, import("@semcore/notice").NoticeContext, never[]> & {
|
|
198
|
+
Label: Intergalactic.Component<"div", import("@semcore/notice").NoticeLabelProps>;
|
|
199
|
+
Actions: typeof Box;
|
|
200
|
+
Content: typeof Box;
|
|
201
|
+
Title: typeof Text;
|
|
202
|
+
Text: typeof Text;
|
|
203
|
+
CloseIcon: Intergalactic.Component<"div", import("@semcore/icon").IconProps>;
|
|
204
|
+
Close: import("@semcore/button").ButtonComponent;
|
|
205
|
+
};
|
|
193
206
|
};
|
|
194
207
|
static validate: {
|
|
195
208
|
description: (error: Error | string) => (value?: string) => string | Error | undefined;
|
|
@@ -2,6 +2,8 @@ import type Button from '@semcore/button';
|
|
|
2
2
|
import type Checkbox from '@semcore/checkbox';
|
|
3
3
|
import type { CheckboxProps } from '@semcore/checkbox';
|
|
4
4
|
import type { Intergalactic } from '@semcore/core';
|
|
5
|
+
import type { IllustrationProps } from '@semcore/illustration';
|
|
6
|
+
import type Notice from '@semcore/notice';
|
|
5
7
|
import type { Text } from '@semcore/typography';
|
|
6
8
|
import type React from 'react';
|
|
7
9
|
import type { FieldProps } from 'react-final-form';
|
|
@@ -48,6 +50,10 @@ export type FeedbackRatingProps = Intergalactic.InternalTypings.EfficientOmit<Fe
|
|
|
48
50
|
errorFeedbackEmail: string;
|
|
49
51
|
/** Specifies the locale for i18n support */
|
|
50
52
|
locale?: string;
|
|
53
|
+
/** Illustration element */
|
|
54
|
+
Illustration?: Intergalactic.Component<'svg', IllustrationProps>;
|
|
55
|
+
/** Notice component */
|
|
56
|
+
Notice?: typeof Notice;
|
|
51
57
|
};
|
|
52
58
|
export type FeedbackRatingItemProps = FieldProps<any, any> & {
|
|
53
59
|
/**
|
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": "16.
|
|
4
|
+
"version": "16.2.0-prerelease.2",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"@semcore/notice-bubble": "16.1.12",
|
|
20
20
|
"@semcore/typography": "16.3.2",
|
|
21
21
|
"@semcore/link": "16.0.11",
|
|
22
|
-
"@semcore/modal": "16.1.
|
|
22
|
+
"@semcore/modal": "16.1.13-prerelease.2",
|
|
23
23
|
"@semcore/illustration": "16.0.12",
|
|
24
|
-
"@semcore/icon": "16.7.
|
|
24
|
+
"@semcore/icon": "16.7.4-prerelease.2",
|
|
25
25
|
"@semcore/textarea": "16.0.11",
|
|
26
26
|
"@semcore/input": "16.1.1",
|
|
27
27
|
"final-form": "4.20.7",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@types/final-form-focus": "1.1.7",
|
|
45
|
-
"@semcore/
|
|
46
|
-
"@semcore/
|
|
45
|
+
"@semcore/core": "16.5.1",
|
|
46
|
+
"@semcore/testing-utils": "1.0.0"
|
|
47
47
|
},
|
|
48
48
|
"overrides": {
|
|
49
49
|
"final-form": {
|