@jis3r/icons 1.0.1 → 1.1.1

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.
@@ -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";