blode-icons-react 0.3.5 → 0.3.7
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 +9 -5
- package/dist/chevron-bottom.js +1 -1
- package/dist/chevron-bottom.js.map +1 -1
- package/dist/chevron-down.js +1 -1
- package/dist/chevron-down.js.map +1 -1
- package/dist/chevron-top.js +1 -1
- package/dist/chevron-top.js.map +1 -1
- package/dist/chevron-up.js +1 -1
- package/dist/chevron-up.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -8,13 +8,17 @@
|
|
|
8
8
|
|
|
9
9
|
## Highlights
|
|
10
10
|
|
|
11
|
-
- **
|
|
11
|
+
- **Lucide-style aliases:** mapped icons can replace `lucide-react` imports with minimal code changes
|
|
12
12
|
- **Tree-shakeable:** only ship the icons you use
|
|
13
13
|
- **Dynamic imports:** load icons by name at runtime
|
|
14
14
|
- **Lucide-compatible props:** `size`, `color`, and `strokeWidth` work out of the box
|
|
15
15
|
|
|
16
16
|
## Install
|
|
17
17
|
|
|
18
|
+
```bash
|
|
19
|
+
npx skills add mblode/blode-icons -g --all -y
|
|
20
|
+
```
|
|
21
|
+
|
|
18
22
|
```bash
|
|
19
23
|
npm install blode-icons-react
|
|
20
24
|
```
|
|
@@ -22,17 +26,17 @@ npm install blode-icons-react
|
|
|
22
26
|
## Quick Start
|
|
23
27
|
|
|
24
28
|
```tsx
|
|
25
|
-
import {
|
|
29
|
+
import { AirplaneIcon } from "blode-icons-react"
|
|
26
30
|
|
|
27
31
|
export default function App() {
|
|
28
|
-
return <
|
|
32
|
+
return <AirplaneIcon size={32} color="#0066ff" />
|
|
29
33
|
}
|
|
30
34
|
```
|
|
31
35
|
|
|
32
36
|
### Tree-shaking import
|
|
33
37
|
|
|
34
38
|
```tsx
|
|
35
|
-
import
|
|
39
|
+
import AirplaneIcon from "blode-icons-react/icons/airplane"
|
|
36
40
|
```
|
|
37
41
|
|
|
38
42
|
### Dynamic icon
|
|
@@ -40,7 +44,7 @@ import Airplane from "blode-icons-react/icons/airplane"
|
|
|
40
44
|
```tsx
|
|
41
45
|
import { DynamicIcon } from "blode-icons-react/dynamic"
|
|
42
46
|
|
|
43
|
-
<DynamicIcon name="
|
|
47
|
+
<DynamicIcon name="AirplaneIcon" size={24} />
|
|
44
48
|
```
|
|
45
49
|
|
|
46
50
|
## Props
|
package/dist/chevron-bottom.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLucideIcon } from './create-lucide-icon';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
const ChevronBottomIcon = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props },
|
|
5
|
-
React.createElement("path", { stroke: "
|
|
5
|
+
React.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 9.5 6 6 6-6" }));
|
|
6
6
|
const ForwardRef = forwardRef(ChevronBottomIcon);
|
|
7
7
|
export default createLucideIcon('ChevronBottomIcon', ForwardRef);
|
|
8
8
|
//# sourceMappingURL=chevron-bottom.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-bottom.js","sourceRoot":"","sources":["../src/chevron-bottom.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"chevron-bottom.js","sourceRoot":"","sources":["../src/chevron-bottom.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,iBAAiB,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,gBAAgB,GAAG,CAAM,CAAC;AACzS,MAAM,UAAU,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAC;AACjD,eAAe,gBAAgB,CAAC,mBAAmB,EAAE,UAAU,CAAC,CAAC"}
|
package/dist/chevron-down.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLucideIcon } from './create-lucide-icon';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
const ChevronDownIcon = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props },
|
|
5
|
-
React.createElement("path", { stroke: "
|
|
5
|
+
React.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 9.5 6 6 6-6" }));
|
|
6
6
|
const ForwardRef = forwardRef(ChevronDownIcon);
|
|
7
7
|
export default createLucideIcon('ChevronDownIcon', ForwardRef);
|
|
8
8
|
//# sourceMappingURL=chevron-down.js.map
|
package/dist/chevron-down.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-down.js","sourceRoot":"","sources":["../src/chevron-down.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"chevron-down.js","sourceRoot":"","sources":["../src/chevron-down.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,eAAe,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,gBAAgB,GAAG,CAAM,CAAC;AACvS,MAAM,UAAU,GAAG,UAAU,CAAC,eAAe,CAAC,CAAC;AAC/C,eAAe,gBAAgB,CAAC,iBAAiB,EAAE,UAAU,CAAC,CAAC"}
|
package/dist/chevron-top.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLucideIcon } from './create-lucide-icon';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
const ChevronTopIcon = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props },
|
|
5
|
-
React.createElement("path", { stroke: "
|
|
5
|
+
React.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 14.5 6-6 6 6" }));
|
|
6
6
|
const ForwardRef = forwardRef(ChevronTopIcon);
|
|
7
7
|
export default createLucideIcon('ChevronTopIcon', ForwardRef);
|
|
8
8
|
//# sourceMappingURL=chevron-top.js.map
|
package/dist/chevron-top.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-top.js","sourceRoot":"","sources":["../src/chevron-top.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,cAAc,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"chevron-top.js","sourceRoot":"","sources":["../src/chevron-top.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,cAAc,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,iBAAiB,GAAG,CAAM,CAAC;AACvS,MAAM,UAAU,GAAG,UAAU,CAAC,cAAc,CAAC,CAAC;AAC9C,eAAe,gBAAgB,CAAC,gBAAgB,EAAE,UAAU,CAAC,CAAC"}
|
package/dist/chevron-up.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createLucideIcon } from './create-lucide-icon';
|
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { forwardRef } from "react";
|
|
4
4
|
const ChevronUpIcon = (props, ref) => React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ref: ref, ...props },
|
|
5
|
-
React.createElement("path", { stroke: "
|
|
5
|
+
React.createElement("path", { stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 14.5 6-6 6 6" }));
|
|
6
6
|
const ForwardRef = forwardRef(ChevronUpIcon);
|
|
7
7
|
export default createLucideIcon('ChevronUpIcon', ForwardRef);
|
|
8
8
|
//# sourceMappingURL=chevron-up.js.map
|
package/dist/chevron-up.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chevron-up.js","sourceRoot":"","sources":["../src/chevron-up.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,
|
|
1
|
+
{"version":3,"file":"chevron-up.js","sourceRoot":"","sources":["../src/chevron-up.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AACvD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAO,UAAU,EAAE,MAAM,OAAO,CAAC;AACxC,MAAM,aAAa,GAAG,CAAC,KAA8B,EAAE,GAAuB,EAAE,EAAE,CAAC,6BAAK,KAAK,EAAC,4BAA4B,EAAC,IAAI,EAAC,MAAM,EAAC,OAAO,EAAC,WAAW,EAAC,GAAG,EAAE,GAAG,KAAM,KAAK;IAAE,8BAAM,MAAM,EAAC,cAAc,EAAC,aAAa,EAAC,OAAO,EAAC,cAAc,EAAC,OAAO,EAAC,WAAW,EAAE,CAAC,EAAE,CAAC,EAAC,iBAAiB,GAAG,CAAM,CAAC;AACtS,MAAM,UAAU,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;AAC7C,eAAe,gBAAgB,CAAC,eAAe,EAAE,UAAU,CAAC,CAAC"}
|