superdesk-ui-framework 4.0.21 → 4.0.22
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/app-typescript/components/IconPicker.tsx +5 -10
- package/dist/examples.bundle.js +2500 -2506
- package/dist/superdesk-ui.bundle.css +0 -10875
- package/dist/superdesk-ui.bundle.js +2217 -2229
- package/dist/vendor.bundle.js +23 -36632
- package/package.json +1 -1
- package/react/components/IconPicker.js +2 -7
- package/tasks/webpack.prod.js +1 -0
package/package.json
CHANGED
@@ -49,8 +49,6 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
49
49
|
Object.defineProperty(exports, "__esModule", { value: true });
|
50
50
|
exports.IconPicker = void 0;
|
51
51
|
var React = __importStar(require("react"));
|
52
|
-
// @ts-ignore
|
53
|
-
var iconFont = __importStar(require("../../app/styles/_icon-font.scss"));
|
54
52
|
var Button_1 = require("./Button");
|
55
53
|
var Icon_1 = require("./Icon");
|
56
54
|
var SelectGrid_1 = require("./SelectGrid");
|
@@ -281,11 +279,8 @@ var getIcons = function (translateFunction) {
|
|
281
279
|
'zoom-in': 'Zoom In',
|
282
280
|
'zoom-out': 'Zoom Out',
|
283
281
|
};
|
284
|
-
return
|
285
|
-
.split(', ')
|
286
|
-
.sort()
|
287
|
-
.map(function (icon) { return ({
|
282
|
+
return Object.keys(translatedIconNameMap).sort().map(function (icon) { return ({
|
288
283
|
value: icon,
|
289
|
-
label:
|
284
|
+
label: translateFunction(translatedIconNameMap[icon]),
|
290
285
|
}); });
|
291
286
|
};
|