@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
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
/**
|
|
3
|
+
* @typedef {Object} Props
|
|
4
|
+
* @property {string} [color]
|
|
5
|
+
* @property {number} [size]
|
|
6
|
+
* @property {number} [strokeWidth]
|
|
7
|
+
* @property {boolean} [isHovered]
|
|
8
|
+
* @property {string} [class]
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/** @type {Props} */
|
|
12
|
+
let {
|
|
13
|
+
color = 'currentColor',
|
|
14
|
+
size = 28,
|
|
15
|
+
strokeWidth = 2,
|
|
16
|
+
isHovered = false,
|
|
17
|
+
classes = ''
|
|
18
|
+
} = $props();
|
|
19
|
+
|
|
20
|
+
function handleMouseEnter() {
|
|
21
|
+
isHovered = true;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function handleMouseLeave() {
|
|
25
|
+
isHovered = false;
|
|
26
|
+
}
|
|
27
|
+
</script>
|
|
28
|
+
|
|
29
|
+
<div
|
|
30
|
+
class={classes}
|
|
31
|
+
aria-label="list-restart"
|
|
32
|
+
role="img"
|
|
33
|
+
onmouseenter={handleMouseEnter}
|
|
34
|
+
onmouseleave={handleMouseLeave}
|
|
35
|
+
>
|
|
36
|
+
<svg
|
|
37
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
38
|
+
width={size}
|
|
39
|
+
height={size}
|
|
40
|
+
viewBox="0 0 24 24"
|
|
41
|
+
fill="none"
|
|
42
|
+
stroke={color}
|
|
43
|
+
stroke-width={strokeWidth}
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
class="list-restart-icon"
|
|
47
|
+
class:animate={isHovered}
|
|
48
|
+
>
|
|
49
|
+
<path d="M21 6H3" />
|
|
50
|
+
<path d="M7 12H3" />
|
|
51
|
+
<path d="M7 18H3" />
|
|
52
|
+
<g class="restart-arrows">
|
|
53
|
+
<path d="M12 18a5 5 0 0 0 9-3 4.5 4.5 0 0 0-4.5-4.5c-1.33 0-2.54.54-3.41 1.41L11 14" />
|
|
54
|
+
<path d="M11 10v4h4" />
|
|
55
|
+
</g>
|
|
56
|
+
</svg>
|
|
57
|
+
</div>
|
|
58
|
+
|
|
59
|
+
<style>
|
|
60
|
+
.list-restart-icon {
|
|
61
|
+
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.restart-arrows {
|
|
65
|
+
transform-origin: center;
|
|
66
|
+
transform-box: fill-box;
|
|
67
|
+
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.animate .restart-arrows {
|
|
71
|
+
transform: rotate(-50deg);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
svg {
|
|
75
|
+
overflow: visible;
|
|
76
|
+
}
|
|
77
|
+
</style>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/** @typedef {typeof __propDef.props} ListRestartProps */
|
|
2
|
+
/** @typedef {typeof __propDef.events} ListRestartEvents */
|
|
3
|
+
/** @typedef {typeof __propDef.slots} ListRestartSlots */
|
|
4
|
+
export default class ListRestart extends SvelteComponentTyped<{
|
|
5
|
+
[x: string]: never;
|
|
6
|
+
}, {
|
|
7
|
+
[evt: string]: CustomEvent<any>;
|
|
8
|
+
}, {}> {
|
|
9
|
+
}
|
|
10
|
+
export type ListRestartProps = typeof __propDef.props;
|
|
11
|
+
export type ListRestartEvents = typeof __propDef.events;
|
|
12
|
+
export type ListRestartSlots = 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 {};
|
package/dist/index.d.ts
CHANGED
|
@@ -270,6 +270,7 @@ export { default as LightbulbOff } from "./icons/lightbulb-off.svelte";
|
|
|
270
270
|
export { default as Link2Off } from "./icons/link-2-off.svelte";
|
|
271
271
|
export { default as ListCheck } from "./icons/list-check.svelte";
|
|
272
272
|
export { default as ListChecks } from "./icons/list-checks.svelte";
|
|
273
|
+
export { default as ListRestart } from "./icons/list-restart.svelte";
|
|
273
274
|
export { default as ListTodo } from "./icons/list-todo.svelte";
|
|
274
275
|
export { default as LoaderPinwheel } from "./icons/loader-pinwheel.svelte";
|
|
275
276
|
export { default as LocateOff } from "./icons/locate-off.svelte";
|
package/dist/index.js
CHANGED
|
@@ -270,6 +270,7 @@ export { default as LightbulbOff } from "./icons/lightbulb-off.svelte";
|
|
|
270
270
|
export { default as Link2Off } from "./icons/link-2-off.svelte";
|
|
271
271
|
export { default as ListCheck } from "./icons/list-check.svelte";
|
|
272
272
|
export { default as ListChecks } from "./icons/list-checks.svelte";
|
|
273
|
+
export { default as ListRestart } from "./icons/list-restart.svelte";
|
|
273
274
|
export { default as ListTodo } from "./icons/list-todo.svelte";
|
|
274
275
|
export { default as LoaderPinwheel } from "./icons/loader-pinwheel.svelte";
|
|
275
276
|
export { default as LocateOff } from "./icons/locate-off.svelte";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jis3r/icons",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "beautifully crafted, moving icons. for svelte.",
|
|
5
5
|
"author": "jis3r",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"test:unit": "vitest",
|
|
16
16
|
"test": "npm run test:unit -- --run",
|
|
17
17
|
"index": "node scripts/indexIcons.js",
|
|
18
|
-
"reexport": "node scripts/generateIconExports.js"
|
|
18
|
+
"reexport": "node scripts/generateIconExports.js",
|
|
19
|
+
"registry:build": "node scripts/updateRegistry.js && shadcn-svelte registry build",
|
|
20
|
+
"prepare": "npm run index && npm run reexport && npm run registry:build && npm run build && npm run format"
|
|
19
21
|
},
|
|
20
22
|
"files": [
|
|
21
23
|
"dist",
|
|
@@ -41,7 +43,7 @@
|
|
|
41
43
|
"@sveltejs/vite-plugin-svelte": "^5.0.3",
|
|
42
44
|
"@types/eslint": "^9.6.0",
|
|
43
45
|
"autoprefixer": "^10.4.20",
|
|
44
|
-
"bits-ui": "^1.
|
|
46
|
+
"bits-ui": "^1.8.0",
|
|
45
47
|
"clsx": "^2.1.1",
|
|
46
48
|
"eslint": "^9.7.0",
|
|
47
49
|
"eslint-config-prettier": "^10.1.1",
|
|
@@ -67,9 +69,11 @@
|
|
|
67
69
|
"@vercel/analytics": "^1.5.0",
|
|
68
70
|
"iflog": "^0.0.4",
|
|
69
71
|
"mode-watcher": "^0.5.1",
|
|
70
|
-
"
|
|
72
|
+
"motion": "^12.23.6",
|
|
73
|
+
"posthog-js": "^1.246.0",
|
|
74
|
+
"shadcn-svelte": "^1.0.6"
|
|
71
75
|
},
|
|
72
76
|
"overrides": {
|
|
73
77
|
"cookie": "0.7.0"
|
|
74
78
|
}
|
|
75
|
-
}
|
|
79
|
+
}
|