diff --git a/src/components/AllIcons.stories.tsx b/src/components/AllIcons.stories.tsx new file mode 100644 index 0000000..6902f59 --- /dev/null +++ b/src/components/AllIcons.stories.tsx @@ -0,0 +1,262 @@ +import React, { Component } from "react"; +import { ComponentMeta, ComponentStory, Meta} from "@storybook/react"; +import classNames from "classnames" +import * as Icons from "./icons"; + + +// ((IconsComponent as unknown) as Array).forEach((element) => element); + +export default { + title: "All-Icons", + argTypes: { + className: { + control: {type: 'check'} , + options:[ + ' fill-none ', + ' fill-blue-50 ', + ' fill-blue-100 ', + ' fill-blue-200 ', + ' fill-blue-300 ', + ' fill-blue-400 ', + ' fill-blue-500 ', + ' fill-blue-600 ', + ' fill-blue-700 ', + ' fill-blue-800 ', + ' fill-blue-900 ', + ' fill-gray-50 ', + ' fill-gray-75 ', + ' fill-gray-100 ', + ' fill-gray-200 ', + ' fill-gray-300 ', + ' fill-gray-400 ', + ' fill-gray-500 ', + ' fill-gray-600 ', + ' fill-gray-700 ', + ' fill-gray-800 ', + ' fill-gray-900 ', + ' stroke-none ', + ' stroke-blue-50 ', + ' stroke-blue-100 ', + ' stroke-blue-200 ', + ' stroke-blue-300 ', + ' stroke-blue-400 ', + ' stroke-blue-500 ', + ' stroke-blue-600 ', + ' stroke-blue-700 ', + ' stroke-blue-800 ', + ' stroke-blue-900 ', + ' stroke-gray-50 ', + ' stroke-gray-75 ', + ' stroke-gray-100 ', + ' stroke-gray-200 ', + ' stroke-gray-300 ', + ' stroke-gray-400 ', + ' stroke-gray-500 ', + ' stroke-gray-600 ', + ' stroke-gray-700 ', + ' stroke-gray-800 ', + ' stroke-gray-900 ', + ], + }, + + }, +} + + +const ArrowBigRightStory: ComponentStory = (args) => ; +const ArrowRightStory: ComponentStory = (args) => ; +const ArrowLeftStory : ComponentStory = (args) => +const ArrowDownStory : ComponentStory = (args) => +const BookmarkStory : ComponentStory = (args) => +const CaretDownStory : ComponentStory = (args) => +const CaretLeftStory : ComponentStory = (args) => +const CaretRightStory : ComponentStory = (args) => +const CaretUpStory : ComponentStory = (args) => +const ChevronesLeftStory : ComponentStory = (args) => +const ChevronesRightStory : ComponentStory = (args) => +const CiteStory : ComponentStory = (args) => +const CopyStory : ComponentStory = (args) => +const DeleteStory : ComponentStory = (args) => +const DownloadStory : ComponentStory = (args) => +const Edit1Story : ComponentStory = (args) => +const Edit2Story : ComponentStory = (args) => +const ErrorStory : ComponentStory = (args) => +const EyeStory : ComponentStory = (args) => +const FavoriteStory : ComponentStory = (args) => +const FiletextStory : ComponentStory = (args) => +const FolderStory : ComponentStory = (args) => +const KeyStory : ComponentStory = (args) => +const ListStory : ComponentStory = (args) => +const MinusStory : ComponentStory = (args) => +const MoreStory : ComponentStory = (args) => +const PlusStory : ComponentStory = (args) => +const PrinterStory : ComponentStory = (args) => +const SearchStory : ComponentStory = (args) => +const ShareStory : ComponentStory = (args) => +const UserStory : ComponentStory = (args) => +const XMarkStory : ComponentStory = (args) => + +export const ArrowBigRight= ArrowBigRightStory.bind({}); +export const ArrowRight = ArrowRightStory.bind({}); +export const ArrowLeft = ArrowLeftStory.bind({}); +export const ArrowDown = ArrowDownStory.bind({}); +export const Bookmark = BookmarkStory.bind({}); +export const CaretDown = CaretDownStory.bind({}); +export const CaretLeft = CaretLeftStory.bind({}); +export const CaretRight = CaretRightStory.bind({}); +export const CaretUp = CaretUpStory.bind({}); +export const ChevronesLeft = ChevronesLeftStory.bind({}); +export const ChevronesRight = ChevronesRightStory.bind({}); +export const Cite = CiteStory.bind({}); +export const Copy = CopyStory.bind({}); +export const Delete = DeleteStory.bind({}); +export const Download = DownloadStory.bind({}); +export const Edit1 = Edit1Story.bind({}); +export const Edit2 = Edit2Story.bind({}); +export const Error = ErrorStory.bind({}); +export const Eye = EyeStory.bind({}); +export const Favorite = FavoriteStory.bind({}); +export const Filetext = FiletextStory.bind({}); +export const Folder = FolderStory.bind({}); +export const Key = KeyStory.bind({}); +export const List = ListStory.bind({}); +export const Minus = MinusStory.bind({}); +export const More = MoreStory.bind({}); +export const Plus = PlusStory.bind({}); +export const Printer = PrinterStory.bind({}); +export const Search = SearchStory.bind({}); +export const Share = ShareStory.bind({}); +export const User = UserStory.bind({}); +export const XMark = XMarkStory.bind({}); + + +ArrowBigRight.args = { + className: 'fill-blue-500', + width: 25, +}; + +ArrowRight.args = { + className: 'fill-none', + width: 25, +}; + +ArrowLeft.args = { + className: 'fill-none', + width: 25, +}; +ArrowDown.args = { + className: 'fill-none', + width: 25, +}; +Bookmark.args = { + className: 'fill-none', + width: 25, +}; +CaretDown.args = { + className: 'fill-none', + width: 25, +}; +CaretLeft.args = { + className: 'fill-none', + width: 25, +}; +CaretRight.args = { + className: 'fill-none', + width: 25, +}; +CaretUp.args = { + className: 'fill-none', + width: 25, +}; +ChevronesLeft.args = { + className: 'fill-none', + width: 25, +}; +ChevronesRight.args = { + className: 'fill-none', + width: 25, +}; +Cite.args = { + className: 'fill-none', + width: 25, +}; +Copy.args = { + className: 'fill-none', + width: 25, +}; +Delete.args = { + className: 'fill-none', + width: 25, +}; +Download.args = { + className: 'fill-none', + width: 25, +}; +Edit1.args = { + className: 'fill-none', + width: 25, +}; +Edit2.args = { + className: 'fill-none', + width: 25, +}; +Error.args = { + className: 'fill-none', + width: 25, +}; +Eye.args = { + className: 'fill-none', + width: 25, +}; +Favorite.args = { + className: 'fill-none', + width: 25, +}; +Filetext.args = { + className: 'fill-none', + width: 25, +}; +Folder.args = { + className: 'fill-none', + width: 25, +}; +Key.args = { + className: 'fill-none', + width: 25, +}; +List.args = { + className: 'fill-none', + width: 25, +}; +Minus.args = { + className: 'fill-none', + width: 25, +}; +More.args = { + className: 'fill-none', + width: 25, +}; +Plus.args = { + className: 'fill-none', + width: 25, +}; +Printer.args = { + className: 'fill-none', + width: 25, +}; +Search.args = { + className: 'fill-none', + width: 25, +}; +Share.args = { + className: 'fill-none', + width: 25, +}; +User.args = { + className: 'fill-none', + width: 25, +}; +XMark.args = { + className: 'fill-none', + width: 25, +} diff --git a/src/stories/AllIcons.stories.tsx b/src/stories/AllIcons.stories.tsx deleted file mode 100644 index 14daf67..0000000 --- a/src/stories/AllIcons.stories.tsx +++ /dev/null @@ -1,270 +0,0 @@ -import React, { Component } from "react"; -import { ComponentMeta, ComponentStory, Meta} from "@storybook/react"; -import { ReactComponent as SVGArrowBigRight } from "../assets/svg/arrow-big-right.svg" ; -import { ReactComponent as SVGArrowRight} from "../assets/svg/arrow-right.svg"; -// import {ReactComponent as SVGArrowLeft} from "../assets/svg/arrow-left.svg"; -import {ReactComponent as SVGArrowDown} from "../assets/svg/arrow-down.svg"; -import {ReactComponent as SVGBookmark} from "../assets/svg/bookmark.svg"; -import {ReactComponent as SVGCaretDown} from "../assets/svg/caret-down.svg" -import {ReactComponent as SVGCaretLeft} from "../assets/svg/caret-left.svg" -import {ReactComponent as SVGCaretRight} from "../assets/svg/caret-right.svg" -import {ReactComponent as SVGCaretUp} from "../assets/svg/caret-up.svg"; -import {ReactComponent as SVGChevronesLeft} from "../assets/svg/chevrones-left.svg"; -import {ReactComponent as SVGChevronesRight} from "../assets/svg/chevrones-right.svg"; -import {ReactComponent as SVGCite} from "../assets/svg/cite.svg"; -import {ReactComponent as SVGCopy} from "../assets/svg/copy.svg"; -import {ReactComponent as SVGDelete} from "../assets/svg/delete.svg"; -import {ReactComponent as SVGDownload} from "../assets/svg/download.svg"; -import {ReactComponent as SVGEdit1} from "../assets/svg/edit1.svg"; -import {ReactComponent as SVGEdit2} from "../assets/svg/edit2.svg"; -import {ReactComponent as SVGError} from "../assets/svg/error.svg"; -import {ReactComponent as SVGEye} from "../assets/svg/eye.svg"; -import {ReactComponent as SVGFavorite} from "../assets/svg/favorite.svg"; -import {ReactComponent as SVGFiletext} from "../assets/svg/filetext.svg"; -import {ReactComponent as SVGFolder} from "../assets/svg/folder.svg"; -import {ReactComponent as SVGKey} from "../assets/svg/key.svg"; -import {ReactComponent as SVGList} from "../assets/svg/list.svg"; -import {ReactComponent as SVGMinus} from "../assets/svg/minus.svg"; -import {ReactComponent as SVGMore} from "../assets/svg/more.svg"; -import {ReactComponent as SVGPlus} from "../assets/svg/plus.svg"; -import {ReactComponent as SVGPrinter} from "../assets/svg/printer.svg"; -import {ReactComponent as SVGSearch} from "../assets/svg/search.svg"; -import {ReactComponent as SVGShare} from "../assets/svg/share.svg"; -import {ReactComponent as SVGUser} from "../assets/svg/user.svg"; -import {ReactComponent as SVGXMark} from "../assets/svg/xmark.svg"; - - -export default { - title: "Icons", -} - - -const ArrowBigRightStory: ComponentStory = (args) => ; -const ArrowRightStory: ComponentStory = (args) => ; -//const SVGArrowLeftStory : ComponentStory = (args) => -const SVGArrowDownStory : ComponentStory = (args) => -const SVGBookmarkStory : ComponentStory = (args) => -const SVGCaretDownStory : ComponentStory = (args) => -const SVGCaretLeftStory : ComponentStory = (args) => -const SVGCaretRightStory : ComponentStory = (args) => -const SVGCaretUpStory : ComponentStory = (args) => -const SVGChevronesLeftStory : ComponentStory = (args) => -const SVGChevronesRightStory : ComponentStory = (args) => -const SVGCiteStory : ComponentStory = (args) => -const SVGCopyStory : ComponentStory = (args) => -const SVGDeleteStory : ComponentStory = (args) => -const SVGDownloadStory : ComponentStory = (args) => -const SVGEdit1Story : ComponentStory = (args) => -const SVGEdit2Story : ComponentStory = (args) => -const SVGErrorStory : ComponentStory = (args) => -const SVGEyeStory : ComponentStory = (args) => -const SVGFavoriteStory : ComponentStory = (args) => -const SVGFiletextStory : ComponentStory = (args) => -const SVGFolderStory : ComponentStory = (args) => -const SVGKeyStory : ComponentStory = (args) => -const SVGListStory : ComponentStory = (args) => -const SVGMinusStory : ComponentStory = (args) => -const SVGMoreStory : ComponentStory = (args) => -const SVGPlusStory : ComponentStory = (args) => -const SVGPrinterStory : ComponentStory = (args) => -const SVGSearchStory : ComponentStory = (args) => -const SVGShareStory : ComponentStory = (args) => -const SVGUserStory : ComponentStory = (args) => -const SVGXMarkStory : ComponentStory = (args) => - -export const ArrowBigRight= ArrowBigRightStory.bind({}); -export const ArrowRight = ArrowRightStory.bind({}); -//export const ArrowLeft = SVGArrowLeftStory.bind({}); -export const ArrowDown = SVGArrowDownStory.bind({}); -export const Bookmark = SVGBookmarkStory.bind({}); -export const CaretDown = SVGCaretDownStory.bind({}); -export const CaretLeft = SVGCaretLeftStory.bind({}); -export const CaretRight = SVGCaretRightStory.bind({}); -export const CaretUp = SVGCaretUpStory.bind({}); -export const ChevronesLeft = SVGChevronesLeftStory.bind({}); -export const ChevronesRight = SVGChevronesRightStory.bind({}); -export const Cite = SVGCiteStory.bind({}); -export const Copy = SVGCopyStory.bind({}); -export const Delete = SVGDeleteStory.bind({}); -export const Download = SVGDownloadStory.bind({}); -export const Edit1 = SVGEdit1Story.bind({}); -export const Edit2 = SVGEdit2Story.bind({}); -export const Error = SVGErrorStory.bind({}); -export const Eye = SVGEyeStory.bind({}); -export const Favorite = SVGFavoriteStory.bind({}); -export const Filetext = SVGFiletextStory.bind({}); -export const Folder = SVGFolderStory.bind({}); -export const Key = SVGKeyStory.bind({}); -export const List = SVGListStory.bind({}); -export const Minus = SVGMinusStory.bind({}); -export const More = SVGMoreStory.bind({}); -export const Plus = SVGPlusStory.bind({}); -export const Printer = SVGPrinterStory.bind({}); -export const Search = SVGSearchStory.bind({}); -export const Share = SVGShareStory.bind({}); -export const User = SVGUserStory.bind({}); -export const XMark = SVGXMarkStory.bind({}); - - -ArrowBigRight.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; - -ArrowRight.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; - -// ArrowLeft.args = { -// fill: 'blue', -// stroke: 'blue', -// width: 25, -// }; -ArrowDown.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Bookmark.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -CaretDown.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -CaretLeft.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -CaretRight.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -CaretUp.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -ChevronesLeft.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -ChevronesRight.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Cite.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Copy.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Delete.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Download.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Edit1.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Edit2.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Error.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Eye.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Favorite.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Filetext.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Folder.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Key.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -List.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Minus.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -More.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Plus.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Printer.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Search.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -Share.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -User.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}; -XMark.args = { - fill: 'blue', - stroke: 'blue', - width: 25, -}