Skip to content

Commit 7e612e4

Browse files
committed
feat(ui): Icon - new glyphs
1 parent 9e791ea commit 7e612e4

File tree

6 files changed

+85
-7
lines changed

6 files changed

+85
-7
lines changed

packages/ui/src/assets/icons.svg

Lines changed: 11 additions & 0 deletions
Loading

packages/ui/src/assets/icons.svg.jsx

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const SvgIcons = (props) => (
99
strokeWidth="2"
1010
strokeLinecap="round"
1111
strokeLinejoin="round"
12+
className="feather feather-arrow-down"
1213
id="arrow"
1314
xmlns="http://www.w3.org/2000/svg"
1415
>
@@ -20,6 +21,7 @@ export const SvgIcons = (props) => (
2021
strokeWidth="2"
2122
strokeLinecap="round"
2223
strokeLinejoin="round"
24+
className="feather feather-arrow-right-circle"
2325
viewBox="0 0 24 24"
2426
id="arrow-right-circle"
2527
xmlns="http://www.w3.org/2000/svg"
@@ -45,6 +47,7 @@ export const SvgIcons = (props) => (
4547
strokeWidth="2"
4648
strokeLinecap="round"
4749
strokeLinejoin="round"
50+
className="lucide lucide-chevron-down"
4851
viewBox="0 0 24 24"
4952
id="chevron-down"
5053
xmlns="http://www.w3.org/2000/svg"
@@ -57,6 +60,7 @@ export const SvgIcons = (props) => (
5760
strokeWidth="2"
5861
strokeLinecap="round"
5962
strokeLinejoin="round"
63+
className="lucide lucide-chevron-up"
6064
viewBox="0 0 24 24"
6165
id="chevron-up"
6266
xmlns="http://www.w3.org/2000/svg"
@@ -97,6 +101,7 @@ export const SvgIcons = (props) => (
97101
strokeWidth="2"
98102
strokeLinecap="round"
99103
strokeLinejoin="round"
104+
className="feather feather-clock"
100105
id="clock"
101106
xmlns="http://www.w3.org/2000/svg"
102107
>
@@ -109,6 +114,7 @@ export const SvgIcons = (props) => (
109114
strokeWidth="2"
110115
strokeLinecap="round"
111116
strokeLinejoin="round"
117+
className="feather feather-x-circle"
112118
viewBox="0 0 24 24"
113119
id="close"
114120
xmlns="http://www.w3.org/2000/svg"
@@ -123,6 +129,7 @@ export const SvgIcons = (props) => (
123129
strokeWidth="2"
124130
strokeLinecap="round"
125131
strokeLinejoin="round"
132+
className="feather feather-git-commit"
126133
id="commit"
127134
xmlns="http://www.w3.org/2000/svg"
128135
>
@@ -157,6 +164,7 @@ export const SvgIcons = (props) => (
157164
strokeWidth="2"
158165
strokeLinecap="round"
159166
strokeLinejoin="round"
167+
className="feather feather-external-link"
160168
viewBox="0 0 24 24"
161169
id="external-link"
162170
xmlns="http://www.w3.org/2000/svg"
@@ -170,6 +178,7 @@ export const SvgIcons = (props) => (
170178
strokeWidth="2"
171179
strokeLinecap="round"
172180
strokeLinejoin="round"
181+
className="feather feather-bar-chart"
173182
id="filter"
174183
xmlns="http://www.w3.org/2000/svg"
175184
>
@@ -190,6 +199,7 @@ export const SvgIcons = (props) => (
190199
strokeWidth="2"
191200
strokeLinecap="round"
192201
strokeLinejoin="round"
202+
className="feather feather-help-circle"
193203
id="help"
194204
xmlns="http://www.w3.org/2000/svg"
195205
>
@@ -216,11 +226,37 @@ export const SvgIcons = (props) => (
216226
strokeWidth="2"
217227
strokeLinecap="round"
218228
strokeLinejoin="round"
229+
className="feather feather-menu"
219230
id="menu"
220231
xmlns="http://www.w3.org/2000/svg"
221232
>
222233
<path d="M3 12h18M3 6h18M3 18h18" />
223234
</symbol>
235+
<symbol
236+
fill="none"
237+
stroke="currentColor"
238+
strokeLinecap="round"
239+
strokeLinejoin="round"
240+
strokeWidth="2"
241+
viewBox="0 0 24 24"
242+
id="monitor"
243+
xmlns="http://www.w3.org/2000/svg"
244+
>
245+
<rect width="20" height="14" x="2" y="3" rx="2" />
246+
<path d="M8 21h8m-4-4v4" />
247+
</symbol>
248+
<symbol
249+
fill="none"
250+
stroke="currentColor"
251+
strokeLinecap="round"
252+
strokeLinejoin="round"
253+
strokeWidth="2"
254+
viewBox="0 0 24 24"
255+
id="moon"
256+
xmlns="http://www.w3.org/2000/svg"
257+
>
258+
<path d="M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9" />
259+
</symbol>
224260
<symbol
225261
fill="none"
226262
stroke="currentColor"
@@ -239,6 +275,19 @@ export const SvgIcons = (props) => (
239275
<path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z" />
240276
<path d="M0 0h24v24H0z" fill="none" />
241277
</symbol>
278+
<symbol
279+
fill="none"
280+
stroke="currentColor"
281+
strokeLinecap="round"
282+
strokeLinejoin="round"
283+
strokeWidth="2"
284+
viewBox="0 0 24 24"
285+
id="sun"
286+
xmlns="http://www.w3.org/2000/svg"
287+
>
288+
<circle cx="12" cy="12" r="4" />
289+
<path d="M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32 1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" />
290+
</symbol>
242291
<symbol
243292
fill="none"
244293
stroke="currentColor"
@@ -270,6 +319,7 @@ export const SvgIcons = (props) => (
270319
strokeWidth="2"
271320
strokeLinecap="round"
272321
strokeLinejoin="round"
322+
className="feather feather-alert-triangle"
273323
id="warning"
274324
xmlns="http://www.w3.org/2000/svg"
275325
>
Lines changed: 5 additions & 0 deletions
Loading

packages/ui/src/assets/icons/moon.svg

Lines changed: 4 additions & 0 deletions
Loading

packages/ui/src/assets/icons/sun.svg

Lines changed: 5 additions & 0 deletions
Loading

packages/ui/src/ui/icon/icon.tsx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,29 @@ const ICONS = {
77
ARROW: 'arrow',
88
ARROW_RIGHT_CIRCLE: 'arrow-right-circle',
99
CANCEL: 'close',
10+
CHECK: 'check',
1011
CHEVRON_DOWN: 'chevron-down',
1112
CHEVRON_UP: 'chevron-up',
12-
CHECK: 'check',
13-
CLOSE: 'close',
14-
CLOCK: 'clock',
15-
COMMIT: 'commit',
1613
CLIPBOARD: 'clipboard',
1714
CLIPBOARD_CHECK: 'clipboard-check',
15+
CLOCK: 'clock',
16+
CLOSE: 'close',
17+
COMMIT: 'commit',
1818
DOWNLOAD: 'download',
1919
ERROR: 'error',
2020
EXTERNAL_LINK: 'external-link',
2121
FILTER: 'filter',
2222
GITHUB: 'github',
23-
INFO: 'info',
2423
HELP: 'help',
25-
TABLE: 'table',
26-
TREEMAP: 'treemap',
24+
INFO: 'info',
2725
MENU: 'menu',
26+
MONITOR: 'monitor',
27+
MOON: 'moon',
2828
MORE_VERTICAL: 'more-vertical',
2929
SORT: 'sort',
30+
SUN: 'sun',
31+
TABLE: 'table',
32+
TREEMAP: 'treemap',
3033
WARNING: 'warning',
3134
} as const;
3235

0 commit comments

Comments
 (0)