From ba2d759cb5ad992171465a7ff2d93b8c40e74679 Mon Sep 17 00:00:00 2001 From: Alex Matthews Date: Mon, 11 Aug 2025 11:55:59 -0500 Subject: [PATCH 1/2] Adds an icon gallery --- easy-ui-react/src/Icon/Icon.stories.tsx | 560 +++++++++++++++++++++++- 1 file changed, 559 insertions(+), 1 deletion(-) diff --git a/easy-ui-react/src/Icon/Icon.stories.tsx b/easy-ui-react/src/Icon/Icon.stories.tsx index bacc9789..8a577d9a 100644 --- a/easy-ui-react/src/Icon/Icon.stories.tsx +++ b/easy-ui-react/src/Icon/Icon.stories.tsx @@ -1,7 +1,138 @@ +import AccountBalanceIcon from "@easypost/easy-ui-icons/AccountBalance"; +import AccountBalanceWalletIcon from "@easypost/easy-ui-icons/AccountBalanceWallet"; +import AccountCircleIcon from "@easypost/easy-ui-icons/AccountCircle"; +import AccountTreeIcon from "@easypost/easy-ui-icons/AccountTree"; +import AddIcon from "@easypost/easy-ui-icons/Add"; +import AddBusinessIcon from "@easypost/easy-ui-icons/AddBusiness"; +import AddCardIcon from "@easypost/easy-ui-icons/AddCard"; +import AddCircleIcon from "@easypost/easy-ui-icons/AddCircle"; +import AddDiamondIcon from "@easypost/easy-ui-icons/AddDiamond"; +import AdfScannerIcon from "@easypost/easy-ui-icons/AdfScanner"; +import AdjustIcon from "@easypost/easy-ui-icons/Adjust"; +import AlarmIcon from "@easypost/easy-ui-icons/Alarm"; +import AltRouteIcon from "@easypost/easy-ui-icons/AltRoute"; +import AnalyticsIcon from "@easypost/easy-ui-icons/Analytics"; +import AnchorIcon from "@easypost/easy-ui-icons/Anchor"; +import ApartmentIcon from "@easypost/easy-ui-icons/Apartment"; +import ArrowBackIcon from "@easypost/easy-ui-icons/ArrowBack"; +import ArrowDropDownIcon from "@easypost/easy-ui-icons/ArrowDropDown"; +import ArrowDropUpIcon from "@easypost/easy-ui-icons/ArrowDropUp"; +import ArrowForwardIcon from "@easypost/easy-ui-icons/ArrowForward"; +import ArrowForwardIosIcon from "@easypost/easy-ui-icons/ArrowForwardIos"; +import ArticleIcon from "@easypost/easy-ui-icons/Article"; +import AttachMoneyIcon from "@easypost/easy-ui-icons/AttachMoney"; +import AwardStarIcon from "@easypost/easy-ui-icons/AwardStar"; +import BallotIcon from "@easypost/easy-ui-icons/Ballot"; +import BarChartIcon from "@easypost/easy-ui-icons/BarChart"; +import BarcodeIcon from "@easypost/easy-ui-icons/Barcode"; +import BarcodeReaderIcon from "@easypost/easy-ui-icons/BarcodeReader"; +import BarcodeScannerIcon from "@easypost/easy-ui-icons/BarcodeScanner"; +import Brightness1Icon from "@easypost/easy-ui-icons/Brightness1"; +import Brightness5Icon from "@easypost/easy-ui-icons/Brightness5"; +import CalendarAddOnIcon from "@easypost/easy-ui-icons/CalendarAddOn"; +import CalendarMonthIcon from "@easypost/easy-ui-icons/CalendarMonth"; +import CalendarTodayIcon from "@easypost/easy-ui-icons/CalendarToday"; +import CallIcon from "@easypost/easy-ui-icons/Call"; +import CampaignIcon from "@easypost/easy-ui-icons/Campaign"; +import CancelIcon from "@easypost/easy-ui-icons/Cancel"; +import CheckIcon from "@easypost/easy-ui-icons/Check"; +import Check600Icon from "@easypost/easy-ui-icons/Check600"; import CheckCircleIcon from "@easypost/easy-ui-icons/CheckCircle"; +import ChevronRight400Icon from "@easypost/easy-ui-icons/ChevronRight400"; +import ChipExtractionIcon from "@easypost/easy-ui-icons/ChipExtraction"; +import CloseIcon from "@easypost/easy-ui-icons/Close"; +import CodeIcon from "@easypost/easy-ui-icons/Code"; +import CodeBlocksIcon from "@easypost/easy-ui-icons/CodeBlocks"; +import CollectionsBookmarkIcon from "@easypost/easy-ui-icons/CollectionsBookmark"; +import ContentCopyIcon from "@easypost/easy-ui-icons/ContentCopy"; +import CurrencyExchangeIcon from "@easypost/easy-ui-icons/CurrencyExchange"; +import CycleIcon from "@easypost/easy-ui-icons/Cycle"; +import DeleteIcon from "@easypost/easy-ui-icons/Delete"; +import DescriptionIcon from "@easypost/easy-ui-icons/Description"; +import DocumentScannerIcon from "@easypost/easy-ui-icons/DocumentScanner"; +import DoorOpenIcon from "@easypost/easy-ui-icons/DoorOpen"; +import DownloadIcon from "@easypost/easy-ui-icons/Download"; +import EcoIcon from "@easypost/easy-ui-icons/Eco"; +import EditIcon from "@easypost/easy-ui-icons/Edit"; +import EmojiObjectsIcon from "@easypost/easy-ui-icons/EmojiObjects"; import ErrorIcon from "@easypost/easy-ui-icons/Error"; +import ErrorFillIcon from "@easypost/easy-ui-icons/ErrorFill"; +import ExpandAllIcon from "@easypost/easy-ui-icons/ExpandAll"; +import ExpandMore400Icon from "@easypost/easy-ui-icons/ExpandMore400"; +import ExperimentIcon from "@easypost/easy-ui-icons/Experiment"; +import FilterAltIcon from "@easypost/easy-ui-icons/FilterAlt"; +import FilterAltOffIcon from "@easypost/easy-ui-icons/FilterAltOff"; +import ForkLeftIcon from "@easypost/easy-ui-icons/ForkLeft"; +import Graph3Icon from "@easypost/easy-ui-icons/Graph3"; +import GroupsIcon from "@easypost/easy-ui-icons/Groups"; +import HandshakeIcon from "@easypost/easy-ui-icons/Handshake"; +import HelpIcon from "@easypost/easy-ui-icons/Help"; +import HistoryIcon from "@easypost/easy-ui-icons/History"; +import HomeIcon from "@easypost/easy-ui-icons/Home"; +import HomeWorkIcon from "@easypost/easy-ui-icons/HomeWork"; +import ImportContactsIcon from "@easypost/easy-ui-icons/ImportContacts"; import InfoIcon from "@easypost/easy-ui-icons/Info"; +import InkSelectionIcon from "@easypost/easy-ui-icons/InkSelection"; +import KeyIcon from "@easypost/easy-ui-icons/Key"; +import KeyboardArrowDownIcon from "@easypost/easy-ui-icons/KeyboardArrowDown"; +import KeyboardDoubleArrowLeftIcon from "@easypost/easy-ui-icons/KeyboardDoubleArrowLeft"; +import KeyboardDoubleArrowRightIcon from "@easypost/easy-ui-icons/KeyboardDoubleArrowRight"; +import LabProfileIcon from "@easypost/easy-ui-icons/LabProfile"; +import LeaderboardIcon from "@easypost/easy-ui-icons/Leaderboard"; +import LinkIcon from "@easypost/easy-ui-icons/Link"; +import LocalPoliceIcon from "@easypost/easy-ui-icons/LocalPolice"; +import LocalPostOfficeIcon from "@easypost/easy-ui-icons/LocalPostOffice"; +import LocalShippingIcon from "@easypost/easy-ui-icons/LocalShipping"; +import LocationOnIcon from "@easypost/easy-ui-icons/LocationOn"; +import LocationSearchingIcon from "@easypost/easy-ui-icons/LocationSearching"; +import LockIcon from "@easypost/easy-ui-icons/Lock"; +import MangaIcon from "@easypost/easy-ui-icons/Manga"; +import MenuIcon from "@easypost/easy-ui-icons/Menu"; +import MenuBookIcon from "@easypost/easy-ui-icons/MenuBook"; +import MoreVertIcon from "@easypost/easy-ui-icons/MoreVert"; +import MoreVert600Icon from "@easypost/easy-ui-icons/MoreVert600"; +import OpenInNewIcon from "@easypost/easy-ui-icons/OpenInNew"; +import PackageIcon from "@easypost/easy-ui-icons/Package"; +import Package2Icon from "@easypost/easy-ui-icons/Package2"; +import PaletteIcon from "@easypost/easy-ui-icons/Palette"; +import PaymentsIcon from "@easypost/easy-ui-icons/Payments"; +import PercentIcon from "@easypost/easy-ui-icons/Percent"; +import PersonIcon from "@easypost/easy-ui-icons/Person"; +import PriceChangeIcon from "@easypost/easy-ui-icons/PriceChange"; +import RadarIcon from "@easypost/easy-ui-icons/Radar"; +import RadioButtonCheckedIcon from "@easypost/easy-ui-icons/RadioButtonChecked"; +import RadioButtonUncheckedIcon from "@easypost/easy-ui-icons/RadioButtonUnchecked"; +import ReceiptIcon from "@easypost/easy-ui-icons/Receipt"; +import ReceiptLongIcon from "@easypost/easy-ui-icons/ReceiptLong"; +import RedeemIcon from "@easypost/easy-ui-icons/Redeem"; +import Remove600Icon from "@easypost/easy-ui-icons/Remove600"; +import RemoveSelectionIcon from "@easypost/easy-ui-icons/RemoveSelection"; +import ReplayIcon from "@easypost/easy-ui-icons/Replay"; +import SavingsIcon from "@easypost/easy-ui-icons/Savings"; +import ScheduleIcon from "@easypost/easy-ui-icons/Schedule"; +import SchemaIcon from "@easypost/easy-ui-icons/Schema"; +import SearchIcon from "@easypost/easy-ui-icons/Search"; +import SettingsIcon from "@easypost/easy-ui-icons/Settings"; +import ShieldIcon from "@easypost/easy-ui-icons/Shield"; +import ShoppingCartIcon from "@easypost/easy-ui-icons/ShoppingCart"; +import StorefrontIcon from "@easypost/easy-ui-icons/Storefront"; +import SupportIcon from "@easypost/easy-ui-icons/Support"; +import SupportAgentIcon from "@easypost/easy-ui-icons/SupportAgent"; +import TableViewIcon from "@easypost/easy-ui-icons/TableView"; +import TerminalIcon from "@easypost/easy-ui-icons/Terminal"; +import ThumbUpIcon from "@easypost/easy-ui-icons/ThumbUp"; +import TimelineIcon from "@easypost/easy-ui-icons/Timeline"; +import TrackChangesIcon from "@easypost/easy-ui-icons/TrackChanges"; +import TuneIcon from "@easypost/easy-ui-icons/Tune"; +import UnfoldMoreIcon from "@easypost/easy-ui-icons/UnfoldMore"; +import UploadIcon from "@easypost/easy-ui-icons/Upload"; +import VerifiedUserIcon from "@easypost/easy-ui-icons/VerifiedUser"; +import ViewListIcon from "@easypost/easy-ui-icons/ViewList"; +import VisibilityIcon from "@easypost/easy-ui-icons/Visibility"; +import VisibilityOffIcon from "@easypost/easy-ui-icons/VisibilityOff"; import WarningIcon from "@easypost/easy-ui-icons/Warning"; +import WebhookIcon from "@easypost/easy-ui-icons/Webhook"; +import WidgetsIcon from "@easypost/easy-ui-icons/Widgets"; import { Meta, StoryObj } from "@storybook/react"; import React from "react"; import { @@ -18,7 +149,6 @@ const Template = (args: IconProps) => ; const meta: Meta = { title: "Primitives/Icon", argTypes: { - // TODO: Figure out how to include all icons from our icons project symbol: createLabelledOptionsControl({ CheckCircle: CheckCircleIcon, Info: InfoIcon, @@ -56,3 +186,431 @@ export const Controls: Story = { symbol: CheckCircleIcon, }, }; + +const Row = ({ children }: { children: React.ReactNode }) => ( +
+ {children} +
+); + +// Gallery of all icons +// Not ideal, but one day when we have a barrel file or something, this can be +// done in a less manual way +export const Gallery: Story = { + render: () => ( + <> + + AccountBalance: + + + AccountBalanceWallet: + + + AccountCircle: + + + AccountTree: + + + Add: + + + AddBusiness: + + + AddCard: + + + AddCircle: + + + AddDiamond: + + + AdfScanner: + + + Adjust: + + + Alarm: + + + AltRoute: + + + Analytics: + + + Anchor: + + + Apartment: + + + ArrowBack: + + + ArrowDropDown: + + + ArrowDropUp: + + + ArrowForward: + + + ArrowForwardIos: + + + Article: + + + AttachMoney: + + + AwardStar: + + + Ballot: + + + BarChart: + + + Barcode: + + + BarcodeReader: + + + BarcodeScanner: + + + Brightness1: + + + Brightness5: + + + CalendarAddOn: + + + CalendarMonth: + + + CalendarToday: + + + Call: + + + Campaign: + + + Cancel: + + + Check: + + + Check600: + + + CheckCircle: + + + ChevronRight400: + + + ChipExtraction: + + + Close: + + + Code: + + + CodeBlocks: + + + CollectionsBookmark: + + + ContentCopy: + + + CurrencyExchange: + + + Cycle: + + + Delete: + + + Description: + + + DocumentScanner: + + + DoorOpen: + + + Download: + + + Eco: + + + Edit: + + + EmojiObjects: + + + Error: + + + ErrorFill: + + + ExpandAll: + + + ExpandMore400: + + + Experiment: + + + FilterAlt: + + + FilterAltOff: + + + ForkLeft: + + + Graph3: + + + Groups: + + + Handshake: + + + Help: + + + History: + + + Home: + + + HomeWork: + + + ImportContacts: + + + Info: + + + InkSelection: + + + Key: + + + KeyboardArrowDown: + + + KeyboardDoubleArrowLeft: + + + KeyboardDoubleArrowRight: + + + LabProfile: + + + Leaderboard: + + + Link: + + + LocalPolice: + + + LocalPostOffice: + + + LocalShipping: + + + LocationOn: + + + LocationSearching: + + + Lock: + + + Manga: + + + Menu: + + + MenuBook: + + + MoreVert: + + + MoreVert600: + + + OpenInNew: + + + Package: + + + Package2: + + + Palette: + + + Payments: + + + Percent: + + + Person: + + + PriceChange: + + + Radar: + + + RadioButtonChecked: + + + RadioButtonUnchecked: + + + Receipt: + + + ReceiptLong: + + + Redeem: + + + Remove600: + + + RemoveSelection: + + + Replay: + + + Savings: + + + Schedule: + + + Schema: + + + Search: + + + Settings: + + + Shield: + + + ShoppingCart: + + + Storefront: + + + Support: + + + SupportAgent: + + + TableView: + + + Terminal: + + + ThumbUp: + + + Timeline: + + + TrackChanges: + + + Tune: + + + UnfoldMore: + + + Upload: + + + VerifiedUser: + + + ViewList: + + + Visibility: + + + VisibilityOff: + + + Warning: + + + Webhook: + + + Widgets: + + + ), +}; From fc8b9728e7b2a3d392bbe938fb5ecac83942b2d7 Mon Sep 17 00:00:00 2001 From: Alex Matthews Date: Mon, 11 Aug 2025 12:00:05 -0500 Subject: [PATCH 2/2] Adds changeset --- .changeset/puny-rivers-look.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/puny-rivers-look.md diff --git a/.changeset/puny-rivers-look.md b/.changeset/puny-rivers-look.md new file mode 100644 index 00000000..b672083e --- /dev/null +++ b/.changeset/puny-rivers-look.md @@ -0,0 +1,5 @@ +--- +"@easypost/easy-ui": patch +--- + +Adds icon gallery story