@jis3r/icons 2.5.0 → 2.6.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/dist/icons/badge-x.svelte +82 -0
- package/dist/icons/badge-x.svelte.d.ts +4 -0
- package/dist/icons/calendar-x-2.svelte +83 -0
- package/dist/icons/calendar-x-2.svelte.d.ts +4 -0
- package/dist/icons/calendar-x.svelte +83 -0
- package/dist/icons/calendar-x.svelte.d.ts +4 -0
- package/dist/icons/circle-x.svelte +80 -0
- package/dist/icons/circle-x.svelte.d.ts +4 -0
- package/dist/icons/file-x-corner.svelte +83 -0
- package/dist/icons/file-x-corner.svelte.d.ts +4 -0
- package/dist/icons/file-x.svelte +83 -0
- package/dist/icons/file-x.svelte.d.ts +4 -0
- package/dist/icons/globe-x.svelte +80 -0
- package/dist/icons/globe-x.svelte.d.ts +4 -0
- package/dist/icons/mail-x.svelte +81 -0
- package/dist/icons/mail-x.svelte.d.ts +4 -0
- package/dist/icons/map-pin-x-inside.svelte +82 -0
- package/dist/icons/map-pin-x-inside.svelte.d.ts +4 -0
- package/dist/icons/map-pin-x.svelte +83 -0
- package/dist/icons/map-pin-x.svelte.d.ts +4 -0
- package/dist/icons/monitor-x.svelte +82 -0
- package/dist/icons/monitor-x.svelte.d.ts +4 -0
- package/dist/icons/octagon-x.svelte +82 -0
- package/dist/icons/octagon-x.svelte.d.ts +4 -0
- package/dist/icons/package-x.svelte +85 -0
- package/dist/icons/package-x.svelte.d.ts +4 -0
- package/dist/icons/search-x.svelte +101 -0
- package/dist/icons/search-x.svelte.d.ts +4 -0
- package/dist/icons/shield-x.svelte +82 -0
- package/dist/icons/shield-x.svelte.d.ts +4 -0
- package/dist/icons/square-x.svelte +80 -0
- package/dist/icons/square-x.svelte.d.ts +4 -0
- package/dist/icons/ticket-x.svelte +82 -0
- package/dist/icons/ticket-x.svelte.d.ts +4 -0
- package/dist/icons/user-round-x.svelte +124 -0
- package/dist/icons/user-round-x.svelte.d.ts +4 -0
- package/dist/icons/volume-x.svelte +82 -0
- package/dist/icons/volume-x.svelte.d.ts +4 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.js +19 -0
- package/package.json +1 -1
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="map-pin-x-inside" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="map-pin-x-inside-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0"
|
|
37
|
+
/>
|
|
38
|
+
<path d="m14.5 7.5-5 5" class="diagonal-1" />
|
|
39
|
+
<path d="m9.5 7.5 5 5" class="diagonal-2" />
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
div {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
.map-pin-x-inside-icon {
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.diagonal-1,
|
|
52
|
+
.diagonal-2 {
|
|
53
|
+
stroke-dasharray: 7.1;
|
|
54
|
+
stroke-dashoffset: 0;
|
|
55
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.map-pin-x-inside-icon.animate .diagonal-1 {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.map-pin-x-inside-icon.animate .diagonal-2 {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes lineAnimation {
|
|
69
|
+
0% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
stroke-dashoffset: 7.1;
|
|
72
|
+
}
|
|
73
|
+
15% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
stroke-dashoffset: 7.1;
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
stroke-dashoffset: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="map-pin-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="map-pin-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M19.752 11.901A7.78 7.78 0 0 0 20 10a8 8 0 0 0-16 0c0 4.993 5.539 10.193 7.399 11.799a1 1 0 0 0 1.202 0 19 19 0 0 0 .09-.077"
|
|
37
|
+
/>
|
|
38
|
+
<circle cx="12" cy="10" r="3" />
|
|
39
|
+
<path d="m21.5 15.5-5 5" class="diagonal-1" />
|
|
40
|
+
<path d="m16.5 15.5 5 5" class="diagonal-2" />
|
|
41
|
+
</svg>
|
|
42
|
+
</div>
|
|
43
|
+
|
|
44
|
+
<style>
|
|
45
|
+
div {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
}
|
|
48
|
+
.map-pin-x-icon {
|
|
49
|
+
overflow: visible;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.diagonal-1,
|
|
53
|
+
.diagonal-2 {
|
|
54
|
+
stroke-dasharray: 7.1;
|
|
55
|
+
stroke-dashoffset: 0;
|
|
56
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.map-pin-x-icon.animate .diagonal-1 {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.map-pin-x-icon.animate .diagonal-2 {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@keyframes lineAnimation {
|
|
70
|
+
0% {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
stroke-dashoffset: 7.1;
|
|
73
|
+
}
|
|
74
|
+
15% {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
stroke-dashoffset: 7.1;
|
|
77
|
+
}
|
|
78
|
+
100% {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
stroke-dashoffset: 0;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="monitor-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="monitor-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path d="M14.5 7.5l-5 5" class="diagonal-1" />
|
|
36
|
+
<path d="M9.5 7.5l5 5" class="diagonal-2" />
|
|
37
|
+
<rect width="20" height="14" x="2" y="3" rx="2" />
|
|
38
|
+
<path d="M12 17v4" />
|
|
39
|
+
<path d="M8 21h8" />
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
div {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
.monitor-x-icon {
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.diagonal-1,
|
|
52
|
+
.diagonal-2 {
|
|
53
|
+
stroke-dasharray: 8;
|
|
54
|
+
stroke-dashoffset: 0;
|
|
55
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.monitor-x-icon.animate .diagonal-1 {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.monitor-x-icon.animate .diagonal-2 {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes lineAnimation {
|
|
69
|
+
0% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
stroke-dashoffset: 8;
|
|
72
|
+
}
|
|
73
|
+
15% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
stroke-dashoffset: 8;
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
stroke-dashoffset: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="octagon-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="octagon-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z"
|
|
37
|
+
/>
|
|
38
|
+
<path d="m15 9-6 6" class="diagonal-1" />
|
|
39
|
+
<path d="m9 9 6 6" class="diagonal-2" />
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
div {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
.octagon-x-icon {
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.diagonal-1,
|
|
52
|
+
.diagonal-2 {
|
|
53
|
+
stroke-dasharray: 8.5;
|
|
54
|
+
stroke-dashoffset: 0;
|
|
55
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.octagon-x-icon.animate .diagonal-1 {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.octagon-x-icon.animate .diagonal-2 {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes lineAnimation {
|
|
69
|
+
0% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
stroke-dashoffset: 8.5;
|
|
72
|
+
}
|
|
73
|
+
15% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
stroke-dashoffset: 8.5;
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
stroke-dashoffset: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="package-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="package-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M21 10V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l2-1.14"
|
|
37
|
+
/>
|
|
38
|
+
<path d="m7.5 4.27 9 5.15" />
|
|
39
|
+
<polyline points="3.29 7 12 12 20.71 7" />
|
|
40
|
+
<line x1="12" x2="12" y1="22" y2="12" />
|
|
41
|
+
<path d="m22 13-5 5" class="diagonal-1" />
|
|
42
|
+
<path d="m17 13 5 5" class="diagonal-2" />
|
|
43
|
+
</svg>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<style>
|
|
47
|
+
div {
|
|
48
|
+
display: inline-block;
|
|
49
|
+
}
|
|
50
|
+
.package-x-icon {
|
|
51
|
+
overflow: visible;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.diagonal-1,
|
|
55
|
+
.diagonal-2 {
|
|
56
|
+
stroke-dasharray: 7.1;
|
|
57
|
+
stroke-dashoffset: 0;
|
|
58
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.package-x-icon.animate .diagonal-1 {
|
|
62
|
+
opacity: 0;
|
|
63
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.package-x-icon.animate .diagonal-2 {
|
|
67
|
+
opacity: 0;
|
|
68
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@keyframes lineAnimation {
|
|
72
|
+
0% {
|
|
73
|
+
opacity: 0;
|
|
74
|
+
stroke-dashoffset: 7.1;
|
|
75
|
+
}
|
|
76
|
+
15% {
|
|
77
|
+
opacity: 1;
|
|
78
|
+
stroke-dashoffset: 7.1;
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
opacity: 1;
|
|
82
|
+
stroke-dashoffset: 0;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
</style>
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 1000);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="search-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="search-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path d="m13.5 8.5-5 5" class="diagonal-1" />
|
|
36
|
+
<path d="m8.5 8.5 5 5" class="diagonal-2" />
|
|
37
|
+
<circle cx="11" cy="11" r="8" />
|
|
38
|
+
<path d="m21 21-4.3-4.3" />
|
|
39
|
+
</svg>
|
|
40
|
+
</div>
|
|
41
|
+
|
|
42
|
+
<style>
|
|
43
|
+
div {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
}
|
|
46
|
+
.search-x-icon {
|
|
47
|
+
overflow: visible;
|
|
48
|
+
transition:
|
|
49
|
+
transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275),
|
|
50
|
+
transform 1s ease-in-out;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.search-x-icon.animate {
|
|
54
|
+
animation: search-bounce 1s ease-in-out;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.diagonal-1,
|
|
58
|
+
.diagonal-2 {
|
|
59
|
+
stroke-dasharray: 7.1;
|
|
60
|
+
stroke-dashoffset: 0;
|
|
61
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.search-x-icon.animate .diagonal-1 {
|
|
65
|
+
opacity: 0;
|
|
66
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.search-x-icon.animate .diagonal-2 {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes search-bounce {
|
|
75
|
+
0%,
|
|
76
|
+
100% {
|
|
77
|
+
transform: translateX(0) translateY(0);
|
|
78
|
+
}
|
|
79
|
+
25% {
|
|
80
|
+
transform: translateX(0) translateY(-4px);
|
|
81
|
+
}
|
|
82
|
+
50% {
|
|
83
|
+
transform: translateX(-3px) translateY(0);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
@keyframes lineAnimation {
|
|
88
|
+
0% {
|
|
89
|
+
opacity: 0;
|
|
90
|
+
stroke-dashoffset: 7.1;
|
|
91
|
+
}
|
|
92
|
+
15% {
|
|
93
|
+
opacity: 1;
|
|
94
|
+
stroke-dashoffset: 7.1;
|
|
95
|
+
}
|
|
96
|
+
100% {
|
|
97
|
+
opacity: 1;
|
|
98
|
+
stroke-dashoffset: 0;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
</style>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script lang="ts">
|
|
2
|
+
import type { IconProps } from './types.js';
|
|
3
|
+
|
|
4
|
+
let {
|
|
5
|
+
color = 'currentColor',
|
|
6
|
+
size = 24,
|
|
7
|
+
strokeWidth = 2,
|
|
8
|
+
animate = false,
|
|
9
|
+
class: className = ''
|
|
10
|
+
}: IconProps = $props();
|
|
11
|
+
|
|
12
|
+
function handleMouseEnter() {
|
|
13
|
+
if (animate) return;
|
|
14
|
+
animate = true;
|
|
15
|
+
setTimeout(() => {
|
|
16
|
+
animate = false;
|
|
17
|
+
}, 600);
|
|
18
|
+
}
|
|
19
|
+
</script>
|
|
20
|
+
|
|
21
|
+
<div class={className} aria-label="shield-x" role="img" onmouseenter={handleMouseEnter}>
|
|
22
|
+
<svg
|
|
23
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
24
|
+
width={size}
|
|
25
|
+
height={size}
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
fill="none"
|
|
28
|
+
stroke={color}
|
|
29
|
+
stroke-width={strokeWidth}
|
|
30
|
+
stroke-linecap="round"
|
|
31
|
+
stroke-linejoin="round"
|
|
32
|
+
class="shield-x-icon"
|
|
33
|
+
class:animate
|
|
34
|
+
>
|
|
35
|
+
<path
|
|
36
|
+
d="M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z"
|
|
37
|
+
/>
|
|
38
|
+
<path d="m14.5 9.5-5 5" class="diagonal-1" />
|
|
39
|
+
<path d="m9.5 9.5 5 5" class="diagonal-2" />
|
|
40
|
+
</svg>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<style>
|
|
44
|
+
div {
|
|
45
|
+
display: inline-block;
|
|
46
|
+
}
|
|
47
|
+
.shield-x-icon {
|
|
48
|
+
overflow: visible;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.diagonal-1,
|
|
52
|
+
.diagonal-2 {
|
|
53
|
+
stroke-dasharray: 7.1;
|
|
54
|
+
stroke-dashoffset: 0;
|
|
55
|
+
transition: stroke-dashoffset 0.15s ease-out;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.shield-x-icon.animate .diagonal-1 {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
animation: lineAnimation 0.3s ease-out forwards;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.shield-x-icon.animate .diagonal-2 {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
animation: lineAnimation 0.3s ease-out 0.25s forwards;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
@keyframes lineAnimation {
|
|
69
|
+
0% {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
stroke-dashoffset: 7.1;
|
|
72
|
+
}
|
|
73
|
+
15% {
|
|
74
|
+
opacity: 1;
|
|
75
|
+
stroke-dashoffset: 7.1;
|
|
76
|
+
}
|
|
77
|
+
100% {
|
|
78
|
+
opacity: 1;
|
|
79
|
+
stroke-dashoffset: 0;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
</style>
|