lucide-react 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.
@@ -1,47 +1,36 @@
1
1
  /**
2
- * lucide-react v0.97.0 - ISC
2
+ * lucide-react 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 react = require('react');
10
8
  var PropTypes = require('prop-types');
11
9
 
12
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
-
14
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
-
16
10
  function _extends() {
17
11
  _extends = Object.assign ? Object.assign.bind() : function (target) {
18
12
  for (var i = 1; i < arguments.length; i++) {
19
13
  var source = arguments[i];
20
-
21
14
  for (var key in source) {
22
15
  if (Object.prototype.hasOwnProperty.call(source, key)) {
23
16
  target[key] = source[key];
24
17
  }
25
18
  }
26
19
  }
27
-
28
20
  return target;
29
21
  };
30
22
  return _extends.apply(this, arguments);
31
23
  }
32
-
33
24
  function _objectWithoutPropertiesLoose(source, excluded) {
34
25
  if (source == null) return {};
35
26
  var target = {};
36
27
  var sourceKeys = Object.keys(source);
37
28
  var key, i;
38
-
39
29
  for (i = 0; i < sourceKeys.length; i++) {
40
30
  key = sourceKeys[i];
41
31
  if (excluded.indexOf(key) >= 0) continue;
42
32
  target[key] = source[key];
43
33
  }
44
-
45
34
  return target;
46
35
  }
47
36
 
@@ -58,6 +47,7 @@ var defaultAttributes = {
58
47
  };
59
48
 
60
49
  var _excluded = ["color", "size", "strokeWidth", "children"];
50
+
61
51
  /**
62
52
  * Converts string to KebabCase
63
53
  * Copied from scripts/helper. If anyone knows how to properly import it here
@@ -66,21 +56,19 @@ var _excluded = ["color", "size", "strokeWidth", "children"];
66
56
  * @param {string} string
67
57
  * @returns {string} A kebabized string
68
58
  */
69
-
70
59
  var toKebabCase = function toKebabCase(string) {
71
60
  return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
72
61
  };
73
62
  var createReactComponent = (function (iconName, iconNode) {
74
63
  var Component = react.forwardRef(function (_ref, ref) {
75
64
  var _ref$color = _ref.color,
76
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
77
- _ref$size = _ref.size,
78
- size = _ref$size === void 0 ? 24 : _ref$size,
79
- _ref$strokeWidth = _ref.strokeWidth,
80
- strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
81
- children = _ref.children,
82
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
83
-
65
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
66
+ _ref$size = _ref.size,
67
+ size = _ref$size === void 0 ? 24 : _ref$size,
68
+ _ref$strokeWidth = _ref.strokeWidth,
69
+ strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
70
+ children = _ref.children,
71
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
84
72
  return react.createElement('svg', _extends({
85
73
  ref: ref
86
74
  }, defaultAttributes, {
@@ -91,14 +79,14 @@ var createReactComponent = (function (iconName, iconNode) {
91
79
  className: "lucide lucide-" + toKebabCase(iconName)
92
80
  }, rest), [].concat(iconNode.map(function (_ref2) {
93
81
  var tag = _ref2[0],
94
- attrs = _ref2[1];
82
+ attrs = _ref2[1];
95
83
  return react.createElement(tag, attrs);
96
84
  }), children || []));
97
85
  });
98
86
  Component.propTypes = {
99
- color: PropTypes__default["default"].string,
100
- size: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
101
- strokeWidth: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
87
+ color: PropTypes.string,
88
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
89
+ strokeWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
102
90
  };
103
91
  Component.displayName = "" + iconName;
104
92
  return Component;
@@ -4907,6 +4895,30 @@ var Drumstick = createReactComponent('Drumstick', [['path', {
4907
4895
  }]]);
4908
4896
  var Drumstick$1 = Drumstick;
4909
4897
 
4898
+ var Dumbbell = createReactComponent('Dumbbell', [['path', {
4899
+ d: 'm6.5 6.5 11 11',
4900
+ key: 'f7oqzb'
4901
+ }], ['path', {
4902
+ d: 'm21 21-1-1',
4903
+ key: 'cpc6if'
4904
+ }], ['path', {
4905
+ d: 'm3 3 1 1',
4906
+ key: 'd3rpuf'
4907
+ }], ['path', {
4908
+ d: 'm18 22 4-4',
4909
+ key: '1e32o6'
4910
+ }], ['path', {
4911
+ d: 'm2 6 4-4',
4912
+ key: '189tqz'
4913
+ }], ['path', {
4914
+ d: 'm3 10 7-7',
4915
+ key: '1bxui2'
4916
+ }], ['path', {
4917
+ d: 'm14 21 7-7',
4918
+ key: '16x78n'
4919
+ }]]);
4920
+ var Dumbbell$1 = Dumbbell;
4921
+
4910
4922
  var EarOff = createReactComponent('EarOff', [['path', {
4911
4923
  d: 'M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46',
4912
4924
  key: '1qngmn'
@@ -9874,6 +9886,25 @@ var MonitorOff = createReactComponent('MonitorOff', [['path', {
9874
9886
  }]]);
9875
9887
  var MonitorOff$1 = MonitorOff;
9876
9888
 
9889
+ var MonitorSmartphone = createReactComponent('MonitorSmartphone', [['path', {
9890
+ d: 'M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8',
9891
+ key: '10dyio'
9892
+ }], ['path', {
9893
+ d: 'M10 19v-3.96 3.15',
9894
+ key: '1irgej'
9895
+ }], ['path', {
9896
+ d: 'M7 19h5',
9897
+ key: 'qswx4l'
9898
+ }], ['rect', {
9899
+ x: '16',
9900
+ y: '12',
9901
+ width: '6',
9902
+ height: '10',
9903
+ rx: '2',
9904
+ key: 'k4sdfk'
9905
+ }]]);
9906
+ var MonitorSmartphone$1 = MonitorSmartphone;
9907
+
9877
9908
  var MonitorSpeaker = createReactComponent('MonitorSpeaker', [['path', {
9878
9909
  d: 'M5.5 20H8',
9879
9910
  key: '1k40s5'
@@ -15172,6 +15203,7 @@ exports.Dribbble = Dribbble$1;
15172
15203
  exports.Droplet = Droplet$1;
15173
15204
  exports.Droplets = Droplets$1;
15174
15205
  exports.Drumstick = Drumstick$1;
15206
+ exports.Dumbbell = Dumbbell$1;
15175
15207
  exports.Ear = Ear$1;
15176
15208
  exports.EarOff = EarOff$1;
15177
15209
  exports.Edit = Edit$1;
@@ -15462,6 +15494,7 @@ exports.MinusCircle = MinusCircle$1;
15462
15494
  exports.MinusSquare = MinusSquare$1;
15463
15495
  exports.Monitor = Monitor$1;
15464
15496
  exports.MonitorOff = MonitorOff$1;
15497
+ exports.MonitorSmartphone = MonitorSmartphone$1;
15465
15498
  exports.MonitorSpeaker = MonitorSpeaker$1;
15466
15499
  exports.Moon = Moon$1;
15467
15500
  exports.MoreHorizontal = MoreHorizontal$1;