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,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
  });
@@ -0,0 +1,24 @@
1
+ import createReactComponent from '../createReactComponent';
2
+ var Dumbbell = createReactComponent('Dumbbell', [['path', {
3
+ d: 'm6.5 6.5 11 11',
4
+ key: 'f7oqzb'
5
+ }], ['path', {
6
+ d: 'm21 21-1-1',
7
+ key: 'cpc6if'
8
+ }], ['path', {
9
+ d: 'm3 3 1 1',
10
+ key: 'd3rpuf'
11
+ }], ['path', {
12
+ d: 'm18 22 4-4',
13
+ key: '1e32o6'
14
+ }], ['path', {
15
+ d: 'm2 6 4-4',
16
+ key: '189tqz'
17
+ }], ['path', {
18
+ d: 'm3 10 7-7',
19
+ key: '1bxui2'
20
+ }], ['path', {
21
+ d: 'm14 21 7-7',
22
+ key: '16x78n'
23
+ }]]);
24
+ export default Dumbbell;
@@ -274,6 +274,7 @@ export { default as Dribbble } from './dribbble';
274
274
  export { default as Droplet } from './droplet';
275
275
  export { default as Droplets } from './droplets';
276
276
  export { default as Drumstick } from './drumstick';
277
+ export { default as Dumbbell } from './dumbbell';
277
278
  export { default as EarOff } from './ear-off';
278
279
  export { default as Ear } from './ear';
279
280
  export { default as Edit2 } from './edit-2';
@@ -563,6 +564,7 @@ export { default as MinusCircle } from './minus-circle';
563
564
  export { default as MinusSquare } from './minus-square';
564
565
  export { default as Minus } from './minus';
565
566
  export { default as MonitorOff } from './monitor-off';
567
+ export { default as MonitorSmartphone } from './monitor-smartphone';
566
568
  export { default as MonitorSpeaker } from './monitor-speaker';
567
569
  export { default as Monitor } from './monitor';
568
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;
@@ -289,6 +289,7 @@ export declare const Dribbble: (props: LucideProps) => JSX.Element;
289
289
  export declare const Droplet: (props: LucideProps) => JSX.Element;
290
290
  export declare const Droplets: (props: LucideProps) => JSX.Element;
291
291
  export declare const Drumstick: (props: LucideProps) => JSX.Element;
292
+ export declare const Dumbbell: (props: LucideProps) => JSX.Element;
292
293
  export declare const EarOff: (props: LucideProps) => JSX.Element;
293
294
  export declare const Ear: (props: LucideProps) => JSX.Element;
294
295
  export declare const Edit2: (props: LucideProps) => JSX.Element;
@@ -578,6 +579,7 @@ export declare const MinusCircle: (props: LucideProps) => JSX.Element;
578
579
  export declare const MinusSquare: (props: LucideProps) => JSX.Element;
579
580
  export declare const Minus: (props: LucideProps) => JSX.Element;
580
581
  export declare const MonitorOff: (props: LucideProps) => JSX.Element;
582
+ export declare const MonitorSmartphone: (props: LucideProps) => JSX.Element;
581
583
  export declare const MonitorSpeaker: (props: LucideProps) => JSX.Element;
582
584
  export declare const Monitor: (props: LucideProps) => JSX.Element;
583
585
  export declare const Moon: (props: LucideProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lucide-react v0.97.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;
@@ -4906,6 +4896,30 @@
4906
4896
  }]]);
4907
4897
  var Drumstick$1 = Drumstick;
4908
4898
 
4899
+ var Dumbbell = createReactComponent('Dumbbell', [['path', {
4900
+ d: 'm6.5 6.5 11 11',
4901
+ key: 'f7oqzb'
4902
+ }], ['path', {
4903
+ d: 'm21 21-1-1',
4904
+ key: 'cpc6if'
4905
+ }], ['path', {
4906
+ d: 'm3 3 1 1',
4907
+ key: 'd3rpuf'
4908
+ }], ['path', {
4909
+ d: 'm18 22 4-4',
4910
+ key: '1e32o6'
4911
+ }], ['path', {
4912
+ d: 'm2 6 4-4',
4913
+ key: '189tqz'
4914
+ }], ['path', {
4915
+ d: 'm3 10 7-7',
4916
+ key: '1bxui2'
4917
+ }], ['path', {
4918
+ d: 'm14 21 7-7',
4919
+ key: '16x78n'
4920
+ }]]);
4921
+ var Dumbbell$1 = Dumbbell;
4922
+
4909
4923
  var EarOff = createReactComponent('EarOff', [['path', {
4910
4924
  d: 'M6 18.5a3.5 3.5 0 1 0 7 0c0-1.57.92-2.52 2.04-3.46',
4911
4925
  key: '1qngmn'
@@ -9873,6 +9887,25 @@
9873
9887
  }]]);
9874
9888
  var MonitorOff$1 = MonitorOff;
9875
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
+
9876
9909
  var MonitorSpeaker = createReactComponent('MonitorSpeaker', [['path', {
9877
9910
  d: 'M5.5 20H8',
9878
9911
  key: '1k40s5'
@@ -15171,6 +15204,7 @@
15171
15204
  exports.Droplet = Droplet$1;
15172
15205
  exports.Droplets = Droplets$1;
15173
15206
  exports.Drumstick = Drumstick$1;
15207
+ exports.Dumbbell = Dumbbell$1;
15174
15208
  exports.Ear = Ear$1;
15175
15209
  exports.EarOff = EarOff$1;
15176
15210
  exports.Edit = Edit$1;
@@ -15461,6 +15495,7 @@
15461
15495
  exports.MinusSquare = MinusSquare$1;
15462
15496
  exports.Monitor = Monitor$1;
15463
15497
  exports.MonitorOff = MonitorOff$1;
15498
+ exports.MonitorSmartphone = MonitorSmartphone$1;
15464
15499
  exports.MonitorSpeaker = MonitorSpeaker$1;
15465
15500
  exports.Moon = Moon$1;
15466
15501
  exports.MoreHorizontal = MoreHorizontal$1;
@@ -15762,7 +15797,5 @@
15762
15797
  exports.ZoomOut = ZoomOut$1;
15763
15798
  exports.createReactComponent = createReactComponent;
15764
15799
 
15765
- Object.defineProperty(exports, '__esModule', { value: true });
15766
-
15767
15800
  }));
15768
15801
  //# sourceMappingURL=lucide-react.js.map