Skip to content

Commit

Permalink
feat(icons): Add icons and export component props
Browse files Browse the repository at this point in the history
  • Loading branch information
janiekyu committed Aug 31, 2023
1 parent 66bc91f commit 749ae72
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/react/src/components/Button/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Button';
export { default, ButtonProps } from './Button';
7 changes: 6 additions & 1 deletion packages/react/src/components/Icon/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Icon/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { default } from './Icon';
export { default, IconProps } from './Icon';
5 changes: 5 additions & 0 deletions packages/react/src/components/icons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export {
FileText,
Gear,
Gift,
Globe,
GlobeStand,
Headphones,
HouseLine,
Info,
Images,
Expand All @@ -38,13 +40,16 @@ export {
MagnifyingGlassPlus,
MapPin,
MapTrifold,
Megaphone,
Minus,
Palette,
PlayCircle,
Plus,
PlusCircle,
Spinner,
SpinnerGap,
ThumbsUp,
Toolbox,
Trash,
User,
WarningCircle,
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down

0 comments on commit 749ae72

Please sign in to comment.