UNPKG

3.93 kBJSONView Raw
1{
2 "name": "svelte-hero-icons",
3 "version": "4.0.3",
4 "description": "Heroicons for Svelte (Project based on heroicons)",
5 "repository": {
6 "type": "git",
7 "url": "https://github.com/JustinVoitel/svelte-hero-icons"
8 },
9 "engines": {
10 "node": ">=14.0.0"
11 },
12 "author": "Justin Voitel <mail@justinv.me>",
13 "license": "MIT",
14 "keywords": [
15 "svelte",
16 "component",
17 "icon",
18 "icons",
19 "heroicons",
20 "tailwindcss"
21 ],
22 "bugs": {
23 "url": "https://github.com/JustinVoitel/svelte-hero-icons/issues"
24 },
25 "homepage": "https://github.com/JustinVoitel/svelte-hero-icons#readme",
26 "files": [
27 "heroicons",
28 "*.svelte",
29 "*.js",
30 "*.d.ts"
31 ],
32 "devDependencies": {
33 "@sveltejs/adapter-node": "next",
34 "@sveltejs/adapter-vercel": "next",
35 "@sveltejs/kit": "next",
36 "@types/node": "^16.11.20",
37 "heroicons": "^1.0.5",
38 "html-parse-stringify": "^3.0.1",
39 "pascalcase": "^1.0.0",
40 "svelte": "^3.46.2",
41 "svelte-check": "^2.3.0",
42 "svelte-hero-icons": "*",
43 "svelte-preprocess": "^4.10.2",
44 "svelte2tsx": "^0.4.14",
45 "ts-node": "^10.4.0",
46 "tslib": "^2.3.1",
47 "typescript": "^4.5.4"
48 },
49 "type": "module",
50 "main": "index.js",
51 "exports": {
52 "./package.json": "./package.json",
53 ".": "./index.js"
54 },
55 "svelte": "./index.js",
56 "readme": "<div align=\"center\">\r\n <h1>Svelte Heroicons</h1>\r\n <a href=\"https://www.npmjs.com/package/svelte-hero-icons\"><img src=\"https://img.shields.io/npm/v/svelte-hero-icons.svg?style=flat\" /></a>\r\n</div>\r\n\r\n## Important Info for Current or New Users\r\n\r\nThis package won't be updated for the upcoming Heroicons 2.0 release and will stay as a reference to v1.x.\r\n\r\nIf you want to use v2.0 Icons, check out [@steeze-ui/icons](https://github.com/steeze-ui/icons) which is meant as a successor of svelte-hero-icons and will be be maintained instead:\r\n\r\n### What is @steeze-ui/Icons ?\r\n\r\n- Icon Components for any framework (for now its only svelte)\r\n- Icon Packs (e.g heroicons, radix-icons, iconic-free)\r\n- A template to create your own publishable Icon Pack (Planned)\r\n- Now lives under an org that will focus on more ui tools that I have planned (primarily for svelte)\r\n\r\n---\r\n\r\n## Description\r\n\r\n- complete [heroicons](https://heroicons.dev/) set optimized for svelte\r\n- programatically change solid or outline version based on the `solid` attribute\r\n- fully typed for a great IDE experience\r\n- works out of the box with SvelteKit\r\n- SSR compatible (no JS is needed for the client to display the icon)\r\n\r\n## Installation\r\n\r\n- install as `devDependency`\r\n\r\n### Example for npm\r\n\r\n```bash\r\nnpm i -D svelte-hero-icons\r\n```\r\n\r\n## Configuration\r\n\r\n## [SvelteKit](https://github.com/sveltejs/kit)\r\n\r\n- svelte-hero-icons should work with SvelteKit `without any configuration`\r\n- If you have any problems, this could help adding to your `svelte.config.js`:\r\n\r\n```js\r\nkit: {\r\n vite: {\r\n ssr: {\r\n noExternal: [\"svelte-hero-icons\"],\r\n },\r\n },\r\n},\r\n```\r\n\r\n## Usage\r\n\r\n- Default is Outline version of icon\r\n- Use **solid** attribute for Solid Icons\r\n\r\n```html\r\n<script>\r\n // Only import what you need!\r\n import { Icon, ArrowUp, Filter } from \"svelte-hero-icons\";\r\n</script>\r\n\r\n<!-- use solid attribute to control whether to show solid or outline version of icon -->\r\n<Icon src=\"{Filter}\" solid />\r\n\r\n<!-- use size attribute to set icon size (32 -> 32px | 2rem | 100% == default ) -->\r\n<Icon src=\"{ArrowUp}\" size=\"32\" />\r\n\r\n<!-- use Windi CSS or tailwindcss classes directly -->\r\n<Icon src=\"{Filter}\" class=\"h-6 text-red-500 w-6\" />\r\n```\r\n\r\n## Author\r\n\r\nThis package is based on [heroicons](https://github.com/refactoringui/heroicons)\r\n\r\nSee all available icons here: https://github.com/refactoringui/heroicons\r\n"
57}
\No newline at end of file