Skip to content

Commit 6075de7

Browse files
authored
Merge pull request #823 from HelixDesignSystem/surf-2161-icons-new-specs
feat(icons): implement and update icon specs
2 parents 7fc23e4 + 766c72e commit 6075de7

File tree

15 files changed

+167
-15
lines changed

15 files changed

+167
-15
lines changed

docs/_data/icons.json5

Lines changed: 77 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
[
22
{
33
name: 'account',
4-
minver: '0.1.10',
4+
minver: '2.0.0',
5+
keywords: [
6+
'customer',
7+
'asset',
8+
'platform',
9+
]
510
},
611
{
712
name: 'angle-bottom',
@@ -37,18 +42,20 @@
3742
},
3843
{
3944
name: 'bell',
40-
minver: '0.1.10',
45+
minver: '2.0.0',
4146
keywords: [
4247
'alert',
4348
'notification',
49+
'platform',
4450
],
4551
},
4652
{
4753
name: 'billing',
48-
minver: '0.1.10',
54+
minver: '2.0.0',
4955
keywords: [
5056
'invoice',
5157
'money',
58+
'platform',
5259
],
5360
},
5461
{
@@ -94,6 +101,14 @@
94101
'duplicate',
95102
],
96103
},
104+
{
105+
name: 'critical',
106+
minver: '2.0.0',
107+
keywords: [
108+
'urgent',
109+
'status',
110+
],
111+
},
97112
{
98113
name: 'download',
99114
minver: '0.1.4',
@@ -146,6 +161,11 @@
146161
{
147162
name: 'fish-hook',
148163
minver: '1.0.0',
164+
keywords: [
165+
'phishing',
166+
'security',
167+
'email',
168+
]
149169
},
150170
{
151171
name: 'flag',
@@ -183,6 +203,16 @@
183203
{
184204
name: 'info-circle',
185205
minver: '0.1.0',
206+
deprecated: true,
207+
replacement: 'information',
208+
},
209+
{
210+
name: 'information',
211+
minver: '2.0.0',
212+
keywords: [
213+
'information',
214+
'status',
215+
]
186216
},
187217
{
188218
name: 'input-file',
@@ -451,6 +481,15 @@
451481
'graph',
452482
],
453483
},
484+
{
485+
name: 'ok',
486+
minver: '2.0.0',
487+
keywords: [
488+
'ok',
489+
'success',
490+
'status',
491+
],
492+
},
454493
{
455494
name: 'paperclip',
456495
minver: '0.7.0',
@@ -473,6 +512,13 @@
473512
'edit',
474513
],
475514
},
515+
{
516+
name: 'pending',
517+
minver: '2.0.0',
518+
keywords: [
519+
'status',
520+
],
521+
},
476522
{
477523
name: 'phone',
478524
minver: '0.1.0',
@@ -547,11 +593,12 @@
547593
},
548594
{
549595
name: 'support',
550-
minver: '0.1.0',
596+
minver: '2.0.0',
551597
keywords: [
552598
'assistance',
553599
'customer service',
554600
'help',
601+
'platform',
555602
],
556603
},
557604
{
@@ -572,7 +619,13 @@
572619
},
573620
{
574621
name: 'ticketing',
575-
minver: '0.1.10',
622+
minver: '2.0.0',
623+
keywords: [
624+
'support',
625+
'customer',
626+
'device',
627+
'platform',
628+
]
576629
},
577630
{
578631
name: 'times',
@@ -600,6 +653,15 @@
600653
'remove',
601654
],
602655
},
656+
{
657+
name: 'unavailable',
658+
minver: '2.0.0',
659+
keywords: [
660+
'offline',
661+
'inaccessible',
662+
'status',
663+
],
664+
},
603665
{
604666
name: 'undo',
605667
minver: '0.12.0',
@@ -612,10 +674,19 @@
612674
},
613675
{
614676
name: 'user',
615-
minver: '0.1.10',
677+
minver: '2.0.0',
616678
keywords: [
617679
'customer',
618680
'person',
681+
'platform',
682+
],
683+
},
684+
{
685+
name: 'warning',
686+
minver: '2.0.0',
687+
keywords: [
688+
'error',
689+
'status',
619690
],
620691
},
621692
]

docs/components/icon/index.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,58 @@ <h2 id="basic-icon">Basic Icon</h2>
3333
</div>
3434
</section>
3535

36+
<section>
37+
<header>
38+
<h2 id="add-color-icon">Add Color to Icons</h2>
39+
<p>
40+
Add color to a <code>&lt;hx-icon&gt;</code> element using inline styles.
41+
</p>
42+
</header>
43+
44+
<div class="example">
45+
<div>
46+
<hx-icon type="warning" style="color: #ffc749" class="size-2x"></hx-icon>
47+
</div>
48+
49+
<footer>
50+
{% code 'html' %}
51+
<hx-icon type="warning" style="color: #ffc749"></hx-icon>
52+
{% endcode %}
53+
</footer>
54+
</div>
55+
</section>
56+
57+
<section>
58+
<header>
59+
<h2 id="status-icons">Status Icons</h2>
60+
<p>
61+
Recommended colors for status icons.
62+
</p>
63+
</header>
64+
65+
<div class="example">
66+
<div>
67+
<hx-icon type="info-circle" style="color: #296CDC" class="size-2x"></hx-icon>
68+
<hx-icon type="ok" style="color: #008B38" class="size-2x"></hx-icon>
69+
<hx-icon type="warning" style="color: #ffc749" class="size-2x"></hx-icon>
70+
<hx-icon type="critical" style="color: #D6251F" class="size-2x"></hx-icon>
71+
<hx-icon type="pending" style="color: #9E9E9E" class="size-2x"></hx-icon>
72+
<hx-icon type="unavailable" style="color: #9E9E9E" class="size-2x"></hx-icon>
73+
</div>
74+
75+
<footer>
76+
{% code 'html' %}
77+
<hx-icon type="info-circle" style="color: #296CDC"></hx-icon>
78+
<hx-icon type="ok" style="color: #008B38"></hx-icon>
79+
<hx-icon type="warning" style="color: #ffc749"></hx-icon>
80+
<hx-icon type="critical" style="color: #D6251F"></hx-icon>
81+
<hx-icon type="pending" style="color: #9E9E9E"></hx-icon>
82+
<hx-icon type="unavailable" style="color: #9E9E9E"></hx-icon>
83+
{% endcode %}
84+
</footer>
85+
</div>
86+
</section>
87+
3688
<section>
3789
<header>
3890
<h2 id="file-icons">File Icon</h2>

src/images/icons/account.svg

Lines changed: 1 addition & 1 deletion
Loading

src/images/icons/bell.svg

Lines changed: 1 addition & 1 deletion
Loading

src/images/icons/billing.svg

Lines changed: 1 addition & 1 deletion
Loading

src/images/icons/critical.svg

Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)