-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize phosphor icons and use correct icons in MyTheme page
- Loading branch information
Showing
13 changed files
with
58 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/configuration-builder/src/ColorsSection/SectionCompleted.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import { IconProps, svgIconProps } from "@buildo/bento-design-system"; | ||
import { | ||
Atom, | ||
Cards, | ||
FigmaLogo, | ||
Subtract, | ||
type Icon as PhosphorIcon, | ||
TextAa, | ||
CaretRight, | ||
CheckCircle, | ||
Confetti, | ||
Diamond, | ||
DiamondsFour, | ||
Layout, | ||
Eyedropper, | ||
Swatches, | ||
} from "@phosphor-icons/react"; | ||
|
||
function phosphorToBento(Icon: PhosphorIcon) { | ||
return (props: IconProps) => { | ||
const { viewBox, ...svgProps } = svgIconProps(props); | ||
return <Icon width={undefined} height={undefined} {...svgProps} />; | ||
}; | ||
} | ||
|
||
export const IconFigmaLogo = phosphorToBento(FigmaLogo); | ||
export const IconAtom = phosphorToBento(Atom); | ||
export const IconCards = phosphorToBento(Cards); | ||
export const IconCaretRight = phosphorToBento(CaretRight); | ||
export const IconCheckCircle = phosphorToBento(CheckCircle); | ||
export const IconConfetti = phosphorToBento(Confetti); | ||
export const IconDiamond = phosphorToBento(Diamond); | ||
export const IconDiamondsFour = phosphorToBento(DiamondsFour); | ||
export const IconEyedropper = phosphorToBento(Eyedropper); | ||
export const IconLayout = phosphorToBento(Layout); | ||
export const IconSubtract = phosphorToBento(Subtract); | ||
export const IconSwatches = phosphorToBento(Swatches); | ||
export const IconTextAa = phosphorToBento(TextAa); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 0 additions & 9 deletions
9
packages/configuration-builder/src/utils/PhosphorIconWrapper.tsx
This file was deleted.
Oops, something went wrong.