@jis3r/icons 1.0.0 → 1.1.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 +23 -7
- package/dist/components/ui/tooltip/index.d.ts +6 -0
- package/dist/components/ui/tooltip/index.js +18 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte +16 -0
- package/dist/components/ui/tooltip/tooltip-content.svelte.d.ts +23 -0
- package/dist/icons/index.js +858 -789
- package/dist/icons/list-restart.svelte +77 -0
- package/dist/icons/list-restart.svelte.d.ts +23 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +9 -5
package/README.md
CHANGED
|
@@ -2,26 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
**Demo** → [https://movingicons.dev](https://movingicons.dev)
|
|
4
4
|
|
|
5
|
-
<a href="https://
|
|
6
|
-
<a href="https://
|
|
5
|
+
<a href="https://madewithsvelte.com/p/moving-icons/shield-link"><img src="https://madewithsvelte.com/storage/repo-shields/5371-shield.svg" alt="Made with Svelte" /></a>
|
|
6
|
+
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="MIT License"/></a>
|
|
7
|
+
<a href="https://www.npmjs.com/package/@jis3r/icons" title="View this project on NPM"><img src="https://img.shields.io/npm/v/%40jis3r%2Ficons" alt="NPM version" /></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/@jis3r/icons" title="View this project on NPM"><img src="https://img.shields.io/npm/dm/%40jis3r%2Ficons" alt="NPM downloads" /></a>
|
|
7
9
|
|
|
8
10
|
## Installation
|
|
9
11
|
|
|
12
|
+
### 1. Install via npm
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm i @jis3r/icons
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### 2. Add via shadcn-svelte registry
|
|
19
|
+
|
|
20
|
+
You can add icons to your project using the [shadcn registry](https://www.shadcn-svelte.com). Ensure shadcn-svelte is installed. To add an icon, simply copy the command from the website and run it in your terminal. Icons will be added to your project in the `src/lib/components/movingicons` directory.
|
|
21
|
+
|
|
10
22
|
```bash
|
|
11
|
-
|
|
23
|
+
npx shadcn-svelte@latest add https://movingicons.dev/r/[icon-name]
|
|
12
24
|
```
|
|
13
25
|
|
|
26
|
+
### 3. Copy from Website
|
|
27
|
+
|
|
28
|
+
You can download or copy icon components directly from [https://movingicons.dev](https://movingicons.dev) and paste them into your Svelte project.
|
|
29
|
+
|
|
14
30
|
## Usage
|
|
15
31
|
|
|
16
32
|
Import icons as named Svelte components:
|
|
17
33
|
|
|
18
34
|
```svelte
|
|
19
35
|
<script>
|
|
20
|
-
import {
|
|
36
|
+
import { Activity, Star } from '@jis3r/icons';
|
|
21
37
|
</script>
|
|
22
38
|
|
|
23
|
-
<
|
|
24
|
-
<
|
|
39
|
+
<Activity size={32} color="orange" strokeWidth={2.5} />
|
|
40
|
+
<Star size={32} color="blue" />
|
|
25
41
|
```
|
|
26
42
|
|
|
27
43
|
- All icons are available as named exports in PascalCase.
|
|
@@ -50,4 +66,4 @@ This project is a work in progress, and i'm continuously working to improve and
|
|
|
50
66
|
|
|
51
67
|
## Credits
|
|
52
68
|
|
|
53
|
-
Thank you to the awesome [Dmytro](https://twitter.com/pqoqubbw) 💜 for the idea and inspiration to animated lucide-icons! I loved his project so much that I wanted to make it available for the
|
|
69
|
+
Thank you to the awesome [Dmytro](https://twitter.com/pqoqubbw) 💜 for the idea and inspiration to animated lucide-icons! I loved his project so much that I wanted to make it available for the Svelte ecosystem, so here we go! :)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const Root: import("svelte").Component<TooltipPrimitive.RootProps, {}, "open">;
|
|
2
|
+
export const Trigger: import("svelte").Component<TooltipPrimitive.TriggerProps, {}, "ref">;
|
|
3
|
+
import Content from './tooltip-content.svelte';
|
|
4
|
+
export const Provider: import("svelte").Component<TooltipPrimitive.ProviderProps, {}, "">;
|
|
5
|
+
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
|
6
|
+
export { Content, Root as Tooltip, Content as TooltipContent, Trigger as TooltipTrigger, Provider as TooltipProvider };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
|
2
|
+
import Content from './tooltip-content.svelte';
|
|
3
|
+
|
|
4
|
+
const Root = TooltipPrimitive.Root;
|
|
5
|
+
const Trigger = TooltipPrimitive.Trigger;
|
|
6
|
+
const Provider = TooltipPrimitive.Provider;
|
|
7
|
+
|
|
8
|
+
export {
|
|
9
|
+
Root,
|
|
10
|
+
Trigger,
|
|
11
|
+
Content,
|
|
12
|
+
Provider,
|
|
13
|
+
//
|
|
14
|
+
Root as Tooltip,
|
|
15
|
+
Content as TooltipContent,
|
|
16
|
+
Trigger as TooltipTrigger,
|
|
17
|
+
Provider as TooltipProvider
|
|
18
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import { Tooltip as TooltipPrimitive } from 'bits-ui';
|
|
3
|
+
import { cn } from '../../../utils.js';
|
|
4
|
+
|
|
5
|
+
let { ref = $bindable(null), class: className, sideOffset = 4, ...restProps } = $props();
|
|
6
|
+
</script>
|
|
7
|
+
|
|
8
|
+
<TooltipPrimitive.Content
|
|
9
|
+
bind:ref
|
|
10
|
+
{sideOffset}
|
|
11
|
+
class={cn(
|
|
12
|
+
'z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2',
|
|
13
|
+
className
|
|
14
|
+
)}
|
|
15
|
+
{...restProps}
|
|
16
|
+
/>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} TooltipContentProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} TooltipContentEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} TooltipContentSlots */
|
|
4
|
+
export default class TooltipContent extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type TooltipContentProps = typeof __propDef.props;
|
|
11
|
+
export type TooltipContentEvents = typeof __propDef.events;
|
|
12
|
+
export type TooltipContentSlots = typeof __propDef.slots;
|
|
13
|
+
import { SvelteComponentTyped } from "svelte";
|
|
14
|
+
declare const __propDef: {
|
|
15
|
+
props: {
|
|
16
|
+
[x: string]: never;
|
|
17
|
+
};
|
|
18
|
+
events: {
|
|
19
|
+
[evt: string]: CustomEvent<any>;
|
|
20
|
+
};
|
|
21
|
+
slots: {};
|
|
22
|
+
};
|
|
23
|
+
export {};
|