lucide-react 0.98.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.98.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;
@@ -9898,6 +9886,25 @@ var MonitorOff = createReactComponent('MonitorOff', [['path', {
9898
9886
  }]]);
9899
9887
  var MonitorOff$1 = MonitorOff;
9900
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
+
9901
9908
  var MonitorSpeaker = createReactComponent('MonitorSpeaker', [['path', {
9902
9909
  d: 'M5.5 20H8',
9903
9910
  key: '1k40s5'
@@ -15487,6 +15494,7 @@ exports.MinusCircle = MinusCircle$1;
15487
15494
  exports.MinusSquare = MinusSquare$1;
15488
15495
  exports.Monitor = Monitor$1;
15489
15496
  exports.MonitorOff = MonitorOff$1;
15497
+ exports.MonitorSmartphone = MonitorSmartphone$1;
15490
15498
  exports.MonitorSpeaker = MonitorSpeaker$1;
15491
15499
  exports.Moon = Moon$1;
15492
15500
  exports.MoreHorizontal = MoreHorizontal$1;