Skip to content

Commit

Permalink
feat: change keywords to aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Dec 28, 2022
1 parent 2f45c67 commit 494af47
Show file tree
Hide file tree
Showing 18 changed files with 152 additions and 279 deletions.
4 changes: 2 additions & 2 deletions .storybook/src/Showcase.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface IconMeta {
style: 'regular' | 'fill';
svgName: string;
componentName: string;
keywords: string[];
aliases: string[];
}

const libContext = require.context('../../lib', false, /\.tsx$/);
Expand Down Expand Up @@ -47,7 +47,7 @@ export const Showcase: Story = () => {

return (
meta.name.includes(search) ||
meta.keywords.some((keyword: string) => keyword.includes(search))
meta.aliases.some((alias: string) => alias.includes(search))
);
});
}
Expand Down
2 changes: 1 addition & 1 deletion lib/FaceFun.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FaceFun = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM4.75 9.25a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 .75.75c0 .686-.43 1.319-.974 1.746-.57.447-1.358.754-2.276.754-.918 0-1.706-.307-2.276-.754-.543-.427-.974-1.06-.974-1.746ZM10 7.5a.75.75 0 0 1-.75-.75v-1a.75.75 0 1 1 1.5 0v1a.75.75 0 0 1-.75.75Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1Z"
d="M8 13.5a5.5 5.5 0 1 0 0-11 5.5 5.5 0 0 0 0 11ZM8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM4.75 9.25a.75.75 0 0 1 .75-.75h5a.75.75 0 0 1 .75.75c0 .686-.43 1.319-.974 1.746-.57.447-1.358.754-2.276.754-.918 0-1.706-.307-2.276-.754-.543-.427-.974-1.06-.974-1.746ZM10 7.5a.75.75 0 0 1-.75-.75v-1a.75.75 0 0 1 1.5 0v1a.75.75 0 0 1-.75.75Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1Z"
clipRule="evenodd"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion lib/FaceNeutral.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FaceNeutral = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5 3a.75.75 0 0 0 0-1.5H6A.75.75 0 1 0 6 11h4Zm0-3a.75.75 0 0 1-.75-.75v-1a.75.75 0 1 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 1 0-1.5 0v1Z"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5 3a.75.75 0 0 0 0-1.5H6A.75.75 0 0 0 6 11h4Zm0-3a.75.75 0 0 1-.75-.75v-1a.75.75 0 0 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1Z"
clipRule="evenodd"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion lib/FaceSad.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FaceSad = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5.67 2.835a.75.75 0 1 0 1.34-.67C10.268 9.356 9.219 8.75 8 8.75s-2.267.606-2.67 1.415a.75.75 0 1 0 1.34.67c.097-.191.548-.585 1.33-.585s1.233.394 1.33.585ZM10 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 1 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 1 0-1.5 0v1Z"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5.67 2.835a.75.75 0 1 0 1.34-.67C10.268 9.356 9.219 8.75 8 8.75s-2.267.606-2.67 1.415a.75.75 0 1 0 1.34.67c.097-.191.548-.585 1.33-.585s1.233.394 1.33.585ZM10 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 0 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1Z"
clipRule="evenodd"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion lib/FaceSmile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FaceSmile = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6.67 9.665a.75.75 0 0 0-1.34.67c.403.809 1.452 1.415 2.67 1.415s2.267-.606 2.67-1.415a.75.75 0 1 0-1.34-.67c-.097.191-.548.585-1.33.585s-1.233-.394-1.33-.585ZM10 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 1 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 1 0-1.5 0v1Z"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM6.67 9.665a.75.75 0 0 0-1.34.67c.403.809 1.452 1.415 2.67 1.415s2.267-.606 2.67-1.415a.75.75 0 1 0-1.34-.67c-.097.191-.548.585-1.33.585s-1.233-.394-1.33-.585ZM10 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 0 1 1.5 0v1A.75.75 0 0 1 10 8Zm-4.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1Z"
clipRule="evenodd"
/>
</svg>
Expand Down
2 changes: 1 addition & 1 deletion lib/FaceSurprise.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const FaceSurprise = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5.75-.75a.75.75 0 1 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1ZM6 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 1 1 1.5 0v1A.75.75 0 0 1 6 8Zm2 4c1.37 0 2.5-.5 2.5-1.5S9.5 9 8 9s-2.5.5-2.5 1.5S6.5 12 8 12Z"
d="M13.5 8a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0ZM15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0Zm-5.75-.75a.75.75 0 0 0 1.5 0v-1a.75.75 0 0 0-1.5 0v1ZM6 8a.75.75 0 0 1-.75-.75v-1a.75.75 0 0 1 1.5 0v1A.75.75 0 0 1 6 8Zm2 4c1.37 0 2.5-.5 2.5-1.5S9.5 9 8 9s-2.5.5-2.5 1.5S6.5 12 8 12Z"
clipRule="evenodd"
/>
</svg>
Expand Down
20 changes: 0 additions & 20 deletions lib/Fingerprint.tsx

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Strikethrough.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const Strikethrough = (props: SVGProps<SVGSVGElement>) => (
<path
fill="currentColor"
fillRule="evenodd"
d="M5.502 3.007c.712-.521 1.62-.757 2.482-.757 1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67c-.328-.656-.998-1.085-2.345-1.085-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.242 0 .403.165.758.463 1.04H4.447a2.89 2.89 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453ZM11.549 9h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 1 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.377 1.48-2.623 0-.822-.276-1.481-.7-2Z"
d="M5.502 3.007c.712-.521 1.62-.757 2.482-.757 1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67c-.328-.656-.998-1.085-2.345-1.085-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.241 0 .404.165.76.463 1.041H4.447a2.89 2.89 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453ZM11.549 9h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 0 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.377 1.48-2.623 0-.822-.276-1.481-.7-2Z"
clipRule="evenodd"
/>
</svg>
Expand Down
1 change: 0 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export {default as FaceSad} from './FaceSad';
export {default as FaceSmile} from './FaceSmile';
export {default as FaceSurprise} from './FaceSurprise';
export {default as File} from './File';
export {default as Fingerprint} from './Fingerprint';
export {default as Folder} from './Folder';
export {default as FolderFill} from './FolderFill';
export {default as Gear} from './Gear';
Expand Down
Loading

0 comments on commit 494af47

Please sign in to comment.