Skip to content

Commit dfc01a3

Browse files
authored
[icons] add text-slash icon and address hyphenated props for recent icons (#620)
* add text-slash icon * all recent hyphenated to camelCase
1 parent 106e004 commit dfc01a3

File tree

8 files changed

+119
-48
lines changed

8 files changed

+119
-48
lines changed

src/components/Icon/IconCommon.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ import Stop from "@/components/icons/Stop";
143143
import Support from "@/components/icons/Support";
144144
import Table from "@/components/icons/Table";
145145
import Taxi from "@/components/icons/Taxi";
146+
import TextSlash from "@/components/icons/TextSlash";
146147
import Trash from "@/components/icons/Trash";
147148
import TreeStructure from "@/components/icons/TreeStructure";
148149
import Underline from "@/components/icons/Underline";
@@ -300,6 +301,7 @@ export const ICONS_MAP = {
300301
support: Support,
301302
table: Table,
302303
taxi: Taxi,
304+
"text-slash": TextSlash,
303305
trash: Trash,
304306
"tree-structure": TreeStructure,
305307
underline: Underline,

src/components/Icon/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ export const ICON_NAMES = [
153153
"support",
154154
"table",
155155
"taxi",
156+
"text-slash",
156157
"trash",
157158
"tree-structure",
158159
"upgrade",

src/components/icons/Bold.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const Bold = (props: SVGAttributes<SVGElement>) => (
1212
<path
1313
d="M6.75 12H13.75C15.683 12 17.25 13.567 17.25 15.5V15.5C17.25 17.433 15.683 19 13.75 19H6.75V5H12.583C14.516 5 16.083 6.567 16.083 8.5V8.5C16.083 10.433 14.516 12 12.583 12"
1414
stroke="#161517"
15-
stroke-width="2"
16-
stroke-linecap="round"
17-
stroke-linejoin="round"
15+
strokeWidth="2"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
1818
/>
1919
</svg>
2020
);

src/components/icons/Italic.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const Italic = (props: SVGAttributes<SVGElement>) => (
1212
<path
1313
d="M14.1821 18H5.45508H9.43508L14.5651 6H18.5451H9.81808"
1414
stroke="#161517"
15-
stroke-width="1.5"
16-
stroke-linecap="round"
17-
stroke-linejoin="round"
15+
strokeWidth="1.5"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
1818
/>
1919
</svg>
2020
);

src/components/icons/ListBulleted.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,44 @@ const ListBulleted = (props: SVGAttributes<SVGElement>) => (
1212
<path
1313
d="M8.99902 6.43673H20.0036"
1414
stroke="#161517"
15-
stroke-width="1.5"
16-
stroke-linecap="round"
17-
stroke-linejoin="round"
15+
strokeWidth="1.5"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
1818
/>
1919
<path
2020
d="M20.0036 12.0002H8.99902"
2121
stroke="#161517"
22-
stroke-width="1.5"
23-
stroke-linecap="round"
24-
stroke-linejoin="round"
22+
strokeWidth="1.5"
23+
strokeLinecap="round"
24+
strokeLinejoin="round"
2525
/>
2626
<path
2727
d="M8.99902 17.5632H20.0036"
2828
stroke="#161517"
29-
stroke-width="1.5"
30-
stroke-linecap="round"
31-
stroke-linejoin="round"
29+
strokeWidth="1.5"
30+
strokeLinecap="round"
31+
strokeLinejoin="round"
3232
/>
3333
<path
3434
d="M4.49728 5.93652C4.22102 5.93652 3.99707 6.16047 3.99707 6.43673C3.99707 6.71299 4.22102 6.93694 4.49728 6.93694C4.77354 6.93694 4.99749 6.71299 4.99749 6.43673C4.99749 6.16047 4.77354 5.93652 4.49728 5.93652"
3535
stroke="#161517"
36-
stroke-width="1.5"
37-
stroke-linecap="round"
38-
stroke-linejoin="round"
36+
strokeWidth="1.5"
37+
strokeLinecap="round"
38+
strokeLinejoin="round"
3939
/>
4040
<path
4141
d="M4.49728 11.5C4.22102 11.5 3.99707 11.724 3.99707 12.0002C3.99707 12.2765 4.22102 12.5004 4.49728 12.5004C4.77354 12.5004 4.99749 12.2765 4.99749 12.0002C4.99749 11.724 4.77354 11.5 4.49728 11.5"
4242
stroke="#161517"
43-
stroke-width="1.5"
44-
stroke-linecap="round"
45-
stroke-linejoin="round"
43+
strokeWidth="1.5"
44+
strokeLinecap="round"
45+
strokeLinejoin="round"
4646
/>
4747
<path
4848
d="M4.49728 17.063C4.22102 17.063 3.99707 17.2869 3.99707 17.5632C3.99707 17.8395 4.22102 18.0634 4.49728 18.0634C4.77354 18.0634 4.99749 17.8395 4.99749 17.5632C4.99749 17.2869 4.77354 17.063 4.49728 17.063"
4949
stroke="#161517"
50-
stroke-width="1.5"
51-
stroke-linecap="round"
52-
stroke-linejoin="round"
50+
strokeWidth="1.5"
51+
strokeLinecap="round"
52+
strokeLinejoin="round"
5353
/>
5454
</svg>
5555
);

src/components/icons/ListNumbered.tsx

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,44 +12,44 @@ const ListNumbered = (props: SVGAttributes<SVGElement>) => (
1212
<path
1313
d="M11 4H20"
1414
stroke="#161517"
15-
stroke-width="1.5"
16-
stroke-linecap="round"
17-
stroke-linejoin="round"
15+
strokeWidth="1.5"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
1818
/>
1919
<path
2020
d="M11.1504 9H20.0004"
2121
stroke="#161517"
22-
stroke-width="1.5"
23-
stroke-linecap="round"
24-
stroke-linejoin="round"
22+
strokeWidth="1.5"
23+
strokeLinecap="round"
24+
strokeLinejoin="round"
2525
/>
2626
<path
2727
d="M6.5 9H4H5.25V4L4 5.25"
2828
stroke="#161517"
29-
stroke-width="1.5"
30-
stroke-linecap="round"
31-
stroke-linejoin="round"
29+
strokeWidth="1.5"
30+
strokeLinecap="round"
31+
strokeLinejoin="round"
3232
/>
3333
<path
3434
d="M11 15H20"
3535
stroke="#161517"
36-
stroke-width="1.5"
37-
stroke-linecap="round"
38-
stroke-linejoin="round"
36+
strokeWidth="1.5"
37+
strokeLinecap="round"
38+
strokeLinejoin="round"
3939
/>
4040
<path
4141
d="M11.1504 20H20.0004"
4242
stroke="#161517"
43-
stroke-width="1.5"
44-
stroke-linecap="round"
45-
stroke-linejoin="round"
43+
strokeWidth="1.5"
44+
strokeLinecap="round"
45+
strokeLinejoin="round"
4646
/>
4747
<path
4848
d="M4 15H6.5V17L4 18.5V20H6.75"
4949
stroke="#161517"
50-
stroke-width="1.5"
51-
stroke-linecap="round"
52-
stroke-linejoin="round"
50+
strokeWidth="1.5"
51+
strokeLinecap="round"
52+
strokeLinejoin="round"
5353
/>
5454
</svg>
5555
);

src/components/icons/TextSlash.tsx

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
import { SVGAttributes } from "react";
2+
3+
const TextSlash = (props: SVGAttributes<SVGElement>) => (
4+
<svg
5+
width="24"
6+
height="24"
7+
viewBox="0 0 24 24"
8+
fill="none"
9+
xmlns="http://www.w3.org/2000/svg"
10+
{...props}
11+
>
12+
<g clip-path="url(#clip0_12066_12491)">
13+
<path
14+
d="M4.5 3.75L19.5 20.25"
15+
stroke="#161517"
16+
strokeWidth="1.5"
17+
strokeLinecap="round"
18+
strokeLinejoin="round"
19+
/>
20+
<path
21+
d="M9 18.75H15"
22+
stroke="#161517"
23+
strokeWidth="1.5"
24+
strokeLinecap="round"
25+
strokeLinejoin="round"
26+
/>
27+
<path
28+
d="M12 12V18.75"
29+
stroke="#161517"
30+
strokeWidth="1.5"
31+
strokeLinecap="round"
32+
strokeLinejoin="round"
33+
/>
34+
<path
35+
d="M12 5.25V7.54031"
36+
stroke="#161517"
37+
strokeWidth="1.5"
38+
strokeLinecap="round"
39+
strokeLinejoin="round"
40+
/>
41+
<path
42+
d="M9.91797 5.25H18.7502V8.25"
43+
stroke="#161517"
44+
strokeWidth="1.5"
45+
strokeLinecap="round"
46+
strokeLinejoin="round"
47+
/>
48+
<path
49+
d="M5.25 8.25V5.25H5.86406"
50+
stroke="#161517"
51+
strokeWidth="1.5"
52+
strokeLinecap="round"
53+
strokeLinejoin="round"
54+
/>
55+
</g>
56+
<defs>
57+
<clipPath id="clip0_12066_12491">
58+
<rect
59+
width="24"
60+
height="24"
61+
fill="white"
62+
/>
63+
</clipPath>
64+
</defs>
65+
</svg>
66+
);
67+
68+
export default TextSlash;

src/components/icons/Underline.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ const Underline = (props: SVGAttributes<SVGElement>) => (
1212
<path
1313
d="M6 20H18"
1414
stroke="#161517"
15-
stroke-width="1.5"
16-
stroke-linecap="round"
17-
stroke-linejoin="round"
15+
strokeWidth="1.5"
16+
strokeLinecap="round"
17+
strokeLinejoin="round"
1818
/>
1919
<path
2020
d="M17 4V11C17 13.761 14.761 16 12 16C9.239 16 7 13.761 7 11V4"
2121
stroke="#161517"
22-
stroke-width="1.5"
23-
stroke-linecap="round"
24-
stroke-linejoin="round"
22+
strokeWidth="1.5"
23+
strokeLinecap="round"
24+
strokeLinejoin="round"
2525
/>
2626
</svg>
2727
);

0 commit comments

Comments
 (0)