Skip to content

Commit

Permalink
feat(icons): use Icon postfix (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
deini authored Jul 25, 2019
1 parent d8a930c commit 03772fb
Show file tree
Hide file tree
Showing 37 changed files with 71 additions and 71 deletions.
2 changes: 1 addition & 1 deletion packages/big-design-icons/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ async function generateIcons() {
return Promise.all(
iconFiles.map(iconFilePath => {
const filename = basename(iconFilePath, '.svg');
const name = `Icon${camelcase(filename, { pascalCase: true })}`;
const name = `${camelcase(filename, { pascalCase: true })}Icon`;

componentNames.add(name);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconAddCircleOutline = createStyledIcon(Icon);
export const AddCircleOutlineIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconAdd = createStyledIcon(Icon);
export const AddIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconArrowBack = createStyledIcon(Icon);
export const ArrowBackIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconArrowDropDown = createStyledIcon(Icon);
export const ArrowDropDownIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconArrowForward = createStyledIcon(Icon);
export const ArrowForwardIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconAssignment = createStyledIcon(Icon);
export const AssignmentIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconCheckCircle = createStyledIcon(Icon);
export const CheckCircleIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconCheck = createStyledIcon(Icon);
export const CheckIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconChevronLeft = createStyledIcon(Icon);
export const ChevronLeftIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconChevronRight = createStyledIcon(Icon);
export const ChevronRightIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconClose = createStyledIcon(Icon);
export const CloseIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconDelete = createStyledIcon(Icon);
export const DeleteIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconDragIndicator = createStyledIcon(Icon);
export const DragIndicatorIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconEdit = createStyledIcon(Icon);
export const EditIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconError = createStyledIcon(Icon);
export const ErrorIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconExpandLess = createStyledIcon(Icon);
export const ExpandLessIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconExpandMore = createStyledIcon(Icon);
export const ExpandMoreIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconFilterList = createStyledIcon(Icon);
export const FilterListIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconInvertColors = createStyledIcon(Icon);
export const InvertColorsIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconLanguage = createStyledIcon(Icon);
export const LanguageIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconMoreHoriz = createStyledIcon(Icon);
export const MoreHorizIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconOpenInNew = createStyledIcon(Icon);
export const OpenInNewIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconPublic = createStyledIcon(Icon);
export const PublicIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconReceipt = createStyledIcon(Icon);
export const ReceiptIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconRemoveCircleOutline = createStyledIcon(Icon);
export const RemoveCircleOutlineIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconRestore = createStyledIcon(Icon);
export const RestoreIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconSearch = createStyledIcon(Icon);
export const SearchIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconSettings = createStyledIcon(Icon);
export const SettingsIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconStarBorder = createStyledIcon(Icon);
export const StarBorderIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconStarHalf = createStyledIcon(Icon);
export const StarHalfIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconStar = createStyledIcon(Icon);
export const StarIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconStore = createStyledIcon(Icon);
export const StoreIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconVisibility = createStyledIcon(Icon);
export const VisibilityIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconVisibilityOff = createStyledIcon(Icon);
export const VisibilityOffIcon = createStyledIcon(Icon);
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ const Icon = React.memo<Partial<IconProps>>(({ title, ...props }) => (
</svg>
));

export const IconWarning = createStyledIcon(Icon);
export const WarningIcon = createStyledIcon(Icon);
70 changes: 35 additions & 35 deletions packages/big-design-icons/src/components/index.ts
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
export * from './IconAddCircleOutline';
export * from './IconAdd';
export * from './IconArrowBack';
export * from './IconArrowDropDown';
export * from './IconArrowForward';
export * from './IconAssignment';
export * from './IconCheckCircle';
export * from './IconCheck';
export * from './IconChevronLeft';
export * from './IconChevronRight';
export * from './IconClose';
export * from './IconDelete';
export * from './IconDragIndicator';
export * from './IconEdit';
export * from './IconError';
export * from './IconExpandLess';
export * from './IconExpandMore';
export * from './IconFilterList';
export * from './IconInvertColors';
export * from './IconLanguage';
export * from './IconMoreHoriz';
export * from './IconOpenInNew';
export * from './IconPublic';
export * from './IconReceipt';
export * from './IconRemoveCircleOutline';
export * from './IconRestore';
export * from './IconSearch';
export * from './IconSettings';
export * from './IconStarBorder';
export * from './IconStarHalf';
export * from './IconStar';
export * from './IconStore';
export * from './IconVisibilityOff';
export * from './IconVisibility';
export * from './IconWarning';
export * from './AddCircleOutlineIcon';
export * from './AddIcon';
export * from './ArrowBackIcon';
export * from './ArrowDropDownIcon';
export * from './ArrowForwardIcon';
export * from './AssignmentIcon';
export * from './CheckCircleIcon';
export * from './CheckIcon';
export * from './ChevronLeftIcon';
export * from './ChevronRightIcon';
export * from './CloseIcon';
export * from './DeleteIcon';
export * from './DragIndicatorIcon';
export * from './EditIcon';
export * from './ErrorIcon';
export * from './ExpandLessIcon';
export * from './ExpandMoreIcon';
export * from './FilterListIcon';
export * from './InvertColorsIcon';
export * from './LanguageIcon';
export * from './MoreHorizIcon';
export * from './OpenInNewIcon';
export * from './PublicIcon';
export * from './ReceiptIcon';
export * from './RemoveCircleOutlineIcon';
export * from './RestoreIcon';
export * from './SearchIcon';
export * from './SettingsIcon';
export * from './StarBorderIcon';
export * from './StarHalfIcon';
export * from './StarIcon';
export * from './StoreIcon';
export * from './VisibilityOffIcon';
export * from './VisibilityIcon';
export * from './WarningIcon';

0 comments on commit 03772fb

Please sign in to comment.