lucide-react 0.84.0 → 0.87.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  ISC License
2
2
 
3
- Copyright (c) 2020, Lucide Contributors
3
+ Copyright (c) for portions of Lucide are held by Cole Bemis 2013-2022 as part of Feather (MIT). All other copyright (c) for Lucide are held by Lucide Contributors 2022.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
6
6
  purpose with or without fee is hereby granted, provided that the above
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lucide-react v0.84.0 - ISC
2
+ * lucide-react v0.87.0 - ISC
3
3
  */
4
4
 
5
5
  'use strict';
@@ -13,45 +13,21 @@ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'defau
13
13
 
14
14
  var PropTypes__default = /*#__PURE__*/_interopDefaultLegacy(PropTypes);
15
15
 
16
- function ownKeys(object, enumerableOnly) {
17
- var keys = Object.keys(object);
16
+ function _extends() {
17
+ _extends = Object.assign ? Object.assign.bind() : function (target) {
18
+ for (var i = 1; i < arguments.length; i++) {
19
+ var source = arguments[i];
18
20
 
19
- if (Object.getOwnPropertySymbols) {
20
- var symbols = Object.getOwnPropertySymbols(object);
21
- enumerableOnly && (symbols = symbols.filter(function (sym) {
22
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23
- })), keys.push.apply(keys, symbols);
24
- }
25
-
26
- return keys;
27
- }
28
-
29
- function _objectSpread2(target) {
30
- for (var i = 1; i < arguments.length; i++) {
31
- var source = null != arguments[i] ? arguments[i] : {};
32
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
33
- _defineProperty(target, key, source[key]);
34
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
35
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
36
- });
37
- }
38
-
39
- return target;
40
- }
41
-
42
- function _defineProperty(obj, key, value) {
43
- if (key in obj) {
44
- Object.defineProperty(obj, key, {
45
- value: value,
46
- enumerable: true,
47
- configurable: true,
48
- writable: true
49
- });
50
- } else {
51
- obj[key] = value;
52
- }
21
+ for (var key in source) {
22
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
23
+ target[key] = source[key];
24
+ }
25
+ }
26
+ }
53
27
 
54
- return obj;
28
+ return target;
29
+ };
30
+ return _extends.apply(this, arguments);
55
31
  }
56
32
 
57
33
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -69,102 +45,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
69
45
  return target;
70
46
  }
71
47
 
72
- function _objectWithoutProperties(source, excluded) {
73
- if (source == null) return {};
74
-
75
- var target = _objectWithoutPropertiesLoose(source, excluded);
76
-
77
- var key, i;
78
-
79
- if (Object.getOwnPropertySymbols) {
80
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
81
-
82
- for (i = 0; i < sourceSymbolKeys.length; i++) {
83
- key = sourceSymbolKeys[i];
84
- if (excluded.indexOf(key) >= 0) continue;
85
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
86
- target[key] = source[key];
87
- }
88
- }
89
-
90
- return target;
91
- }
92
-
93
- function _slicedToArray(arr, i) {
94
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
95
- }
96
-
97
- function _toConsumableArray(arr) {
98
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
99
- }
100
-
101
- function _arrayWithoutHoles(arr) {
102
- if (Array.isArray(arr)) return _arrayLikeToArray(arr);
103
- }
104
-
105
- function _arrayWithHoles(arr) {
106
- if (Array.isArray(arr)) return arr;
107
- }
108
-
109
- function _iterableToArray(iter) {
110
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
111
- }
112
-
113
- function _iterableToArrayLimit(arr, i) {
114
- var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
115
-
116
- if (_i == null) return;
117
- var _arr = [];
118
- var _n = true;
119
- var _d = false;
120
-
121
- var _s, _e;
122
-
123
- try {
124
- for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
125
- _arr.push(_s.value);
126
-
127
- if (i && _arr.length === i) break;
128
- }
129
- } catch (err) {
130
- _d = true;
131
- _e = err;
132
- } finally {
133
- try {
134
- if (!_n && _i["return"] != null) _i["return"]();
135
- } finally {
136
- if (_d) throw _e;
137
- }
138
- }
139
-
140
- return _arr;
141
- }
142
-
143
- function _unsupportedIterableToArray(o, minLen) {
144
- if (!o) return;
145
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
146
- var n = Object.prototype.toString.call(o).slice(8, -1);
147
- if (n === "Object" && o.constructor) n = o.constructor.name;
148
- if (n === "Map" || n === "Set") return Array.from(o);
149
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
150
- }
151
-
152
- function _arrayLikeToArray(arr, len) {
153
- if (len == null || len > arr.length) len = arr.length;
154
-
155
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
156
-
157
- return arr2;
158
- }
159
-
160
- function _nonIterableSpread() {
161
- throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
162
- }
163
-
164
- function _nonIterableRest() {
165
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
166
- }
167
-
168
48
  var defaultAttributes = {
169
49
  xmlns: 'http://www.w3.org/2000/svg',
170
50
  width: 24,
@@ -199,30 +79,28 @@ var createReactComponent = (function (iconName, iconNode) {
199
79
  _ref$strokeWidth = _ref.strokeWidth,
200
80
  strokeWidth = _ref$strokeWidth === void 0 ? 2 : _ref$strokeWidth,
201
81
  children = _ref.children,
202
- rest = _objectWithoutProperties(_ref, _excluded);
82
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded);
203
83
 
204
- return react.createElement('svg', _objectSpread2(_objectSpread2({
84
+ return react.createElement('svg', _extends({
205
85
  ref: ref
206
- }, defaultAttributes), {}, {
86
+ }, defaultAttributes, {
207
87
  width: size,
208
88
  height: size,
209
89
  stroke: color,
210
90
  strokeWidth: strokeWidth,
211
- className: "lucide lucide-".concat(toKebabCase(iconName))
212
- }, rest), [].concat(_toConsumableArray(iconNode.map(function (_ref2) {
213
- var _ref3 = _slicedToArray(_ref2, 2),
214
- tag = _ref3[0],
215
- attrs = _ref3[1];
216
-
91
+ className: "lucide lucide-" + toKebabCase(iconName)
92
+ }, rest), [].concat(iconNode.map(function (_ref2) {
93
+ var tag = _ref2[0],
94
+ attrs = _ref2[1];
217
95
  return react.createElement(tag, attrs);
218
- })), _toConsumableArray(children || [])));
96
+ }), children || []));
219
97
  });
220
98
  Component.propTypes = {
221
99
  color: PropTypes__default["default"].string,
222
100
  size: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number]),
223
101
  strokeWidth: PropTypes__default["default"].oneOfType([PropTypes__default["default"].string, PropTypes__default["default"].number])
224
102
  };
225
- Component.displayName = "".concat(iconName);
103
+ Component.displayName = "" + iconName;
226
104
  return Component;
227
105
  });
228
106
 
@@ -1340,6 +1218,27 @@ var ArrowUpCircle = createReactComponent('ArrowUpCircle', [['circle', {
1340
1218
  }]]);
1341
1219
  var ArrowUpCircle$1 = ArrowUpCircle;
1342
1220
 
1221
+ var ArrowUpDown = createReactComponent('ArrowUpDown', [['polyline', {
1222
+ points: '11 17 7 21 3 17',
1223
+ key: 'dv0ycv'
1224
+ }], ['line', {
1225
+ x1: '7',
1226
+ y1: '21',
1227
+ x2: '7',
1228
+ y2: '9',
1229
+ key: '1cxv4h'
1230
+ }], ['polyline', {
1231
+ points: '21 7 17 3 13 7',
1232
+ key: '1su31j'
1233
+ }], ['line', {
1234
+ x1: '17',
1235
+ y1: '15',
1236
+ x2: '17',
1237
+ y2: '3',
1238
+ key: 'r3527w'
1239
+ }]]);
1240
+ var ArrowUpDown$1 = ArrowUpDown;
1241
+
1343
1242
  var ArrowUpLeft = createReactComponent('ArrowUpLeft', [['line', {
1344
1243
  x1: '17',
1345
1244
  y1: '17',
@@ -4024,6 +3923,21 @@ var Component = createReactComponent('Component', [['path', {
4024
3923
  }]]);
4025
3924
  var Component$1 = Component;
4026
3925
 
3926
+ var ConciergeBell = createReactComponent('ConciergeBell', [['path', {
3927
+ d: 'M2 18a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v2H2v-2Z',
3928
+ key: '1co3i8'
3929
+ }], ['path', {
3930
+ d: 'M20 16a8 8 0 1 0-16 0',
3931
+ key: '1pa543'
3932
+ }], ['path', {
3933
+ d: 'M12 4v4',
3934
+ key: '1bq03y'
3935
+ }], ['path', {
3936
+ d: 'M10 4h4',
3937
+ key: '1xpv9s'
3938
+ }]]);
3939
+ var ConciergeBell$1 = ConciergeBell;
3940
+
4027
3941
  var Contact = createReactComponent('Contact', [['path', {
4028
3942
  d: 'M17 18a2 2 0 0 0-2-2H9a2 2 0 0 0-2 2',
4029
3943
  key: '1mghuy'
@@ -4961,6 +4875,15 @@ var Factory = createReactComponent('Factory', [['path', {
4961
4875
  }]]);
4962
4876
  var Factory$1 = Factory;
4963
4877
 
4878
+ var Fan = createReactComponent('Fan', [['path', {
4879
+ d: 'M10.827 16.379a6.082 6.082 0 0 1-8.618-7.002l5.412 1.45a6.082 6.082 0 0 1 7.002-8.618l-1.45 5.412a6.082 6.082 0 0 1 8.618 7.002l-5.412-1.45a6.082 6.082 0 0 1-7.002 8.618l1.45-5.412Z',
4880
+ key: '484a7f'
4881
+ }], ['path', {
4882
+ d: 'M12 12v.01',
4883
+ key: 'u5ubse'
4884
+ }]]);
4885
+ var Fan$1 = Fan;
4886
+
4964
4887
  var FastForward = createReactComponent('FastForward', [['polygon', {
4965
4888
  points: '13 19 22 12 13 5 13 19',
4966
4889
  key: '587y9g'
@@ -9334,6 +9257,32 @@ var Microscope = createReactComponent('Microscope', [['path', {
9334
9257
  }]]);
9335
9258
  var Microscope$1 = Microscope;
9336
9259
 
9260
+ var Microwave = createReactComponent('Microwave', [['rect', {
9261
+ x: '2',
9262
+ y: '4',
9263
+ width: '20',
9264
+ height: '15',
9265
+ rx: '2',
9266
+ key: '1rfv8z'
9267
+ }], ['rect', {
9268
+ x: '6',
9269
+ y: '8',
9270
+ width: '8',
9271
+ height: '7',
9272
+ rx: '1',
9273
+ key: 'i43qc1'
9274
+ }], ['path', {
9275
+ d: 'M18 8v7',
9276
+ key: 'o5zi4n'
9277
+ }], ['path', {
9278
+ d: 'M6 19v2',
9279
+ key: '1loha6'
9280
+ }], ['path', {
9281
+ d: 'M18 19v2',
9282
+ key: '1dawf0'
9283
+ }]]);
9284
+ var Microwave$1 = Microwave;
9285
+
9337
9286
  var Milestone = createReactComponent('Milestone', [['path', {
9338
9287
  d: 'M18 6H5a2 2 0 0 0-2 2v3a2 2 0 0 0 2 2h13l4-3.5L18 6Z',
9339
9288
  key: '1mp5s7'
@@ -10746,6 +10695,26 @@ var Radio = createReactComponent('Radio', [['circle', {
10746
10695
  }]]);
10747
10696
  var Radio$1 = Radio;
10748
10697
 
10698
+ var RectangleHorizontal = createReactComponent('RectangleHorizontal', [['rect', {
10699
+ x: '2',
10700
+ y: '6',
10701
+ width: '20',
10702
+ height: '12',
10703
+ rx: '2',
10704
+ key: '1wpnh2'
10705
+ }]]);
10706
+ var RectangleHorizontal$1 = RectangleHorizontal;
10707
+
10708
+ var RectangleVertical = createReactComponent('RectangleVertical', [['rect', {
10709
+ x: '6',
10710
+ y: '2',
10711
+ width: '12',
10712
+ height: '20',
10713
+ rx: '2',
10714
+ key: '749fme'
10715
+ }]]);
10716
+ var RectangleVertical$1 = RectangleVertical;
10717
+
10749
10718
  var Recycle = createReactComponent('Recycle', [['path', {
10750
10719
  d: 'M7 19H4.815a1.83 1.83 0 0 1-1.57-.881 1.785 1.785 0 0 1-.004-1.784L7.196 9.5',
10751
10720
  key: 'x6z5xu'
@@ -10815,6 +10784,18 @@ var RefreshCw = createReactComponent('RefreshCw', [['path', {
10815
10784
  }]]);
10816
10785
  var RefreshCw$1 = RefreshCw;
10817
10786
 
10787
+ var Refrigerator = createReactComponent('Refrigerator', [['path', {
10788
+ d: 'M5 6a4 4 0 0 1 4-4h6a4 4 0 0 1 4 4v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6Z',
10789
+ key: 'fpq118'
10790
+ }], ['path', {
10791
+ d: 'M5 10h14',
10792
+ key: 'elsbfy'
10793
+ }], ['path', {
10794
+ d: 'M15 7v6',
10795
+ key: '1nx30x'
10796
+ }]]);
10797
+ var Refrigerator$1 = Refrigerator;
10798
+
10818
10799
  var Regex = createReactComponent('Regex', [['path', {
10819
10800
  d: 'M17 3v10',
10820
10801
  key: '15fgeh'
@@ -11608,6 +11589,39 @@ var Shovel = createReactComponent('Shovel', [['path', {
11608
11589
  }]]);
11609
11590
  var Shovel$1 = Shovel;
11610
11591
 
11592
+ var ShowerHead = createReactComponent('ShowerHead', [['path', {
11593
+ d: 'm4 4 2.5 2.5',
11594
+ key: 'uv2vmf'
11595
+ }], ['path', {
11596
+ d: 'M13.5 6.5a4.95 4.95 0 0 0-7 7',
11597
+ key: 'frdkwv'
11598
+ }], ['path', {
11599
+ d: 'M15 5 5 15',
11600
+ key: '1ag8rq'
11601
+ }], ['path', {
11602
+ d: 'M14 17v.01',
11603
+ key: 'eokfpp'
11604
+ }], ['path', {
11605
+ d: 'M10 16v.01',
11606
+ key: '14uyyl'
11607
+ }], ['path', {
11608
+ d: 'M13 13v.01',
11609
+ key: '1v1k97'
11610
+ }], ['path', {
11611
+ d: 'M16 10v.01',
11612
+ key: '5169yg'
11613
+ }], ['path', {
11614
+ d: 'M11 20v.01',
11615
+ key: 'cj92p8'
11616
+ }], ['path', {
11617
+ d: 'M17 14v.01',
11618
+ key: '11cswd'
11619
+ }], ['path', {
11620
+ d: 'M20 11v.01',
11621
+ key: '19e0od'
11622
+ }]]);
11623
+ var ShowerHead$1 = ShowerHead;
11624
+
11611
11625
  var Shrink = createReactComponent('Shrink', [['path', {
11612
11626
  d: 'm15 15 6 6m-6-6v4.8m0-4.8h4.8',
11613
11627
  key: '17vawe'
@@ -14276,6 +14290,7 @@ exports.ArrowRight = ArrowRight$1;
14276
14290
  exports.ArrowRightCircle = ArrowRightCircle$1;
14277
14291
  exports.ArrowUp = ArrowUp$1;
14278
14292
  exports.ArrowUpCircle = ArrowUpCircle$1;
14293
+ exports.ArrowUpDown = ArrowUpDown$1;
14279
14294
  exports.ArrowUpLeft = ArrowUpLeft$1;
14280
14295
  exports.ArrowUpRight = ArrowUpRight$1;
14281
14296
  exports.Asterisk = Asterisk$1;
@@ -14432,6 +14447,7 @@ exports.Columns = Columns$1;
14432
14447
  exports.Command = Command$1;
14433
14448
  exports.Compass = Compass$1;
14434
14449
  exports.Component = Component$1;
14450
+ exports.ConciergeBell = ConciergeBell$1;
14435
14451
  exports.Contact = Contact$1;
14436
14452
  exports.Contrast = Contrast$1;
14437
14453
  exports.Cookie = Cookie$1;
@@ -14493,6 +14509,7 @@ exports.Eye = Eye$1;
14493
14509
  exports.EyeOff = EyeOff$1;
14494
14510
  exports.Facebook = Facebook$1;
14495
14511
  exports.Factory = Factory$1;
14512
+ exports.Fan = Fan$1;
14496
14513
  exports.FastForward = FastForward$1;
14497
14514
  exports.Feather = Feather$1;
14498
14515
  exports.Figma = Figma$1;
@@ -14743,6 +14760,7 @@ exports.Mic = Mic$1;
14743
14760
  exports.Mic2 = Mic2$1;
14744
14761
  exports.MicOff = MicOff$1;
14745
14762
  exports.Microscope = Microscope$1;
14763
+ exports.Microwave = Microwave$1;
14746
14764
  exports.Milestone = Milestone$1;
14747
14765
  exports.Minimize = Minimize$1;
14748
14766
  exports.Minimize2 = Minimize2$1;
@@ -14834,11 +14852,14 @@ exports.QrCode = QrCode$1;
14834
14852
  exports.Quote = Quote$1;
14835
14853
  exports.Radio = Radio$1;
14836
14854
  exports.RadioReceiver = RadioReceiver$1;
14855
+ exports.RectangleHorizontal = RectangleHorizontal$1;
14856
+ exports.RectangleVertical = RectangleVertical$1;
14837
14857
  exports.Recycle = Recycle$1;
14838
14858
  exports.Redo = Redo$1;
14839
14859
  exports.Redo2 = Redo2$1;
14840
14860
  exports.RefreshCcw = RefreshCcw$1;
14841
14861
  exports.RefreshCw = RefreshCw$1;
14862
+ exports.Refrigerator = Refrigerator$1;
14842
14863
  exports.Regex = Regex$1;
14843
14864
  exports.Repeat = Repeat$1;
14844
14865
  exports.Repeat1 = Repeat1$1;
@@ -14886,6 +14907,7 @@ exports.Shirt = Shirt$1;
14886
14907
  exports.ShoppingBag = ShoppingBag$1;
14887
14908
  exports.ShoppingCart = ShoppingCart$1;
14888
14909
  exports.Shovel = Shovel$1;
14910
+ exports.ShowerHead = ShowerHead$1;
14889
14911
  exports.Shrink = Shrink$1;
14890
14912
  exports.Shrub = Shrub$1;
14891
14913
  exports.Shuffle = Shuffle$1;