@semcore/feedback-form 6.43.0-prerelease.0 → 6.43.0-prerelease.1
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/lib/cjs/FeedbackForm.js +28 -22
- package/lib/cjs/FeedbackForm.js.map +1 -1
- package/lib/cjs/component/checkbox-button/CheckboxButton.js +22 -34
- package/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -1
- package/lib/cjs/component/feedback-item/FeedbackItem.js +8 -8
- package/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -1
- package/lib/cjs/component/feedback-rating/FeedbackRating.js +71 -63
- 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 +47 -37
- package/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
- package/lib/cjs/component/submit-button/SubmitButton.js +1 -1
- package/lib/cjs/component/submit-button/SubmitButton.js.map +1 -1
- package/lib/cjs/index.d.js +1 -1
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/style/feedback-form.shadow.css +1 -1
- package/lib/cjs/style/feedback-rating.shadow.css +0 -8
- package/lib/cjs/style/slider-rating.shadow.css +6 -1
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
- package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/es6/FeedbackForm.js +22 -19
- package/lib/es6/FeedbackForm.js.map +1 -1
- package/lib/es6/component/checkbox-button/CheckboxButton.js +16 -31
- package/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -1
- package/lib/es6/component/feedback-item/FeedbackItem.js +7 -7
- package/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -1
- package/lib/es6/component/feedback-rating/FeedbackRating.js +61 -56
- 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 +40 -33
- package/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
- package/lib/es6/component/submit-button/SubmitButton.js +1 -1
- package/lib/es6/component/submit-button/SubmitButton.js.map +1 -1
- package/lib/es6/index.d.js +3 -0
- package/lib/es6/index.d.js.map +1 -1
- package/lib/es6/index.js.map +1 -1
- package/lib/es6/style/feedback-form.shadow.css +1 -1
- package/lib/es6/style/feedback-rating.shadow.css +0 -8
- package/lib/es6/style/slider-rating.shadow.css +6 -1
- package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
- package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
- package/lib/esm/FeedbackForm.mjs +31 -27
- package/lib/esm/component/checkbox-button/CheckboxButton.mjs +22 -34
- package/lib/esm/component/feedback-item/FeedbackItem.mjs +6 -6
- package/lib/esm/component/feedback-rating/FeedbackRating.mjs +64 -52
- package/lib/esm/component/slider-rating/SliderRating.mjs +45 -37
- package/lib/esm/style/feedback-form.shadow.css +1 -1
- package/lib/esm/style/feedback-rating.shadow.css +0 -8
- package/lib/esm/style/slider-rating.shadow.css +6 -1
- package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
- package/lib/types/component/checkbox-button/CheckboxButton.d.ts +3 -1
- package/lib/types/component/feedback-item/FeedbackItem.d.ts +3 -3
- package/lib/types/component/feedback-rating/FeedbackRating.d.ts +184 -19
- package/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +26 -35
- package/lib/types/component/slider-rating/SliderRating.d.ts +3 -3
- package/lib/types/component/submit-button/SubmitButton.d.ts +1 -1
- package/lib/types/index.d.ts +15 -6
- package/package.json +17 -17
package/lib/esm/FeedbackForm.mjs
CHANGED
|
@@ -3,17 +3,19 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import
|
|
6
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled
|
|
10
|
-
import {
|
|
11
|
-
import Button from "@semcore/button";
|
|
12
|
-
import { NoticeSmart } from "@semcore/notice";
|
|
13
|
-
import SpinContainer from "@semcore/spin-container";
|
|
14
|
-
import createFocusDecorator from "final-form-focus";
|
|
10
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
11
|
+
import createComponent, { sstyled as sstyled$1, Component, assignProps } from "@semcore/core";
|
|
15
12
|
import React from "react";
|
|
16
13
|
import { Form, Field } from "react-final-form";
|
|
14
|
+
import createFocusDecorator from "final-form-focus";
|
|
15
|
+
import Button from "@semcore/button";
|
|
16
|
+
import SpinContainer from "@semcore/spin-container";
|
|
17
|
+
import { NoticeSmart } from "@semcore/notice";
|
|
18
|
+
import { Box } from "@semcore/flex-box";
|
|
17
19
|
import { FeedbackItem } from "./component/feedback-item/FeedbackItem.mjs";
|
|
18
20
|
import { SubmitButton } from "./component/submit-button/SubmitButton.mjs";
|
|
19
21
|
var _excluded = ["Children", "styles", "forwardRef", "loading", "background", "theme"];
|
|
@@ -22,32 +24,33 @@ var style = (
|
|
|
22
24
|
/*__reshadow_css_start__*/
|
|
23
25
|
(sstyled.insert(
|
|
24
26
|
/*__inner_css_start__*/
|
|
25
|
-
`.
|
|
27
|
+
`.___SFeedbackForm_gmoqj_gg_{max-width:320px}.___SCancel_gmoqj_gg_,.___SSubmit_gmoqj_gg_{display:inline-flex;margin-right:var(--intergalactic-spacing-2x, 8px)}.___SNotice_gmoqj_gg_{padding:var(--intergalactic-spacing-3x, 12px) var(--intergalactic-spacing-4x, 16px);border-width:1px 0 0;border-top-style:solid;border-radius:0 0 var(--intergalactic-surface-rounded, calc(6px + 2px)) var(--intergalactic-surface-rounded, calc(6px + 2px))}.___SSuccess_gmoqj_gg_{display:flex;align-items:center;flex-direction:column;width:320px;padding:var(--intergalactic-spacing-10x, 40px);box-sizing:border-box;outline:0}.___SEmail_gmoqj_gg_{margin-bottom:calc(var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px));width:80px;height:80px;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")}`,
|
|
26
28
|
/*__inner_css_end__*/
|
|
27
|
-
"
|
|
29
|
+
"gmoqj_gg_"
|
|
28
30
|
), /*__reshadow_css_end__*/
|
|
29
31
|
{
|
|
30
|
-
"__SFeedbackForm": "
|
|
31
|
-
"__SSubmit": "
|
|
32
|
-
"__SCancel": "
|
|
33
|
-
"__SNotice": "
|
|
34
|
-
"__SSuccess": "
|
|
35
|
-
"__SEmail": "
|
|
32
|
+
"__SFeedbackForm": "___SFeedbackForm_gmoqj_gg_",
|
|
33
|
+
"__SSubmit": "___SSubmit_gmoqj_gg_",
|
|
34
|
+
"__SCancel": "___SCancel_gmoqj_gg_",
|
|
35
|
+
"__SNotice": "___SNotice_gmoqj_gg_",
|
|
36
|
+
"__SSuccess": "___SSuccess_gmoqj_gg_",
|
|
37
|
+
"__SEmail": "___SEmail_gmoqj_gg_"
|
|
36
38
|
})
|
|
37
39
|
);
|
|
38
|
-
var FeedbackForm = /* @__PURE__ */
|
|
40
|
+
var FeedbackForm = /* @__PURE__ */ function(_Component) {
|
|
41
|
+
_inherits(FeedbackForm2, _Component);
|
|
42
|
+
var _super = _createSuper(FeedbackForm2);
|
|
39
43
|
function FeedbackForm2() {
|
|
40
44
|
var _this;
|
|
41
45
|
_classCallCheck(this, FeedbackForm2);
|
|
42
46
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43
47
|
args[_key] = arguments[_key];
|
|
44
48
|
}
|
|
45
|
-
_this =
|
|
46
|
-
_defineProperty(_this, "focusDecorator", createFocusDecorator());
|
|
49
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
50
|
+
_defineProperty(_assertThisInitialized(_this), "focusDecorator", createFocusDecorator());
|
|
47
51
|
return _this;
|
|
48
52
|
}
|
|
49
|
-
|
|
50
|
-
return _createClass(FeedbackForm2, [{
|
|
53
|
+
_createClass(FeedbackForm2, [{
|
|
51
54
|
key: "getItemProps",
|
|
52
55
|
value: function getItemProps() {
|
|
53
56
|
var validateOnBlur = this.asProps.validateOnBlur;
|
|
@@ -64,7 +67,7 @@ var FeedbackForm = /* @__PURE__ */ (function(_Component) {
|
|
|
64
67
|
decorators: [this.focusDecorator]
|
|
65
68
|
}, other), function(api) {
|
|
66
69
|
var _ref4;
|
|
67
|
-
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(SpinContainer, _ref4.cn("SpinContainer", {
|
|
70
|
+
return _ref4 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SpinContainer, _ref4.cn("SpinContainer", {
|
|
68
71
|
"background": background,
|
|
69
72
|
"theme": theme,
|
|
70
73
|
"size": "xl",
|
|
@@ -80,7 +83,8 @@ var FeedbackForm = /* @__PURE__ */ (function(_Component) {
|
|
|
80
83
|
});
|
|
81
84
|
}
|
|
82
85
|
}]);
|
|
83
|
-
|
|
86
|
+
return FeedbackForm2;
|
|
87
|
+
}(Component);
|
|
84
88
|
_defineProperty(FeedbackForm, "displayName", "FeedbackForm");
|
|
85
89
|
_defineProperty(FeedbackForm, "style", style);
|
|
86
90
|
_defineProperty(FeedbackForm, "FinalForm", {
|
|
@@ -116,7 +120,7 @@ function Success(props) {
|
|
|
116
120
|
var Children = props.Children, styles = props.styles;
|
|
117
121
|
var SSuccess = Box;
|
|
118
122
|
var SEmail = "div";
|
|
119
|
-
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SSuccess, _ref5.cn("SSuccess", _objectSpread({}, assignProps({
|
|
123
|
+
return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSuccess, _ref5.cn("SSuccess", _objectSpread({}, assignProps({
|
|
120
124
|
"tabIndex": -1
|
|
121
125
|
}, _ref))), /* @__PURE__ */ React.createElement(SEmail, _ref5.cn("SEmail", {
|
|
122
126
|
"aria-hidden": true
|
|
@@ -127,7 +131,7 @@ function Cancel(props) {
|
|
|
127
131
|
var _ref2 = arguments[0], _ref6;
|
|
128
132
|
var styles = props.styles;
|
|
129
133
|
var SCancel = Button;
|
|
130
|
-
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SCancel, _ref6.cn("SCancel", _objectSpread({}, assignProps({
|
|
134
|
+
return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCancel, _ref6.cn("SCancel", _objectSpread({}, assignProps({
|
|
131
135
|
"type": "reset",
|
|
132
136
|
"use": "secondary",
|
|
133
137
|
"theme": "muted"
|
|
@@ -137,12 +141,12 @@ function Notice(props) {
|
|
|
137
141
|
var _ref3 = arguments[0], _ref7;
|
|
138
142
|
var styles = props.styles, _props$theme = props.theme, theme = _props$theme === void 0 ? "muted" : _props$theme, _props$use = props.use, use = _props$use === void 0 ? "secondary" : _props$use;
|
|
139
143
|
var SNotice = NoticeSmart;
|
|
140
|
-
return _ref7 = sstyled(styles), /* @__PURE__ */ React.createElement(SNotice, _ref7.cn("SNotice", _objectSpread({}, assignProps({
|
|
144
|
+
return _ref7 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SNotice, _ref7.cn("SNotice", _objectSpread({}, assignProps({
|
|
141
145
|
"use:theme": theme,
|
|
142
146
|
"use:use": use
|
|
143
147
|
}, _ref3))));
|
|
144
148
|
}
|
|
145
|
-
const
|
|
149
|
+
const FeedbackForm$1 = createComponent(FeedbackForm, {
|
|
146
150
|
Item: FeedbackItem,
|
|
147
151
|
Success,
|
|
148
152
|
Submit: SubmitButton,
|
|
@@ -150,5 +154,5 @@ const FeedbackForm_default = createComponent(FeedbackForm, {
|
|
|
150
154
|
Notice
|
|
151
155
|
});
|
|
152
156
|
export {
|
|
153
|
-
|
|
157
|
+
FeedbackForm$1 as default
|
|
154
158
|
};
|
|
@@ -2,69 +2,57 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
3
3
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
4
4
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
5
|
-
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
6
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
7
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled
|
|
9
|
-
import {
|
|
10
|
-
import Checkbox from "@semcore/checkbox";
|
|
8
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
9
|
+
import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
|
|
11
10
|
import React from "react";
|
|
11
|
+
import { Box } from "@semcore/flex-box";
|
|
12
|
+
import Checkbox from "@semcore/checkbox";
|
|
12
13
|
var _excluded = ["styles", "id", "label", "type", "focused"];
|
|
13
14
|
/*!__reshadow-styles__:"../../style/checkbox-button.shadow.css"*/
|
|
14
15
|
var style = (
|
|
15
16
|
/*__reshadow_css_start__*/
|
|
16
17
|
(sstyled.insert(
|
|
17
18
|
/*__inner_css_start__*/
|
|
18
|
-
".
|
|
19
|
+
".___SCheckboxButton_1jr0a_gg_{margin-top:var(--intergalactic-spacing-2x, 8px);border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161));border-radius:var(--intergalactic-rounded-medium, 6px)}@supports (color:color(display-p3 0 0 0)){.___SCheckboxButton_1jr0a_gg_{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SCheckboxButton_1jr0a_gg_{border:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SCheckboxButton_1jr0a_gg_ label{width:100%;padding:var(--intergalactic-spacing-3x, 12px);box-sizing:border-box}.___SCheckboxButton_1jr0a_gg_.__checked_1jr0a_gg_{cursor:pointer;border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386));background-color:rgba(0,143,248,.1)}@supports (color:color(display-p3 0 0 0)){.___SCheckboxButton_1jr0a_gg_.__checked_1jr0a_gg_{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386))}@media (color-gamut:p3){.___SCheckboxButton_1jr0a_gg_.__checked_1jr0a_gg_{border-color:var(--intergalactic-border-info-active, color(display-p3 0.01805 0.08333 0.73488 / 0.386))}}}@media (hover:hover){.___SCheckboxButton_1jr0a_gg_:hover{cursor:pointer;border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386));background-color:rgba(0,143,248,.1)}@supports (color:color(display-p3 0 0 0)){.___SCheckboxButton_1jr0a_gg_:hover{border-color:var(--intergalactic-border-info-active, rgba(0, 22, 195, 0.386))}@media (color-gamut:p3){.___SCheckboxButton_1jr0a_gg_:hover{border-color:var(--intergalactic-border-info-active, color(display-p3 0.01805 0.08333 0.73488 / 0.386))}}}.___SCheckboxButton_1jr0a_gg_.__checked_1jr0a_gg_:hover{background-color:rgba(0,143,248,.2)}}",
|
|
19
20
|
/*__inner_css_end__*/
|
|
20
|
-
"
|
|
21
|
+
"1jr0a_gg_"
|
|
21
22
|
), /*__reshadow_css_end__*/
|
|
22
23
|
{
|
|
23
|
-
"__SCheckboxButton": "
|
|
24
|
-
"_checked": "
|
|
24
|
+
"__SCheckboxButton": "___SCheckboxButton_1jr0a_gg_",
|
|
25
|
+
"_checked": "__checked_1jr0a_gg_"
|
|
25
26
|
})
|
|
26
27
|
);
|
|
27
|
-
var CheckboxButtonRoot = /* @__PURE__ */
|
|
28
|
+
var CheckboxButtonRoot = /* @__PURE__ */ function(_Component) {
|
|
29
|
+
_inherits(CheckboxButtonRoot2, _Component);
|
|
30
|
+
var _super = _createSuper(CheckboxButtonRoot2);
|
|
28
31
|
function CheckboxButtonRoot2() {
|
|
29
|
-
var _this;
|
|
30
32
|
_classCallCheck(this, CheckboxButtonRoot2);
|
|
31
|
-
|
|
32
|
-
args[_key] = arguments[_key];
|
|
33
|
-
}
|
|
34
|
-
_this = _callSuper(this, CheckboxButtonRoot2, [].concat(args));
|
|
35
|
-
_defineProperty(_this, "checkboxRef", /* @__PURE__ */ React.createRef());
|
|
36
|
-
return _this;
|
|
33
|
+
return _super.apply(this, arguments);
|
|
37
34
|
}
|
|
38
|
-
|
|
39
|
-
return _createClass(CheckboxButtonRoot2, [{
|
|
40
|
-
key: "componentDidMount",
|
|
41
|
-
value: function componentDidMount() {
|
|
42
|
-
var _this2 = this;
|
|
43
|
-
var focused = this.asProps.focused;
|
|
44
|
-
if (focused) {
|
|
45
|
-
setTimeout(function() {
|
|
46
|
-
var _this2$checkboxRef$cu;
|
|
47
|
-
(_this2$checkboxRef$cu = _this2.checkboxRef.current) === null || _this2$checkboxRef$cu === void 0 || _this2$checkboxRef$cu.focus();
|
|
48
|
-
}, 20);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}, {
|
|
35
|
+
_createClass(CheckboxButtonRoot2, [{
|
|
52
36
|
key: "render",
|
|
53
37
|
value: function render() {
|
|
54
38
|
var _ref = this.asProps, _ref2;
|
|
55
|
-
var _this$asProps = this.asProps, styles = _this$asProps.styles, id = _this$asProps.id, label = _this$asProps.label
|
|
39
|
+
var _this$asProps = this.asProps, styles = _this$asProps.styles, id = _this$asProps.id, label = _this$asProps.label;
|
|
40
|
+
_this$asProps.type;
|
|
41
|
+
var focused = _this$asProps.focused, other = _objectWithoutProperties(_this$asProps, _excluded);
|
|
42
|
+
var autoFocus = focused ? 20 : false;
|
|
56
43
|
var SCheckboxButton = Box;
|
|
57
|
-
return _ref2 = sstyled(styles), /* @__PURE__ */ React.createElement(SCheckboxButton, _ref2.cn("SCheckboxButton", _objectSpread({}, assignProps({
|
|
44
|
+
return _ref2 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SCheckboxButton, _ref2.cn("SCheckboxButton", _objectSpread({}, assignProps({
|
|
58
45
|
"__excludeProps": ["onChange", "id", "type"]
|
|
59
46
|
}, _ref))), /* @__PURE__ */ React.createElement(Checkbox, _ref2.cn("Checkbox", _objectSpread({}, other)), /* @__PURE__ */ React.createElement(Checkbox.Value, {
|
|
60
|
-
|
|
47
|
+
autoFocus,
|
|
61
48
|
"aria-labelledby": id
|
|
62
49
|
}), /* @__PURE__ */ React.createElement(Checkbox.Text, {
|
|
63
50
|
id
|
|
64
51
|
}, label)));
|
|
65
52
|
}
|
|
66
53
|
}]);
|
|
67
|
-
|
|
54
|
+
return CheckboxButtonRoot2;
|
|
55
|
+
}(Component);
|
|
68
56
|
_defineProperty(CheckboxButtonRoot, "style", style);
|
|
69
57
|
var CheckboxButton = createComponent(CheckboxButtonRoot);
|
|
70
58
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
import { assignProps } from "@semcore/core";
|
|
5
|
-
import pick from "@semcore/core/lib/utils/pick";
|
|
6
|
-
import propsForElement from "@semcore/core/lib/utils/propsForElement";
|
|
7
|
-
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
8
|
-
import Tooltip from "@semcore/tooltip";
|
|
9
4
|
import React from "react";
|
|
10
5
|
import { Field } from "react-final-form";
|
|
6
|
+
import Tooltip from "@semcore/tooltip";
|
|
7
|
+
import pick from "@semcore/utils/lib/pick";
|
|
8
|
+
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
9
|
+
import { assignProps } from "@semcore/utils/lib/core";
|
|
10
|
+
import propsForElement from "@semcore/utils/lib/propsForElement";
|
|
11
11
|
var _excluded = ["Children", "tag", "uid", "tooltipProps"], _excluded2 = ["input", "meta"];
|
|
12
12
|
var deafultTooltipPropsList = ["title", "theme", "strategy", "modifiers", "placement", "interaction", "timeout", "visible", "defaultVisible", "onVisibleChange", "offset", "preventOverflow", "arrow", "flip", "computeStyles", "eventListeners", "onFirstUpdate"];
|
|
13
13
|
function FeedbackItem(_ref) {
|
|
@@ -23,7 +23,7 @@ function FeedbackItem(_ref) {
|
|
|
23
23
|
var popperId = "".concat(uid, "-error-description");
|
|
24
24
|
var ariaDescribedBy = props["aria-describedby"];
|
|
25
25
|
var inputProps = assignProps(_objectSpread(_objectSpread({}, propsForElement(other)), {}, {
|
|
26
|
-
|
|
26
|
+
state: errorState ? "invalid" : "normal",
|
|
27
27
|
"aria-invalid": errorState ? true : false,
|
|
28
28
|
"aria-describedby": meta.active ? errorState ? popperId : ariaDescribedBy : void 0
|
|
29
29
|
}), input);
|
|
@@ -3,74 +3,77 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
5
5
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
6
|
-
import
|
|
6
|
+
import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
|
|
7
7
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
8
|
+
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
8
9
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
9
|
-
import { sstyled
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import { sstyled } from "@semcore/utils/lib/core/index";
|
|
11
|
+
import createComponent, { sstyled as sstyled$1, assignProps, Component } from "@semcore/core";
|
|
12
|
+
import React from "react";
|
|
13
|
+
import { Field, Form } from "react-final-form";
|
|
14
|
+
import createFocusDecorator from "final-form-focus";
|
|
15
|
+
import SpinContainer from "@semcore/spin-container";
|
|
16
|
+
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
17
|
+
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
18
|
+
import Notice from "@semcore/notice";
|
|
13
19
|
import CheckM from "@semcore/icon/Check/m";
|
|
14
20
|
import WarnM from "@semcore/icon/Warning/m";
|
|
21
|
+
import { Text } from "@semcore/typography";
|
|
15
22
|
import FeedbackIllustration from "@semcore/illustration/Feedback";
|
|
16
|
-
import Input from "@semcore/input";
|
|
17
23
|
import Link from "@semcore/link";
|
|
24
|
+
import SliderRating from "../slider-rating/SliderRating.mjs";
|
|
18
25
|
import Modal from "@semcore/modal";
|
|
19
|
-
import SemcoreNotice from "@semcore/notice";
|
|
20
|
-
import { NoticeBubbleManager, NoticeBubbleContainer } from "@semcore/notice-bubble";
|
|
21
|
-
import SpinContainer from "@semcore/spin-container";
|
|
22
26
|
import Textarea from "@semcore/textarea";
|
|
23
|
-
import {
|
|
24
|
-
import createFocusDecorator from "final-form-focus";
|
|
25
|
-
import React from "react";
|
|
26
|
-
import { Field, Form } from "react-final-form";
|
|
27
|
-
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
28
|
-
import CheckboxButton from "../checkbox-button/CheckboxButton.mjs";
|
|
27
|
+
import { Flex, Box } from "@semcore/flex-box";
|
|
29
28
|
import { FeedbackItem } from "../feedback-item/FeedbackItem.mjs";
|
|
30
|
-
import SliderRating from "../slider-rating/SliderRating.mjs";
|
|
31
29
|
import { SubmitButton } from "../submit-button/SubmitButton.mjs";
|
|
32
|
-
|
|
30
|
+
import CheckboxButton from "../checkbox-button/CheckboxButton.mjs";
|
|
31
|
+
import Input from "@semcore/input";
|
|
32
|
+
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
33
|
+
import { NoticeBubbleManager, NoticeBubbleContainer } from "@semcore/notice-bubble";
|
|
34
|
+
var _excluded = ["header", "submitText", "formConfig", "notificationText", "notificationTitle", "learnMoreLink", "Children", "styles", "forwardRef", "status", "theme", "background", "rating", "visible", "onVisibleChange", "notificationVisible", "onNotificationClose", "getI18nText", "errorFeedbackEmail", "modalWidth"];
|
|
33
35
|
/*!__reshadow-styles__:"../../style/feedback-rating.shadow.css"*/
|
|
34
36
|
var style = (
|
|
35
37
|
/*__reshadow_css_start__*/
|
|
36
38
|
(sstyled.insert(
|
|
37
39
|
/*__inner_css_start__*/
|
|
38
|
-
".
|
|
40
|
+
".___SFeedbackRating_edx4s_gg_ ul{margin:0;padding:0;list-style:none}.___SFeedbackRating_edx4s_gg_ li{list-style:none}",
|
|
39
41
|
/*__inner_css_end__*/
|
|
40
|
-
"
|
|
42
|
+
"edx4s_gg_"
|
|
41
43
|
), /*__reshadow_css_end__*/
|
|
42
44
|
{
|
|
43
|
-
"__SFeedbackRating": "
|
|
44
|
-
"__SHeader": "___SHeader_13l9c_gg_"
|
|
45
|
+
"__SFeedbackRating": "___SFeedbackRating_edx4s_gg_"
|
|
45
46
|
})
|
|
46
47
|
);
|
|
47
|
-
var FeedbackRatingRoot = /* @__PURE__ */
|
|
48
|
+
var FeedbackRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
49
|
+
_inherits(FeedbackRatingRoot2, _Component);
|
|
50
|
+
var _super = _createSuper(FeedbackRatingRoot2);
|
|
48
51
|
function FeedbackRatingRoot2() {
|
|
49
52
|
var _this;
|
|
50
53
|
_classCallCheck(this, FeedbackRatingRoot2);
|
|
51
54
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
52
55
|
args[_key] = arguments[_key];
|
|
53
56
|
}
|
|
54
|
-
_this =
|
|
55
|
-
_defineProperty(_this, "state", {
|
|
57
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
58
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
56
59
|
error: false
|
|
57
60
|
});
|
|
58
|
-
_defineProperty(_this, "manager", new NoticeBubbleManager());
|
|
59
|
-
_defineProperty(_this, "focusDecorator", createFocusDecorator());
|
|
60
|
-
_defineProperty(_this, "handleChangeRating", function(rating) {
|
|
61
|
+
_defineProperty(_assertThisInitialized(_this), "manager", new NoticeBubbleManager());
|
|
62
|
+
_defineProperty(_assertThisInitialized(_this), "focusDecorator", createFocusDecorator());
|
|
63
|
+
_defineProperty(_assertThisInitialized(_this), "handleChangeRating", function(rating) {
|
|
61
64
|
if (rating > 0) {
|
|
62
65
|
_this.asProps.onVisibleChange(true, rating);
|
|
63
66
|
}
|
|
64
67
|
});
|
|
65
|
-
_defineProperty(_this, "handelCloseModal", function() {
|
|
68
|
+
_defineProperty(_assertThisInitialized(_this), "handelCloseModal", function() {
|
|
66
69
|
_this.asProps.onVisibleChange(false, _this.asProps.rating);
|
|
67
70
|
});
|
|
68
|
-
_defineProperty(_this, "handleChange", function(fn) {
|
|
69
|
-
return function(
|
|
71
|
+
_defineProperty(_assertThisInitialized(_this), "handleChange", function(fn) {
|
|
72
|
+
return function(value, e) {
|
|
70
73
|
fn(e);
|
|
71
74
|
};
|
|
72
75
|
});
|
|
73
|
-
_defineProperty(_this, "renderCheckbox", function(config, index) {
|
|
76
|
+
_defineProperty(_assertThisInitialized(_this), "renderCheckbox", function(config, index) {
|
|
74
77
|
var initialValue = _this.props.initialValues[config.key];
|
|
75
78
|
return /* @__PURE__ */ React.createElement(Field, {
|
|
76
79
|
name: config.key,
|
|
@@ -89,7 +92,7 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
89
92
|
}));
|
|
90
93
|
});
|
|
91
94
|
});
|
|
92
|
-
_defineProperty(_this, "renderTextField", function(config) {
|
|
95
|
+
_defineProperty(_assertThisInitialized(_this), "renderTextField", function(config) {
|
|
93
96
|
var _config$description;
|
|
94
97
|
var initialValue = _this.props.initialValues[config.key];
|
|
95
98
|
var label = typeof config.label === "string" ? /* @__PURE__ */ React.createElement(Text, {
|
|
@@ -98,12 +101,12 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
98
101
|
}, config.label) : config.label;
|
|
99
102
|
var isDescriptionReactFragment = ((_config$description = config.description) === null || _config$description === void 0 ? void 0 : _config$description.type) === React.Fragment;
|
|
100
103
|
return /* @__PURE__ */ React.createElement(Flex, {
|
|
101
|
-
key: config.key,
|
|
102
104
|
direction: "column"
|
|
103
105
|
}, /* @__PURE__ */ React.createElement(Flex, {
|
|
104
106
|
tag: "label",
|
|
105
107
|
mt: 4,
|
|
106
|
-
htmlFor: config.key
|
|
108
|
+
htmlFor: config.key,
|
|
109
|
+
key: config.key
|
|
107
110
|
}, label), /* @__PURE__ */ React.createElement(FeedbackRating.Item, {
|
|
108
111
|
name: config.key,
|
|
109
112
|
validate: config.validate,
|
|
@@ -145,8 +148,7 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
145
148
|
});
|
|
146
149
|
return _this;
|
|
147
150
|
}
|
|
148
|
-
|
|
149
|
-
return _createClass(FeedbackRatingRoot2, [{
|
|
151
|
+
_createClass(FeedbackRatingRoot2, [{
|
|
150
152
|
key: "headerId",
|
|
151
153
|
get: function get() {
|
|
152
154
|
var uid = this.asProps.uid;
|
|
@@ -204,7 +206,11 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
204
206
|
key: "render",
|
|
205
207
|
value: function render() {
|
|
206
208
|
var _ref = this.asProps, _ref2 = this.asProps, _ref4, _this3 = this;
|
|
207
|
-
var _this$asProps2 = this.asProps, header = _this$asProps2.header, submitText = _this$asProps2.submitText, formConfig = _this$asProps2.formConfig, notificationText = _this$asProps2.notificationText, notificationTitle = _this$asProps2.notificationTitle, learnMoreLink = _this$asProps2.learnMoreLink
|
|
209
|
+
var _this$asProps2 = this.asProps, header = _this$asProps2.header, submitText = _this$asProps2.submitText, formConfig = _this$asProps2.formConfig, notificationText = _this$asProps2.notificationText, notificationTitle = _this$asProps2.notificationTitle, learnMoreLink = _this$asProps2.learnMoreLink;
|
|
210
|
+
_this$asProps2.Children;
|
|
211
|
+
var styles = _this$asProps2.styles, forwardRef = _this$asProps2.forwardRef, status = _this$asProps2.status, theme = _this$asProps2.theme, background = _this$asProps2.background, rating = _this$asProps2.rating, visible = _this$asProps2.visible;
|
|
212
|
+
_this$asProps2.onVisibleChange;
|
|
213
|
+
var notificationVisible = _this$asProps2.notificationVisible, onNotificationClose = _this$asProps2.onNotificationClose, getI18nText = _this$asProps2.getI18nText, errorFeedbackEmail = _this$asProps2.errorFeedbackEmail, modalWidth = _this$asProps2.modalWidth, other = _objectWithoutProperties(_this$asProps2, _excluded);
|
|
208
214
|
var SFeedbackRating = Modal;
|
|
209
215
|
var checkboxFields = formConfig.filter(function(item) {
|
|
210
216
|
return item.type === "checkbox";
|
|
@@ -213,29 +219,30 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
213
219
|
return item.type === "textarea" || item.type === "input" || item.type === "email";
|
|
214
220
|
});
|
|
215
221
|
var notificationId = this.getNoticeTextId();
|
|
216
|
-
return _ref4 = sstyled(styles), /* @__PURE__ */ React.createElement(Box, assignProps({}, _ref2), /* @__PURE__ */ React.createElement(
|
|
222
|
+
return _ref4 = sstyled$1(styles), /* @__PURE__ */ React.createElement(Box, assignProps({}, _ref2), /* @__PURE__ */ React.createElement(Notice, _ref4.cn("Notice", {
|
|
217
223
|
"visible": notificationVisible,
|
|
218
224
|
"aria-label": getI18nText("leaveFeedback"),
|
|
219
225
|
"tag": Flex,
|
|
220
226
|
"alignItems": notificationTitle ? "flex-start" : "center"
|
|
221
|
-
}), /* @__PURE__ */ React.createElement(
|
|
227
|
+
}), /* @__PURE__ */ React.createElement(Notice.Label, {
|
|
222
228
|
mr: 3,
|
|
223
229
|
"aria-hidden": true
|
|
224
|
-
}, /* @__PURE__ */ React.createElement(
|
|
225
|
-
gap: 3,
|
|
230
|
+
}, /* @__PURE__ */ React.createElement(FeedbackIllustration, _ref4.cn("FeedbackIllustration", {}))), /* @__PURE__ */ React.createElement(Notice.Content, null, notificationTitle ? /* @__PURE__ */ React.createElement(Notice.Title, null, notificationTitle) : null, /* @__PURE__ */ React.createElement(Notice.Text, {
|
|
226
231
|
tag: Flex,
|
|
227
232
|
alignItems: notificationTitle ? "flex-start" : "center"
|
|
228
233
|
}, /* @__PURE__ */ React.createElement(Text, _ref4.cn("Text", {
|
|
234
|
+
"mr": 3,
|
|
229
235
|
"id": notificationId
|
|
230
|
-
}), notificationText), /* @__PURE__ */ React.createElement(
|
|
236
|
+
}), notificationText), /* @__PURE__ */ React.createElement(Notice.Actions, {
|
|
231
237
|
mt: 0
|
|
232
238
|
}, /* @__PURE__ */ React.createElement(SliderRating, _ref4.cn("SliderRating", {
|
|
233
239
|
"value": rating,
|
|
234
240
|
"onChange": this.handleChangeRating,
|
|
235
241
|
"aria-labelledby": notificationId
|
|
236
242
|
}))), learnMoreLink && /* @__PURE__ */ React.createElement(Link, _ref4.cn("Link", {
|
|
243
|
+
"ml": 3,
|
|
237
244
|
"href": learnMoreLink
|
|
238
|
-
}), getI18nText("learnMore")))), /* @__PURE__ */ React.createElement(
|
|
245
|
+
}), getI18nText("learnMore")))), /* @__PURE__ */ React.createElement(Notice.Close, {
|
|
239
246
|
onClick: onNotificationClose
|
|
240
247
|
})), /* @__PURE__ */ React.createElement(SFeedbackRating, _ref4.cn("SFeedbackRating", _objectSpread({}, assignProps({
|
|
241
248
|
"visible": visible,
|
|
@@ -247,7 +254,7 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
247
254
|
"decorators": [this.focusDecorator]
|
|
248
255
|
}, other)), function(api) {
|
|
249
256
|
var _ref5;
|
|
250
|
-
return _ref5 = sstyled(styles), /* @__PURE__ */ React.createElement(SpinContainer, _ref5.cn("SpinContainer", {
|
|
257
|
+
return _ref5 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SpinContainer, _ref5.cn("SpinContainer", {
|
|
251
258
|
"background": background,
|
|
252
259
|
"theme": theme,
|
|
253
260
|
"size": "xl",
|
|
@@ -281,11 +288,11 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
281
288
|
return _this3.renderCheckbox(formConfigItem, index);
|
|
282
289
|
})), textFields.map(function(formConfigItem) {
|
|
283
290
|
return _this3.renderTextField(formConfigItem);
|
|
284
|
-
}), _this3.state.error && /* @__PURE__ */ React.createElement(
|
|
291
|
+
}), _this3.state.error && /* @__PURE__ */ React.createElement(Notice, _ref5.cn("Notice", {
|
|
285
292
|
"theme": "warning",
|
|
286
293
|
"mt": 4,
|
|
287
294
|
"mb": 4
|
|
288
|
-
}), /* @__PURE__ */ React.createElement(
|
|
295
|
+
}), /* @__PURE__ */ React.createElement(Notice.Label, null, /* @__PURE__ */ React.createElement(WarnM, _ref5.cn("WarnM", {}))), /* @__PURE__ */ React.createElement(Notice.Content, null, getI18nText("errorMessage", {
|
|
289
296
|
// todo: Brauer Ilia - think how to fix type
|
|
290
297
|
// @ts-ignore
|
|
291
298
|
email: /* @__PURE__ */ React.createElement(Link, _ref5.cn("Link", {
|
|
@@ -303,7 +310,8 @@ var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
|
303
310
|
})));
|
|
304
311
|
}
|
|
305
312
|
}]);
|
|
306
|
-
|
|
313
|
+
return FeedbackRatingRoot2;
|
|
314
|
+
}(Component);
|
|
307
315
|
_defineProperty(FeedbackRatingRoot, "displayName", "FeedbackRatingForm");
|
|
308
316
|
_defineProperty(FeedbackRatingRoot, "style", style);
|
|
309
317
|
_defineProperty(FeedbackRatingRoot, "enhance", [i18nEnhance(localizedMessages), uniqueIDEnhancement()]);
|
|
@@ -311,9 +319,7 @@ _defineProperty(FeedbackRatingRoot, "defaultProps", {
|
|
|
311
319
|
onSubmit: function onSubmit() {
|
|
312
320
|
},
|
|
313
321
|
i18n: localizedMessages,
|
|
314
|
-
locale: "en"
|
|
315
|
-
Illustration: FeedbackIllustration,
|
|
316
|
-
Notice: SemcoreNotice
|
|
322
|
+
locale: "en"
|
|
317
323
|
});
|
|
318
324
|
_defineProperty(FeedbackRatingRoot, "validate", {
|
|
319
325
|
description: function description(error) {
|
|
@@ -338,8 +344,14 @@ _defineProperty(FeedbackRatingRoot, "validate", {
|
|
|
338
344
|
function Header(props) {
|
|
339
345
|
var _ref3 = arguments[0], _ref6;
|
|
340
346
|
var styles = props.styles;
|
|
341
|
-
var SHeader =
|
|
342
|
-
return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SHeader, _ref6.cn("SHeader", _objectSpread({}, assignProps({
|
|
347
|
+
var SHeader = Text;
|
|
348
|
+
return _ref6 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SHeader, _ref6.cn("SHeader", _objectSpread({}, assignProps({
|
|
349
|
+
"size": 300,
|
|
350
|
+
"tag": "h2",
|
|
351
|
+
"mb": 4,
|
|
352
|
+
"mt": 4,
|
|
353
|
+
"textAlign": "center"
|
|
354
|
+
}, _ref3))));
|
|
343
355
|
}
|
|
344
356
|
var FeedbackRating = createComponent(FeedbackRatingRoot, {
|
|
345
357
|
Header,
|