Skip to content

Commit

Permalink
refactor: extend icon catalog
Browse files Browse the repository at this point in the history
  • Loading branch information
serudda committed Nov 26, 2023
1 parent a2ec228 commit 2c76b77
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export enum IconCatalog {
squareHalf = 'squareHalf',
square2Stack = 'square2Stack',
sun = 'sun',
suitcase = 'suitcase',
star = 'star',
textT = 'textT',
threads = 'threads',
Expand Down Expand Up @@ -409,6 +410,13 @@ const Icons: Record<IconCatalog, IconType> = {
'M12 3a.692.692 0 0 1 .692.692V5.77a.692.692 0 1 1-1.384 0V3.692A.692.692 0 0 1 12 3Zm-4.154 9a4.154 4.154 0 1 1 8.308 0 4.154 4.154 0 0 1-8.308 0Zm10.518-5.385a.692.692 0 0 0-.979-.979l-1.468 1.468a.693.693 0 1 0 .978.98l1.469-1.47ZM21 12a.692.692 0 0 1-.692.692H18.23a.692.692 0 1 1 0-1.384h2.077A.692.692 0 0 1 21 12Zm-3.615 6.364a.692.692 0 0 0 .979-.979l-1.468-1.468a.693.693 0 1 0-.98.978l1.47 1.469ZM12 17.538a.692.692 0 0 1 .692.693v2.077a.692.692 0 1 1-1.384 0V18.23a.692.692 0 0 1 .692-.693Zm-3.916-.643a.693.693 0 0 0-.98-.978l-1.468 1.467a.692.692 0 0 0 .979.98l1.468-1.468h.001ZM6.462 12a.692.692 0 0 1-.693.692H3.692a.692.692 0 1 1 0-1.384H5.77a.692.692 0 0 1 .693.692Zm.643-3.917a.692.692 0 0 0 .978-.978L6.616 5.636a.692.692 0 0 0-.98.979l1.469 1.468Z',
},

[IconCatalog.suitcase]: {
outline:
'M19.92 6.457h-3.96v-1.11c0-.49-.19-.96-.527-1.306A1.777 1.777 0 0 0 14.16 3.5H9.84c-.477 0-.935.195-1.273.541a1.873 1.873 0 0 0-.527 1.307v1.109H4.08c-.286 0-.561.116-.764.324-.202.208-.316.49-.316.784v11.826c0 .294.114.576.316.784.203.208.478.325.764.325h15.84c.286 0 .561-.117.764-.325.202-.208.316-.49.316-.784V7.565c0-.294-.114-.576-.316-.784a1.066 1.066 0 0 0-.764-.324ZM8.04 19.76H4.08a.355.355 0 0 1-.255-.108.375.375 0 0 1-.105-.262V7.565c0-.098.038-.192.105-.261a.355.355 0 0 1 .255-.108h3.96V19.76Zm7.2 0H8.76V7.196h6.48V19.76Zm0-13.304H8.76v-1.11c0-.293.114-.575.316-.783.203-.208.478-.325.764-.325h4.32c.286 0 .561.117.764.325.202.208.316.49.316.784v1.109Zm5.04 12.934a.375.375 0 0 1-.105.262.356.356 0 0 1-.255.108h-3.96V7.196h3.96c.095 0 .187.039.255.108.067.07.105.163.105.261v11.826Z',
solid:
'M19.615 6.333h-3.461v-.708a2.15 2.15 0 0 0-.608-1.503 2.053 2.053 0 0 0-1.47-.622H9.924c-.55 0-1.079.224-1.469.622a2.15 2.15 0 0 0-.608 1.503v.708H4.385c-.368 0-.72.15-.98.415C3.146 7.014 3 7.374 3 7.75v11.333c0 .376.146.736.406 1.002s.611.415.979.415h15.23c.368 0 .72-.15.98-.415.26-.266.405-.626.405-1.002V7.75c0-.376-.146-.736-.405-1.002a1.37 1.37 0 0 0-.98-.415ZM9.231 7.75h5.538v11.333H9.231V7.75Zm0-2.125c0-.188.073-.368.203-.5a.684.684 0 0 1 .49-.208h4.153c.184 0 .36.074.49.207s.202.313.202.501v.708H9.231v-.708Z',
},

[IconCatalog.textT]: {
outline:
'M19 5.368v2.948a.368.368 0 1 1-.737 0v-2.58h-5.895v12.527h2.58a.368.368 0 1 1 0 .737H9.052a.368.368 0 1 1 0-.737h2.579V5.737H5.737v2.579a.368.368 0 1 1-.737 0V5.368A.368.368 0 0 1 5.368 5h13.264a.368.368 0 0 1 .368.368Z',
Expand Down

0 comments on commit 2c76b77

Please sign in to comment.