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