lucide-react 0.94.0 → 0.96.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/README.md CHANGED
@@ -8,9 +8,11 @@ Implementation of the lucide icon library for react applications.
8
8
 
9
9
  ```sh
10
10
  yarn add lucide-react
11
+ ```
11
12
 
12
- # or
13
+ or
13
14
 
15
+ ```sh
14
16
  npm install lucide-react
15
17
  ```
16
18
 
@@ -23,11 +25,11 @@ Each icon can be imported as a react component.
23
25
 
24
26
  You can pass additional props to adjust the icon.
25
27
 
26
- ``` js
28
+ ```js
27
29
  import { Camera } from 'lucide-react';
28
30
 
29
31
  const App = () => {
30
- return <Camera color="red" size={48}/>
32
+ return <Camera color="red" size={48} />;
31
33
  };
32
34
 
33
35
  export default App;
@@ -35,19 +37,19 @@ export default App;
35
37
 
36
38
  ### Props
37
39
 
38
- | name | type | default
39
- | ------------ | -------- | --------
40
- | `size` | *Number* | 24
41
- | `color` | *String* | currentColor
42
- | `strokeWidth`| *Number* | 2
40
+ | name | type | default |
41
+ | ------------- | -------- | ------------ |
42
+ | `size` | _Number_ | 24 |
43
+ | `color` | _String_ | currentColor |
44
+ | `strokeWidth` | _Number_ | 2 |
43
45
 
44
46
  ### Custom props
45
47
 
46
48
  You can also pass custom props that will be added in the svg as attributes.
47
49
 
48
- ``` js
50
+ ```js
49
51
  const App = () => {
50
- return <Camera fill="red"/>
52
+ return <Camera fill="red" />;
51
53
  };
52
54
  ```
53
55
 
@@ -57,13 +59,13 @@ It is possible to create a generic icon component to load icons.
57
59
 
58
60
  > :warning: The example below is importing all ES modules. This is **not** recommended when you using a bundler since your application build size will grow substantially.
59
61
 
60
- ``` js
62
+ ```js
61
63
  import * as icons from 'lucide-react';
62
64
 
63
- const Icon = ({name, color, size}) => {
65
+ const Icon = ({ name, color, size }) => {
64
66
  const LucideIcon = icons[name];
65
67
 
66
- return <LucideIcon color={color} size={size} />
68
+ return <LucideIcon color={color} size={size} />;
67
69
  };
68
70
 
69
71
  export default Icon;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lucide-react v0.94.0 - ISC
2
+ * lucide-react v0.96.0 - ISC
3
3
  */
4
4
 
5
5
  'use strict';
@@ -2812,6 +2812,36 @@ var Cast = createReactComponent('Cast', [['path', {
2812
2812
  }]]);
2813
2813
  var Cast$1 = Cast;
2814
2814
 
2815
+ var Cat = createReactComponent('Cat', [['path', {
2816
+ d: 'M14 5.256A8.148 8.148 0 0 0 12 5a9.04 9.04 0 0 0-2 .227M20.098 10c.572 1.068.902 2.24.902 3.444C21 17.89 16.97 21 12 21s-9-3-9-7.556c0-1.251.288-2.41.792-3.444',
2817
+ key: '11yako'
2818
+ }], ['path', {
2819
+ d: 'M3.75 10S2.11 3.58 3.5 3C4.89 2.42 8 3 9.781 5',
2820
+ key: 'h9cbyw'
2821
+ }], ['path', {
2822
+ d: 'M20.172 10.002s1.64-6.42.25-7c-1.39-.58-4.5 0-6.282 2',
2823
+ key: '12ilpl'
2824
+ }], ['path', {
2825
+ d: 'M8 14v.5',
2826
+ key: '1nzgdb'
2827
+ }], ['path', {
2828
+ d: 'M16 14v.5',
2829
+ key: '1lajdz'
2830
+ }], ['path', {
2831
+ d: 'M11.25 16.25h1.5L12 17l-.75-.75Z',
2832
+ key: '12kq1m'
2833
+ }]]);
2834
+ var Cat$1 = Cat;
2835
+
2836
+ var CheckCheck = createReactComponent('CheckCheck', [['path', {
2837
+ d: 'M18 6 7 17l-5-5',
2838
+ key: '116fxf'
2839
+ }], ['path', {
2840
+ d: 'm22 10-7.5 7.5L13 16',
2841
+ key: 'ke71qq'
2842
+ }]]);
2843
+ var CheckCheck$1 = CheckCheck;
2844
+
2815
2845
  var CheckCircle2 = createReactComponent('CheckCircle2', [['path', {
2816
2846
  d: 'M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z',
2817
2847
  key: '14v8dr'
@@ -4626,6 +4656,27 @@ var Divide = createReactComponent('Divide', [['circle', {
4626
4656
  }]]);
4627
4657
  var Divide$1 = Divide;
4628
4658
 
4659
+ var Dog = createReactComponent('Dog', [['path', {
4660
+ d: 'M10 5.172C10 3.782 8.423 2.679 6.5 3c-2.823.47-4.113 6.006-4 7 .08.703 1.725 1.722 3.656 1 1.261-.472 1.96-1.45 2.344-2.5',
4661
+ key: '19br0u'
4662
+ }], ['path', {
4663
+ d: 'M14.267 5.172c0-1.39 1.577-2.493 3.5-2.172 2.823.47 4.113 6.006 4 7-.08.703-1.725 1.722-3.656 1-1.261-.472-1.855-1.45-2.239-2.5',
4664
+ key: '11n1an'
4665
+ }], ['path', {
4666
+ d: 'M8 14v.5',
4667
+ key: '1nzgdb'
4668
+ }], ['path', {
4669
+ d: 'M16 14v.5',
4670
+ key: '1lajdz'
4671
+ }], ['path', {
4672
+ d: 'M11.25 16.25h1.5L12 17l-.75-.75Z',
4673
+ key: '12kq1m'
4674
+ }], ['path', {
4675
+ d: 'M4.42 11.247A13.152 13.152 0 0 0 4 14.556C4 18.728 7.582 21 12 21s8-2.272 8-6.444c0-1.061-.162-2.2-.493-3.309m-9.243-6.082A8.801 8.801 0 0 1 12 5c.78 0 1.5.108 2.161.306',
4676
+ key: 'wsu29d'
4677
+ }]]);
4678
+ var Dog$1 = Dog;
4679
+
4629
4680
  var DollarSign = createReactComponent('DollarSign', [['line', {
4630
4681
  x1: '12',
4631
4682
  y1: '2',
@@ -14583,7 +14634,9 @@ exports.CameraOff = CameraOff$1;
14583
14634
  exports.Car = Car$1;
14584
14635
  exports.Carrot = Carrot$1;
14585
14636
  exports.Cast = Cast$1;
14637
+ exports.Cat = Cat$1;
14586
14638
  exports.Check = Check$1;
14639
+ exports.CheckCheck = CheckCheck$1;
14587
14640
  exports.CheckCircle = CheckCircle$1;
14588
14641
  exports.CheckCircle2 = CheckCircle2$1;
14589
14642
  exports.CheckSquare = CheckSquare$1;
@@ -14700,6 +14753,7 @@ exports.Disc = Disc$1;
14700
14753
  exports.Divide = Divide$1;
14701
14754
  exports.DivideCircle = DivideCircle$1;
14702
14755
  exports.DivideSquare = DivideSquare$1;
14756
+ exports.Dog = Dog$1;
14703
14757
  exports.DollarSign = DollarSign$1;
14704
14758
  exports.Download = Download$1;
14705
14759
  exports.DownloadCloud = DownloadCloud$1;