lucide-preact 0.97.0 → 0.99.0
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/cjs/lucide-preact.js +48 -6
- package/dist/cjs/lucide-preact.js.map +1 -1
- package/dist/esm/createPreactComponent.js +3 -3
- package/dist/esm/icons/dumbbell.js +24 -0
- package/dist/esm/icons/index.js +2 -0
- package/dist/esm/icons/monitor-smartphone.js +19 -0
- package/dist/lucide-preact.d.ts +2 -0
- package/dist/umd/lucide-preact.js +48 -6
- package/dist/umd/lucide-preact.js.map +1 -1
- package/dist/umd/lucide-preact.min.js +2 -2
- package/dist/umd/lucide-preact.min.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* lucide-preact v0.
|
|
2
|
+
* lucide-preact v0.99.0 - ISC
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8
|
-
|
|
9
7
|
var preact = require('preact');
|
|
10
8
|
|
|
11
9
|
var defaultAttributes = {
|
|
@@ -28,7 +26,6 @@ var defaultAttributes = {
|
|
|
28
26
|
* @param {string} string
|
|
29
27
|
* @returns {string} A kebabized string
|
|
30
28
|
*/
|
|
31
|
-
|
|
32
29
|
const toKebabCase = string => string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
33
30
|
var createPreactComponent = ((iconName, iconNode) => {
|
|
34
31
|
const Component = ({
|
|
@@ -37,7 +34,8 @@ var createPreactComponent = ((iconName, iconNode) => {
|
|
|
37
34
|
strokeWidth = 2,
|
|
38
35
|
children,
|
|
39
36
|
...rest
|
|
40
|
-
}) => preact.h('svg', {
|
|
37
|
+
}) => preact.h('svg', {
|
|
38
|
+
...defaultAttributes,
|
|
41
39
|
width: size,
|
|
42
40
|
height: size,
|
|
43
41
|
stroke: color,
|
|
@@ -45,7 +43,6 @@ var createPreactComponent = ((iconName, iconNode) => {
|
|
|
45
43
|
class: `lucide lucide-${toKebabCase(iconName)}`,
|
|
46
44
|
...rest
|
|
47
45
|
}, [...iconNode.map(([tag, attrs]) => preact.h(tag, attrs)), ...preact.toChildArray(children)]);
|
|
48
|
-
|
|
49
46
|
Component.displayName = `${iconName}`;
|
|
50
47
|
return Component;
|
|
51
48
|
});
|
|
@@ -4853,6 +4850,30 @@ const Drumstick = createPreactComponent('Drumstick', [['path', {
|
|
|
4853
4850
|
}]]);
|
|
4854
4851
|
var Drumstick$1 = Drumstick;
|
|
4855
4852
|
|
|
4853
|
+
const Dumbbell = createPreactComponent('Dumbbell', [['path', {
|
|
4854
|
+
d: 'm6.5 6.5 11 11',
|
|
4855
|
+
key: 'f7oqzb'
|
|
4856
|
+
}], ['path', {
|
|
4857
|
+
d: 'm21 21-1-1',
|
|
4858
|
+
key: 'cpc6if'
|
|
4859
|
+
}], ['path', {
|
|
4860
|
+
d: 'm3 3 1 1',
|
|
4861
|
+
key: 'd3rpuf'
|
|
4862
|
+
}], ['path', {
|
|
4863
|
+
d: 'm18 22 4-4',
|
|
4864
|
+
key: '1e32o6'
|
|
4865
|
+
}], ['path', {
|
|
4866
|
+
d: 'm2 6 4-4',
|
|
4867
|
+
key: '189tqz'
|
|
4868
|
+
}], ['path', {
|
|
4869
|
+
d: 'm3 10 7-7',
|
|
4870
|
+
key: '1bxui2'
|
|
4871
|
+
}], ['path', {
|
|
4872
|
+
d: 'm14 21 7-7',
|
|
4873
|
+
key: '16x78n'
|
|
4874
|
+
}]]);
|
|
4875
|
+
var Dumbbell$1 = Dumbbell;
|
|
4876
|
+
|
|
4856
4877
|
const EarOff = createPreactComponent('EarOff', [['path', {
|
|
4857
4878
|
d: 'M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46',
|
|
4858
4879
|
key: '1qngmn'
|
|
@@ -9820,6 +9841,25 @@ const MonitorOff = createPreactComponent('MonitorOff', [['path', {
|
|
|
9820
9841
|
}]]);
|
|
9821
9842
|
var MonitorOff$1 = MonitorOff;
|
|
9822
9843
|
|
|
9844
|
+
const MonitorSmartphone = createPreactComponent('MonitorSmartphone', [['path', {
|
|
9845
|
+
d: 'M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8',
|
|
9846
|
+
key: '10dyio'
|
|
9847
|
+
}], ['path', {
|
|
9848
|
+
d: 'M10 19v-3.96 3.15',
|
|
9849
|
+
key: '1irgej'
|
|
9850
|
+
}], ['path', {
|
|
9851
|
+
d: 'M7 19h5',
|
|
9852
|
+
key: 'qswx4l'
|
|
9853
|
+
}], ['rect', {
|
|
9854
|
+
x: '16',
|
|
9855
|
+
y: '12',
|
|
9856
|
+
width: '6',
|
|
9857
|
+
height: '10',
|
|
9858
|
+
rx: '2',
|
|
9859
|
+
key: 'k4sdfk'
|
|
9860
|
+
}]]);
|
|
9861
|
+
var MonitorSmartphone$1 = MonitorSmartphone;
|
|
9862
|
+
|
|
9823
9863
|
const MonitorSpeaker = createPreactComponent('MonitorSpeaker', [['path', {
|
|
9824
9864
|
d: 'M5.5 20H8',
|
|
9825
9865
|
key: '1k40s5'
|
|
@@ -15118,6 +15158,7 @@ exports.Dribbble = Dribbble$1;
|
|
|
15118
15158
|
exports.Droplet = Droplet$1;
|
|
15119
15159
|
exports.Droplets = Droplets$1;
|
|
15120
15160
|
exports.Drumstick = Drumstick$1;
|
|
15161
|
+
exports.Dumbbell = Dumbbell$1;
|
|
15121
15162
|
exports.Ear = Ear$1;
|
|
15122
15163
|
exports.EarOff = EarOff$1;
|
|
15123
15164
|
exports.Edit = Edit$1;
|
|
@@ -15408,6 +15449,7 @@ exports.MinusCircle = MinusCircle$1;
|
|
|
15408
15449
|
exports.MinusSquare = MinusSquare$1;
|
|
15409
15450
|
exports.Monitor = Monitor$1;
|
|
15410
15451
|
exports.MonitorOff = MonitorOff$1;
|
|
15452
|
+
exports.MonitorSmartphone = MonitorSmartphone$1;
|
|
15411
15453
|
exports.MonitorSpeaker = MonitorSpeaker$1;
|
|
15412
15454
|
exports.Moon = Moon$1;
|
|
15413
15455
|
exports.MoreHorizontal = MoreHorizontal$1;
|