@semcore/feedback-form 6.43.0-prerelease.5 → 6.43.0-prerelease.6

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.
Files changed (60) hide show
  1. package/lib/cjs/FeedbackForm.js +28 -22
  2. package/lib/cjs/FeedbackForm.js.map +1 -1
  3. package/lib/cjs/component/checkbox-button/CheckboxButton.js +22 -34
  4. package/lib/cjs/component/checkbox-button/CheckboxButton.js.map +1 -1
  5. package/lib/cjs/component/feedback-item/FeedbackItem.js +8 -8
  6. package/lib/cjs/component/feedback-item/FeedbackItem.js.map +1 -1
  7. package/lib/cjs/component/feedback-rating/FeedbackRating.js +71 -63
  8. package/lib/cjs/component/feedback-rating/FeedbackRating.js.map +1 -1
  9. package/lib/cjs/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  10. package/lib/cjs/component/slider-rating/SliderRating.js +47 -37
  11. package/lib/cjs/component/slider-rating/SliderRating.js.map +1 -1
  12. package/lib/cjs/component/submit-button/SubmitButton.js +1 -1
  13. package/lib/cjs/component/submit-button/SubmitButton.js.map +1 -1
  14. package/lib/cjs/index.d.js +1 -1
  15. package/lib/cjs/index.d.js.map +1 -1
  16. package/lib/cjs/index.js +1 -1
  17. package/lib/cjs/index.js.map +1 -1
  18. package/lib/cjs/style/feedback-form.shadow.css +1 -1
  19. package/lib/cjs/style/feedback-rating.shadow.css +0 -8
  20. package/lib/cjs/style/slider-rating.shadow.css +6 -1
  21. package/lib/cjs/translations/__intergalactic-dynamic-locales.js +5 -4
  22. package/lib/cjs/translations/__intergalactic-dynamic-locales.js.map +1 -1
  23. package/lib/es6/FeedbackForm.js +22 -19
  24. package/lib/es6/FeedbackForm.js.map +1 -1
  25. package/lib/es6/component/checkbox-button/CheckboxButton.js +16 -31
  26. package/lib/es6/component/checkbox-button/CheckboxButton.js.map +1 -1
  27. package/lib/es6/component/feedback-item/FeedbackItem.js +7 -7
  28. package/lib/es6/component/feedback-item/FeedbackItem.js.map +1 -1
  29. package/lib/es6/component/feedback-rating/FeedbackRating.js +61 -56
  30. package/lib/es6/component/feedback-rating/FeedbackRating.js.map +1 -1
  31. package/lib/es6/component/feedback-rating/FeedbackRating.type.js.map +1 -1
  32. package/lib/es6/component/slider-rating/SliderRating.js +40 -33
  33. package/lib/es6/component/slider-rating/SliderRating.js.map +1 -1
  34. package/lib/es6/component/submit-button/SubmitButton.js +1 -1
  35. package/lib/es6/component/submit-button/SubmitButton.js.map +1 -1
  36. package/lib/es6/index.d.js +3 -0
  37. package/lib/es6/index.d.js.map +1 -1
  38. package/lib/es6/index.js.map +1 -1
  39. package/lib/es6/style/feedback-form.shadow.css +1 -1
  40. package/lib/es6/style/feedback-rating.shadow.css +0 -8
  41. package/lib/es6/style/slider-rating.shadow.css +6 -1
  42. package/lib/es6/translations/__intergalactic-dynamic-locales.js +2 -2
  43. package/lib/es6/translations/__intergalactic-dynamic-locales.js.map +1 -1
  44. package/lib/esm/FeedbackForm.mjs +31 -27
  45. package/lib/esm/component/checkbox-button/CheckboxButton.mjs +22 -34
  46. package/lib/esm/component/feedback-item/FeedbackItem.mjs +6 -6
  47. package/lib/esm/component/feedback-rating/FeedbackRating.mjs +64 -52
  48. package/lib/esm/component/slider-rating/SliderRating.mjs +45 -37
  49. package/lib/esm/style/feedback-form.shadow.css +1 -1
  50. package/lib/esm/style/feedback-rating.shadow.css +0 -8
  51. package/lib/esm/style/slider-rating.shadow.css +6 -1
  52. package/lib/esm/translations/__intergalactic-dynamic-locales.mjs +2 -2
  53. package/lib/types/component/checkbox-button/CheckboxButton.d.ts +3 -1
  54. package/lib/types/component/feedback-item/FeedbackItem.d.ts +3 -3
  55. package/lib/types/component/feedback-rating/FeedbackRating.d.ts +184 -19
  56. package/lib/types/component/feedback-rating/FeedbackRating.type.d.ts +26 -35
  57. package/lib/types/component/slider-rating/SliderRating.d.ts +3 -3
  58. package/lib/types/component/submit-button/SubmitButton.d.ts +1 -1
  59. package/lib/types/index.d.ts +15 -6
  60. package/package.json +17 -17
@@ -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, assignProps, Component, createComponent } from "@semcore/core";
9
- import { Box } from "@semcore/base-components";
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
- ".___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)}}",
19
+ ".___SCheckboxButton_mti6w_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_mti6w_gg_{border:1px solid var(--intergalactic-border-primary, rgba(0, 12, 8, 0.161))}@media (color-gamut:p3){.___SCheckboxButton_mti6w_gg_{border:1px solid var(--intergalactic-border-primary, color(display-p3 0.00798 0.04498 0.03219 / 0.161))}}}.___SCheckboxButton_mti6w_gg_ label{width:100%;padding:var(--intergalactic-spacing-3x, 12px);box-sizing:border-box}.___SCheckboxButton_mti6w_gg_.__checked_mti6w_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_mti6w_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_mti6w_gg_.__checked_mti6w_gg_:hover{background-color:rgba(0,143,248,.2)}}",
19
20
  /*__inner_css_end__*/
20
- "1fi8v_gg_"
21
+ "mti6w_gg_"
21
22
  ), /*__reshadow_css_end__*/
22
23
  {
23
- "__SCheckboxButton": "___SCheckboxButton_1fi8v_gg_",
24
- "_checked": "__checked_1fi8v_gg_"
24
+ "__SCheckboxButton": "___SCheckboxButton_mti6w_gg_",
25
+ "_checked": "__checked_mti6w_gg_"
25
26
  })
26
27
  );
27
- var CheckboxButtonRoot = /* @__PURE__ */ (function(_Component) {
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
- 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;
33
+ return _super.apply(this, arguments);
37
34
  }
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
- }, {
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, _type = _this$asProps.type, focused = _this$asProps.focused, other = _objectWithoutProperties(_this$asProps, _excluded);
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
- ref: this.checkboxRef,
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
- })(Component);
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
- "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,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 _callSuper from "@babel/runtime/helpers/esm/callSuper";
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, 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";
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 { 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";
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
- var _excluded = ["header", "submitText", "formConfig", "notificationText", "notificationTitle", "learnMoreLink", "Children", "styles", "forwardRef", "status", "theme", "background", "rating", "visible", "onVisibleChange", "notificationVisible", "onNotificationClose", "getI18nText", "errorFeedbackEmail", "modalWidth", "Illustration", "Notice"];
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
- ".___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}",
40
+ ".___SFeedbackRating_5vu23_gg_ ul{margin:0;padding:0;list-style:none}.___SFeedbackRating_5vu23_gg_ li{list-style:none}",
39
41
  /*__inner_css_end__*/
40
- "13l9c_gg_"
42
+ "5vu23_gg_"
41
43
  ), /*__reshadow_css_end__*/
42
44
  {
43
- "__SFeedbackRating": "___SFeedbackRating_13l9c_gg_",
44
- "__SHeader": "___SHeader_13l9c_gg_"
45
+ "__SFeedbackRating": "___SFeedbackRating_5vu23_gg_"
45
46
  })
46
47
  );
47
- var FeedbackRatingRoot = /* @__PURE__ */ (function(_Component) {
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 = _callSuper(this, FeedbackRatingRoot2, [].concat(args));
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(_value, e) {
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
- _inherits(FeedbackRatingRoot2, _Component);
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, _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);
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(NoticeComponent, _ref4.cn("NoticeComponent", {
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(NoticeComponent.Label, {
227
+ }), /* @__PURE__ */ React.createElement(Notice.Label, {
222
228
  mr: 3,
223
229
  "aria-hidden": true
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,
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(NoticeComponent.Actions, {
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(NoticeComponent.Close, {
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(SemcoreNotice, _ref5.cn("SemcoreNotice", {
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(SemcoreNotice.Label, null, /* @__PURE__ */ React.createElement(WarnM, _ref5.cn("WarnM", {}))), /* @__PURE__ */ React.createElement(SemcoreNotice.Content, null, getI18nText("errorMessage", {
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
- })(Component);
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 = Modal.Title;
342
- return _ref6 = sstyled(styles), /* @__PURE__ */ React.createElement(SHeader, _ref6.cn("SHeader", _objectSpread({}, assignProps({}, _ref3))));
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,
@@ -1,67 +1,73 @@
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 _callSuper from "@babel/runtime/helpers/esm/callSuper";
4
+ import _assertThisInitialized from "@babel/runtime/helpers/esm/assertThisInitialized";
5
5
  import _inherits from "@babel/runtime/helpers/esm/inherits";
6
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
6
7
  import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
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";
8
+ import { sstyled } from "@semcore/utils/lib/core/index";
9
+ import createComponent, { assignProps, sstyled as sstyled$1, Component } from "@semcore/core";
11
10
  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";
12
15
  import { localizedMessages } from "../../translations/__intergalactic-dynamic-locales.mjs";
13
16
  /*!__reshadow-styles__:"../../style/slider-rating.shadow.css"*/
14
17
  var style = (
15
18
  /*__reshadow_css_start__*/
16
19
  (sstyled.insert(
17
20
  /*__inner_css_start__*/
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))}",
21
+ ".___SSliderRating_1g8lf_gg_ .___SStar_1g8lf_gg_{transition:all calc(var(--intergalactic-duration-control, 200)*1ms) ease-out}.___SSliderRating_1g8lf_gg_.__keyboardFocused_1g8lf_gg_ .___SStar_1g8lf_gg_.__hovered_1g8lf_gg_{cursor:pointer;transform:scale(1.3)}@media (hover:hover){.___SSliderRating_1g8lf_gg_ .___SStar_1g8lf_gg_:hover{cursor:pointer;transform:scale(1.3)}}.___SSliderRating_1g8lf_gg_.__keyboardFocused_1g8lf_gg_{outline:0;box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469))}@supports (color:color(display-p3 0 0 0)){.___SSliderRating_1g8lf_gg_.__keyboardFocused_1g8lf_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 33, 220, 0.469))}@media (color-gamut:p3){.___SSliderRating_1g8lf_gg_.__keyboardFocused_1g8lf_gg_{box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px color(display-p3 0.03256 0.12227 0.83249 / 0.469))}}}@media (hover:hover){.___SSliderRating_1g8lf_gg_.__readonly_1g8lf_gg_ .___SStar_1g8lf_gg_:hover{cursor:default;transform:none;transition:none}}.___SStar_1g8lf_gg_.__filled_1g8lf_gg_:active{animation:wobble .8s ease-in-out}.___SStar_1g8lf_gg_ path{fill:var(--intergalactic-slider-rating-normal, rgb(157, 159, 158))}.___SStar_1g8lf_gg_.__filled_1g8lf_gg_ path{stroke-width:0;fill:var(--intergalactic-slider-rating-hover-active, rgb(168, 106, 254))}",
19
22
  /*__inner_css_end__*/
20
- "d9wy7_gg_"
23
+ "1g8lf_gg_"
21
24
  ), /*__reshadow_css_end__*/
22
25
  {
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_"
26
+ "__SSliderRating": "___SSliderRating_1g8lf_gg_",
27
+ "__SStar": "___SStar_1g8lf_gg_",
28
+ "_keyboardFocused": "__keyboardFocused_1g8lf_gg_",
29
+ "_hovered": "__hovered_1g8lf_gg_",
30
+ "_readonly": "__readonly_1g8lf_gg_",
31
+ "_filled": "__filled_1g8lf_gg_"
28
32
  })
29
33
  );
30
34
  var MIN = 1;
31
35
  var MAX = 5;
32
- var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
36
+ var SliderRatingRoot = /* @__PURE__ */ function(_Component) {
37
+ _inherits(SliderRatingRoot2, _Component);
38
+ var _super = _createSuper(SliderRatingRoot2);
33
39
  function SliderRatingRoot2() {
34
40
  var _this;
35
41
  _classCallCheck(this, SliderRatingRoot2);
36
42
  for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
37
43
  args[_key] = arguments[_key];
38
44
  }
39
- _this = _callSuper(this, SliderRatingRoot2, [].concat(args));
40
- _defineProperty(_this, "state", {
45
+ _this = _super.call.apply(_super, [this].concat(args));
46
+ _defineProperty(_assertThisInitialized(_this), "state", {
41
47
  hoveredIndex: -1,
42
48
  clickedIndex: -1
43
49
  });
44
- _defineProperty(_this, "handleClick", function(newValue) {
45
- return function(_e) {
50
+ _defineProperty(_assertThisInitialized(_this), "handleClick", function(newValue) {
51
+ return function(e) {
46
52
  var readonly = _this.asProps.readonly;
47
53
  if (!readonly) {
48
54
  _this.setValue(newValue);
49
55
  }
50
56
  };
51
57
  });
52
- _defineProperty(_this, "handleMouseEnder", function(index) {
58
+ _defineProperty(_assertThisInitialized(_this), "handleMouseEnder", function(index) {
53
59
  return function() {
54
60
  _this.setState({
55
61
  hoveredIndex: index
56
62
  });
57
63
  };
58
64
  });
59
- _defineProperty(_this, "handleMouseLeave", function() {
65
+ _defineProperty(_assertThisInitialized(_this), "handleMouseLeave", function() {
60
66
  _this.setState({
61
67
  hoveredIndex: -1
62
68
  });
63
69
  });
64
- _defineProperty(_this, "setValue", function(newValue) {
70
+ _defineProperty(_assertThisInitialized(_this), "setValue", function(newValue) {
65
71
  var _this$asProps = _this.asProps, onChange = _this$asProps.onChange, value = _this$asProps.value;
66
72
  if (onChange) {
67
73
  onChange(newValue);
@@ -78,17 +84,17 @@ var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
78
84
  });
79
85
  }
80
86
  });
81
- _defineProperty(_this, "handleKeyDown", function(event) {
87
+ _defineProperty(_assertThisInitialized(_this), "handleKeyDown", function(event) {
82
88
  if (!["ArrowLeft", "ArrowRight", "Enter"].includes(event.key)) return;
83
89
  event.preventDefault();
84
90
  if (event.key === "Enter") {
85
91
  var hoveredIndex = _this.state.hoveredIndex;
86
92
  _this.setValue(hoveredIndex + 1);
87
93
  } else {
88
- var value = _this.asProps.value;
94
+ var _value = _this.asProps.value;
89
95
  var _hoveredIndex = _this.state.hoveredIndex;
90
96
  var direction = event.key === "ArrowLeft" ? -1 : 1;
91
- var newValue = _hoveredIndex === -1 ? value + direction : _hoveredIndex + 1 + direction;
97
+ var newValue = _hoveredIndex === -1 ? _value + direction : _hoveredIndex + 1 + direction;
92
98
  if (newValue > MAX) newValue = MAX;
93
99
  if (newValue < MIN) newValue = MIN;
94
100
  _this.setState({
@@ -98,8 +104,7 @@ var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
98
104
  });
99
105
  return _this;
100
106
  }
101
- _inherits(SliderRatingRoot2, _Component);
102
- return _createClass(SliderRatingRoot2, [{
107
+ _createClass(SliderRatingRoot2, [{
103
108
  key: "getStarProps",
104
109
  value: function getStarProps(_, index) {
105
110
  var _this$asProps2 = this.asProps, value = _this$asProps2.value, readonly = _this$asProps2.readonly;
@@ -146,18 +151,19 @@ var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
146
151
  return /* @__PURE__ */ React.createElement(SSliderRating, assignProps({
147
152
  "gap": 1,
148
153
  "role": "img",
149
- "aria-label": label
154
+ "aria-label": label,
155
+ "use:tabIndex": -1
150
156
  }, _ref), new Array(MAX).fill(null).map(function(_, index) {
151
- return /* @__PURE__ */ React.createElement(SliderRating.Star, {
152
- key: index
153
- });
157
+ return /* @__PURE__ */ React.createElement(Box, {
158
+ key: index,
159
+ position: "relative"
160
+ }, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
154
161
  }));
155
162
  }
156
163
  var hoverValue = hoveredIndex + 1;
157
164
  var editModeLabel = hoverValue > 0 || value ? "".concat(label, ". ").concat(getI18nText("FeedbackRating.SliderRating.ScreenReaderOnly.sliderDescriber"), ".") : label;
158
- return _ref3 = sstyled(styles), /* @__PURE__ */ React.createElement(SSliderRating, _ref3.cn("SSliderRating", _objectSpread({}, assignProps({
165
+ return _ref3 = sstyled$1(styles), /* @__PURE__ */ React.createElement(SSliderRating, _ref3.cn("SSliderRating", _objectSpread({}, assignProps({
159
166
  "gap": 1,
160
- "tabIndex": 0,
161
167
  "onMouseLeave": this.handleMouseLeave,
162
168
  "onKeyDown": this.handleKeyDown,
163
169
  "role": "slider",
@@ -167,16 +173,18 @@ var SliderRatingRoot = /* @__PURE__ */ (function(_Component) {
167
173
  "aria-valuetext": editModeLabel,
168
174
  "aria-valuenow": hoverValue
169
175
  }, _ref))), new Array(MAX).fill(null).map(function(_, index) {
170
- return /* @__PURE__ */ React.createElement(SliderRating.Star, {
171
- key: index
172
- });
176
+ return /* @__PURE__ */ React.createElement(Box, {
177
+ key: index,
178
+ position: "relative"
179
+ }, /* @__PURE__ */ React.createElement(SliderRating.Star, null));
173
180
  }));
174
181
  }
175
182
  }]);
176
- })(Component);
183
+ return SliderRatingRoot2;
184
+ }(Component);
177
185
  _defineProperty(SliderRatingRoot, "displayName", "SliderRating");
178
186
  _defineProperty(SliderRatingRoot, "style", style);
179
- _defineProperty(SliderRatingRoot, "enhance", [uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
187
+ _defineProperty(SliderRatingRoot, "enhance", [keyboardFocusEnhance(), uniqueIDEnhancement(), i18nEnhance(localizedMessages)]);
180
188
  _defineProperty(SliderRatingRoot, "defaultProps", {
181
189
  i18n: localizedMessages,
182
190
  locale: "en"
@@ -184,7 +192,7 @@ _defineProperty(SliderRatingRoot, "defaultProps", {
184
192
  function Star(props) {
185
193
  var _ref2 = arguments[0], _ref4;
186
194
  var SStar = Box;
187
- return _ref4 = sstyled(props.styles), /* @__PURE__ */ React.createElement(SStar, _ref4.cn("SStar", _objectSpread({}, assignProps({
195
+ return _ref4 = sstyled$1(props.styles), /* @__PURE__ */ React.createElement(SStar, _ref4.cn("SStar", _objectSpread({}, assignProps({
188
196
  "tag": "svg",
189
197
  "role": "none",
190
198
  "width": "24",
@@ -28,7 +28,7 @@ SSuccess {
28
28
 
29
29
  SEmail {
30
30
  margin-bottom: calc(
31
- var(--intergalactic-spacing-4x, 16px)
31
+ var(--intergalactic-spacing-4x, 16px) + var(--intergalactic-spacing-05x, 2px)
32
32
  );
33
33
  width: 80px;
34
34
  height: 80px;
@@ -6,12 +6,4 @@ 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
- }
17
9
  }
@@ -2,12 +2,17 @@ SSliderRating SStar {
2
2
  transition: all calc(var(--intergalactic-duration-control, 200) * 1ms) ease-out;
3
3
  }
4
4
 
5
- SSliderRating:focus-visible SStar[hovered],
5
+ SSliderRating[keyboardFocused] 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
+
11
16
  SSliderRating[readonly] SStar:hover {
12
17
  cursor: default;
13
18
  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";
10
9
  import pt from "./pt.json.mjs";
11
- import sv from "./sv.json.mjs";
12
10
  import tr from "./tr.json.mjs";
13
11
  import vi from "./vi.json.mjs";
14
12
  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,2 +1,4 @@
1
- declare const CheckboxButton: import("@semcore/core").Intergalactic.Component<"div", {}, {}, never[]>;
1
+ declare const CheckboxButton: import("@semcore/core").ComponentType<unknown, {}, {}, {
2
+ [key: string]: (arg: unknown) => void;
3
+ }, null>;
2
4
  export default CheckboxButton;