Skip to content

Commit 5881aeb

Browse files
Phosphor Icons v2.0 changes along with github action changes (#13)
* .env updates as per the new source of icons * updated tests with the new icon svgs * Update phosphor-icons to version 2 (#11) Co-authored-by: Swapnil Sarwe <swapnilsarwe@gmail.com> --------- Co-authored-by: Thaqebon <thaqebon@gmail.com>
1 parent fe02475 commit 5881aeb

File tree

6,051 files changed

+6012
-6019
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,051 files changed

+6012
-6019
lines changed

.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
REPOSITORY=phosphor-icons/phosphor-icons
2-
BRANCH=master
1+
REPOSITORY=phosphor-icons/core
2+
BRANCH=main

README.md

Lines changed: 17 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<img src="./socialcard-blade-phosphor-icons.png" width="1280" title="Social Card Blade Phosphor Icons">
33
</p>
44

5-
# Blade Phosphor Icons
5+
# Blade Phosphor Icons v2
66

77
<a href="https://github.com/codeat3/blade-phosphor-icons/actions?query=workflow%3ATests">
88
<img src="https://github.com/codeat3/blade-phosphor-icons/workflows/Tests/badge.svg" alt="Tests">
@@ -25,8 +25,14 @@ For a full list of available icons see [the SVG directory](resources/svg) or pre
2525

2626
## Installation
2727

28+
### For Phosphor Icons v1
2829
```bash
29-
composer require codeat3/blade-phosphor-icons
30+
composer require codeat3/blade-phosphor-icons:^1.0
31+
```
32+
33+
### For Phosphor Icons v2
34+
```bash
35+
composer require codeat3/blade-phosphor-icons:^2.0
3036
```
3137

3238
## Updating
@@ -65,34 +71,21 @@ And even use inline styles:
6571
<x-phosphor-alarm style="color: #555"/>
6672
```
6773

68-
For bold svg icon add `-bold` suffix
69-
70-
```blade
71-
<x-phosphor-alarm-bold/>
72-
```
73-
74-
For duotone svg icon add `-duotone` suffix
75-
76-
```blade
77-
<x-phosphor-alarm-duotone/>
78-
```
79-
80-
For fill svg icon add `-fill` suffix
81-
82-
```blade
83-
<x-phosphor-alarm-fill/>
84-
```
85-
86-
For light svg icon add `-light` suffix
74+
Or use the `@svg` directive:
8775

8876
```blade
89-
<x-phosphor-alarm-light/>
77+
@svg('phosphor-alarm', 'w-6 h-6', ['style' => 'color: #555'])
9078
```
9179

92-
For thin svg icon add `-thin` suffix
80+
The 6 weights can be referenced like this:
9381

9482
```blade
95-
<x-phosphor-alarm-thin/>
83+
<x-phosphor-alarm/> <!-- Regular svg -->
84+
<x-phosphor-alarm-bold/> <!-- For bold svg icon add `-bold` suffix -->
85+
<x-phosphor-alarm-duotone/> <!-- For duotone svg icon add `-duotone` suffix -->
86+
<x-phosphor-alarm-fill/> <!-- For fill svg icon add `-fill` suffix -->
87+
<x-phosphor-alarm-light/> <!-- For light svg icon add `-light` suffix -->
88+
<x-phosphor-alarm-thin/> <!-- For thin svg icon add `-thin` suffix -->
9689
```
9790
### Raw SVG Icons
9891

resources/svg/activity-bold.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/svg/activity-duotone.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/svg/activity-fill.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/svg/activity-light.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/svg/activity-thin.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

resources/svg/activity.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)