@jis3r/icons 1.9.0 → 1.10.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/bold.svelte +72 -0
- package/dist/icons/bold.svelte.d.ts +19 -0
- package/dist/icons/index.js +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,72 @@
|
|
|
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
|
+
class: className = ''
|
|
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={className}
|
|
31
|
+
aria-label="bold"
|
|
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="bold-icon"
|
|
47
|
+
class:animate={isHovered}
|
|
48
|
+
>
|
|
49
|
+
<path
|
|
50
|
+
d="M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8"
|
|
51
|
+
class="bold-path"
|
|
52
|
+
/>
|
|
53
|
+
</svg>
|
|
54
|
+
</div>
|
|
55
|
+
|
|
56
|
+
<style>
|
|
57
|
+
div {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
}
|
|
60
|
+
.bold-icon {
|
|
61
|
+
overflow: visible;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.bold-path {
|
|
65
|
+
stroke-width: 2;
|
|
66
|
+
transition: stroke-width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.bold-icon.animate .bold-path {
|
|
70
|
+
stroke-width: 3.5;
|
|
71
|
+
}
|
|
72
|
+
</style>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default Bold;
|
|
2
|
+
type Bold = {
|
|
3
|
+
$on?(type: string, callback: (e: any) => void): () => void;
|
|
4
|
+
$set?(props: Partial<Props>): void;
|
|
5
|
+
};
|
|
6
|
+
declare const Bold: import("svelte").Component<{
|
|
7
|
+
color?: string;
|
|
8
|
+
size?: number;
|
|
9
|
+
strokeWidth?: number;
|
|
10
|
+
isHovered?: boolean;
|
|
11
|
+
class?: string;
|
|
12
|
+
}, {}, "">;
|
|
13
|
+
type Props = {
|
|
14
|
+
color?: string;
|
|
15
|
+
size?: number;
|
|
16
|
+
strokeWidth?: number;
|
|
17
|
+
isHovered?: boolean;
|
|
18
|
+
class?: string;
|
|
19
|
+
};
|
package/dist/icons/index.js
CHANGED
|
@@ -56,6 +56,7 @@ import betweenVerticalStart from './between-vertical-start.svelte';
|
|
|
56
56
|
import blend from './blend.svelte';
|
|
57
57
|
import blocks from './blocks.svelte';
|
|
58
58
|
import bluetoothOff from './bluetooth-off.svelte';
|
|
59
|
+
import bold from './bold.svelte';
|
|
59
60
|
import bolt from './bolt.svelte';
|
|
60
61
|
import bone from './bone.svelte';
|
|
61
62
|
import book from './book.svelte';
|
|
@@ -1149,6 +1150,12 @@ let ICONS_LIST = [
|
|
|
1149
1150
|
tags: ['lost'],
|
|
1150
1151
|
categories: ['connectivity', 'devices']
|
|
1151
1152
|
},
|
|
1153
|
+
{
|
|
1154
|
+
name: 'bold',
|
|
1155
|
+
icon: bold,
|
|
1156
|
+
tags: ['text', 'strong', 'format'],
|
|
1157
|
+
categories: ['text']
|
|
1158
|
+
},
|
|
1152
1159
|
{
|
|
1153
1160
|
name: 'bolt',
|
|
1154
1161
|
icon: bolt,
|
package/dist/index.d.ts
CHANGED
|
@@ -56,6 +56,7 @@ export { default as BetweenVerticalStart } from "./icons/between-vertical-start.
|
|
|
56
56
|
export { default as Blend } from "./icons/blend.svelte";
|
|
57
57
|
export { default as Blocks } from "./icons/blocks.svelte";
|
|
58
58
|
export { default as BluetoothOff } from "./icons/bluetooth-off.svelte";
|
|
59
|
+
export { default as Bold } from "./icons/bold.svelte";
|
|
59
60
|
export { default as Bolt } from "./icons/bolt.svelte";
|
|
60
61
|
export { default as Bone } from "./icons/bone.svelte";
|
|
61
62
|
export { default as BookA } from "./icons/book-a.svelte";
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ export { default as BetweenVerticalStart } from './icons/between-vertical-start.
|
|
|
56
56
|
export { default as Blend } from './icons/blend.svelte';
|
|
57
57
|
export { default as Blocks } from './icons/blocks.svelte';
|
|
58
58
|
export { default as BluetoothOff } from './icons/bluetooth-off.svelte';
|
|
59
|
+
export { default as Bold } from './icons/bold.svelte';
|
|
59
60
|
export { default as Bolt } from './icons/bolt.svelte';
|
|
60
61
|
export { default as Bone } from './icons/bone.svelte';
|
|
61
62
|
export { default as BookA } from './icons/book-a.svelte';
|
package/package.json
CHANGED