@sb1/ffe-feedback-react 5.0.1 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/Feedback.js CHANGED
@@ -8,7 +8,7 @@ import { HighFive } from './HighFive';
8
8
  export var Feedback = function (_a) {
9
9
  var _b;
10
10
  var _c;
11
- var headingLevel = _a.headingLevel, _d = _a.locale, locale = _d === void 0 ? 'nb' : _d, onThumbClick = _a.onThumbClick, onFeedbackSend = _a.onFeedbackSend, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, contactLink = _a.contactLink, texts = _a.texts, className = _a.className;
11
+ var headingLevel = _a.headingLevel, _d = _a.locale, locale = _d === void 0 ? 'nb' : _d, onThumbClick = _a.onThumbClick, onFeedbackSend = _a.onFeedbackSend, bgColor = _a.bgColor, contactLink = _a.contactLink, texts = _a.texts, className = _a.className;
12
12
  var feedbackSentRef = useRef();
13
13
  var expandedRef = useRef();
14
14
  var _e = useState(), feedbackThumbClicked = _e[0], setFeedbackThumbClicked = _e[1];
@@ -17,7 +17,6 @@ export var Feedback = function (_a) {
17
17
  var headingId = useId();
18
18
  var feedbackClassnames = classNames('ffe-feedback', (_b = {},
19
19
  _b["ffe-feedback--bg-".concat(bgColor)] = bgColor,
20
- _b["ffe-feedback--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
21
20
  _b), className);
22
21
  var handleThumbClicked = function (thumb) {
23
22
  var _a;
package/lib/Feedback.js CHANGED
@@ -47,7 +47,7 @@ var HighFive_1 = require("./HighFive");
47
47
  var Feedback = function (_a) {
48
48
  var _b;
49
49
  var _c;
50
- var headingLevel = _a.headingLevel, _d = _a.locale, locale = _d === void 0 ? 'nb' : _d, onThumbClick = _a.onThumbClick, onFeedbackSend = _a.onFeedbackSend, bgColor = _a.bgColor, bgDarkmodeColor = _a.bgDarkmodeColor, contactLink = _a.contactLink, texts = _a.texts, className = _a.className;
50
+ var headingLevel = _a.headingLevel, _d = _a.locale, locale = _d === void 0 ? 'nb' : _d, onThumbClick = _a.onThumbClick, onFeedbackSend = _a.onFeedbackSend, bgColor = _a.bgColor, contactLink = _a.contactLink, texts = _a.texts, className = _a.className;
51
51
  var feedbackSentRef = (0, react_1.useRef)();
52
52
  var expandedRef = (0, react_1.useRef)();
53
53
  var _e = (0, react_1.useState)(), feedbackThumbClicked = _e[0], setFeedbackThumbClicked = _e[1];
@@ -56,7 +56,6 @@ var Feedback = function (_a) {
56
56
  var headingId = (0, react_1.useId)();
57
57
  var feedbackClassnames = (0, classnames_1.default)('ffe-feedback', (_b = {},
58
58
  _b["ffe-feedback--bg-".concat(bgColor)] = bgColor,
59
- _b["ffe-feedback--dm-bg-".concat(bgDarkmodeColor)] = bgDarkmodeColor,
60
59
  _b), className);
61
60
  var handleThumbClicked = function (thumb) {
62
61
  var _a;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-feedback-react",
3
- "version": "5.0.1",
3
+ "version": "6.0.1",
4
4
  "description": "React component for ffe-feedback",
5
5
  "license": "MIT",
6
6
  "author": "SpareBank 1",
@@ -26,10 +26,10 @@
26
26
  "test:watch": "ffe-buildtool jest --watch"
27
27
  },
28
28
  "dependencies": {
29
- "@sb1/ffe-buttons-react": "^24.0.35",
30
- "@sb1/ffe-core-react": "^9.1.14",
31
- "@sb1/ffe-feedback": "^3.0.0",
32
- "@sb1/ffe-form-react": "^23.1.0",
29
+ "@sb1/ffe-buttons-react": "^24.0.37",
30
+ "@sb1/ffe-core-react": "^9.1.16",
31
+ "@sb1/ffe-feedback": "^4.0.1",
32
+ "@sb1/ffe-form-react": "^23.1.2",
33
33
  "classnames": "^2.3.1"
34
34
  },
35
35
  "devDependencies": {
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "5f7d8733a09b1fff738887c805237b958dfb5eca"
47
+ "gitHead": "587574e9a65e127ec4027c02b5c996ab45b2b664"
48
48
  }
@@ -6,10 +6,8 @@ export interface FeedbackProps {
6
6
  locale?: 'nb' | 'nn' | 'en';
7
7
  onThumbClick: (thumb: Thumb) => void;
8
8
  onFeedbackSend: (feedbackText: string) => void;
9
- /** Set the background color of the feedback container. Accepts ffe-color variables without the "ffe-farge-" bit of the name. */
10
- bgColor?: 'hvit' | 'frost-30' | 'sand-30' | 'syrin-30' | 'vann-30';
11
- /** Set the background color of the feedback container in darkmode */
12
- bgDarkmodeColor?: 'svart' | 'natt';
9
+ /** Set the background color of the feedback container. */
10
+ bgColor?: 'primary' | 'secondary' | 'tertiary';
13
11
  contactLink?: FeedbackExpandedProps['contactLink'];
14
12
  texts?: {
15
13
  feedbackNotSentHeading?: string;