@sb1/ffe-feedback-react 4.1.10 → 4.1.12

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/README.md CHANGED
@@ -12,7 +12,7 @@ npm install --save @sb1/ffe-feedback-react
12
12
 
13
13
  Full documentation is not yet available, but will be added to https://design.sparebank1.no/komponenter.
14
14
 
15
- This package depends on `@sb1/ffe-buttons-react` and `@sb1/ffe-form-react`.
15
+ This package depends on `@sb1/ffe-buttons-react`, `@sb1/ffe-icons-react` and `@sb1/ffe-form-react`.
16
16
  Make sure you import the less-files.
17
17
 
18
18
  ## Development
@@ -1,13 +1,10 @@
1
1
  import React from 'react';
2
2
  import { txt } from './i18n/texts';
3
- import { ThumbUp, ThumbUpFill, ThumbDown, ThumbDownFill } from './icons';
4
3
  export var FeedbackThumbs = function (_a) {
5
4
  var locale = _a.locale, onClick = _a.onClick, headingId = _a.headingId;
6
5
  return (React.createElement("div", null,
7
6
  React.createElement("button", { "aria-label": txt[locale].ARIA_LABEL_THUMB_UP, "aria-describedby": headingId, className: "ffe-feedback__thumb", onClick: function () { return onClick('THUMB_UP'); }, type: "button" },
8
- React.createElement(ThumbUp, { className: "ffe-feedback__thumb-icon" }),
9
- React.createElement(ThumbUpFill, { className: "ffe-feedback__thumb-icon--fill" })),
10
- React.createElement("button", { "aria-label": txt[locale].ARIA_LABEL_THUMB_DOWN, "aria-describedby": headingId, className: "ffe-feedback__thumb", onClick: function () { return onClick('THUMB_DOWN'); }, type: "button" },
11
- React.createElement(ThumbDown, { className: "ffe-feedback__thumb-icon" }),
12
- React.createElement(ThumbDownFill, { className: "ffe-feedback__thumb-icon--fill" }))));
7
+ React.createElement("span", { className: "ffe-icons ffe-icons--xl" })),
8
+ React.createElement("button", { "aria-label": txt[locale].ARIA_LABEL_THUMB_DOWN, "aria-describedby": headingId, className: "ffe-feedback__thumb ffe-feedback__thumb--down", onClick: function () { return onClick('THUMB_DOWN'); }, type: "button" },
9
+ React.createElement("span", { className: "ffe-icons ffe-icons--xl" }))));
13
10
  };
@@ -1 +1 @@
1
- {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts","../src/icons/ThumbDown.tsx","../src/icons/ThumbDownFill.tsx","../src/icons/ThumbUp.tsx","../src/icons/index.ts","../src/icons/thumbUpFill.tsx"],"version":"5.6.3"}
1
+ {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts"],"version":"5.6.3"}
@@ -6,15 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FeedbackThumbs = void 0;
7
7
  var react_1 = __importDefault(require("react"));
8
8
  var texts_1 = require("./i18n/texts");
9
- var icons_1 = require("./icons");
10
9
  var FeedbackThumbs = function (_a) {
11
10
  var locale = _a.locale, onClick = _a.onClick, headingId = _a.headingId;
12
11
  return (react_1.default.createElement("div", null,
13
12
  react_1.default.createElement("button", { "aria-label": texts_1.txt[locale].ARIA_LABEL_THUMB_UP, "aria-describedby": headingId, className: "ffe-feedback__thumb", onClick: function () { return onClick('THUMB_UP'); }, type: "button" },
14
- react_1.default.createElement(icons_1.ThumbUp, { className: "ffe-feedback__thumb-icon" }),
15
- react_1.default.createElement(icons_1.ThumbUpFill, { className: "ffe-feedback__thumb-icon--fill" })),
16
- react_1.default.createElement("button", { "aria-label": texts_1.txt[locale].ARIA_LABEL_THUMB_DOWN, "aria-describedby": headingId, className: "ffe-feedback__thumb", onClick: function () { return onClick('THUMB_DOWN'); }, type: "button" },
17
- react_1.default.createElement(icons_1.ThumbDown, { className: "ffe-feedback__thumb-icon" }),
18
- react_1.default.createElement(icons_1.ThumbDownFill, { className: "ffe-feedback__thumb-icon--fill" }))));
13
+ react_1.default.createElement("span", { className: "ffe-icons ffe-icons--xl" })),
14
+ react_1.default.createElement("button", { "aria-label": texts_1.txt[locale].ARIA_LABEL_THUMB_DOWN, "aria-describedby": headingId, className: "ffe-feedback__thumb ffe-feedback__thumb--down", onClick: function () { return onClick('THUMB_DOWN'); }, type: "button" },
15
+ react_1.default.createElement("span", { className: "ffe-icons ffe-icons--xl" }))));
19
16
  };
20
17
  exports.FeedbackThumbs = FeedbackThumbs;
@@ -1 +1 @@
1
- {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts","../src/icons/ThumbDown.tsx","../src/icons/ThumbDownFill.tsx","../src/icons/ThumbUp.tsx","../src/icons/index.ts","../src/icons/thumbUpFill.tsx"],"version":"5.6.3"}
1
+ {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts"],"version":"5.6.3"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sb1/ffe-feedback-react",
3
- "version": "4.1.10",
3
+ "version": "4.1.12",
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.23",
30
- "@sb1/ffe-core-react": "^9.1.5",
31
- "@sb1/ffe-feedback": "^2.0.4",
32
- "@sb1/ffe-form-react": "^21.1.19",
29
+ "@sb1/ffe-buttons-react": "^24.0.24",
30
+ "@sb1/ffe-core-react": "^9.1.6",
31
+ "@sb1/ffe-feedback": "^2.0.6",
32
+ "@sb1/ffe-form-react": "^21.1.20",
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": "bc77548d36d946e33feeb6c3f39e8ca651a5c698"
47
+ "gitHead": "f333281e4ff76b987a83f40af0b83c3999638d99"
48
48
  }
@@ -1 +1 @@
1
- {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts","../src/icons/ThumbDown.tsx","../src/icons/ThumbDownFill.tsx","../src/icons/ThumbUp.tsx","../src/icons/index.ts","../src/icons/thumbUpFill.tsx"],"version":"5.6.3"}
1
+ {"root":["../src/Feedback.tsx","../src/FeedbackExpanded.tsx","../src/FeedbackThumbs.tsx","../src/HighFive.tsx","../src/index.ts","../src/i18n/en.ts","../src/i18n/nb.ts","../src/i18n/nn.ts","../src/i18n/texts.ts"],"version":"5.6.3"}
@@ -1,14 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- export var ThumbDown = function (props) { return (React.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
14
- React.createElement("path", { d: "M105-328q-24 0-42-18t-18-42v-81.839Q45-477 43.5-484.5T45-499l126-290q8.878-21.25 29.595-36.125T244-840h444v512L463-90q-13.6 14-32.187 16.5T395-81q-17-10-25.5-27.5t-4.2-36.5L404-328zm523-25v-427H231L105-481v93h373l-53 249zm193-487q24.75 0 42.375 17.625T881-780v392q0 24.75-17.625 42.375T821-328H688v-60h133v-392H688v-60zm-193 60v427z" }))); };
@@ -1,14 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- export var ThumbDownFill = function (props) { return (React.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
14
- React.createElement("path", { d: "M239-840h467v512L428-40l-33-26q-11-8-14.5-18t-3.5-23v-10l45-211H100q-23 0-41.5-18.5T40-388v-82q0-11 2.5-25.5T50-521l116-268q9-21 29.5-36t43.5-15m527 512v-512h114v512z" }))); };
@@ -1,14 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- export var ThumbUp = function (props) { return (React.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
14
- React.createElement("path", { d: "M855-632q24 0 42 18t18 42v81.839q0 7.161 1.5 14.661T915-461L789-171q-8.878 21.25-29.595 36.125T716-120H272v-512l225-238q13.6-14 32.187-16.5T565-879q17 10 25.5 27.5t4.2 36.5L556-632zm-523 25v427h397l126-299v-93H482l53-249zM139-120q-24.75 0-42.375-17.625T79-180v-392q0-24.75 17.625-42.375T139-632h133v60H139v392h133v60zm193-60v-427z" }))); };
package/es/icons/index.js DELETED
@@ -1,4 +0,0 @@
1
- export { ThumbUp } from './ThumbUp';
2
- export { ThumbUpFill } from './thumbUpFill';
3
- export { ThumbDown } from './ThumbDown';
4
- export { ThumbDownFill } from './ThumbDownFill';
@@ -1,14 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import React from 'react';
13
- export var ThumbUpFill = function (props) { return (React.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
14
- React.createElement("path", { d: "M860-632q23 0 41.5 18.5T920-572v82q0 11-2.5 25.5T910-439L794-171q-9 21-29.5 36T721-120H314q-25 0-42.5-17.5T254-180v-428q0-11 4.5-22t12.5-19l207-218q14-14 33.5-17t36.5 7 25.5 28 4.5 37l-38 180zM137-120q-23 0-40-17t-17-40v-398q0-23 17-40t40-17 40 17 17 40v398q0 23-17 40t-40 17" }))); };
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ThumbDown = void 0;
18
- var react_1 = __importDefault(require("react"));
19
- var ThumbDown = function (props) { return (react_1.default.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
20
- react_1.default.createElement("path", { d: "M105-328q-24 0-42-18t-18-42v-81.839Q45-477 43.5-484.5T45-499l126-290q8.878-21.25 29.595-36.125T244-840h444v512L463-90q-13.6 14-32.187 16.5T395-81q-17-10-25.5-27.5t-4.2-36.5L404-328zm523-25v-427H231L105-481v93h373l-53 249zm193-487q24.75 0 42.375 17.625T881-780v392q0 24.75-17.625 42.375T821-328H688v-60h133v-392H688v-60zm-193 60v427z" }))); };
21
- exports.ThumbDown = ThumbDown;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ThumbDownFill = void 0;
18
- var react_1 = __importDefault(require("react"));
19
- var ThumbDownFill = function (props) { return (react_1.default.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
20
- react_1.default.createElement("path", { d: "M239-840h467v512L428-40l-33-26q-11-8-14.5-18t-3.5-23v-10l45-211H100q-23 0-41.5-18.5T40-388v-82q0-11 2.5-25.5T50-521l116-268q9-21 29.5-36t43.5-15m527 512v-512h114v512z" }))); };
21
- exports.ThumbDownFill = ThumbDownFill;
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ThumbUp = void 0;
18
- var react_1 = __importDefault(require("react"));
19
- var ThumbUp = function (props) { return (react_1.default.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
20
- react_1.default.createElement("path", { d: "M855-632q24 0 42 18t18 42v81.839q0 7.161 1.5 14.661T915-461L789-171q-8.878 21.25-29.595 36.125T716-120H272v-512l225-238q13.6-14 32.187-16.5T565-879q17 10 25.5 27.5t4.2 36.5L556-632zm-523 25v427h397l126-299v-93H482l53-249zM139-120q-24.75 0-42.375-17.625T79-180v-392q0-24.75 17.625-42.375T139-632h133v60H139v392h133v60zm193-60v-427z" }))); };
21
- exports.ThumbUp = ThumbUp;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThumbDownFill = exports.ThumbDown = exports.ThumbUpFill = exports.ThumbUp = void 0;
4
- var ThumbUp_1 = require("./ThumbUp");
5
- Object.defineProperty(exports, "ThumbUp", { enumerable: true, get: function () { return ThumbUp_1.ThumbUp; } });
6
- var thumbUpFill_1 = require("./thumbUpFill");
7
- Object.defineProperty(exports, "ThumbUpFill", { enumerable: true, get: function () { return thumbUpFill_1.ThumbUpFill; } });
8
- var ThumbDown_1 = require("./ThumbDown");
9
- Object.defineProperty(exports, "ThumbDown", { enumerable: true, get: function () { return ThumbDown_1.ThumbDown; } });
10
- var ThumbDownFill_1 = require("./ThumbDownFill");
11
- Object.defineProperty(exports, "ThumbDownFill", { enumerable: true, get: function () { return ThumbDownFill_1.ThumbDownFill; } });
@@ -1,21 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __importDefault = (this && this.__importDefault) || function (mod) {
14
- return (mod && mod.__esModule) ? mod : { "default": mod };
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.ThumbUpFill = void 0;
18
- var react_1 = __importDefault(require("react"));
19
- var ThumbUpFill = function (props) { return (react_1.default.createElement("svg", __assign({ "aria-hidden": true, xmlns: "http://www.w3.org/2000/svg", width: 48, height: 48, viewBox: "0 -960 960 960" }, props),
20
- react_1.default.createElement("path", { d: "M860-632q23 0 41.5 18.5T920-572v82q0 11-2.5 25.5T910-439L794-171q-9 21-29.5 36T721-120H314q-25 0-42.5-17.5T254-180v-428q0-11 4.5-22t12.5-19l207-218q14-14 33.5-17t36.5 7 25.5 28 4.5 37l-38 180zM137-120q-23 0-40-17t-17-40v-398q0-23 17-40t40-17 40 17 17 40v398q0 23-17 40t-40 17" }))); };
21
- exports.ThumbUpFill = ThumbUpFill;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ThumbDown: React.FC<React.ComponentPropsWithoutRef<'svg'>>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ThumbDownFill: React.FC<React.ComponentPropsWithoutRef<'svg'>>;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ThumbUp: React.FC<React.ComponentPropsWithoutRef<'svg'>>;
@@ -1,4 +0,0 @@
1
- export { ThumbUp } from './ThumbUp';
2
- export { ThumbUpFill } from './thumbUpFill';
3
- export { ThumbDown } from './ThumbDown';
4
- export { ThumbDownFill } from './ThumbDownFill';
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const ThumbUpFill: React.FC<React.ComponentPropsWithoutRef<'svg'>>;