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,12 +1,10 @@
1
1
  var _excluded = ["color", "size", "strokeWidth", "children"];
2
-
3
2
  function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
4
-
5
3
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
6
-
7
4
  import { forwardRef, createElement } from 'react';
8
5
  import PropTypes from 'prop-types';
9
6
  import defaultAttributes from './defaultAttributes';
7
+
10
8
  /**
11
9
  * Converts string to KebabCase
12
10
  * Copied from scripts/helper. If anyone knows how to properly import it here
@@ -15,21 +13,19 @@ import defaultAttributes from './defaultAttributes';
15
13
  * @param {string} string
16
14
  * @returns {string} A kebabized string
17
15
  */
18
-
19
16
  export var toKebabCase = function toKebabCase(string) {
20
17
  return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
21
18
  };
22
19
  export default (function (iconName, iconNode) {
23
20
  var Component = forwardRef(function (_ref, ref) {
24
21
  var _ref$color = _ref.color,
25
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
26
- _ref$size = _ref.size,
27
- size = _ref$size === void 0 ? 24 : _ref$size,
28
- _ref$strokeWidth = _ref.strokeWidth,
29
- strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
30
- children = _ref.children,
31
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
32
-
22
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
23
+ _ref$size = _ref.size,
24
+ size = _ref$size === void 0 ? 24 : _ref$size,
25
+ _ref$strokeWidth = _ref.strokeWidth,
26
+ strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
27
+ children = _ref.children,
28
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
33
29
  return createElement('svg', _extends({
34
30
  ref: ref
35
31
  }, defaultAttributes, {
@@ -40,7 +36,7 @@ export default (function (iconName, iconNode) {
40
36
  className: "lucide lucide-" + toKebabCase(iconName)
41
37
  }, rest), [].concat(iconNode.map(function (_ref2) {
42
38
  var tag = _ref2[0],
43
- attrs = _ref2[1];
39
+ attrs = _ref2[1];
44
40
  return createElement(tag, attrs);
45
41
  }), children || []));
46
42
  });
@@ -564,6 +564,7 @@ export { default as MinusCircle } from './minus-circle';
564
564
  export { default as MinusSquare } from './minus-square';
565
565
  export { default as Minus } from './minus';
566
566
  export { default as MonitorOff } from './monitor-off';
567
+ export { default as MonitorSmartphone } from './monitor-smartphone';
567
568
  export { default as MonitorSpeaker } from './monitor-speaker';
568
569
  export { default as Monitor } from './monitor';
569
570
  export { default as Moon } from './moon';
@@ -0,0 +1,19 @@
1
+ import createReactComponent from '../createReactComponent';
2
+ var MonitorSmartphone = createReactComponent('MonitorSmartphone', [['path', {
3
+ d: 'M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8',
4
+ key: '10dyio'
5
+ }], ['path', {
6
+ d: 'M10 19v-3.96 3.15',
7
+ key: '1irgej'
8
+ }], ['path', {
9
+ d: 'M7 19h5',
10
+ key: 'qswx4l'
11
+ }], ['rect', {
12
+ x: '16',
13
+ y: '12',
14
+ width: '6',
15
+ height: '10',
16
+ rx: '2',
17
+ key: 'k4sdfk'
18
+ }]]);
19
+ export default MonitorSmartphone;
@@ -579,6 +579,7 @@ export declare const MinusCircle: (props: LucideProps) => JSX.Element;
579
579
  export declare const MinusSquare: (props: LucideProps) => JSX.Element;
580
580
  export declare const Minus: (props: LucideProps) => JSX.Element;
581
581
  export declare const MonitorOff: (props: LucideProps) => JSX.Element;
582
+ export declare const MonitorSmartphone: (props: LucideProps) => JSX.Element;
582
583
  export declare const MonitorSpeaker: (props: LucideProps) => JSX.Element;
583
584
  export declare const Monitor: (props: LucideProps) => JSX.Element;
584
585
  export declare const Moon: (props: LucideProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lucide-react v0.98.0 - ISC
2
+ * lucide-react v0.99.0 - ISC
3
3
  */
4
4
 
5
5
  (function (global, factory) {
@@ -8,39 +8,30 @@
8
8
  (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.LucideReact = {}, global.react, global.PropTypes));
9
9
  })(this, (function (exports, react, PropTypes) { 'use strict';
10
10
 
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
12
-
13
- var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
14
-
15
11
  function _extends() {
16
12
  _extends = Object.assign ? Object.assign.bind() : function (target) {
17
13
  for (var i = 1; i < arguments.length; i++) {
18
14
  var source = arguments[i];
19
-
20
15
  for (var key in source) {
21
16
  if (Object.prototype.hasOwnProperty.call(source, key)) {
22
17
  target[key] = source[key];
23
18
  }
24
19
  }
25
20
  }
26
-
27
21
  return target;
28
22
  };
29
23
  return _extends.apply(this, arguments);
30
24
  }
31
-
32
25
  function _objectWithoutPropertiesLoose(source, excluded) {
33
26
  if (source == null) return {};
34
27
  var target = {};
35
28
  var sourceKeys = Object.keys(source);
36
29
  var key, i;
37
-
38
30
  for (i = 0; i < sourceKeys.length; i++) {
39
31
  key = sourceKeys[i];
40
32
  if (excluded.indexOf(key) >= 0) continue;
41
33
  target[key] = source[key];
42
34
  }
43
-
44
35
  return target;
45
36
  }
46
37
 
@@ -57,6 +48,7 @@
57
48
  };
58
49
 
59
50
  var _excluded = ["color", "size", "strokeWidth", "children"];
51
+
60
52
  /**
61
53
  * Converts string to KebabCase
62
54
  * Copied from scripts/helper. If anyone knows how to properly import it here
@@ -65,21 +57,19 @@
65
57
  * @param {string} string
66
58
  * @returns {string} A kebabized string
67
59
  */
68
-
69
60
  var toKebabCase = function toKebabCase(string) {
70
61
  return string.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
71
62
  };
72
63
  var createReactComponent = (function (iconName, iconNode) {
73
64
  var Component = react.forwardRef(function (_ref, ref) {
74
65
  var _ref$color = _ref.color,
75
- color = _ref$color === void 0 ? 'currentColor' : _ref$color,
76
- _ref$size = _ref.size,
77
- size = _ref$size === void 0 ? 24 : _ref$size,
78
- _ref$strokeWidth = _ref.strokeWidth,
79
- strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
80
- children = _ref.children,
81
- rest = _objectWithoutPropertiesLoose(_ref, _excluded);
82
-
66
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
67
+ _ref$size = _ref.size,
68
+ size = _ref$size === void 0 ? 24 : _ref$size,
69
+ _ref$strokeWidth = _ref.strokeWidth,
70
+ strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
71
+ children = _ref.children,
72
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
83
73
  return react.createElement('svg', _extends({
84
74
  ref: ref
85
75
  }, defaultAttributes, {
@@ -90,14 +80,14 @@
90
80
  className: "lucide lucide-" + toKebabCase(iconName)
91
81
  }, rest), [].concat(iconNode.map(function (_ref2) {
92
82
  var tag = _ref2[0],
93
- attrs = _ref2[1];
83
+ attrs = _ref2[1];
94
84
  return react.createElement(tag, attrs);
95
85
  }), children || []));
96
86
  });
97
87
  Component.propTypes = {
98
- color: PropTypes__default["default"].string,
99
- size: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
100
- strokeWidth: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
88
+ color: PropTypes.string,
89
+ size: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
90
+ strokeWidth: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
101
91
  };
102
92
  Component.displayName = "" + iconName;
103
93
  return Component;
@@ -9897,6 +9887,25 @@
9897
9887
  }]]);
9898
9888
  var MonitorOff$1 = MonitorOff;
9899
9889
 
9890
+ var MonitorSmartphone = createReactComponent('MonitorSmartphone', [['path', {
9891
+ d: 'M18 8V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h8',
9892
+ key: '10dyio'
9893
+ }], ['path', {
9894
+ d: 'M10 19v-3.96 3.15',
9895
+ key: '1irgej'
9896
+ }], ['path', {
9897
+ d: 'M7 19h5',
9898
+ key: 'qswx4l'
9899
+ }], ['rect', {
9900
+ x: '16',
9901
+ y: '12',
9902
+ width: '6',
9903
+ height: '10',
9904
+ rx: '2',
9905
+ key: 'k4sdfk'
9906
+ }]]);
9907
+ var MonitorSmartphone$1 = MonitorSmartphone;
9908
+
9900
9909
  var MonitorSpeaker = createReactComponent('MonitorSpeaker', [['path', {
9901
9910
  d: 'M5.5 20H8',
9902
9911
  key: '1k40s5'
@@ -15486,6 +15495,7 @@
15486
15495
  exports.MinusSquare = MinusSquare$1;
15487
15496
  exports.Monitor = Monitor$1;
15488
15497
  exports.MonitorOff = MonitorOff$1;
15498
+ exports.MonitorSmartphone = MonitorSmartphone$1;
15489
15499
  exports.MonitorSpeaker = MonitorSpeaker$1;
15490
15500
  exports.Moon = Moon$1;
15491
15501
  exports.MoreHorizontal = MoreHorizontal$1;
@@ -15787,7 +15797,5 @@
15787
15797
  exports.ZoomOut = ZoomOut$1;
15788
15798
  exports.createReactComponent = createReactComponent;
15789
15799
 
15790
- Object.defineProperty(exports, '__esModule', { value: true });
15791
-
15792
15800
  }));
15793
15801
  //# sourceMappingURL=lucide-react.js.map