From 749ae727408360b6b5221bc8cb64f6da9b27ad1b Mon Sep 17 00:00:00 2001 From: Jane Date: Thu, 31 Aug 2023 16:42:01 -0500 Subject: [PATCH] feat(icons): Add icons and export component props --- packages/react/src/components/Button/index.ts | 2 +- packages/react/src/components/Icon/Icon.tsx | 7 ++++++- packages/react/src/components/Icon/index.ts | 2 +- packages/react/src/components/icons/index.ts | 5 +++++ packages/react/src/components/index.ts | 4 ++-- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/packages/react/src/components/Button/index.ts b/packages/react/src/components/Button/index.ts index efe8c800..d600dd4f 100644 --- a/packages/react/src/components/Button/index.ts +++ b/packages/react/src/components/Button/index.ts @@ -1 +1 @@ -export { default } from './Button'; +export { default, ButtonProps } from './Button'; diff --git a/packages/react/src/components/Icon/Icon.tsx b/packages/react/src/components/Icon/Icon.tsx index f77b0973..35673348 100644 --- a/packages/react/src/components/Icon/Icon.tsx +++ b/packages/react/src/components/Icon/Icon.tsx @@ -33,9 +33,11 @@ export const cdsIconMap = { fileText: icons.FileText, gear: icons.Gear, gift: icons.Gift, - globe: icons.GlobeStand, + globe: icons.Globe, + globeStand: icons.GlobeStand, info: icons.Info, images: icons.Images, + headphones: icons.Headphones, house: icons.HouseLine, link: icons.Link, list: icons.List, @@ -45,13 +47,16 @@ export const cdsIconMap = { magnigyGlassPlus: icons.MagnifyingGlassPlus, mapPin: icons.MapPin, mapTrifold: icons.MapTrifold, + megaphone: icons.Megaphone, minus: icons.Minus, + palette: icons.Palette, playCircle: icons.PlayCircle, plus: icons.Plus, plusCircle: icons.PlusCircle, skippy: SkippyIcon, spinner: icons.Spinner, spinnerGap: icons.SpinnerGap, + toolbox: icons.Toolbox, trash: icons.Trash, thumbsUp: icons.ThumbsUp, user: icons.User, diff --git a/packages/react/src/components/Icon/index.ts b/packages/react/src/components/Icon/index.ts index dc6b45c3..cc539c3a 100644 --- a/packages/react/src/components/Icon/index.ts +++ b/packages/react/src/components/Icon/index.ts @@ -1 +1 @@ -export { default } from './Icon'; +export { default, IconProps } from './Icon'; diff --git a/packages/react/src/components/icons/index.ts b/packages/react/src/components/icons/index.ts index 8eaf97e4..b7a21f74 100644 --- a/packages/react/src/components/icons/index.ts +++ b/packages/react/src/components/icons/index.ts @@ -26,7 +26,9 @@ export { FileText, Gear, Gift, + Globe, GlobeStand, + Headphones, HouseLine, Info, Images, @@ -38,13 +40,16 @@ export { MagnifyingGlassPlus, MapPin, MapTrifold, + Megaphone, Minus, + Palette, PlayCircle, Plus, PlusCircle, Spinner, SpinnerGap, ThumbsUp, + Toolbox, Trash, User, WarningCircle, diff --git a/packages/react/src/components/index.ts b/packages/react/src/components/index.ts index 9e1227ff..330e85bd 100644 --- a/packages/react/src/components/index.ts +++ b/packages/react/src/components/index.ts @@ -1,6 +1,6 @@ -export { default as Button } from './Button'; +export { default as Button, ButtonProps } from './Button'; export { default as Modal } from './Modal'; -export { default as Icon } from './Icon'; +export { default as Icon, IconProps } from './Icon'; export { default as Table } from './Table'; export { NavItem, NavItemProps } from './Nav'; export {