From 1655f06bf74e0eeb392b7549dae3ce0e2b0353a1 Mon Sep 17 00:00:00 2001 From: Charles de Dreuille Date: Mon, 16 Oct 2023 15:08:26 +0100 Subject: [PATCH] Test with new export --- src/index.ts | 444 +++++++++++++++++++-------------------- src/utils/createIndex.ts | 2 +- 2 files changed, 223 insertions(+), 223 deletions(-) diff --git a/src/index.ts b/src/index.ts index c25cdb9..d3e5979 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,224 +1,224 @@ export { iconList } from './iconList'; -export { Photo } from './icons/Photo'; -export { Component } from './icons/Component'; -export { Grid } from './icons/Grid'; -export { Outline } from './icons/Outline'; -export { PhotoDrag } from './icons/PhotoDrag'; -export { GridAlt } from './icons/GridAlt'; -export { Search } from './icons/Search'; -export { Zoom } from './icons/Zoom'; -export { ZoomOut } from './icons/ZoomOut'; -export { ZoomReset } from './icons/ZoomReset'; -export { Eye } from './icons/Eye'; -export { EyeClose } from './icons/EyeClose'; -export { Lightning } from './icons/Lightning'; -export { LightningOff } from './icons/LightningOff'; -export { Contrast } from './icons/Contrast'; -export { SwitchAlt } from './icons/SwitchAlt'; -export { Mirror } from './icons/Mirror'; -export { Grow } from './icons/Grow'; -export { PaintBrush } from './icons/PaintBrush'; -export { Ruler } from './icons/Ruler'; -export { Stop } from './icons/Stop'; -export { Camera } from './icons/Camera'; -export { Video } from './icons/Video'; -export { Speaker } from './icons/Speaker'; -export { Play } from './icons/Play'; -export { PlayBack } from './icons/PlayBack'; -export { PlayNext } from './icons/PlayNext'; -export { Rewind } from './icons/Rewind'; -export { FastForward } from './icons/FastForward'; -export { StopAlt } from './icons/StopAlt'; -export { SideBySide } from './icons/SideBySide'; -export { Stacked } from './icons/Stacked'; -export { Sun } from './icons/Sun'; -export { Moon } from './icons/Moon'; -export { Book } from './icons/Book'; -export { Document } from './icons/Document'; -export { Copy } from './icons/Copy'; -export { Category } from './icons/Category'; -export { Folder } from './icons/Folder'; -export { Print } from './icons/Print'; -export { GraphLine } from './icons/GraphLine'; -export { Calendar } from './icons/Calendar'; -export { GraphBar } from './icons/GraphBar'; -export { Menu } from './icons/Menu'; -export { MenuReverse } from './icons/MenuReverse'; -export { Filter } from './icons/Filter'; -export { DocChart } from './icons/DocChart'; -export { DocList } from './icons/DocList'; -export { Drag } from './icons/Drag'; -export { Markup } from './icons/Markup'; -export { Bold } from './icons/Bold'; -export { Italic } from './icons/Italic'; -export { PaperClip } from './icons/PaperClip'; -export { ListOrdered } from './icons/ListOrdered'; -export { ListUnordered } from './icons/ListUnordered'; -export { Paragraph } from './icons/Paragraph'; -export { Markdown } from './icons/Markdown'; -export { Repo } from './icons/Repo'; -export { Commit } from './icons/Commit'; -export { Branch } from './icons/Branch'; -export { PullRequest } from './icons/PullRequest'; -export { Merge } from './icons/Merge'; -export { Apple } from './icons/Apple'; -export { Linux } from './icons/Linux'; -export { Ubuntu } from './icons/Ubuntu'; -export { Windows } from './icons/Windows'; -export { Chrome } from './icons/Chrome'; -export { Storybook } from './icons/Storybook'; -export { AzureDevOps } from './icons/AzureDevOps'; -export { Bitbucket } from './icons/Bitbucket'; -export { Chromatic } from './icons/Chromatic'; -export { ComponentDriven } from './icons/ComponentDriven'; -export { Discord } from './icons/Discord'; -export { Facebook } from './icons/Facebook'; -export { Figma } from './icons/Figma'; -export { GDrive } from './icons/GDrive'; -export { Github } from './icons/Github'; -export { Gitlab } from './icons/Gitlab'; -export { Google } from './icons/Google'; -export { Graphql } from './icons/Graphql'; -export { Medium } from './icons/Medium'; -export { Redux } from './icons/Redux'; -export { Twitter } from './icons/Twitter'; -export { Youtube } from './icons/Youtube'; -export { VSCode } from './icons/VSCode'; -export { Linkedin } from './icons/Linkedin'; -export { Browser } from './icons/Browser'; -export { Tablet } from './icons/Tablet'; -export { Mobile } from './icons/Mobile'; -export { Watch } from './icons/Watch'; -export { Sidebar } from './icons/Sidebar'; -export { SidebarAlt } from './icons/SidebarAlt'; -export { SidebarAltToggle } from './icons/SidebarAltToggle'; -export { SidebarToggle } from './icons/SidebarToggle'; -export { BottomBar } from './icons/BottomBar'; -export { BottomBarToggle } from './icons/BottomBarToggle'; -export { CPU } from './icons/CPU'; -export { Database } from './icons/Database'; -export { Memory } from './icons/Memory'; -export { Structure } from './icons/Structure'; -export { Box } from './icons/Box'; -export { Power } from './icons/Power'; -export { Edit } from './icons/Edit'; -export { Cog } from './icons/Cog'; -export { Nut } from './icons/Nut'; -export { Wrench } from './icons/Wrench'; -export { Ellipsis } from './icons/Ellipsis'; -export { Wand } from './icons/Wand'; -export { Check } from './icons/Check'; -export { Form } from './icons/Form'; -export { BatchDeny } from './icons/BatchDeny'; -export { BatchAccept } from './icons/BatchAccept'; -export { Controls } from './icons/Controls'; -export { Plus } from './icons/Plus'; -export { CloseAlt } from './icons/CloseAlt'; -export { Cross } from './icons/Cross'; -export { Trash } from './icons/Trash'; -export { PinAlt } from './icons/PinAlt'; -export { Unpin } from './icons/Unpin'; -export { Add } from './icons/Add'; -export { Subtract } from './icons/Subtract'; -export { Close } from './icons/Close'; -export { Delete } from './icons/Delete'; -export { Passed } from './icons/Passed'; -export { Changed } from './icons/Changed'; -export { Failed } from './icons/Failed'; -export { Clear } from './icons/Clear'; -export { Comment } from './icons/Comment'; -export { CommentAdd } from './icons/CommentAdd'; -export { RequestChange } from './icons/RequestChange'; -export { Comments } from './icons/Comments'; -export { Chat } from './icons/Chat'; -export { Lock } from './icons/Lock'; -export { Unlock } from './icons/Unlock'; -export { Key } from './icons/Key'; -export { Outbox } from './icons/Outbox'; -export { Credit } from './icons/Credit'; -export { Button } from './icons/Button'; -export { Type } from './icons/Type'; -export { PointerDefault } from './icons/PointerDefault'; -export { PointerHand } from './icons/PointerHand'; -export { Command } from './icons/Command'; -export { Info } from './icons/Info'; -export { Question } from './icons/Question'; -export { Support } from './icons/Support'; -export { Alert } from './icons/Alert'; -export { AlertAlt } from './icons/AlertAlt'; -export { Email } from './icons/Email'; -export { Phone } from './icons/Phone'; -export { Link } from './icons/Link'; -export { LinkBroken } from './icons/LinkBroken'; -export { Bell } from './icons/Bell'; -export { RSS } from './icons/RSS'; -export { ShareAlt } from './icons/ShareAlt'; -export { Share } from './icons/Share'; -export { JumpTo } from './icons/JumpTo'; -export { CircleHollow } from './icons/CircleHollow'; -export { Circle } from './icons/Circle'; -export { BookmarkHollow } from './icons/BookmarkHollow'; -export { Bookmark } from './icons/Bookmark'; -export { Diamond } from './icons/Diamond'; -export { HeartHollow } from './icons/HeartHollow'; -export { Heart } from './icons/Heart'; -export { StarHollow } from './icons/StarHollow'; -export { Star } from './icons/Star'; -export { Certificate } from './icons/Certificate'; -export { Verified } from './icons/Verified'; -export { ThumbsUp } from './icons/ThumbsUp'; -export { Shield } from './icons/Shield'; -export { Basket } from './icons/Basket'; -export { Beaker } from './icons/Beaker'; -export { Hourglass } from './icons/Hourglass'; -export { Flag } from './icons/Flag'; -export { CloudHollow } from './icons/CloudHollow'; -export { Cloud } from './icons/Cloud'; -export { Sticker } from './icons/Sticker'; -export { ChevronUp } from './icons/ChevronUp'; -export { ChevronDown } from './icons/ChevronDown'; -export { ChevronLeft } from './icons/ChevronLeft'; -export { ChevronRight } from './icons/ChevronRight'; -export { ArrowUp } from './icons/ArrowUp'; -export { ArrowDown } from './icons/ArrowDown'; -export { ArrowLeft } from './icons/ArrowLeft'; -export { ArrowRight } from './icons/ArrowRight'; -export { ArrowSolidUp } from './icons/ArrowSolidUp'; -export { ArrowSolidDown } from './icons/ArrowSolidDown'; -export { ArrowSolidLeft } from './icons/ArrowSolidLeft'; -export { ArrowSolidRight } from './icons/ArrowSolidRight'; -export { ExpandAlt } from './icons/ExpandAlt'; -export { Collapse } from './icons/Collapse'; -export { Expand } from './icons/Expand'; -export { Unfold } from './icons/Unfold'; -export { Transfer } from './icons/Transfer'; -export { Redirect } from './icons/Redirect'; -export { Undo } from './icons/Undo'; -export { Reply } from './icons/Reply'; -export { Sync } from './icons/Sync'; -export { Upload } from './icons/Upload'; -export { Download } from './icons/Download'; -export { Back } from './icons/Back'; -export { Proceed } from './icons/Proceed'; -export { Refresh } from './icons/Refresh'; -export { Globe } from './icons/Globe'; -export { Compass } from './icons/Compass'; -export { Location } from './icons/Location'; -export { Pin } from './icons/Pin'; -export { Time } from './icons/Time'; -export { Dashboard } from './icons/Dashboard'; -export { Timer } from './icons/Timer'; -export { Home } from './icons/Home'; -export { Admin } from './icons/Admin'; -export { Direction } from './icons/Direction'; -export { User } from './icons/User'; -export { UserAlt } from './icons/UserAlt'; -export { UserAdd } from './icons/UserAdd'; -export { Users } from './icons/Users'; -export { Profile } from './icons/Profile'; -export { FaceHappy } from './icons/FaceHappy'; -export { FaceNeutral } from './icons/FaceNeutral'; -export { FaceSad } from './icons/FaceSad'; -export { Accessibility } from './icons/Accessibility'; -export { AccessibilityAlt } from './icons/AccessibilityAlt'; +export { default as Photo } from './icons/Photo'; +export { default as Component } from './icons/Component'; +export { default as Grid } from './icons/Grid'; +export { default as Outline } from './icons/Outline'; +export { default as PhotoDrag } from './icons/PhotoDrag'; +export { default as GridAlt } from './icons/GridAlt'; +export { default as Search } from './icons/Search'; +export { default as Zoom } from './icons/Zoom'; +export { default as ZoomOut } from './icons/ZoomOut'; +export { default as ZoomReset } from './icons/ZoomReset'; +export { default as Eye } from './icons/Eye'; +export { default as EyeClose } from './icons/EyeClose'; +export { default as Lightning } from './icons/Lightning'; +export { default as LightningOff } from './icons/LightningOff'; +export { default as Contrast } from './icons/Contrast'; +export { default as SwitchAlt } from './icons/SwitchAlt'; +export { default as Mirror } from './icons/Mirror'; +export { default as Grow } from './icons/Grow'; +export { default as PaintBrush } from './icons/PaintBrush'; +export { default as Ruler } from './icons/Ruler'; +export { default as Stop } from './icons/Stop'; +export { default as Camera } from './icons/Camera'; +export { default as Video } from './icons/Video'; +export { default as Speaker } from './icons/Speaker'; +export { default as Play } from './icons/Play'; +export { default as PlayBack } from './icons/PlayBack'; +export { default as PlayNext } from './icons/PlayNext'; +export { default as Rewind } from './icons/Rewind'; +export { default as FastForward } from './icons/FastForward'; +export { default as StopAlt } from './icons/StopAlt'; +export { default as SideBySide } from './icons/SideBySide'; +export { default as Stacked } from './icons/Stacked'; +export { default as Sun } from './icons/Sun'; +export { default as Moon } from './icons/Moon'; +export { default as Book } from './icons/Book'; +export { default as Document } from './icons/Document'; +export { default as Copy } from './icons/Copy'; +export { default as Category } from './icons/Category'; +export { default as Folder } from './icons/Folder'; +export { default as Print } from './icons/Print'; +export { default as GraphLine } from './icons/GraphLine'; +export { default as Calendar } from './icons/Calendar'; +export { default as GraphBar } from './icons/GraphBar'; +export { default as Menu } from './icons/Menu'; +export { default as MenuReverse } from './icons/MenuReverse'; +export { default as Filter } from './icons/Filter'; +export { default as DocChart } from './icons/DocChart'; +export { default as DocList } from './icons/DocList'; +export { default as Drag } from './icons/Drag'; +export { default as Markup } from './icons/Markup'; +export { default as Bold } from './icons/Bold'; +export { default as Italic } from './icons/Italic'; +export { default as PaperClip } from './icons/PaperClip'; +export { default as ListOrdered } from './icons/ListOrdered'; +export { default as ListUnordered } from './icons/ListUnordered'; +export { default as Paragraph } from './icons/Paragraph'; +export { default as Markdown } from './icons/Markdown'; +export { default as Repo } from './icons/Repo'; +export { default as Commit } from './icons/Commit'; +export { default as Branch } from './icons/Branch'; +export { default as PullRequest } from './icons/PullRequest'; +export { default as Merge } from './icons/Merge'; +export { default as Apple } from './icons/Apple'; +export { default as Linux } from './icons/Linux'; +export { default as Ubuntu } from './icons/Ubuntu'; +export { default as Windows } from './icons/Windows'; +export { default as Chrome } from './icons/Chrome'; +export { default as Storybook } from './icons/Storybook'; +export { default as AzureDevOps } from './icons/AzureDevOps'; +export { default as Bitbucket } from './icons/Bitbucket'; +export { default as Chromatic } from './icons/Chromatic'; +export { default as ComponentDriven } from './icons/ComponentDriven'; +export { default as Discord } from './icons/Discord'; +export { default as Facebook } from './icons/Facebook'; +export { default as Figma } from './icons/Figma'; +export { default as GDrive } from './icons/GDrive'; +export { default as Github } from './icons/Github'; +export { default as Gitlab } from './icons/Gitlab'; +export { default as Google } from './icons/Google'; +export { default as Graphql } from './icons/Graphql'; +export { default as Medium } from './icons/Medium'; +export { default as Redux } from './icons/Redux'; +export { default as Twitter } from './icons/Twitter'; +export { default as Youtube } from './icons/Youtube'; +export { default as VSCode } from './icons/VSCode'; +export { default as Linkedin } from './icons/Linkedin'; +export { default as Browser } from './icons/Browser'; +export { default as Tablet } from './icons/Tablet'; +export { default as Mobile } from './icons/Mobile'; +export { default as Watch } from './icons/Watch'; +export { default as Sidebar } from './icons/Sidebar'; +export { default as SidebarAlt } from './icons/SidebarAlt'; +export { default as SidebarAltToggle } from './icons/SidebarAltToggle'; +export { default as SidebarToggle } from './icons/SidebarToggle'; +export { default as BottomBar } from './icons/BottomBar'; +export { default as BottomBarToggle } from './icons/BottomBarToggle'; +export { default as CPU } from './icons/CPU'; +export { default as Database } from './icons/Database'; +export { default as Memory } from './icons/Memory'; +export { default as Structure } from './icons/Structure'; +export { default as Box } from './icons/Box'; +export { default as Power } from './icons/Power'; +export { default as Edit } from './icons/Edit'; +export { default as Cog } from './icons/Cog'; +export { default as Nut } from './icons/Nut'; +export { default as Wrench } from './icons/Wrench'; +export { default as Ellipsis } from './icons/Ellipsis'; +export { default as Wand } from './icons/Wand'; +export { default as Check } from './icons/Check'; +export { default as Form } from './icons/Form'; +export { default as BatchDeny } from './icons/BatchDeny'; +export { default as BatchAccept } from './icons/BatchAccept'; +export { default as Controls } from './icons/Controls'; +export { default as Plus } from './icons/Plus'; +export { default as CloseAlt } from './icons/CloseAlt'; +export { default as Cross } from './icons/Cross'; +export { default as Trash } from './icons/Trash'; +export { default as PinAlt } from './icons/PinAlt'; +export { default as Unpin } from './icons/Unpin'; +export { default as Add } from './icons/Add'; +export { default as Subtract } from './icons/Subtract'; +export { default as Close } from './icons/Close'; +export { default as Delete } from './icons/Delete'; +export { default as Passed } from './icons/Passed'; +export { default as Changed } from './icons/Changed'; +export { default as Failed } from './icons/Failed'; +export { default as Clear } from './icons/Clear'; +export { default as Comment } from './icons/Comment'; +export { default as CommentAdd } from './icons/CommentAdd'; +export { default as RequestChange } from './icons/RequestChange'; +export { default as Comments } from './icons/Comments'; +export { default as Chat } from './icons/Chat'; +export { default as Lock } from './icons/Lock'; +export { default as Unlock } from './icons/Unlock'; +export { default as Key } from './icons/Key'; +export { default as Outbox } from './icons/Outbox'; +export { default as Credit } from './icons/Credit'; +export { default as Button } from './icons/Button'; +export { default as Type } from './icons/Type'; +export { default as PointerDefault } from './icons/PointerDefault'; +export { default as PointerHand } from './icons/PointerHand'; +export { default as Command } from './icons/Command'; +export { default as Info } from './icons/Info'; +export { default as Question } from './icons/Question'; +export { default as Support } from './icons/Support'; +export { default as Alert } from './icons/Alert'; +export { default as AlertAlt } from './icons/AlertAlt'; +export { default as Email } from './icons/Email'; +export { default as Phone } from './icons/Phone'; +export { default as Link } from './icons/Link'; +export { default as LinkBroken } from './icons/LinkBroken'; +export { default as Bell } from './icons/Bell'; +export { default as RSS } from './icons/RSS'; +export { default as ShareAlt } from './icons/ShareAlt'; +export { default as Share } from './icons/Share'; +export { default as JumpTo } from './icons/JumpTo'; +export { default as CircleHollow } from './icons/CircleHollow'; +export { default as Circle } from './icons/Circle'; +export { default as BookmarkHollow } from './icons/BookmarkHollow'; +export { default as Bookmark } from './icons/Bookmark'; +export { default as Diamond } from './icons/Diamond'; +export { default as HeartHollow } from './icons/HeartHollow'; +export { default as Heart } from './icons/Heart'; +export { default as StarHollow } from './icons/StarHollow'; +export { default as Star } from './icons/Star'; +export { default as Certificate } from './icons/Certificate'; +export { default as Verified } from './icons/Verified'; +export { default as ThumbsUp } from './icons/ThumbsUp'; +export { default as Shield } from './icons/Shield'; +export { default as Basket } from './icons/Basket'; +export { default as Beaker } from './icons/Beaker'; +export { default as Hourglass } from './icons/Hourglass'; +export { default as Flag } from './icons/Flag'; +export { default as CloudHollow } from './icons/CloudHollow'; +export { default as Cloud } from './icons/Cloud'; +export { default as Sticker } from './icons/Sticker'; +export { default as ChevronUp } from './icons/ChevronUp'; +export { default as ChevronDown } from './icons/ChevronDown'; +export { default as ChevronLeft } from './icons/ChevronLeft'; +export { default as ChevronRight } from './icons/ChevronRight'; +export { default as ArrowUp } from './icons/ArrowUp'; +export { default as ArrowDown } from './icons/ArrowDown'; +export { default as ArrowLeft } from './icons/ArrowLeft'; +export { default as ArrowRight } from './icons/ArrowRight'; +export { default as ArrowSolidUp } from './icons/ArrowSolidUp'; +export { default as ArrowSolidDown } from './icons/ArrowSolidDown'; +export { default as ArrowSolidLeft } from './icons/ArrowSolidLeft'; +export { default as ArrowSolidRight } from './icons/ArrowSolidRight'; +export { default as ExpandAlt } from './icons/ExpandAlt'; +export { default as Collapse } from './icons/Collapse'; +export { default as Expand } from './icons/Expand'; +export { default as Unfold } from './icons/Unfold'; +export { default as Transfer } from './icons/Transfer'; +export { default as Redirect } from './icons/Redirect'; +export { default as Undo } from './icons/Undo'; +export { default as Reply } from './icons/Reply'; +export { default as Sync } from './icons/Sync'; +export { default as Upload } from './icons/Upload'; +export { default as Download } from './icons/Download'; +export { default as Back } from './icons/Back'; +export { default as Proceed } from './icons/Proceed'; +export { default as Refresh } from './icons/Refresh'; +export { default as Globe } from './icons/Globe'; +export { default as Compass } from './icons/Compass'; +export { default as Location } from './icons/Location'; +export { default as Pin } from './icons/Pin'; +export { default as Time } from './icons/Time'; +export { default as Dashboard } from './icons/Dashboard'; +export { default as Timer } from './icons/Timer'; +export { default as Home } from './icons/Home'; +export { default as Admin } from './icons/Admin'; +export { default as Direction } from './icons/Direction'; +export { default as User } from './icons/User'; +export { default as UserAlt } from './icons/UserAlt'; +export { default as UserAdd } from './icons/UserAdd'; +export { default as Users } from './icons/Users'; +export { default as Profile } from './icons/Profile'; +export { default as FaceHappy } from './icons/FaceHappy'; +export { default as FaceNeutral } from './icons/FaceNeutral'; +export { default as FaceSad } from './icons/FaceSad'; +export { default as Accessibility } from './icons/Accessibility'; +export { default as AccessibilityAlt } from './icons/AccessibilityAlt'; diff --git a/src/utils/createIndex.ts b/src/utils/createIndex.ts index e4d18ae..33a2424 100644 --- a/src/utils/createIndex.ts +++ b/src/utils/createIndex.ts @@ -19,7 +19,7 @@ export const createIndex = ({ downloadedSVGsData }: createIndexProps) => { const componentName = toPascalCase(component.name); // Export statement - const componentExport = `export { ${componentName} } from './icons/${componentName}';`; + const componentExport = `export { default as ${componentName} } from './icons/${componentName}';`; indexContent += componentExport + os.EOL; });