mithril-materialized 3.14.0 → 3.14.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/dist/index.esm.js +6 -1
- package/dist/index.js +6 -1
- package/dist/index.umd.js +6 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -672,6 +672,7 @@ const iconPaths = {
|
|
|
672
672
|
'M0 0h24v24H0z', // background
|
|
673
673
|
],
|
|
674
674
|
delete: [
|
|
675
|
+
// trashbin
|
|
675
676
|
'M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z',
|
|
676
677
|
'M0 0h24v24H0z', // background
|
|
677
678
|
],
|
|
@@ -689,7 +690,11 @@ const MaterialIcon = () => {
|
|
|
689
690
|
};
|
|
690
691
|
const rotation = (_a = rotationMap[direction]) !== null && _a !== void 0 ? _a : 0;
|
|
691
692
|
const transform = rotation ? `rotate(${rotation}deg)` : undefined;
|
|
692
|
-
|
|
693
|
+
const icon = iconPaths[name];
|
|
694
|
+
if (typeof icon === 'undefined') {
|
|
695
|
+
console.warn(`MaterialIcon with name ${name} not found!`);
|
|
696
|
+
}
|
|
697
|
+
return m('svg', Object.assign(Object.assign({}, props), { style: Object.assign({ transform }, style), height: '24px', width: '24px', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' }), icon === null || icon === void 0 ? void 0 : icon.map((d) => m('path', {
|
|
693
698
|
d,
|
|
694
699
|
fill: d.includes('M0 0h24v24H0z') ? 'none' : 'currentColor',
|
|
695
700
|
})));
|
package/dist/index.js
CHANGED
|
@@ -674,6 +674,7 @@ const iconPaths = {
|
|
|
674
674
|
'M0 0h24v24H0z', // background
|
|
675
675
|
],
|
|
676
676
|
delete: [
|
|
677
|
+
// trashbin
|
|
677
678
|
'M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z',
|
|
678
679
|
'M0 0h24v24H0z', // background
|
|
679
680
|
],
|
|
@@ -691,7 +692,11 @@ const MaterialIcon = () => {
|
|
|
691
692
|
};
|
|
692
693
|
const rotation = (_a = rotationMap[direction]) !== null && _a !== void 0 ? _a : 0;
|
|
693
694
|
const transform = rotation ? `rotate(${rotation}deg)` : undefined;
|
|
694
|
-
|
|
695
|
+
const icon = iconPaths[name];
|
|
696
|
+
if (typeof icon === 'undefined') {
|
|
697
|
+
console.warn(`MaterialIcon with name ${name} not found!`);
|
|
698
|
+
}
|
|
699
|
+
return m('svg', Object.assign(Object.assign({}, props), { style: Object.assign({ transform }, style), height: '24px', width: '24px', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' }), icon === null || icon === void 0 ? void 0 : icon.map((d) => m('path', {
|
|
695
700
|
d,
|
|
696
701
|
fill: d.includes('M0 0h24v24H0z') ? 'none' : 'currentColor',
|
|
697
702
|
})));
|
package/dist/index.umd.js
CHANGED
|
@@ -676,6 +676,7 @@
|
|
|
676
676
|
'M0 0h24v24H0z', // background
|
|
677
677
|
],
|
|
678
678
|
delete: [
|
|
679
|
+
// trashbin
|
|
679
680
|
'M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z',
|
|
680
681
|
'M0 0h24v24H0z', // background
|
|
681
682
|
],
|
|
@@ -693,7 +694,11 @@
|
|
|
693
694
|
};
|
|
694
695
|
const rotation = (_a = rotationMap[direction]) !== null && _a !== void 0 ? _a : 0;
|
|
695
696
|
const transform = rotation ? `rotate(${rotation}deg)` : undefined;
|
|
696
|
-
|
|
697
|
+
const icon = iconPaths[name];
|
|
698
|
+
if (typeof icon === 'undefined') {
|
|
699
|
+
console.warn(`MaterialIcon with name ${name} not found!`);
|
|
700
|
+
}
|
|
701
|
+
return m('svg', Object.assign(Object.assign({}, props), { style: Object.assign({ transform }, style), height: '24px', width: '24px', viewBox: '0 0 24 24', xmlns: 'http://www.w3.org/2000/svg' }), icon === null || icon === void 0 ? void 0 : icon.map((d) => m('path', {
|
|
697
702
|
d,
|
|
698
703
|
fill: d.includes('M0 0h24v24H0z') ? 'none' : 'currentColor',
|
|
699
704
|
})));
|