Skip to content

Commit

Permalink
add icons types
Browse files Browse the repository at this point in the history
  • Loading branch information
dependentmadani committed Jun 30, 2024
1 parent ffe5be5 commit af65e26
Show file tree
Hide file tree
Showing 9 changed files with 304 additions and 130 deletions.
154 changes: 77 additions & 77 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,83 +33,83 @@ You will get the line: `<svg xmlns="http://www.w3.org/2000/svg" ...`
<!-- BEGIN TABLE_OF_ICONS -->
| Icon | Name |
| --- | --- |
| ![IconH1](dist/icons/IconH1.svg) | `IconH1` |
| ![IconH2](dist/icons/IconH2.svg) | `IconH2` |
| ![IconH3](dist/icons/IconH3.svg) | `IconH3` |
| ![IconH4](dist/icons/IconH4.svg) | `IconH4` |
| ![IconH5](dist/icons/IconH5.svg) | `IconH5` |
| ![IconH6](dist/icons/IconH6.svg) | `IconH6` |
| ![IconAddBackground](dist/icons/IconAddBackground.svg) | `IconAddBackground` |
| ![IconAddBorder](dist/icons/IconAddBorder.svg) | `IconAddBorder` |
| ![IconAlignCenter](dist/icons/IconAlignCenter.svg) | `IconAlignCenter` |
| ![IconAlignJustify](dist/icons/IconAlignJustify.svg) | `IconAlignJustify` |
| ![IconAlignLeft](dist/icons/IconAlignLeft.svg) | `IconAlignLeft` |
| ![IconAlignRight](dist/icons/IconAlignRight.svg) | `IconAlignRight` |
| ![IconBold](dist/icons/IconBold.svg) | `IconBold` |
| ![IconBrackets](dist/icons/IconBrackets.svg) | `IconBrackets` |
| ![IconCheck](dist/icons/IconCheck.svg) | `IconCheck` |
| ![IconChecklist](dist/icons/IconChecklist.svg) | `IconChecklist` |
| ![IconChevronDown](dist/icons/IconChevronDown.svg) | `IconChevronDown` |
| ![IconChevronLeft](dist/icons/IconChevronLeft.svg) | `IconChevronLeft` |
| ![IconChevronRight](dist/icons/IconChevronRight.svg) | `IconChevronRight` |
| ![IconChevronUp](dist/icons/IconChevronUp.svg) | `IconChevronUp` |
| ![IconClipboard](dist/icons/IconClipboard.svg) | `IconClipboard` |
| ![IconCollapse](dist/icons/IconCollapse.svg) | `IconCollapse` |
| ![IconColor](dist/icons/IconColor.svg) | `IconColor` |
| ![IconCopy](dist/icons/IconCopy.svg) | `IconCopy` |
| ![IconCross](dist/icons/IconCross.svg) | `IconCross` |
| ![IconCurlyBrackets](dist/icons/IconCurlyBrackets.svg) | `IconCurlyBrackets` |
| ![IconDelimiter](dist/icons/IconDelimiter.svg) | `IconDelimiter` |
| ![IconDirectionDownRight](dist/icons/IconDirectionDownRight.svg) | `IconDirectionDownRight` |
| ![IconDirectionLeftDown](dist/icons/IconDirectionLeftDown.svg) | `IconDirectionLeftDown` |
| ![IconDirectionRightDown](dist/icons/IconDirectionRightDown.svg) | `IconDirectionRightDown` |
| ![IconDirectionUpRight](dist/icons/IconDirectionUpRight.svg) | `IconDirectionUpRight` |
| ![IconDotCircle](dist/icons/IconDotCircle.svg) | `IconDotCircle` |
| ![IconEtcHorisontal](dist/icons/IconEtcHorisontal.svg) | `IconEtcHorisontal` |
| ![IconEtcVertical](dist/icons/IconEtcVertical.svg) | `IconEtcVertical` |
| ![IconFile](dist/icons/IconFile.svg) | `IconFile` |
| ![IconGift](dist/icons/IconGift.svg) | `IconGift` |
| ![IconGlobe](dist/icons/IconGlobe.svg) | `IconGlobe` |
| ![IconHeading](dist/icons/IconHeading.svg) | `IconHeading` |
| ![IconHeart](dist/icons/IconHeart.svg) | `IconHeart` |
| ![IconHidden](dist/icons/IconHidden.svg) | `IconHidden` |
| ![IconHtml](dist/icons/IconHtml.svg) | `IconHtml` |
| ![IconInstagram](dist/icons/IconInstagram.svg) | `IconInstagram` |
| ![IconItalic](dist/icons/IconItalic.svg) | `IconItalic` |
| ![IconLink](dist/icons/IconLink.svg) | `IconLink` |
| ![IconLinkedin](dist/icons/IconLinkedin.svg) | `IconLinkedin` |
| ![IconListBulleted](dist/icons/IconListBulleted.svg) | `IconListBulleted` |
| ![IconListNumbered](dist/icons/IconListNumbered.svg) | `IconListNumbered` |
| ![IconLoader](dist/icons/IconLoader.svg) | `IconLoader` |
| ![IconMarker](dist/icons/IconMarker.svg) | `IconMarker` |
| ![IconMenuSmall](dist/icons/IconMenuSmall.svg) | `IconMenuSmall` |
| ![IconMenu](dist/icons/IconMenu.svg) | `IconMenu` |
| ![IconPicture](dist/icons/IconPicture.svg) | `IconPicture` |
| ![IconPlay](dist/icons/IconPlay.svg) | `IconPlay` |
| ![IconPlus](dist/icons/IconPlus.svg) | `IconPlus` |
| ![IconQuestion](dist/icons/IconQuestion.svg) | `IconQuestion` |
| ![IconQuote](dist/icons/IconQuote.svg) | `IconQuote` |
| ![IconRedo](dist/icons/IconRedo.svg) | `IconRedo` |
| ![IconRemoveBackground](dist/icons/IconRemoveBackground.svg) | `IconRemoveBackground` |
| ![IconReplace](dist/icons/IconReplace.svg) | `IconReplace` |
| ![IconSave](dist/icons/IconSave.svg) | `IconSave` |
| ![IconSearch](dist/icons/IconSearch.svg) | `IconSearch` |
| ![IconStar](dist/icons/IconStar.svg) | `IconStar` |
| ![IconStretch](dist/icons/IconStretch.svg) | `IconStretch` |
| ![IconStrikethrough](dist/icons/IconStrikethrough.svg) | `IconStrikethrough` |
| ![IconTableWithHeadings](dist/icons/IconTableWithHeadings.svg) | `IconTableWithHeadings` |
| ![IconTableWithoutHeadings](dist/icons/IconTableWithoutHeadings.svg) | `IconTableWithoutHeadings` |
| ![IconTable](dist/icons/IconTable.svg) | `IconTable` |
| ![IconText](dist/icons/IconText.svg) | `IconText` |
| ![IconTranslate](dist/icons/IconTranslate.svg) | `IconTranslate` |
| ![IconTrash](dist/icons/IconTrash.svg) | `IconTrash` |
| ![IconTwitter](dist/icons/IconTwitter.svg) | `IconTwitter` |
| ![IconUnderline](dist/icons/IconUnderline.svg) | `IconUnderline` |
| ![IconUndo](dist/icons/IconUndo.svg) | `IconUndo` |
| ![IconUnlink](dist/icons/IconUnlink.svg) | `IconUnlink` |
| ![IconUser](dist/icons/IconUser.svg) | `IconUser` |
| ![IconUsersGroup](dist/icons/IconUsersGroup.svg) | `IconUsersGroup` |
| ![IconWarning](dist/icons/IconWarning.svg) | `IconWarning` |
| ![IconAddBackground](dist\icons\IconAddBackground.svg) | `IconAddBackground` |
| ![IconAddBorder](dist\icons\IconAddBorder.svg) | `IconAddBorder` |
| ![IconAlignCenter](dist\icons\IconAlignCenter.svg) | `IconAlignCenter` |
| ![IconAlignJustify](dist\icons\IconAlignJustify.svg) | `IconAlignJustify` |
| ![IconAlignLeft](dist\icons\IconAlignLeft.svg) | `IconAlignLeft` |
| ![IconAlignRight](dist\icons\IconAlignRight.svg) | `IconAlignRight` |
| ![IconBold](dist\icons\IconBold.svg) | `IconBold` |
| ![IconBrackets](dist\icons\IconBrackets.svg) | `IconBrackets` |
| ![IconCheck](dist\icons\IconCheck.svg) | `IconCheck` |
| ![IconChecklist](dist\icons\IconChecklist.svg) | `IconChecklist` |
| ![IconChevronDown](dist\icons\IconChevronDown.svg) | `IconChevronDown` |
| ![IconChevronLeft](dist\icons\IconChevronLeft.svg) | `IconChevronLeft` |
| ![IconChevronRight](dist\icons\IconChevronRight.svg) | `IconChevronRight` |
| ![IconChevronUp](dist\icons\IconChevronUp.svg) | `IconChevronUp` |
| ![IconClipboard](dist\icons\IconClipboard.svg) | `IconClipboard` |
| ![IconCollapse](dist\icons\IconCollapse.svg) | `IconCollapse` |
| ![IconColor](dist\icons\IconColor.svg) | `IconColor` |
| ![IconCopy](dist\icons\IconCopy.svg) | `IconCopy` |
| ![IconCross](dist\icons\IconCross.svg) | `IconCross` |
| ![IconCurlyBrackets](dist\icons\IconCurlyBrackets.svg) | `IconCurlyBrackets` |
| ![IconDelimiter](dist\icons\IconDelimiter.svg) | `IconDelimiter` |
| ![IconDirectionDownRight](dist\icons\IconDirectionDownRight.svg) | `IconDirectionDownRight` |
| ![IconDirectionLeftDown](dist\icons\IconDirectionLeftDown.svg) | `IconDirectionLeftDown` |
| ![IconDirectionRightDown](dist\icons\IconDirectionRightDown.svg) | `IconDirectionRightDown` |
| ![IconDirectionUpRight](dist\icons\IconDirectionUpRight.svg) | `IconDirectionUpRight` |
| ![IconDotCircle](dist\icons\IconDotCircle.svg) | `IconDotCircle` |
| ![IconEtcHorisontal](dist\icons\IconEtcHorisontal.svg) | `IconEtcHorisontal` |
| ![IconEtcVertical](dist\icons\IconEtcVertical.svg) | `IconEtcVertical` |
| ![IconFile](dist\icons\IconFile.svg) | `IconFile` |
| ![IconGift](dist\icons\IconGift.svg) | `IconGift` |
| ![IconGlobe](dist\icons\IconGlobe.svg) | `IconGlobe` |
| ![IconH1](dist\icons\IconH1.svg) | `IconH1` |
| ![IconH2](dist\icons\IconH2.svg) | `IconH2` |
| ![IconH3](dist\icons\IconH3.svg) | `IconH3` |
| ![IconH4](dist\icons\IconH4.svg) | `IconH4` |
| ![IconH5](dist\icons\IconH5.svg) | `IconH5` |
| ![IconH6](dist\icons\IconH6.svg) | `IconH6` |
| ![IconHeading](dist\icons\IconHeading.svg) | `IconHeading` |
| ![IconHeart](dist\icons\IconHeart.svg) | `IconHeart` |
| ![IconHidden](dist\icons\IconHidden.svg) | `IconHidden` |
| ![IconHtml](dist\icons\IconHtml.svg) | `IconHtml` |
| ![IconInstagram](dist\icons\IconInstagram.svg) | `IconInstagram` |
| ![IconItalic](dist\icons\IconItalic.svg) | `IconItalic` |
| ![IconLink](dist\icons\IconLink.svg) | `IconLink` |
| ![IconLinkedin](dist\icons\IconLinkedin.svg) | `IconLinkedin` |
| ![IconListBulleted](dist\icons\IconListBulleted.svg) | `IconListBulleted` |
| ![IconListNumbered](dist\icons\IconListNumbered.svg) | `IconListNumbered` |
| ![IconLoader](dist\icons\IconLoader.svg) | `IconLoader` |
| ![IconMarker](dist\icons\IconMarker.svg) | `IconMarker` |
| ![IconMenuSmall](dist\icons\IconMenuSmall.svg) | `IconMenuSmall` |
| ![IconMenu](dist\icons\IconMenu.svg) | `IconMenu` |
| ![IconPicture](dist\icons\IconPicture.svg) | `IconPicture` |
| ![IconPlay](dist\icons\IconPlay.svg) | `IconPlay` |
| ![IconPlus](dist\icons\IconPlus.svg) | `IconPlus` |
| ![IconQuestion](dist\icons\IconQuestion.svg) | `IconQuestion` |
| ![IconQuote](dist\icons\IconQuote.svg) | `IconQuote` |
| ![IconRedo](dist\icons\IconRedo.svg) | `IconRedo` |
| ![IconRemoveBackground](dist\icons\IconRemoveBackground.svg) | `IconRemoveBackground` |
| ![IconReplace](dist\icons\IconReplace.svg) | `IconReplace` |
| ![IconSave](dist\icons\IconSave.svg) | `IconSave` |
| ![IconSearch](dist\icons\IconSearch.svg) | `IconSearch` |
| ![IconStar](dist\icons\IconStar.svg) | `IconStar` |
| ![IconStretch](dist\icons\IconStretch.svg) | `IconStretch` |
| ![IconStrikethrough](dist\icons\IconStrikethrough.svg) | `IconStrikethrough` |
| ![IconTableWithHeadings](dist\icons\IconTableWithHeadings.svg) | `IconTableWithHeadings` |
| ![IconTableWithoutHeadings](dist\icons\IconTableWithoutHeadings.svg) | `IconTableWithoutHeadings` |
| ![IconTable](dist\icons\IconTable.svg) | `IconTable` |
| ![IconText](dist\icons\IconText.svg) | `IconText` |
| ![IconTranslate](dist\icons\IconTranslate.svg) | `IconTranslate` |
| ![IconTrash](dist\icons\IconTrash.svg) | `IconTrash` |
| ![IconTwitter](dist\icons\IconTwitter.svg) | `IconTwitter` |
| ![IconUnderline](dist\icons\IconUnderline.svg) | `IconUnderline` |
| ![IconUndo](dist\icons\IconUndo.svg) | `IconUndo` |
| ![IconUnlink](dist\icons\IconUnlink.svg) | `IconUnlink` |
| ![IconUser](dist\icons\IconUser.svg) | `IconUser` |
| ![IconUsersGroup](dist\icons\IconUsersGroup.svg) | `IconUsersGroup` |
| ![IconWarning](dist\icons\IconWarning.svg) | `IconWarning` |
<!-- END TABLE_OF_ICONS -->

## How to add an icon
Expand Down
12 changes: 6 additions & 6 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
export declare const IconH1: string;
export declare const IconH2: string;
export declare const IconH3: string;
export declare const IconH4: string;
export declare const IconH5: string;
export declare const IconH6: string;
export declare const IconAddBackground: string;
export declare const IconAddBorder: string;
export declare const IconAlignCenter: string;
Expand Down Expand Up @@ -35,6 +29,12 @@ export declare const IconEtcVertical: string;
export declare const IconFile: string;
export declare const IconGift: string;
export declare const IconGlobe: string;
export declare const IconH1: string;
export declare const IconH2: string;
export declare const IconH3: string;
export declare const IconH4: string;
export declare const IconH5: string;
export declare const IconH6: string;
export declare const IconHeading: string;
export declare const IconHeart: string;
export declare const IconHidden: string;
Expand Down
76 changes: 38 additions & 38 deletions dist/index.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.js

Large diffs are not rendered by default.

79 changes: 79 additions & 0 deletions dist/types/types.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
declare module '@codexteam/icons' {
export type IconAddBackground = string;
export type IconAddBorder = string;
export type IconAlignCenter = string;
export type IconAlignJustify = string;
export type IconAlignLeft = string;
export type IconAlignRight = string;
export type IconBold = string;
export type IconBrackets = string;
export type IconCheck = string;
export type IconChecklist = string;
export type IconChevronDown = string;
export type IconChevronLeft = string;
export type IconChevronRight = string;
export type IconChevronUp = string;
export type IconClipboard = string;
export type IconCollapse = string;
export type IconColor = string;
export type IconCopy = string;
export type IconCross = string;
export type IconCurlyBrackets = string;
export type IconDelimiter = string;
export type IconDirectionDownRight = string;
export type IconDirectionLeftDown = string;
export type IconDirectionRightDown = string;
export type IconDirectionUpRight = string;
export type IconDotCircle = string;
export type IconEtcHorisontal = string;
export type IconEtcVertical = string;
export type IconFile = string;
export type IconGift = string;
export type IconGlobe = string;
export type IconH1 = string;
export type IconH2 = string;
export type IconH3 = string;
export type IconH4 = string;
export type IconH5 = string;
export type IconH6 = string;
export type IconHeading = string;
export type IconHeart = string;
export type IconHidden = string;
export type IconHtml = string;
export type IconInstagram = string;
export type IconItalic = string;
export type IconLink = string;
export type IconLinkedin = string;
export type IconListBulleted = string;
export type IconListNumbered = string;
export type IconLoader = string;
export type IconMarker = string;
export type IconMenuSmall = string;
export type IconMenu = string;
export type IconPicture = string;
export type IconPlay = string;
export type IconPlus = string;
export type IconQuestion = string;
export type IconQuote = string;
export type IconRedo = string;
export type IconRemoveBackground = string;
export type IconReplace = string;
export type IconSave = string;
export type IconSearch = string;
export type IconStar = string;
export type IconStretch = string;
export type IconStrikethrough = string;
export type IconTableWithHeadings = string;
export type IconTableWithoutHeadings = string;
export type IconTable = string;
export type IconText = string;
export type IconTranslate = string;
export type IconTrash = string;
export type IconTwitter = string;
export type IconUnderline = string;
export type IconUndo = string;
export type IconUnlink = string;
export type IconUser = string;
export type IconUsersGroup = string;
export type IconWarning = string;
}
Loading

0 comments on commit af65e26

Please sign in to comment.