svelte-codicons 0.7.1 → 0.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/CHANGELOG.md +19 -7
- package/README.md +5 -13
- package/lib/Blank.svelte +1 -0
- package/lib/Blank.svelte.d.ts +11 -0
- package/lib/Eye.svelte +1 -1
- package/lib/EyeClosed.svelte +1 -1
- package/lib/GitCommit.svelte +1 -1
- package/lib/LayoutPanelOff.svelte +1 -0
- package/lib/LayoutPanelOff.svelte.d.ts +11 -0
- package/lib/LayoutSidebarLeftOff.svelte +1 -0
- package/lib/LayoutSidebarLeftOff.svelte.d.ts +11 -0
- package/lib/LayoutSidebarRightOff.svelte +1 -0
- package/lib/LayoutSidebarRightOff.svelte.d.ts +11 -0
- package/lib/LayoutStatusbar.svelte +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +4 -0
- package/package.json +8 -9
package/CHANGELOG.md
CHANGED
|
@@ -5,25 +5,37 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.10.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.10.0) - 2022-08-03
|
|
9
|
+
|
|
10
|
+
- Upgrade `@vscode/codicons` to [v0.0.32](https://github.com/microsoft/vscode-codicons/releases/tag/0.0.32) (net +9 icons)
|
|
11
|
+
|
|
12
|
+
## [0.9.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.9.0) - 2022-06-13
|
|
13
|
+
|
|
14
|
+
- Upgrade `@vscode/codicons` to v0.0.31 (net +4 icons)
|
|
15
|
+
|
|
16
|
+
## [0.8.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.8.0) - 2022-05-10
|
|
17
|
+
|
|
18
|
+
- Upgrade `@vscode/codicons` to v0.0.30 (net 0 icons, 2 icons modified)
|
|
19
|
+
|
|
8
20
|
## [0.7.1](https://github.com/metonym/svelte-codicons/releases/tag/v0.7.1) - 2022-04-09
|
|
9
21
|
|
|
10
|
-
-
|
|
22
|
+
- Upgrade `svelvg` to v0.10.1 so that TypeScript props correctly extend `svg` attributes
|
|
11
23
|
|
|
12
24
|
## [0.7.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.7.0) - 2022-03-12
|
|
13
25
|
|
|
14
|
-
- Upgrade `@vscode/codicons` to
|
|
26
|
+
- Upgrade `@vscode/codicons` to v0.0.29 (net +7 icons)
|
|
15
27
|
|
|
16
28
|
## [0.6.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.6.0) - 2022-02-14
|
|
17
29
|
|
|
18
|
-
- Upgrade `@vscode/codicons` to
|
|
30
|
+
- Upgrade `@vscode/codicons` to v0.0.28 (net +13 icons)
|
|
19
31
|
|
|
20
32
|
## [0.5.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.5.0) - 2021-12-14
|
|
21
33
|
|
|
22
|
-
- Upgrade `@vscode/codicons` to
|
|
34
|
+
- Upgrade `@vscode/codicons` to v0.0.27 (net +2 icons)
|
|
23
35
|
|
|
24
36
|
## [0.4.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.4.0) - 2021-11-04
|
|
25
37
|
|
|
26
|
-
- Upgrade `@vscode/codicons` to
|
|
38
|
+
- Upgrade `@vscode/codicons` to v0.0.26 (net +3 icons)
|
|
27
39
|
|
|
28
40
|
## [0.3.1](https://github.com/metonym/svelte-codicons/releases/tag/v0.3.1) - 2021-10-14
|
|
29
41
|
|
|
@@ -31,11 +43,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
31
43
|
|
|
32
44
|
## [0.3.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.3.0) - 2021-10-04
|
|
33
45
|
|
|
34
|
-
- Upgrade `@vscode/codicons` to
|
|
46
|
+
- Upgrade `@vscode/codicons` to v0.0.25 (net +7 icons)
|
|
35
47
|
|
|
36
48
|
## [0.2.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.2.0) - 2021-09-02
|
|
37
49
|
|
|
38
|
-
- Upgrade `@vscode/codicons` to
|
|
50
|
+
- Upgrade `@vscode/codicons` to v0.0.22 (net +2 icons)
|
|
39
51
|
|
|
40
52
|
## [0.1.0](https://github.com/metonym/svelte-codicons/releases/tag/v0.1.0) - 2021-08-31
|
|
41
53
|
|
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> [VS Code Codicons](https://github.com/microsoft/vscode-codicons) as Svelte components.
|
|
6
6
|
|
|
7
|
-
This library uses [svelvg](https://github.com/metonym/svelvg) to convert SVG files from the
|
|
7
|
+
This zero-dependency library uses [svelvg](https://github.com/metonym/svelvg) to convert SVG files from the [@vscode/codicons](https://www.npmjs.com/package/@vscode/codicons) into Svelte components.
|
|
8
8
|
|
|
9
9
|
<!-- REPO_URL -->
|
|
10
10
|
|
|
@@ -16,22 +16,16 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/f47568d489c34e8892da08273368
|
|
|
16
16
|
|
|
17
17
|
## Installation
|
|
18
18
|
|
|
19
|
-
**Yarn**
|
|
20
|
-
|
|
21
19
|
```bash
|
|
20
|
+
# Yarn
|
|
22
21
|
yarn add -D svelte-codicons
|
|
23
|
-
```
|
|
24
|
-
|
|
25
|
-
**NPM**
|
|
26
22
|
|
|
27
|
-
|
|
23
|
+
# npm
|
|
28
24
|
npm i -D svelte-codicons
|
|
29
|
-
```
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
```bash
|
|
26
|
+
# pnpm
|
|
34
27
|
pnpm i -D svelte-codicons
|
|
28
|
+
|
|
35
29
|
```
|
|
36
30
|
|
|
37
31
|
## Usage
|
|
@@ -54,8 +48,6 @@ Refer to [ICON_INDEX.md](ICON_INDEX.md) for a list of supported icons.
|
|
|
54
48
|
|
|
55
49
|
Use the direct import for faster compiling during development.
|
|
56
50
|
|
|
57
|
-
**Note:** even if using base imports, unused imports are still tree shakeable by application bundlers like Rollup or webpack.
|
|
58
|
-
|
|
59
51
|
```svelte no-eval
|
|
60
52
|
<script>
|
|
61
53
|
import Add from "svelte-codicons/lib/Add.svelte";
|
package/lib/Blank.svelte
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
|
+
|
|
4
|
+
export interface BlankProps
|
|
5
|
+
extends svelte.JSX.SVGAttributes<SVGSVGElement> {}
|
|
6
|
+
|
|
7
|
+
export default class Blank extends SvelteComponentTyped<
|
|
8
|
+
BlankProps,
|
|
9
|
+
{},
|
|
10
|
+
{ default: {} }
|
|
11
|
+
> {}
|
package/lib/Eye.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M7.99993 6.00316C9.47266 6.00316 10.6666 7.19708 10.6666 8.66981C10.6666 10.1426 9.47266 11.3365 7.99993 11.3365C6.52715 11.3365 5.33324 10.1426 5.33324 8.66981C5.33324 7.19708 6.52715 6.00316 7.99993 6.00316ZM7.99993 7.00315C7.07946 7.00315 6.33324 7.74935 6.33324 8.66981C6.33324 9.59028 7.07946 10.3365 7.99993 10.3365C8.9204 10.3365 9.6666 9.59028 9.6666 8.66981C9.6666 7.74935 8.9204 7.00315 7.99993 7.00315ZM7.99993 3.66675C11.0756 3.66675 13.7307 5.76675 14.4673 8.70968C14.5344 8.97755 14.3716 9.24908 14.1037 9.31615C13.8358 9.38315 13.5643 9.22041 13.4973 8.95248C12.8713 6.45205 10.6141 4.66675 7.99993 4.66675C5.38454 4.66675 3.12664 6.45359 2.50182 8.95555C2.43491 9.22341 2.16348 9.38635 1.89557 9.31948C1.62766 9.25255 1.46471 8.98115 1.53162 8.71321C2.26701 5.76856 4.9229 3.66675 7.99993 3.66675Z"/></svg>
|
package/lib/EyeClosed.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M1.47978 1.4797C1.30227 1.65721 1.28614 1.93498 1.43137 2.13072L1.47978 2.1868L4.1695 4.87652C2.88817 5.77616 1.93052 7.11985 1.53259 8.70952C1.46554 8.97738 1.62834 9.24892 1.89621 9.31598C2.16409 9.38298 2.4356 9.22025 2.50266 8.95232C2.85564 7.54225 3.72742 6.35956 4.88944 5.59626L6.09586 6.80278C5.62419 7.28378 5.33334 7.94278 5.33334 8.66965C5.33334 10.1424 6.52724 11.3363 8 11.3363C8.72694 11.3363 9.38587 11.0454 9.86694 10.5738L13.8131 14.5201C14.0084 14.7154 14.3249 14.7154 14.5202 14.5201C14.6977 14.3426 14.7139 14.0649 14.5686 13.8691L14.5202 13.813L10.4445 9.73692L10.4453 9.73592L9.64527 8.93732L7.732 7.02445L7.73334 7.02392L5.81252 5.10513L5.81334 5.10392L5.05782 4.35024L2.18689 1.4797C1.99163 1.28444 1.67504 1.28444 1.47978 1.4797ZM6.80274 7.51025L9.15947 9.86698C8.85947 10.1575 8.4506 10.3363 8 10.3363C7.07954 10.3363 6.33334 9.59012 6.33334 8.66965C6.33334 8.21905 6.51216 7.81018 6.80274 7.51025ZM8 3.66658C7.33314 3.66658 6.68607 3.7653 6.07406 3.94992L6.89874 4.77404C7.25594 4.70346 7.62427 4.66658 8 4.66658C10.6154 4.66658 12.8733 6.45342 13.4981 8.95538C13.565 9.22325 13.8364 9.38618 14.1043 9.31932C14.3723 9.25238 14.5352 8.98098 14.4683 8.71305C13.7329 5.7684 11.077 3.66658 8 3.66658ZM8.1298 6.0061L10.664 8.53992C10.5961 7.16865 9.49814 6.07168 8.1298 6.0061Z"/></svg>
|
package/lib/GitCommit.svelte
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M7.5 0H8.5V4.03095C10.4732 4.277 12 5.96019 12 8C12 10.0398 10.4732 11.723 8.5 11.9691V16H7.5V11.9691C5.52684 11.723 4 10.0398 4 8C4 5.96019 5.52684 4.277 7.5 4.03095V0ZM8 10.6C9.43594 10.6 10.6 9.43594 10.6 8C10.6 6.56406 9.43594 5.4 8 5.4C6.56406 5.4 5.4 6.56406 5.4 8C5.4 9.43594 6.56406 10.6 8 10.6Z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M2 1.00073L1 2.00073V14.0007L2 15.0007H14L15 14.0007V2.00073L14 1.00073H2ZM2 10.0007V2.00073H14V10.0007H2ZM2 11.0007H14V14.0007H2V11.0007Z"/></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
|
+
|
|
4
|
+
export interface LayoutPanelOffProps
|
|
5
|
+
extends svelte.JSX.SVGAttributes<SVGSVGElement> {}
|
|
6
|
+
|
|
7
|
+
export default class LayoutPanelOff extends SvelteComponentTyped<
|
|
8
|
+
LayoutPanelOffProps,
|
|
9
|
+
{},
|
|
10
|
+
{ default: {} }
|
|
11
|
+
> {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M2 1.00073L1 2.00073V14.0007L2 15.0007H14L15 14.0007V2.00073L14 1.00073H2ZM2 14.0007V2.00073H6V14.0007H2ZM7 14.0007V2.00073H14V14.0007H7Z"/></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
|
+
|
|
4
|
+
export interface LayoutSidebarLeftOffProps
|
|
5
|
+
extends svelte.JSX.SVGAttributes<SVGSVGElement> {}
|
|
6
|
+
|
|
7
|
+
export default class LayoutSidebarLeftOff extends SvelteComponentTyped<
|
|
8
|
+
LayoutSidebarLeftOffProps,
|
|
9
|
+
{},
|
|
10
|
+
{ default: {} }
|
|
11
|
+
> {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path d="M2 1.00073L1 2.00073V14.0007L2 15.0007H14L15 14.0007V2.00073L14 1.00073H2ZM2 14.0007V2.00073H9V14.0007H2ZM10 14.0007V2.00073H14V14.0007H10Z"/></svg>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="svelte" />
|
|
2
|
+
import { SvelteComponentTyped } from "svelte";
|
|
3
|
+
|
|
4
|
+
export interface LayoutSidebarRightOffProps
|
|
5
|
+
extends svelte.JSX.SVGAttributes<SVGSVGElement> {}
|
|
6
|
+
|
|
7
|
+
export default class LayoutSidebarRightOff extends SvelteComponentTyped<
|
|
8
|
+
LayoutSidebarRightOffProps,
|
|
9
|
+
{},
|
|
10
|
+
{ default: {} }
|
|
11
|
+
> {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path fill-rule="evenodd" clip-rule="evenodd" d="M2
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg" fill="currentColor" {...$$restProps}><slot /><path fill-rule="evenodd" clip-rule="evenodd" d="M2 1.00073L1 2.00073V14.0007L2 15.0007H14L15 14.0007V2.00073L14 1.00073H2ZM2 13.0007V2.00073H14V13.0007H2Z"/></svg>
|
package/lib/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { default as BeakerStop } from "./BeakerStop.svelte";
|
|
|
22
22
|
export { default as Beaker } from "./Beaker.svelte";
|
|
23
23
|
export { default as BellDot } from "./BellDot.svelte";
|
|
24
24
|
export { default as Bell } from "./Bell.svelte";
|
|
25
|
+
export { default as Blank } from "./Blank.svelte";
|
|
25
26
|
export { default as Bold } from "./Bold.svelte";
|
|
26
27
|
export { default as Book } from "./Book.svelte";
|
|
27
28
|
export { default as Bookmark } from "./Bookmark.svelte";
|
|
@@ -202,9 +203,12 @@ export { default as LayoutMenubar } from "./LayoutMenubar.svelte";
|
|
|
202
203
|
export { default as LayoutPanelCenter } from "./LayoutPanelCenter.svelte";
|
|
203
204
|
export { default as LayoutPanelJustify } from "./LayoutPanelJustify.svelte";
|
|
204
205
|
export { default as LayoutPanelLeft } from "./LayoutPanelLeft.svelte";
|
|
206
|
+
export { default as LayoutPanelOff } from "./LayoutPanelOff.svelte";
|
|
205
207
|
export { default as LayoutPanelRight } from "./LayoutPanelRight.svelte";
|
|
206
208
|
export { default as LayoutPanel } from "./LayoutPanel.svelte";
|
|
209
|
+
export { default as LayoutSidebarLeftOff } from "./LayoutSidebarLeftOff.svelte";
|
|
207
210
|
export { default as LayoutSidebarLeft } from "./LayoutSidebarLeft.svelte";
|
|
211
|
+
export { default as LayoutSidebarRightOff } from "./LayoutSidebarRightOff.svelte";
|
|
208
212
|
export { default as LayoutSidebarRight } from "./LayoutSidebarRight.svelte";
|
|
209
213
|
export { default as LayoutStatusbar } from "./LayoutStatusbar.svelte";
|
|
210
214
|
export { default as Layout } from "./Layout.svelte";
|
package/lib/index.js
CHANGED
|
@@ -22,6 +22,7 @@ export { default as BeakerStop } from "./BeakerStop.svelte";
|
|
|
22
22
|
export { default as Beaker } from "./Beaker.svelte";
|
|
23
23
|
export { default as BellDot } from "./BellDot.svelte";
|
|
24
24
|
export { default as Bell } from "./Bell.svelte";
|
|
25
|
+
export { default as Blank } from "./Blank.svelte";
|
|
25
26
|
export { default as Bold } from "./Bold.svelte";
|
|
26
27
|
export { default as Book } from "./Book.svelte";
|
|
27
28
|
export { default as Bookmark } from "./Bookmark.svelte";
|
|
@@ -202,9 +203,12 @@ export { default as LayoutMenubar } from "./LayoutMenubar.svelte";
|
|
|
202
203
|
export { default as LayoutPanelCenter } from "./LayoutPanelCenter.svelte";
|
|
203
204
|
export { default as LayoutPanelJustify } from "./LayoutPanelJustify.svelte";
|
|
204
205
|
export { default as LayoutPanelLeft } from "./LayoutPanelLeft.svelte";
|
|
206
|
+
export { default as LayoutPanelOff } from "./LayoutPanelOff.svelte";
|
|
205
207
|
export { default as LayoutPanelRight } from "./LayoutPanelRight.svelte";
|
|
206
208
|
export { default as LayoutPanel } from "./LayoutPanel.svelte";
|
|
209
|
+
export { default as LayoutSidebarLeftOff } from "./LayoutSidebarLeftOff.svelte";
|
|
207
210
|
export { default as LayoutSidebarLeft } from "./LayoutSidebarLeft.svelte";
|
|
211
|
+
export { default as LayoutSidebarRightOff } from "./LayoutSidebarRightOff.svelte";
|
|
208
212
|
export { default as LayoutSidebarRight } from "./LayoutSidebarRight.svelte";
|
|
209
213
|
export { default as LayoutStatusbar } from "./LayoutStatusbar.svelte";
|
|
210
214
|
export { default as Layout } from "./Layout.svelte";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-codicons",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "VS Code Codicons as Svelte components",
|
|
6
6
|
"author": "Eric Liu (https://github.com/metonym)",
|
|
@@ -17,15 +17,14 @@
|
|
|
17
17
|
"test": "vitest"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@sveltejs/vite-plugin-svelte": "1.0.
|
|
21
|
-
"@vscode/codicons": "0.0.
|
|
22
|
-
"gh-pages": "^
|
|
23
|
-
"
|
|
24
|
-
"svelte": "^
|
|
25
|
-
"svelte-check": "^2.6.0",
|
|
20
|
+
"@sveltejs/vite-plugin-svelte": "^1.0.1",
|
|
21
|
+
"@vscode/codicons": "0.0.32",
|
|
22
|
+
"gh-pages": "^4.0.0",
|
|
23
|
+
"svelte": "^3.49.0",
|
|
24
|
+
"svelte-check": "^2.8.0",
|
|
26
25
|
"svelte-readme": "^3.6.3",
|
|
27
|
-
"svelvg": "^0.
|
|
28
|
-
"vitest": "^0.
|
|
26
|
+
"svelvg": "^0.11.2",
|
|
27
|
+
"vitest": "^0.20.3"
|
|
29
28
|
},
|
|
30
29
|
"repository": {
|
|
31
30
|
"type": "git",
|