@semcore/feedback-form 6.43.0-prerelease.4 → 6.43.0-prerelease.5
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 +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/feedback-form.shadow.css +1 -1
- package/lib/cjs/style/feedback-rating.shadow.css +8 -0
- package/lib/cjs/style/slider-rating.shadow.css +1 -6
- 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/feedback-form.shadow.css +1 -1
- package/lib/es6/style/feedback-rating.shadow.css +8 -0
- package/lib/es6/style/slider-rating.shadow.css +1 -6
- 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/feedback-form.shadow.css +1 -1
- package/lib/esm/style/feedback-rating.shadow.css +8 -0
- package/lib/esm/style/slider-rating.shadow.css +1 -6
- 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
|
@@ -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_1fi8v_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_1fi8v_gg_{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SCheckboxButton_1fi8v_gg_{border:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SCheckboxButton_1fi8v_gg_ label{width:100%;padding:var(--intergalactic-spacing-3x, 12px);box-sizing:border-box}.___SCheckboxButton_1fi8v_gg_.__checked_1fi8v_gg_{cursor:pointer;border-color:var(--intergalactic-border-info-active, rgba(0, 40, 230, 0.419));background-color:rgba(0,143,248,.1)}@media (hover:hover){.___SCheckboxButton_1fi8v_gg_:hover{cursor:pointer;border-color:var(--intergalactic-border-info-active, rgba(0, 40, 230, 0.419));background-color:rgba(0,143,248,.1)}.___SCheckboxButton_1fi8v_gg_.__checked_1fi8v_gg_:hover{background-color:rgba(0,143,248,.2)}}",
|
|
20
19
|
/*__inner_css_end__*/
|
|
21
|
-
"
|
|
20
|
+
"1fi8v_gg_"
|
|
22
21
|
), /*__reshadow_css_end__*/
|
|
23
22
|
{
|
|
24
|
-
"__SCheckboxButton": "
|
|
25
|
-
"_checked": "
|
|
23
|
+
"__SCheckboxButton": "___SCheckboxButton_1fi8v_gg_",
|
|
24
|
+
"_checked": "__checked_1fi8v_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,
|
|
@@ -1,73 +1,67 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
2
2
|
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
3
|
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
4
|
-
import
|
|
4
|
+
import _callSuper from "@babel/runtime/helpers/esm/callSuper";
|
|
5
5
|
import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
6
|
-
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
7
6
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
8
|
-
import { sstyled } from "@semcore/
|
|
9
|
-
import
|
|
7
|
+
import { sstyled, assignProps, Component, createComponent } from "@semcore/core";
|
|
8
|
+
import { Flex, Box } from "@semcore/base-components";
|
|
9
|
+
import i18nEnhance from "@semcore/core/lib/utils/enhances/i18nEnhance";
|
|
10
|
+
import uniqueIDEnhancement from "@semcore/core/lib/utils/uniqueID";
|
|
10
11
|
import React from "react";
|
|
11
|
-
import { Box, Flex } from "@semcore/flex-box";
|
|
12
|
-
import keyboardFocusEnhance from "@semcore/utils/lib/enhances/keyboardFocusEnhance";
|
|
13
|
-
import uniqueIDEnhancement from "@semcore/utils/lib/uniqueID";
|
|
14
|
-
import i18nEnhance from "@semcore/utils/lib/enhances/i18nEnhance";
|
|
15
12
|
import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
|
|
16
13
|
/*!__reshadow-styles__:"../../style/slider-rating.shadow.css"*/
|
|
17
14
|
var style = (
|
|
18
15
|
/*__reshadow_css_start__*/
|
|
19
16
|
(sstyled.insert(
|
|
20
17
|
/*__inner_css_start__*/
|
|
21
|
-
".
|
|
18
|
+
".___SSliderRating_d9wy7_gg_ .___SStar_d9wy7_gg_{transition:all calc(var(--intergalactic-duration-control, 200)*1ms) ease-out}.___SSliderRating_d9wy7_gg_:focus-visible .___SStar_d9wy7_gg_.__hovered_d9wy7_gg_{cursor:pointer;transform:scale(1.3)}@media (hover:hover){.___SSliderRating_d9wy7_gg_ .___SStar_d9wy7_gg_:hover{cursor:pointer;transform:scale(1.3)}.___SSliderRating_d9wy7_gg_.__readonly_d9wy7_gg_ .___SStar_d9wy7_gg_:hover{cursor:default;transform:none;transition:none}}.___SStar_d9wy7_gg_.__filled_d9wy7_gg_:active{animation:wobble .8s ease-in-out}.___SStar_d9wy7_gg_ path{fill:var(--intergalactic-slider-rating-normal, rgb(157, 159, 158))}.___SStar_d9wy7_gg_.__filled_d9wy7_gg_ path{stroke-width:0;fill:var(--intergalactic-slider-rating-hover-active, rgb(168, 106, 254))}",
|
|
22
19
|
/*__inner_css_end__*/
|
|
23
|
-
"
|
|
20
|
+
"d9wy7_gg_"
|
|
24
21
|
), /*__reshadow_css_end__*/
|
|
25
22
|
{
|
|
26
|
-
"__SSliderRating": "
|
|
27
|
-
"__SStar": "
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"_filled": "__filled_wswwd_gg_"
|
|
23
|
+
"__SSliderRating": "___SSliderRating_d9wy7_gg_",
|
|
24
|
+
"__SStar": "___SStar_d9wy7_gg_",
|
|
25
|
+
"_hovered": "__hovered_d9wy7_gg_",
|
|
26
|
+
"_readonly": "__readonly_d9wy7_gg_",
|
|
27
|
+
"_filled": "__filled_d9wy7_gg_"
|
|
32
28
|
})
|
|
33
29
|
);
|
|
34
30
|
var MIN = 1;
|
|
35
31
|
var MAX = 5;
|
|
36
|
-
var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
37
|
-
_inherits(SliderRatingRoot2, _Component);
|
|
38
|
-
var _super = _createSuper(SliderRatingRoot2);
|
|
32
|
+
var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
|
|
39
33
|
function SliderRatingRoot2() {
|
|
40
34
|
var _this;
|
|
41
35
|
_classCallCheck(this, SliderRatingRoot2);
|
|
42
36
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
43
37
|
args[_key] = arguments[_key];
|
|
44
38
|
}
|
|
45
|
-
_this =
|
|
46
|
-
_defineProperty(
|
|
39
|
+
_this = _callSuper(this, SliderRatingRoot2, [].concat(args));
|
|
40
|
+
_defineProperty(_this, "state", {
|
|
47
41
|
hoveredIndex: -1,
|
|
48
42
|
clickedIndex: -1
|
|
49
43
|
});
|
|
50
|
-
_defineProperty(
|
|
51
|
-
return function(
|
|
44
|
+
_defineProperty(_this, "handleClick", function(newValue) {
|
|
45
|
+
return function(_e) {
|
|
52
46
|
var readonly = _this.asProps.readonly;
|
|
53
47
|
if (!readonly) {
|
|
54
48
|
_this.setValue(newValue);
|
|
55
49
|
}
|
|
56
50
|
};
|
|
57
51
|
});
|
|
58
|
-
_defineProperty(
|
|
52
|
+
_defineProperty(_this, "handleMouseEnder", function(index) {
|
|
59
53
|
return function() {
|
|
60
54
|
_this.setState({
|
|
61
55
|
hoveredIndex: index
|
|
62
56
|
});
|
|
63
57
|
};
|
|
64
58
|
});
|
|
65
|
-
_defineProperty(
|
|
59
|
+
_defineProperty(_this, "handleMouseLeave", function() {
|
|
66
60
|
_this.setState({
|
|
67
61
|
hoveredIndex: -1
|
|
68
62
|
});
|
|
69
63
|
});
|
|
70
|
-
_defineProperty(
|
|
64
|
+
_defineProperty(_this, "setValue", function(newValue) {
|
|
71
65
|
var _this$asProps = _this.asProps, onChange = _this$asProps.onChange, value = _this$asProps.value;
|
|
72
66
|
if (onChange) {
|
|
73
67
|
onChange(newValue);
|
|
@@ -84,17 +78,17 @@ var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
|
84
78
|
});
|
|
85
79
|
}
|
|
86
80
|
});
|
|
87
|
-
_defineProperty(
|
|
81
|
+
_defineProperty(_this, "handleKeyDown", function(event) {
|
|
88
82
|
if (!["ArrowLeft", "ArrowRight", "Enter"].includes(event.key)) return;
|
|
89
83
|
event.preventDefault();
|
|
90
84
|
if (event.key === "Enter") {
|
|
91
85
|
var hoveredIndex = _this.state.hoveredIndex;
|
|
92
86
|
_this.setValue(hoveredIndex + 1);
|
|
93
87
|
} else {
|
|
94
|
-
var
|
|
88
|
+
var value = _this.asProps.value;
|
|
95
89
|
var _hoveredIndex = _this.state.hoveredIndex;
|
|
96
90
|
var direction = event.key === "ArrowLeft" ? -1 : 1;
|
|
97
|
-
var newValue = _hoveredIndex === -1 ?
|
|
91
|
+
var newValue = _hoveredIndex === -1 ? value + direction : _hoveredIndex + 1 + direction;
|
|
98
92
|
if (newValue > MAX) newValue = MAX;
|
|
99
93
|
if (newValue < MIN) newValue = MIN;
|
|
100
94
|
_this.setState({
|
|
@@ -104,7 +98,8 @@ var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
|
104
98
|
});
|
|
105
99
|
return _this;
|
|
106
100
|
}
|
|
107
|
-
|
|
101
|
+
_inherits(SliderRatingRoot2, _Component);
|
|
102
|
+
return _createClass(SliderRatingRoot2, [{
|
|
108
103
|
key: "getStarProps",
|
|
109
104
|
value: function getStarProps(_, index) {
|
|
110
105
|
var _this$asProps2 = this.asProps, value = _this$asProps2.value, readonly = _this$asProps2.readonly;
|
|
@@ -151,19 +146,18 @@ var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
|
151
146
|
return /* @__PURE__ */ React.createElement(SSliderRating, assignProps({
|
|
152
147
|
"gap": 1,
|
|
153
148
|
"role": "img",
|
|
154
|
-
"aria-label": label
|
|
155
|
-
"use:tabIndex": -1
|
|
149
|
+
"aria-label": label
|
|
156
150
|
}, _ref), new Array(MAX).fill(null).map(function(_, index) {
|
|
157
|
-
return /* @__PURE__ */ React.createElement(
|
|
158
|
-
key: index
|
|
159
|
-
|
|
160
|
-
}, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
|
|
151
|
+
return /* @__PURE__ */ React.createElement(SliderRating.Star, {
|
|
152
|
+
key: index
|
|
153
|
+
});
|
|
161
154
|
}));
|
|
162
155
|
}
|
|
163
156
|
var hoverValue = hoveredIndex + 1;
|
|
164
157
|
var editModeLabel = hoverValue > 0 || value ? "".concat(label, ". ").concat(getI18nText("FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber"), ".") : label;
|
|
165
|
-
return _ref3 = sstyled
|
|
158
|
+
return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SSliderRating, _ref3.cn("SSliderRating", _objectSpread({}, assignProps({
|
|
166
159
|
"gap": 1,
|
|
160
|
+
"tabIndex": 0,
|
|
167
161
|
"onMouseLeave": this.handleMouseLeave,
|
|
168
162
|
"onKeyDown": this.handleKeyDown,
|
|
169
163
|
"role": "slider",
|
|
@@ -173,18 +167,16 @@ var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
|
|
|
173
167
|
"aria-valuetext": editModeLabel,
|
|
174
168
|
"aria-valuenow": hoverValue
|
|
175
169
|
}, _ref))), new Array(MAX).fill(null).map(function(_, index) {
|
|
176
|
-
return /* @__PURE__ */ React.createElement(
|
|
177
|
-
key: index
|
|
178
|
-
|
|
179
|
-
}, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
|
|
170
|
+
return /* @__PURE__ */ React.createElement(SliderRating.Star, {
|
|
171
|
+
key: index
|
|
172
|
+
});
|
|
180
173
|
}));
|
|
181
174
|
}
|
|
182
175
|
}]);
|
|
183
|
-
|
|
184
|
-
}(Component);
|
|
176
|
+
})(Component);
|
|
185
177
|
_defineProperty(SliderRatingRoot, "displayName", "SliderRating");
|
|
186
178
|
_defineProperty(SliderRatingRoot, "style", style);
|
|
187
|
-
_defineProperty(SliderRatingRoot, "enhance", [
|
|
179
|
+
_defineProperty(SliderRatingRoot, "enhance", [uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
|
|
188
180
|
_defineProperty(SliderRatingRoot, "defaultProps", {
|
|
189
181
|
i18n: localizedMessages,
|
|
190
182
|
locale: "en"
|
|
@@ -192,7 +184,7 @@ _defineProperty(SliderRatingRoot, "defaultProps", {
|
|
|
192
184
|
function Star(props) {
|
|
193
185
|
var _ref2 = arguments[0], _ref4;
|
|
194
186
|
var SStar = Box;
|
|
195
|
-
return _ref4 = sstyled
|
|
187
|
+
return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SStar, _ref4.cn("SStar", _objectSpread({}, assignProps({
|
|
196
188
|
"tag": "svg",
|
|
197
189
|
"role": "none",
|
|
198
190
|
"width": "24",
|
|
@@ -6,4 +6,12 @@ SFeedbackRating {
|
|
|
6
6
|
ul, li {
|
|
7
7
|
list-style: none;
|
|
8
8
|
}
|
|
9
|
+
|
|
10
|
+
SHeader {
|
|
11
|
+
font-size: var(--intergalactic-fs-300, 16px);
|
|
12
|
+
line-height: var(--intergalactic-lh-300, 150%);
|
|
13
|
+
font-weight: var(--intergalactic-bold, 700);
|
|
14
|
+
margin: var(--intergalactic-spacing-4x, 16px) 0;
|
|
15
|
+
text-align: center;
|
|
16
|
+
}
|
|
9
17
|
}
|
|
@@ -2,17 +2,12 @@ SSliderRating SStar {
|
|
|
2
2
|
transition: all calc(var(--intergalactic-duration-control, 200) * 1ms) ease-out;
|
|
3
3
|
}
|
|
4
4
|
|
|
5
|
-
SSliderRating
|
|
5
|
+
SSliderRating:focus-visible SStar[hovered],
|
|
6
6
|
SSliderRating SStar:hover {
|
|
7
7
|
cursor: pointer;
|
|
8
8
|
transform: scale(1.3);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
SSliderRating[keyboardFocused] {
|
|
12
|
-
outline: none;
|
|
13
|
-
box-shadow: var(--intergalactic-keyboard-focus, 0px 0px 0px 3px oklch(0.424 0.269 264.2 / 0.469));
|
|
14
|
-
}
|
|
15
|
-
|
|
16
11
|
SSliderRating[readonly] SStar:hover {
|
|
17
12
|
cursor: default;
|
|
18
13
|
transform: none;
|
|
@@ -6,12 +6,12 @@ import it from "./it.json.mjs";
|
|
|
6
6
|
import ja from "./ja.json.mjs";
|
|
7
7
|
import ko from "./ko.json.mjs";
|
|
8
8
|
import nl from "./nl.json.mjs";
|
|
9
|
+
import pl from "./pl.json.mjs";
|
|
9
10
|
import pt from "./pt.json.mjs";
|
|
11
|
+
import sv from "./sv.json.mjs";
|
|
10
12
|
import tr from "./tr.json.mjs";
|
|
11
13
|
import vi from "./vi.json.mjs";
|
|
12
14
|
import zh from "./zh.json.mjs";
|
|
13
|
-
import pl from "./pl.json.mjs";
|
|
14
|
-
import sv from "./sv.json.mjs";
|
|
15
15
|
var localizedMessages = {
|
|
16
16
|
de,
|
|
17
17
|
en,
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
declare const CheckboxButton: import("@semcore/core").
|
|
2
|
-
[key: string]: (arg: unknown) => void;
|
|
3
|
-
}, null>;
|
|
1
|
+
declare const CheckboxButton: import("@semcore/core").Intergalactic.Component<"div", {}, {}, never[]>;
|
|
4
2
|
export default CheckboxButton;
|