magick-icons 0.1.82 → 0.1.84
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 +116 -0
- package/index.d.mts +7 -7
- package/index.d.ts +7 -7
- package/index.js +9 -6
- package/index.js.map +1 -1
- package/index.mjs +9 -6
- package/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
# Magick Icons
|
|
2
|
+
|
|
3
|
+
SVG React icon components with TypeScript support.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install magick-icons
|
|
9
|
+
# or
|
|
10
|
+
pnpm add magick-icons
|
|
11
|
+
# or
|
|
12
|
+
yarn add magick-icons
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import { ChatFullScreen, Finance } from 'magick-icons';
|
|
19
|
+
|
|
20
|
+
function App() {
|
|
21
|
+
return (
|
|
22
|
+
<div>
|
|
23
|
+
<ChatFullScreen size={24} className="text-blue-500" />
|
|
24
|
+
<Finance size={32} color="red" />
|
|
25
|
+
</div>
|
|
26
|
+
);
|
|
27
|
+
}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Available Icons
|
|
31
|
+
|
|
32
|
+
- `ChatFullScreen`
|
|
33
|
+
- `Finance`
|
|
34
|
+
|
|
35
|
+
## Props
|
|
36
|
+
|
|
37
|
+
All icons accept standard SVG props plus:
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
interface IconProps extends React.SVGProps<SVGSVGElement> {
|
|
41
|
+
size?: number | string; // Default: 24
|
|
42
|
+
}
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Examples
|
|
46
|
+
|
|
47
|
+
### Basic Usage
|
|
48
|
+
```tsx
|
|
49
|
+
<ChatFullScreen />
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Custom Size
|
|
53
|
+
```tsx
|
|
54
|
+
<ChatFullScreen size={48} />
|
|
55
|
+
<ChatFullScreen size="2rem" />
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
### Custom Styling
|
|
59
|
+
```tsx
|
|
60
|
+
<ChatFullScreen
|
|
61
|
+
className="text-blue-500 hover:text-blue-700"
|
|
62
|
+
style={{ cursor: 'pointer' }}
|
|
63
|
+
/>
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
### With Props
|
|
67
|
+
```tsx
|
|
68
|
+
<Finance
|
|
69
|
+
size={32}
|
|
70
|
+
color="currentColor"
|
|
71
|
+
onClick={() => console.log('clicked')}
|
|
72
|
+
aria-label="Finance icon"
|
|
73
|
+
/>
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## TypeScript
|
|
77
|
+
|
|
78
|
+
Full TypeScript support with prop types:
|
|
79
|
+
|
|
80
|
+
```tsx
|
|
81
|
+
import { ChatFullScreen, ChatFullScreenProps } from 'magick-icons';
|
|
82
|
+
|
|
83
|
+
const props: ChatFullScreenProps = {
|
|
84
|
+
size: 24,
|
|
85
|
+
className: "icon",
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
<ChatFullScreen {...props} />
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## IDE Autocomplete
|
|
92
|
+
|
|
93
|
+
### VS Code
|
|
94
|
+
Enable auto-imports in settings:
|
|
95
|
+
- `typescript.suggest.autoImports`: true
|
|
96
|
+
- `javascript.suggest.autoImports`: true
|
|
97
|
+
|
|
98
|
+
Then type `<ChatFullScreen` and accept the suggestion to auto-import.
|
|
99
|
+
|
|
100
|
+
### Manual Import
|
|
101
|
+
Type the import first for autocomplete:
|
|
102
|
+
```tsx
|
|
103
|
+
import { ChatFullScreen } from 'magick-icons';
|
|
104
|
+
// Now typing <Chat will autocomplete
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Updating
|
|
108
|
+
|
|
109
|
+
To get the latest icons:
|
|
110
|
+
```bash
|
|
111
|
+
pnpm add magick-icons@latest
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
## License
|
|
115
|
+
|
|
116
|
+
MIT
|
package/index.d.mts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Props for the
|
|
4
|
+
* Props for the AiFlask1 icon component
|
|
5
5
|
* @property {number | string} [size] - Size of the icon (default: 24)
|
|
6
6
|
*/
|
|
7
|
-
interface
|
|
7
|
+
interface AiFlask1Props extends React.SVGProps<SVGSVGElement> {
|
|
8
8
|
size?: number | string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* AiFlask1 icon component
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
14
|
-
* import {
|
|
14
|
+
* import { AiFlask1 } from 'magick-icons';
|
|
15
15
|
*
|
|
16
|
-
* <
|
|
16
|
+
* <AiFlask1 size={24} className="text-blue-500" strokeWidth={2} />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare const
|
|
19
|
+
declare const AiFlask1: React.ForwardRefExoticComponent<Omit<AiFlask1Props, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { AiFlask1, type AiFlask1Props };
|
package/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Props for the
|
|
4
|
+
* Props for the AiFlask1 icon component
|
|
5
5
|
* @property {number | string} [size] - Size of the icon (default: 24)
|
|
6
6
|
*/
|
|
7
|
-
interface
|
|
7
|
+
interface AiFlask1Props extends React.SVGProps<SVGSVGElement> {
|
|
8
8
|
size?: number | string;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* AiFlask1 icon component
|
|
12
12
|
* @example
|
|
13
13
|
* ```tsx
|
|
14
|
-
* import {
|
|
14
|
+
* import { AiFlask1 } from 'magick-icons';
|
|
15
15
|
*
|
|
16
|
-
* <
|
|
16
|
+
* <AiFlask1 size={24} className="text-blue-500" strokeWidth={2} />
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
|
-
declare const
|
|
19
|
+
declare const AiFlask1: React.ForwardRefExoticComponent<Omit<AiFlask1Props, "ref"> & React.RefAttributes<SVGSVGElement>>;
|
|
20
20
|
|
|
21
|
-
export {
|
|
21
|
+
export { AiFlask1, type AiFlask1Props };
|
package/index.js
CHANGED
|
@@ -30,21 +30,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// dist/index.ts
|
|
31
31
|
var index_exports = {};
|
|
32
32
|
__export(index_exports, {
|
|
33
|
-
|
|
33
|
+
AiFlask1: () => AiFlask1
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(index_exports);
|
|
36
36
|
|
|
37
|
-
// dist/icons/
|
|
37
|
+
// dist/icons/AiFlask1.tsx
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
39
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
40
|
-
var
|
|
40
|
+
var AiFlask1 = import_react.default.forwardRef(
|
|
41
41
|
({ size, ...props }, ref) => {
|
|
42
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.
|
|
42
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", { ref, xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", ...props, children: [
|
|
43
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "#1e293b", d: "M12 19.42c-.4 0-.74-.27-.83-.66l-.23-.97c-.1-.42-.42-.74-.84-.84l-.97-.23a.846.846 0 0 1-.66-.83c0-.4.27-.74.66-.83l.97-.23c.42-.1.74-.42.84-.84l.23-.97c.09-.39.43-.66.83-.66s.74.27.83.66l.23.97c.1.42.42.74.84.84l.97.23c.39.09.66.43.66.83s-.27.74-.66.83l-.97.23c-.42.1-.74.42-.84.84l-.23.97c-.09.39-.43.66-.83.66m-.64-3.52c.25.17.47.39.64.64.17-.25.39-.47.64-.64-.25-.17-.47-.39-.64-.64-.17.25-.39.47-.64.64" }),
|
|
44
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: "#1e293b", d: "M6.65 22.74c-1.49 0-2.69-.57-3.28-1.57-.6-1.01-.54-2.3.18-3.62l5-9.29c.23-.42.35-1.24.26-1.74l-.64-3.17c-.1-.52.03-1.05.37-1.45.33-.4.82-.63 1.35-.63h4.23c.52 0 1.02.23 1.35.64s.47.93.37 1.45l-.64 3.19c-.1.49.03 1.29.26 1.72l4.99 9.3c.71 1.33.78 2.62.17 3.63-.6 1.01-1.77 1.57-3.28 1.57zM9.89 2.76c-.1 0-.16.06-.19.09s-.07.11-.05.21l.64 3.17c.16.85-.02 2.02-.42 2.74l-5 9.28c-.46.84-.53 1.61-.21 2.15s1.03.84 1.99.84h10.69c.96 0 1.67-.3 2-.84.32-.54.25-1.3-.21-2.15l-4.99-9.29c-.4-.72-.58-1.9-.42-2.73l.64-3.18a.22.22 0 0 0-.05-.2c-.03-.03-.09-.09-.19-.09z" })
|
|
45
|
+
] });
|
|
43
46
|
}
|
|
44
47
|
);
|
|
45
|
-
|
|
48
|
+
AiFlask1.displayName = "AiFlask1";
|
|
46
49
|
// Annotate the CommonJS export names for ESM import in node:
|
|
47
50
|
0 && (module.exports = {
|
|
48
|
-
|
|
51
|
+
AiFlask1
|
|
49
52
|
});
|
|
50
53
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts","icons/
|
|
1
|
+
{"version":3,"sources":["index.ts","icons/AiFlask1.tsx"],"sourcesContent":["// Auto-generated file - do not edit manually\n/**\n * @packageDocumentation\n * Magick Icons - SVG icon components for React\n * \n * @example\n * ```tsx\n * import { AiFlask1 } from 'magick-icons';\n * \n * function MyComponent() {\n * return <AiFlask1 size={24} className=\"text-blue-500\" />;\n * }\n * ```\n */\n\n/**\n * AiFlask1 icon component and its props type\n * @see {@link AiFlask1Props} for available props\n */\nexport { AiFlask1, type AiFlask1Props } from './icons/AiFlask1';\n","import React from 'react';\n\n/**\n * Props for the AiFlask1 icon component\n * @property {number | string} [size] - Size of the icon (default: 24)\n */\nexport interface AiFlask1Props extends React.SVGProps<SVGSVGElement> {\n size?: number | string;\n}\n\n/**\n * AiFlask1 icon component\n * @example\n * ```tsx\n * import { AiFlask1 } from 'magick-icons';\n * \n * <AiFlask1 size={24} className=\"text-blue-500\" strokeWidth={2} />\n * ```\n */\nexport const AiFlask1 = React.forwardRef<SVGSVGElement, AiFlask1Props>(\n ({ size, ...props }, ref) => {\n return (\n <svg ref={ref} xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" {...props}><path fill=\"#1e293b\" d=\"M12 19.42c-.4 0-.74-.27-.83-.66l-.23-.97c-.1-.42-.42-.74-.84-.84l-.97-.23a.846.846 0 0 1-.66-.83c0-.4.27-.74.66-.83l.97-.23c.42-.1.74-.42.84-.84l.23-.97c.09-.39.43-.66.83-.66s.74.27.83.66l.23.97c.1.42.42.74.84.84l.97.23c.39.09.66.43.66.83s-.27.74-.66.83l-.97.23c-.42.1-.74.42-.84.84l-.23.97c-.09.39-.43.66-.83.66m-.64-3.52c.25.17.47.39.64.64.17-.25.39-.47.64-.64-.25-.17-.47-.39-.64-.64-.17.25-.39.47-.64.64\"/><path fill=\"#1e293b\" d=\"M6.65 22.74c-1.49 0-2.69-.57-3.28-1.57-.6-1.01-.54-2.3.18-3.62l5-9.29c.23-.42.35-1.24.26-1.74l-.64-3.17c-.1-.52.03-1.05.37-1.45.33-.4.82-.63 1.35-.63h4.23c.52 0 1.02.23 1.35.64s.47.93.37 1.45l-.64 3.19c-.1.49.03 1.29.26 1.72l4.99 9.3c.71 1.33.78 2.62.17 3.63-.6 1.01-1.77 1.57-3.28 1.57zM9.89 2.76c-.1 0-.16.06-.19.09s-.07.11-.05.21l.64 3.17c.16.85-.02 2.02-.42 2.74l-5 9.28c-.46.84-.53 1.61-.21 2.15s1.03.84 1.99.84h10.69c.96 0 1.67-.3 2-.84.32-.54.25-1.3-.21-2.15l-4.99-9.29c-.4-.72-.58-1.9-.42-2.73l.64-3.18a.22.22 0 0 0-.05-.2c-.03-.03-.09-.09-.19-.09z\"/></svg>\n );\n }\n);\n\nAiFlask1.displayName = 'AiFlask1';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAAkB;AAsBZ;AAHC,IAAM,WAAW,aAAAA,QAAM;AAAA,EAC5B,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC3B,WACE,6CAAC,SAAI,KAAU,OAAM,8BAA6B,OAAM,MAAK,QAAO,MAAK,MAAK,QAAO,SAAQ,aAAa,GAAG,OAAO;AAAA,kDAAC,UAAK,MAAK,WAAU,GAAE,2ZAAyZ;AAAA,MAAE,4CAAC,UAAK,MAAK,WAAU,GAAE,gjBAA8iB;AAAA,OAAE;AAAA,EAEjnC;AACF;AAEA,SAAS,cAAc;","names":["React"]}
|
package/index.mjs
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
// dist/icons/
|
|
1
|
+
// dist/icons/AiFlask1.tsx
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
var
|
|
3
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
var AiFlask1 = React.forwardRef(
|
|
5
5
|
({ size, ...props }, ref) => {
|
|
6
|
-
return /* @__PURE__ */
|
|
6
|
+
return /* @__PURE__ */ jsxs("svg", { ref, xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", fill: "none", viewBox: "0 0 24 24", ...props, children: [
|
|
7
|
+
/* @__PURE__ */ jsx("path", { fill: "#1e293b", d: "M12 19.42c-.4 0-.74-.27-.83-.66l-.23-.97c-.1-.42-.42-.74-.84-.84l-.97-.23a.846.846 0 0 1-.66-.83c0-.4.27-.74.66-.83l.97-.23c.42-.1.74-.42.84-.84l.23-.97c.09-.39.43-.66.83-.66s.74.27.83.66l.23.97c.1.42.42.74.84.84l.97.23c.39.09.66.43.66.83s-.27.74-.66.83l-.97.23c-.42.1-.74.42-.84.84l-.23.97c-.09.39-.43.66-.83.66m-.64-3.52c.25.17.47.39.64.64.17-.25.39-.47.64-.64-.25-.17-.47-.39-.64-.64-.17.25-.39.47-.64.64" }),
|
|
8
|
+
/* @__PURE__ */ jsx("path", { fill: "#1e293b", d: "M6.65 22.74c-1.49 0-2.69-.57-3.28-1.57-.6-1.01-.54-2.3.18-3.62l5-9.29c.23-.42.35-1.24.26-1.74l-.64-3.17c-.1-.52.03-1.05.37-1.45.33-.4.82-.63 1.35-.63h4.23c.52 0 1.02.23 1.35.64s.47.93.37 1.45l-.64 3.19c-.1.49.03 1.29.26 1.72l4.99 9.3c.71 1.33.78 2.62.17 3.63-.6 1.01-1.77 1.57-3.28 1.57zM9.89 2.76c-.1 0-.16.06-.19.09s-.07.11-.05.21l.64 3.17c.16.85-.02 2.02-.42 2.74l-5 9.28c-.46.84-.53 1.61-.21 2.15s1.03.84 1.99.84h10.69c.96 0 1.67-.3 2-.84.32-.54.25-1.3-.21-2.15l-4.99-9.29c-.4-.72-.58-1.9-.42-2.73l.64-3.18a.22.22 0 0 0-.05-.2c-.03-.03-.09-.09-.19-.09z" })
|
|
9
|
+
] });
|
|
7
10
|
}
|
|
8
11
|
);
|
|
9
|
-
|
|
12
|
+
AiFlask1.displayName = "AiFlask1";
|
|
10
13
|
export {
|
|
11
|
-
|
|
14
|
+
AiFlask1
|
|
12
15
|
};
|
|
13
16
|
//# sourceMappingURL=index.mjs.map
|
package/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["icons/
|
|
1
|
+
{"version":3,"sources":["icons/AiFlask1.tsx"],"sourcesContent":["import React from 'react';\n\n/**\n * Props for the AiFlask1 icon component\n * @property {number | string} [size] - Size of the icon (default: 24)\n */\nexport interface AiFlask1Props extends React.SVGProps<SVGSVGElement> {\n size?: number | string;\n}\n\n/**\n * AiFlask1 icon component\n * @example\n * ```tsx\n * import { AiFlask1 } from 'magick-icons';\n * \n * <AiFlask1 size={24} className=\"text-blue-500\" strokeWidth={2} />\n * ```\n */\nexport const AiFlask1 = React.forwardRef<SVGSVGElement, AiFlask1Props>(\n ({ size, ...props }, ref) => {\n return (\n <svg ref={ref} xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" fill=\"none\" viewBox=\"0 0 24 24\" {...props}><path fill=\"#1e293b\" d=\"M12 19.42c-.4 0-.74-.27-.83-.66l-.23-.97c-.1-.42-.42-.74-.84-.84l-.97-.23a.846.846 0 0 1-.66-.83c0-.4.27-.74.66-.83l.97-.23c.42-.1.74-.42.84-.84l.23-.97c.09-.39.43-.66.83-.66s.74.27.83.66l.23.97c.1.42.42.74.84.84l.97.23c.39.09.66.43.66.83s-.27.74-.66.83l-.97.23c-.42.1-.74.42-.84.84l-.23.97c-.09.39-.43.66-.83.66m-.64-3.52c.25.17.47.39.64.64.17-.25.39-.47.64-.64-.25-.17-.47-.39-.64-.64-.17.25-.39.47-.64.64\"/><path fill=\"#1e293b\" d=\"M6.65 22.74c-1.49 0-2.69-.57-3.28-1.57-.6-1.01-.54-2.3.18-3.62l5-9.29c.23-.42.35-1.24.26-1.74l-.64-3.17c-.1-.52.03-1.05.37-1.45.33-.4.82-.63 1.35-.63h4.23c.52 0 1.02.23 1.35.64s.47.93.37 1.45l-.64 3.19c-.1.49.03 1.29.26 1.72l4.99 9.3c.71 1.33.78 2.62.17 3.63-.6 1.01-1.77 1.57-3.28 1.57zM9.89 2.76c-.1 0-.16.06-.19.09s-.07.11-.05.21l.64 3.17c.16.85-.02 2.02-.42 2.74l-5 9.28c-.46.84-.53 1.61-.21 2.15s1.03.84 1.99.84h10.69c.96 0 1.67-.3 2-.84.32-.54.25-1.3-.21-2.15l-4.99-9.29c-.4-.72-.58-1.9-.42-2.73l.64-3.18a.22.22 0 0 0-.05-.2c-.03-.03-.09-.09-.19-.09z\"/></svg>\n );\n }\n);\n\nAiFlask1.displayName = 'AiFlask1';\n"],"mappings":";AAAA,OAAO,WAAW;AAsBZ,SAAoH,KAApH;AAHC,IAAM,WAAW,MAAM;AAAA,EAC5B,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ;AAC3B,WACE,qBAAC,SAAI,KAAU,OAAM,8BAA6B,OAAM,MAAK,QAAO,MAAK,MAAK,QAAO,SAAQ,aAAa,GAAG,OAAO;AAAA,0BAAC,UAAK,MAAK,WAAU,GAAE,2ZAAyZ;AAAA,MAAE,oBAAC,UAAK,MAAK,WAAU,GAAE,gjBAA8iB;AAAA,OAAE;AAAA,EAEjnC;AACF;AAEA,SAAS,cAAc;","names":[]}
|