Skip to content

Commit

Permalink
Revert enum change
Browse files Browse the repository at this point in the history
  • Loading branch information
jandrade committed Nov 28, 2023
1 parent dd1b2db commit f19069e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 16 deletions.
5 changes: 0 additions & 5 deletions .changeset/mighty-planes-sort.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import {IconButtonSize} from "../components/icon-button";
export const iconSizeForButtonSize = (size: IconButtonSize): IconSize => {
switch (size) {
case "xsmall":
return IconSize.small;
return "small";
case "small":
return "medium";
case "medium":
return IconSize.medium;
return "medium";
}
};

Expand Down
3 changes: 1 addition & 2 deletions packages/wonder-blocks-icon/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export {PhosphorIcon} from "./components/phosphor-icon";
export {IconSize} from "./types";
export type {PhosphorIconAsset} from "./types";
export type {IconSize, PhosphorIconAsset} from "./types";
9 changes: 2 additions & 7 deletions packages/wonder-blocks-icon/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
export type PhosphorIconAsset = PhosphorRegular | PhosphorBold | PhosphorFill;

/**
* All the possible icon sizes.
* All the possible icon weights.
*/
export enum IconSize {
small = "small",
medium = "medium",
large = "large",
xlarge = "xlarge",
}
export type IconSize = "small" | "medium" | "large" | "xlarge";

0 comments on commit f19069e

Please sign in to comment.